I have a container with multiple divs and am using the flexbox model. I want achieve the following using css, although I cannot change the order of div tags.    In the second row the div with value "8" has to come first.  I have attached the  link.    .container {   position: relative;   display: flex;   flex-flow: row wrap;   // align-items:flex-start;   align-content: space-around;   justify-content: flex-start; }  .item {   background-color: tomato;   box-sizing: border-box;   padding: 20px;   outline: 2px solid blue;   flex-basis: 20%; }  .item-inside {   display: none;   background-color: #ABABAB;   box-sizing: border-box;   padding: 20px;   outline: 1px solid red;   flex-basis: 80%; }  .show {   display: block; }  .hide {   display: none; } &lt;div class="container"&gt;   &lt;div class="item"&gt;1&lt;/div&gt;   &lt;div class="item"&gt;2&lt;/div&gt;   &lt;div class="item"&gt;3&lt;/div&gt;   &lt;div class="item"&gt;4&lt;/div&gt;   &lt;div class="item"&gt;5&lt;/div&gt;   &lt;div class="item"&gt;8&lt;/div&gt;   &lt;div class="item"&gt;7&lt;/div&gt;   &lt;div class="item"&gt;6&lt;/div&gt;   &lt;div class="item"&gt;9&lt;/div&gt;   &lt;div class="item"&gt;10&lt;/div&gt;   &lt;div class="item"&gt;11&lt;/div&gt;   &lt;div class="item"&gt;8&lt;/div&gt;   &lt;div class="item"&gt;12&lt;/div&gt; &lt;/div&gt;
Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div above another div when they are not in that order in the HTML? Both divs contain data that varies in height and width.  &lt;div id="wrapper"&gt;     &lt;div id="firstDiv"&gt;         Content to be below in this situation     &lt;/div&gt;     &lt;div id="secondDiv"&gt;         Content to be above in this situation     &lt;/div&gt; &lt;/div&gt; Other elements   Hopefully it is obvious that the desired result is:  Content to be above in this situation Content to be below in this situation Other elements   When the dimensions are fixed it easy to position them where needed, but I need some ideas for when the content is variable. For the sake of this scenario, please just consider the width to be 100% on both.  I am specifically looking for a CSS-only solution (and it will probably have to be met with other solutions if that doesn't pan out).   There are other elements following this. A good suggestion was mentioned given the limited scenario I demonstrated&mdash;given that it might be the best answer, but I am looking to also make sure elements following this aren't impacted.
Diffinitive rules for using Android's getBaseContext, getApplicationContext or using an Activity's "this" I have the following $n\times n$ matrix:  $$A=\begin{bmatrix} a &amp; b &amp; \ldots &amp; b\\ b &amp; a &amp; \ldots &amp; b\\ \vdots &amp; \vdots &amp; \ddots &amp; \vdots\\ b &amp; b &amp; \ldots &amp; a\end{bmatrix}$$  where $0 &lt; b &lt; a$.  I am interested in the expression for the determinant $\det[A]$ in terms of $a$, $b$ and $n$.  This seems like a trivial problem, as the matrix $A$ has such a nice structure, but my linear algebra skills are pretty rusty and I can't figure it out.  Any help would be appreciated. How long do seasons last? In the Kittens Game, how long (in real life minutes) do seasons last? Secure hash and salt for PHP passwords How to remove the URL from the printing page? I want to remove the URL that gets printed on the bottom of the page.   like:  yomari.com/.../main.php?sen_n   How can it be omitted or prevent from getting printed?  To be more specific, is there any way I can prevent the page URL, date and the page title being printed along, while printing the web page? Overriding public virtual functions with private functions in C++ How do I effectively defeat the Wall of Flesh? Why isn't an upgrade to 20.04 from 18.04 available yet? I want to use do-release-upgrade to upgrade from 18.04 to 20.04, but I can't do that do-release-upgrade Checking for a new Ubuntu release There is no development version of an LTS available.  It seems that  is used, and it still points to 18.04. Do you know when (or how?) can I upgrade to 20.04? Is it possible to use "negative sound waves" to "cancel out" a sound to create silence? I am new to Ubuntu and Linux in general.  I created a dual boot OS on my laptop (Windows 10 and Ubuntu).    Typing: sudo apt-get install python3-tk (or even python-tk) didn't work. Trying to install the python3-dev or python-devel (no luck). Downloading Tcl and Tk to manually install.   In Windows 10 Bash Subsystem the Tk and Tcl are already included, so I thought Ubuntu already had it.  But, I want to use my Ubuntu desktop to develop Python GUI apps.   So, how can I install the Tcl/Tk to be use in Python 3.5 for GUI development?   I loaded Python 3.5.2 fine but need the GUI modules enabled.  The code to test that Tk is working is:      Type python3    Type:     import tkinter    tkinter._test()  Result: a GUI pop-up displaying This is a Tcl/Tk version.. Use grep --exclude/--include syntax to not grep through certain files I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I have bash shell: grep -ircl &quot;foo=&quot; *  In the directories are also many binary files which match &quot;foo=&quot;. As these results are not relevant and slow down the search, I want grep to skip searching these files (mostly JPEG and PNG images). How would I do that? I know there are the --exclude=PATTERN and --include=PATTERN options, but what is the pattern format? The man page of grep says: --include=PATTERN     Recurse in directories only searching file matching PATTERN. --exclude=PATTERN     Recurse in directories skip file matching PATTERN.  Searching on grep include, grep include exclude, grep exclude and variants did not find anything relevant If there's a better way of grepping only in certain files, I'm all for it; moving the offending files is not an option. I can't search only certain directories (the directory structure is a big mess, with everything everywhere). Also, I can't install anything, so I have to do with common tools (like grep or the suggested find). The  is a proposed propulsion mechanism for spacecraft in which some form of microwave device provides the propulsion. The consensus from the physics community, including many voices on this site, is that the proposed device would violate conservation of momentum.   Several experiments have been conducted, by three main groups: (i) , from Satellite Propulsion Research Ltd, (ii) a research group at the Northwestern Polytechnical University in Xi'an, China, and (iii) Eagleworks Laboratories at NASA's Lyndon B. Johnson Space Center in Houston, Texas. However, few of these experiments have been performed in vacuum (and none of the vacuum tests has been published in a peer-reviewed journal), which means the effect of air currents around the device cannot be ruled out.  This device has been the subject of many questions on this site, including          and their many closed duplicates.  Many of these questions ask what the proposed explanations are, but then veer off into territory of the form "assuming it is true, how does it work?", so they have been (rightfully) closed as counterfactual physics. I feel this sort of bundling does a lot of harm to the discussion, and there is some scope to ask what exactly is being proposed as an explanation. So:     What do the proponents of EmDrive claim is the theoretical justification of the device's function?   Please limit answers exclusively to references, and indicate whether they are peer-reviewed or not. Please limit answers to serious attempts at explanations, as opposed to vague claims about the 'quantum vacuum' - or indicate if an experimental paper does not have any such theoretical explanation or reference.  To be clear, this is not the place to discuss whether the explanations are correct or not. If you have specific questions about any of these sources, ask it separately. (However, if your question starts with "assuming that this works", be prepared for it to be closed.) If you feel there are not enough resources on this thread, you can  but please do not post another question asking people to look for more references. Log4Net: Programmatically specify multiple loggers (with multiple file appenders) How to (programmatically, without xml config) configure multiple loggers with Log4Net? I need them to write to different files. Identifying Unused Stored Procedures This next year, I am helping an effort to clean several SQL Server environments.    We have about 10,000 stored procedures and estimate that only about 1000 of them are used on a regular basis, and another 200 or so are used on a rare occasion, meaning we have a lot of work to do.    Since we have multiple departments and teams that can access these databases and procedures, we are not always the ones calling the procedures, meaning that we must determine what procedures are being called.  On top of that, we want to determine this over a few months, not in a few days (which eliminates some possibilities).  One approach to this is to use the SQL Server Profiler and track what procedures are being called and compare them to the list of what procedures we have, while marking whether the procedures are used or not.  From then, we could move the procedures to a different schema in case a department comes screaming.  Is using the Profiler the most effective approach here?  And/Or have any of you done something similar and found another way/better way to do this? Possible bug in hypergeometric function AppellF1 Proof Check: Every Cauchy Sequence is Bounded I have a dual screen setup on my laptop (using 12.04 LTS) using a HDMI connected display. Everything works fine, but everytime I connect/disconnect the cable I have to go to Sound preferences and change the sound output device manually.  Is there any way to change the sound output device on connect/disconnection of cable, so when I connect my display the sound output is set to HDMI and when I disconnect it the sound goes back to laptop speakers? Compute device list not showing card name when using OpenCL I have an AMD Radeon R7 M265, and when I force OPENCL with the batch file it only shows Iceland, Intel HD and the CPU.  I followed this instructions:   R, type CMD, press &#9166; Enter, go to your blender folder. ex:  cd C:\Program Files\Blender Foundation\Blender  Press &#9166; Enter and then type: set CYCLES_OPENCL_TEST=all Start Blender with blender.exe Inside blender go to File -> User preferences -> System Under compute device select OpenCL and then your card Close the preferences and go to the render panel and select device: GPU Compute.  I have the latest beta driver from AMD, but when I try to change the compute device it only shows this list:     Am I doing something wrong? Is my GPU is not supported? Or is it because it's in development and not every card is supported yet?  I've tried blender v2.74.5, v2.62, and v2.63. Every one gives the same list. Redirect stdin and stdout to ports I'd like to take a program P that reads from stdin &amp; writes to stdout, but connect it to nc or whatever such that it reads from a certain port and outputs to another port.  # The reading is easy, here P reads from port 50505 nc -l 50505 | P   How do I get it to write back to say port 60606? Split a string with delimiters but keep the delimiters in the result in C#