How can I center align the contents of a div? &lt;div class="sc-content-footer container"&gt; &lt;div class="row"&gt; &lt;div class="col-md-4"&gt; &lt;!-- Begin MailChimp Signup Form --&gt; &lt;/div&gt;  &lt;div class="col-md-4"&gt; &lt;img src="images/BSY_LOGO_SIGNAGE.png"&gt; &lt;/div&gt;  &lt;div class="col-md-4"&gt; &lt;!-- Begin MailChimp Signup Form --&gt; &lt;/div&gt;      Nothing seems to work, text-align: center does nothing. The content inside the 3 divs is: mailchimp form, logo, mailchimp form
How to horizontally center an element How can I horizontally center a &lt;div&gt; within another &lt;div&gt; using CSS? &lt;div id=&quot;outer&quot;&gt;   &lt;div id=&quot;inner&quot;&gt;Foo foo&lt;/div&gt; &lt;/div&gt;
What can I use to typeset MATLAB code in my document? This question led to a new package:      Does anybody have a quick and easy way to typeset some relatively long MATLAB code in the appendix? I looked up a few methods, and the mcode package emerged as a possibility, but it seems to be unmaintained...  I have a ton of equations in my code, so I'd prefer a solution that avoids having to use $ to denote equations.  Also, if possible, if there's a way to keep all of MATLAB's "natural" coding colors (e.g. green for comments), that would be great...  Any idea? Difference between "I'm home" vs "I'm at home" What's the difference between these two sentences? And which one's grammatically correct? Creating compressed GeoTIFF with QGIS Clipper tool? I have a geo-tiff created by Pix4D which is about 375 Mb in file size.   I have clipped it to a smaller area using Qgis 2.8(using Raster ‣ Extraction ‣ Clipper), and the output file is about 900 MB in size.  Why did the clipping process generate such a large file, when the source file was smaller?   How do I run the clipper tool so that it produces a smaller size? Experimental data for asymmetric Newton cradle Using a "successive impact model" (as if each ball were seperated from the other ones), I produced the following animations:    You can see any combination of balls with masses of 1 or 2 (left) or 1 and 4 (right).  Unfortunately, I do not have any Newton cradle to make some experiments, and I'd like to compare my results with observations. I contacted the author of , which is the most instructive one I found about asymmetric Newton cradle. In particular, he writes that the "OoO" configuration behaves as the "ooo" one, which is not what I simulate. But the author is not sure whether who is wrong because he did the experiments a long time ago.  I am especially interested in asymmetric Newton cradle with simultaneous impacts: left and right balls collinding at the same time.   Please let me know if you have any idea on where to find such experimental data.  Edit Just of few general remarks to avoid extending the comments.    Energy and momentum are conserved. However, they are sufficient to ensure uniqueness of the post-impact velocities only when there are 2 balls. The successive impact model precisely consists in propagating the impact ball after ball, and therefore leads to a unique solution (which conserves momentum and energy globally). From the waves point of view, changing the mass of a ball can be done by increasing the diameter, or the density (or a combination of both). This simple model cannot account for such subtleties of course, but maybe it does not matter when the balls are "small enough". Even if I think it's quite basic, following WetSavannaAnimalakaRodVance's comment, I am ready to hand out my Mathematica code to anybody who wants it. I'll check for good ways to share it. Subquery in SQL Server Compact Edition How to Recover truncate table in MySQL? What is the remainder when $1! + 2! + 3! +\cdots+ 1000!$ is divided by $12$? What is the remainder when $$1! + 2! + 3! +\cdots+ 1000!$$ is divided by $12$.  I have tried to find the answer using the Binomial Theorem but that doesn't help. How will we do this?  Please help. How do I resume a release upgrade? Yesterday I started the upgrade from 12.10 to 13.04, but I interrupted it because it was taking too long. Now if I restart it, it doesn't proceed.  Is there any possibility to clean the mess it left when I interrupted it and make a clean restart of this update? Let $\sim$ be the equivalence relation on $S_1 \times I$ given by $(x,t)\sim(y,s)$ if and only if $xt=ys$ where $I=[0,1]$  How do I prove that $(S_1 \times I)/\sim$ is homeomorphic to the unit disk $D^2$ with the induced topology? javascript not working, working on fiddle but not on my webserver When does decision tree perform better than the neural network? What is the best way to add options to a select from a JavaScript object with jQuery? What is the best method for adding options to a &lt;select&gt; from a JavaScript object using jQuery?  I'm looking for something that I don't need a plugin to do, but I would also be interested in the plugins that are out there.  This is what I did:  selectValues = { "1": "test 1", "2": "test 2" };  for (key in selectValues) {   if (typeof (selectValues[key] == 'string') {     $('#mySelect').append('&lt;option value="' + key + '"&gt;' + selectValues[key] + '&lt;/option&gt;');   } }   A clean/simple solution:  This is a cleaned up and simplified :  $.each(selectValues, function(key, value) {      $('#mySelect')           .append($('&lt;option&gt;', { value : key })           .text(value)); });   Changes from matdumsa's: (1) removed the close tag for the option inside append() and (2) moved the properties/attributes into an map as the second parameter of append(). Why do we say "is it" when asking a question rather than "it is"? What it says on the tin, a foreign friend of mine has asked and I can't tell him; apart from it sounding horrible.  For example:  "Why is it raining today?"   Instead of:  "Why it is raining today?" Run a command before & after ubuntu apt upgrade & unattended-upgrades Extracting a regex matched with 'sed' without printing the surrounding characters To all the 'sed' doctors out there:  How can you get 'sed' to extract a regular expression it has matched in a  line?   In other words words, I want just the string corresponding to the regular  expression with all the non-matching characters from the containing line stripped away.  I tried using the back-reference feature like below  regular expression to be isolated           gets `inserted`                here                     |                v    sed -n 's/.*\( \).*/\1/p    this works for some expressions like   sed -n 's/.*\(CONFIG_[a-zA-Z0-9_]*\).*/\1/p    which neatly extracts all macro names starting with 'CONFIG_ ....' ( found in some '*.h' file ) and prints them all out line by line             CONFIG_AT91_GPIO           CONFIG_DRIVER_AT91EMAC                    .                    .              CONFIG_USB_ATMEL           CONFIG_USB_OHCI_NEW                    .                  e.t.c.    BUT the above breaks down for something like    sed -n 's/.*\([0-9][0-9]*\).*/\1/p    this always returns single digits like                    7                  9                  .                  .                    6   rather than extracting a contiguous number field such as.                 8908078               89670890                    .                  .                    .                23019                     .                e.t.c.     P.S.: I would be grateful to feedback on how this is achieved in 'sed'.        I know how to do this with 'grep' and 'awk'       I would like to find out if my - albeit limited - understanding of        'sed' has holes in it and if there is way to do this in 'sed' which I       have simply overlooked. Here's :        At the moment, the latest entry there is October 13, which would be mistaken to mean October last year (2012), but it actually is October 2010. This applies to all the filters in the activity tab. Word for people who live in the same city What are the people who live in the same city are called? Any words for that? I want to use it in the following context:      I and my ____ are happy. From the  article on Wikipedia, the following with regard to the Coriolis Effect on a rotating sphere:     By setting vn = 0, it can be seen immediately that (for positive φ and ω) a movement due east results in an acceleration due south. Similarly, setting ve = 0, it is seen that a movement due north results in an acceleration due east. In general, observed horizontally, looking along the direction of the movement causing the acceleration, the acceleration always is turned 90° to the right and of the same size regardless of the horizontal orientation.   My intuitive (but possibly incorrect) understanding is that if there are two points, Point A and Point B, at different latitudes in the Northern hemisphere, the Eastward velocities of these points are different because they are at different distances from the Earth's axis of rotation, and this causes the Coriolis effect for a rotating sphere.  If a projectile is fired due North from Point A near the Equator towards Point B near the North Pole, the projectile will start off with the higher Eastward velocity of Point A, and will land to the East of Point B, which is moving East at a slower velocity than the projectile.  Firstly, is that correct?  If that IS correct, that brings me to the quote off Wikipedia. The quote implies that, if a projectile is fired due East, it will experience a Coriolis force to the South. My intuitive explanation based on differences in velocities between origin and destination does not account for a Southwards movement at all, since the Point A and Point B velocities are identical if the points are on the same latitude.  What am I missing? Would a projectile fired due East or due West experience any North or South drift caused by the Coriolis effect (or anything else for that matter)?  Why? Integral of $\int \frac{dx}{\sqrt{x^2 -9}}$ How to execute consecutive commands from history? Suppose I want to execute a sequence of four commands that I have executed before. If the first one is 432 in the command-history, then I could do:  $ !432; !433; !434; !435   I'm curious, is there a more efficient way to accomplish this?