I need to center(left to right) absolute elements(green) inside a relative container(blue). The child elements(green) need to have a dynamic/unset width. I would rather not use JavaScript(CSS and html only).  Code:   .relativeParent {   width: 100px;   height: 100px;   background: blue;   position: relative;   overflow: visible;   display: block;   margin-left: 100px;   margin-bottom: 20px; }  .absoluteChild {   display: block;   background: green;   position: absolute; } &lt;div class="App"&gt;   &lt;div class='relativeParent'&gt;     &lt;div class='absoluteChild'&gt;test&lt;/div&gt;   &lt;/div&gt;   &lt;div class='relativeParent'&gt;     &lt;div class='absoluteChild'&gt;asd asdf asdf asdf asdfa sdf&lt;/div&gt;   &lt;/div&gt; &lt;/div&gt;
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;
Mail vs. mail what is the difference Custom entity datetime field in calendar What is the difference between a linear and a circular polarizer? When I bought my polarizer, a friend told me that I should get a circular one, because the linear ones can mess with the autofocus. Is this true? What should each be used for? I've noticed an interesting phenomenon in the user interfaces of many famous applications, they're moving away from the glossy complex to a more dull and bare minimum design.  Why the sudden change? It also appears that most of these companies have adopted this design around the same time, was that linked to some new study?  Examples: Show that given seven real numbers, it is always possible take two of them, such that $\left\vert\frac{a-b}{1+ab}\right\vert<\frac{1}{\sqrt{3}}$ Show that given seven real numbers, it is always possible take two of them, such that $$\left\vert\frac{a-b}{1+ab}\right\vert&lt;\frac{1}{\sqrt{3}}$$   The "Pigeonhole principle" states that if $n$ items are put into $m$ containers, with $n &gt; m$, then at least one container must contain more than one item, but how I an define my "container" such that meets the condition of the problem? Why should I avoid multiple inheritance in C++? Is it a good concept to use multiple inheritance or can I do other things instead? What physical properties of materials trigger the capacitive touch screen? I have watched some youtube videos about capacitive touch screen      The videos show that a conductor(finger), in which charges can be induced, can be used to trigger the capacitive touch screen. However, I tried to wear a plastic glove to hold a metal rod to touch the screen and no detection is triggered.  I really want to know the physics theory about the capacitive sensing.  Can someone tell me what physical properties or shape trigger the capacitive touch screen?  Is there any examples that something WITHOUT conducting to human body can trigger the screen?  (P.S. I have read other posts about capacitive touch screen here and do not find a good answer so this is not a duplicate) find and echo file names only with pattern found I used this a lot, the improvement I try to achieve is to avoid echo file names that did not match in grep. Better way to do this?      for file in `find . -name "*.py"`; do echo $file; grep something $file; done Is there a list of Windows special directories/shortcuts (like %TEMP%)? I'm looking for a reference list of shortcuts like %TEMP%.  When I'm using Windows+R or Windows Explorer and type %temp%, the Windows Explorer takes me to the Temp directory. Are there more of these shortcuts?  UPDATE: . I noticed that after joining a table to a shapefile the headers of each fields in the table used for the join are changed by QGIS and they are attributed to a different name.  For instance, I had a shapefile with vegetation_codes and a table with vegetation_codes and veg_definition (these were the headers). After joining the table to the shapefile and also saving the shapefile and creating a new one, the vegetation_classes header was changed into vegetati_1.  Is there a way to keep the original headers?  I am using QGIS Dufour on Windows 7 and the table that I join to the shapefile is CSV (tried with dbf as well and the problem is the same). Push Notification Badge Count Not Updating In Magic: The Gathering, the rules for a player losing in a multiplayer game are quite complex, so I'd like to try to understand them by example. I would be happy to ask each of these situations as a separate question if that is preferred, but they all seem related, and I would love to have one place to look up all of these answers.  Let's say I'm playing with two friends, Bob and Chloe, in a simple free for all. Unfortunately, I lose. When I lose, suppose the following:   I controlled an  which has exiled Bob's , does he get his bear back? I have a  on the stack targeting Chloe, does Chloe take the 2 damage still? Earlier in the turn I cast  to prevent damage to one of Bob's . If it later takes 3 damage, will that damage be prevented? Something I controlled gave Bob a 1/1 soldier token. What happens to the token? Something Chloe controlled gave me a 1/1 soldier token. What happens to the token? I had a  enchanting one of Bob's army of . What happens to the bear? I had also played  on Bob's final . What happens to the last bear? Chloe had  my . What happens to the Clone? Are there any other situations specifically addressed by the rules? I recently read a lot about neural networks using GRU or LSTM units. There are many easy to use frameworks like tensorflow that do not even require high knowledge about programming. Unfortunately, I never really found good information on how the training of those networks work. Simple backpropagation might probably not work for gated recurrent networks or is just too inefficient for networks with such a high number of variables to learn.  So my question is:  What are the state-of-the-art algorithms used for the initialization and training of neural networks with GRU or LSTM units? I am not looking for frameworks to use, but for initialization and update equations for the internal parameters. Is the "Roman alphabet" what we use for English? I understand that the alphabet for the English language is not strictly English as languages such as French, Dutch and many more use the same alphabet, with few additions in other languages. Is Roman alphabet the common term to refer to this set of symbols for writing texts? When trying to launch Audacity, I get the following error:  Audacity could not find a place to store temporary files. Please enter an appropriate directory in the preferences dialog.   No files or folder have been moved.   I have purged Audacity, deleted any files, etc manually and re-installed   In terminal:  pst007x@pst007x-Serval-Professional:~$ audacity   (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised  ** (Audacity:16390): WARNING **: Owner of /tmp/orbit-pst007x is not the current user  Segmentation fault pst007x@pst007x-Serval-Professional:~$    I have not changed any users or added any additional users. All privaleges, etc are default.   Ubuntu 13.10 64bit (all updates applied)  ADDITIONAL:  I can open as gksu audacity  So it looks like privileges is an issue somewhere. I have checked all privileges and all seems ok, but clearly not....  I tried changing the Directory in Preferences to a directory in my home folder:  /home/pst007x/Music/audacity_temp/  but when starting again (not in root) same error...  Any ideas what files could be lacking privileges?   After changing the Directory, when running I get this:  pst007x@pst007x-Serval-Professional:~$ audacity   (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised Segmentation fault pst007x@pst007x-Serval-Professional:~$    I checked installed files using Synaptic Package Manager, then checked permissions:  pst007x@pst007x-Serval-Professional:~$ sudo chmod -R 777 /usr [sudo] password for pst007x:  pst007x@pst007x-Serval-Professional:~$ audacity  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised Segmentation fault pst007x@pst007x-Serval-Professional:~$    EDIT. After the above, I rebooted and was no longer able to login. So I did a fresh install. Not a bad thing since the original install on the this system was 10.10. Working ok after fresh install.  Thank you for taking the time to post answers and suggestions.. Is it possible to set an SSLProtocol in Apache for a single VirtualHost (poodle)? I'm trying to test a patch for the  that involves disabling SSLv3 on my web server. In order to test this on a non-production environment first, I'm setting the SSLProtocol on a VirtualHost for a different test server. My config looks something like this:  &lt;VirtualHost *:443&gt;     SSLEngine On     SSLProtocol All -SSLv2 -SSLv3     ServerName test.mysite.com     # bunch of other stuff omitted &lt;/VirtualHost&gt;   However even after restarting apache my test site is still claimed to be vulnerable. Is this expected to work? I'm wondering if I have to set it in the global ssl config or whether there's something else subtle that's causing the setting not to take and/or work. Do the Ents go to the Undying Lands? Seeking QGIS tutorials and web resources? I wish to familiarize myself with the capabilities of QGIS up to and beyond QGIS version 3.0.   Can you recommend some good web resources and tutorials that would show me QGIS' capabilities?   I am interested in both using QGIS through its GUI and in developing applications using QGIS. What should I focus on when converting photos to black and white? When I look at the black and white photographs from professional photographers, I notice that they have a special look. Not a specific style—obviously each photographer has her own style—but a look which make them different from similar color photos, a special feeling, which makes them shine specifically as black and white and makes color irrelevant.  When I convert my own photos to black and white in Lightroom, they don't have any special look. They just look like any other of my photos, simply converted to black and white. I imagine that there are two reasons for that:   Some scenes are better for black and white. Talented and/or experienced photographers know which scenes would be beautiful in black and white, and shoot specifically those scenes. Moreover, they know how to adapt the scene itself and the lighting to black and white (for instance by not relying on the color contrast itself).  In my case, I don't think much about shooting for black and white. It comes only in post-processing, when I either think that the photo will look great in black and white (and very often, it doesn't), or I find the colors to be poor and turn the photo to black and white (which actually doesn't make the photo any better). Post-processing is much more complex than clicking on black and white button in an app. It involves not only adjusting black and white mix (i.e. raising or lowering the lightness of specific colors), but doing lots of other adjustments.  In my case, I do black and white mix, but other adjustments I do are similar to what I would do for a color photo: actually, I may even do them on a color photo, and only then turn it to black and white.   So, what should I take in account if I want to have decent black and white photographs? Are there specific techniques, tips, tricks or warnings for someone who usually shots in color and wants to start black and white photography?  Let me show some examples. Are those scenes not great for black and white photos in the first place? Or can they be salvaged through proper post-processing?  1.  First, a poorly done photo from Scotland with dubious composition and very poor colors that I was unable to correct in Lightroom.  The same image in black and white isn't much better. The difference between the trees and the grass on the hill is barely visible. Houses on the hill fade with the sky much more than in the original version.      2.  Here's a photo of a cute pet.  In black and white, the gap between the mouse's ear and the background is barely visible. There is absolutely no benefit compared to the original.      3.  Finally, an example of a much more contrasty picture. The black and white version is weird, since the lack of color makes it difficult to understand whether the soil is the actual sand or something else. I find the sky to be weird as well, and making the blue channel darker or lighter in Lightroom haven't changed that. I am trying to really understand why the gradient of a function gives the direction of steepest ascent intuitively.  Assuming that the function is differentiable at the point in question, a) I had a look at a few resources online and also looked at this   , a popular question on this stackexchange site. The accepted answer basically says that we multiply the gradient with an arbitrary vector and then say that the product is maximum when the vector points in the same direction as the gradient? This to me really does not answer the question, but it has 31 upvotes so can someone please point out what I am obviously missing?  b) Does the gradient of a function tell us a way to reach the maxima or minima? if yes, then how and which one - maxima or minima or both? Edit: I read the gradient descent algorithm and that answers this part of my question.  c) Since gradient is a feature of the function at some particular point - am I right in assuming that it can only point to the local maxima or minima?