I use following code:  &lt;body&gt; &lt;div style="width:450px; height:600px; align-self: center; background-color: lightgreen;"&gt;&lt;/div&gt; &lt;/body&gt;   and get    I hope align green part to center, how to do it?
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;
How do I tell if ACR will work with my camera and how do I get the correct version for Photoshop? I am a beginner photographer with a Canon 7d and MacBook Pro. I'm not sure if Adobe camera Raw is compatible with either and really need advice on how to go about downloading the correct version. Delay jquery hover event? I would like to delay a hover event in jquery.  I am reading from a file when user hovers over a link or label.  I don't want this event to occur immediately in case the user is just moving the mouse across the screen.  Is there a way to delay the event from firing?  Thank you.  Example code:  $(function() {     $('#container a').hover(function() {         $('&lt;div id="fileinfo" /&gt;').load('ReadTextFileX.aspx',             {filename:'file.txt'},             function() {                 $(this).appendTo('#info');             }          );     },         function() { $('#info').remove(); }     }); });   UPDATE: (1/14/09) After adding the HoverIntent plugin the above code was changed to the following to implement it.  Very simple to implement.  $(function() {     hiConfig = {         sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)         interval: 200, // number = milliseconds for onMouseOver polling interval         timeout: 200, // number = milliseconds delay before onMouseOut         over: function() {             $('&lt;div id="fileinfo" /&gt;').load('ReadTextFileX.aspx', {filename:'file.txt'},                 function() {                    $(this).appendTo('#info');                 }              );         }, // function = onMouseOver callback (REQUIRED)         out: function() { $('#info').remove();  } // function = onMouseOut callback (REQUIRED)     }     $('#container a').hoverIntent(hiConfig) } I'm trying to install the  IDE in my Ubuntu and in the process it's asking for my root password which I don't remember. I know my  user password. How can I recover my root password? nginx support for .htaccess / rewrite rules? Differences from Apache? I've been working with Apache http servers for quite some time, and finally making the move to static-content servers alongside the others dynamic-content machines.   I was wondering, does nginx support ".htaccess" files, and things like mod_rewrite?   As I'm very used to the syntax, I was wondering what the (syntax) differences were, and what the learning curve is like moving from Apache configs to nginx. Can't move/snap Nautilus window to occupy left or right half of the 1366x768 screen - is it just me? How can I check if my computer's powerful enough to run a certain game? Is there a service that I can use to check if my machine will be able to run a certain game? Maximum power transfer and Thevenin I am trying to find the thevenin resistance value and the Vth for maximum power transfer. I have tried to find Rth by calculating R3 and R2 as parallel resistance and same for R4 and R5 and then adding them with R1 but I am not sure if I have done it the right way. For Vth I have tried using KVL but I think I have calculated wrong current values using current divider rule. I calculated the total current by diving V1 and R1. I hope someone can help. I have attached the picture of the circuit. How to rename multiple files sequentially from command line? How to rename file as below  AS1100801000002.RAW7AGS  AS1100801001008.RAW7AH4 AS1100801002001.RAW7AH9 AS1100801003002.RAW7AHE AS1100801004009.RAW7AHT AS1100801005002.RAW7AHY AS1100801010002.RAW7AJ3   to new name  AS1.txt AS2.txt AS3.txt AS4.txt AS5.txt AS6.txt AS7.txt My Android device screen got broken and I can't see what I'm doing. That's the only wrong thing with my device, the rest is apparently working OK. Is there any way to send my device screen to my computer? I don't want to work blindly anymore! Mean, Average and Expectation What is the precise difference between the Mean, Average and Expectation ? Is there any mathematical formaulation to show the difference ? I see that often they are used interchangeably. Can someone explained, as detailed as possible, the differences between the following types?  List List&lt;Object&gt; List&lt;?&gt;   Let me make this more specific. When would I want to use  // 1  public void CanYouGiveMeAnAnswer(List l) { }  // 2 public void CanYouGiveMeAnAnswer(List&lt;Object&gt; l) { }  // 3 public void CanYouGiveMeAnAnswer(List&lt;?&gt; l) { } Bash built-ins with no manual entries Show an exponential function has a valid density. Given:  Let $X$ be exponential with parameter $\lambda$, that is   $$ f_X(x) = \begin{cases} \lambda e^{-\lambda x} &amp; \text{if }x&gt; 0, \\ 0 &amp;\text{for }x\leq 0. \end{cases} $$  where $\lambda&gt;0$ is called the rate of the distribution.  Question:  Show that this is a valid probability density function (pdf).  Attempt:  Need to show that  $$ f(x) = \int^{\infty}_{-\infty} \lambda e^{-\lambda x}\,  dx=1\\\\ $$ Thus, \begin{eqnarray*} f(x)&amp;=&amp;\int^0_{-\infty} \lambda e^{-\lambda x} \, dx+\int^\infty_0 \lambda e^{-\lambda x} \,  dx\\[8pt] &amp;=&amp;0+\int^\infty_0 \lambda e^{-\lambda x} \, dx \\[8pt] &amp;=&amp;\lambda\int^\infty_0 e^{-\lambda x} \, dx \\[8pt] &amp;=&amp;1 \end{eqnarray*}  The problem is that my professor just told me that I skip a step right before I derive $1$. Any insight?  EDIT:  Given the great feedback, here is the answer:  \begin{eqnarray*} f(x)&amp;=&amp;\int^{\infty}_{-\infty} \lambda e^{-\lambda x} dx=1\\\\ f(x)&amp;=&amp;\int^{\infty}_{-\infty} f_X(x)dx\\ &amp;=&amp;\int^{0}_{-\infty} 0\,\,\, dx+\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;0+\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;\int^{\infty}_{0} e^{-\lambda x} \Big(\lambda \,\,\,dx\Big)\\ &amp;=&amp;\int^\infty_0e^{-u} du\\ &amp;=&amp;-e^{-u}\Big|^{\infty}_0\\ &amp;=&amp;1-\lim _{x \to \infty} e^{-u}\\ &amp;=&amp;1\\ \end{eqnarray*} How to create an empty file from command line How did Asuna and Kirito survive? In the last episode of Aincrad arc of Sword Art Online, how did Asuna survive even though her avatar disintegrated after being attacked by Kayaba? Also Kirito was stabbed by Kayaba as well. How did he survive?  Was it in the novel on how they really survived? I would like to find a Python script that will access an attribute table within a shapefile and either update or replace records inside a field column. More specifically, I would like to use the replace expression to convert a table record like "123-456-789" to "123456789". I have many records to process and would like the best approach to do this task using Python. Why is 'that' sometimes optional before dependent clauses? Column and row padding in tables How do you guys go about controlling column padding in tables?   Update  To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the following code snippet, I could pad the columns and make them look a bit less... ugly. :P   \begin{tabular}{|l|l|}     \hline     column 1 &amp; column 2 \\      \hline     I really would like this less &amp; crammed\\     \hline \end{tabular}   I tried this by using the command \vspace but it leaves gaps in the vertical lines. I've just purchased a new brand laptop with 17 inch size of the screen. I've installed Texmaker and it is messy. The icons are very small and the GUI is not zoomed out automatically to fit the contents of the window. These are pictures         I've already set the size of the icons to medium and the size of apps to 250 (i.e. the recommended size) for  the display.  I'm using Windows 10. Some fonts are blurry and a lot of people are complaining about this problem with no solution from Microsoft. Any suggestions? proving topological equivalence How would I show that $$d_E = \sqrt{\sum_{i=1}^n(x_i-y_i)^2}$$ and $$d_\infty= \sum_{i=1}^n|x_i-y_i|$$ and $$\sup\{|x_1-y_1|,|x_2-y_2|,...,|x_n-y_n|\}$$ are topologically equivalent on $\mathbb{R}^n$? I can do it for $\mathbb{R}^2$, but I'm not sure how a generalization looks like.