The whole div remains on left, I tried withe below but no luck    .captionhome {   width: 600px;   padding: 10px;   border: 5px solid black;   margin: 50px;   font-weight: bold;   font-size: 16px;   text-align: center; } &lt;div class="captionhome" style="text-align: center;"&gt;WARNING: This product contains nicotine. Nicotine is an addictive chemical.&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;
How can I prove these statements? Does "until [date]" mean "before that date"? What does until mean in the following?     You need to deliver this product within 2 days (until August 18, 2011)   to meet your deadline and get paid.   Does this mean that I have to deliver the product by 23:59 on 17 August 2011 or 23:59 on 18 August 2011? The order time is 21:04 on August 16 2011. In PHP, what does the ${$ } syntax do? Who's at fault with this error concerning csquotes and LuaLaTeX? I ran into this with the package lilyglyphs but I'm not sure whose fault this error is.  When I compile the following with lualatex:  \documentclass{article} \usepackage{csquotes} \MakeOuterQuote{"} \EnableQuotes \begin{document} \directlua{print("hello")} \end{document}   I get an error saying   \directlua]:1: unexpected symbol near '\'. l.6 \directlua{print("hello")}    Now suppose that I do not directly write \directlua in my document, but I include a package that does it internally. Such as   \documentclass{article} \usepackage{fontspec, csquotes, lilyglyphs} \MakeOuterQuote{"} \EnableQuotes \begin{document} \wholeNote \end{document}   I have no knowledge why compilation fails, because the error now becomes   ! Missing number, treated as zero. &lt;to be read again&gt; \begingroup l.7 \end       {document}    From my user point of view I did nothing wrong, because I'm using the public API provided by the packages. The csquotes documentation specifically says:     Note that all characters are automatically checked for validity as they are allocated. This package will reject characters which are unsuitable as active quotes... In sum, the following   characters will be considered as reserved by this package:   A–Z a–z 0–9 . , ; : ! ? ' - # $ % &amp; ^ _ ` ~ \ @ * { } [ ]    So my question is whose fault is this error?   My fault, the user's fault, because I should have known (but how?) that even though the quote is not listed as unsuitable in the csquotes manual, it actually is? The fault of the implementation or documentation of csquotes for failing to mention " as unsuitable? The fault of the implementation of the \directlua command because it doesn't prevent LaTeX catcode changes/active characters from impacting its argument? A shortcoming of TeX itself because of its global state based architecture? How to Select Hyperlink Text in Google Chrome? I am running Google Chrome 5. How can I select hyper link text using the mouse with, for example, CTRL or ALT keys? In ideal gas model,  is the measure of average kinetic energy of the gas molecules. If by some means the gas particles are accelerated to a very high speed in one direction, KE certainly increased, can we say the gas becomes hotter? Do we need to distinguish the random vibration KE and KE in one direction?  Furthermore, if we accelerate a block of metal with ultrasonic vibrator so that the metal is vibrating in very high speed with cyclic motion, can we say the metal is hot when it is moving but suddenly become much cooler when the vibration stop? I have to format my entire disk and reinstall Ubuntu.  I have installed a lot of software on my current system. And I will have to reinstall all those updates, drivers and applications too.  Is there any way I can make an .iso image of my installed Ubuntu along with all the software, preferences, drivers etc in it ?  Is there any way I can back up my whole OS along with all its software, drives, updates and all ? What is the difference between a relative phase and a global phase? In particular, what is a phase? I know that $re^{i\theta} = x + iy$ for any complex number $x + iy$ by Euler's formula. How do you calculate relative and global phase? How to zero out a drive? Can you create an illusion of empty space? I've been thinking of various ways for a crafty Illusionist/Rogue to 'hide in plain sight' by essentially creating the cover that they want to hide behind.  Ideas include things like:   Create a wall that is 2.5ft closer than it really is and hide in said space Create some innocuous barrier or container and hide within it Create a 'sheet' that essentially has what an empty room looks like 'painted' on it, so someone walking past an open door would see an empty room.   From different discussions I've had, these all should work, but the one lingering one I have is, what if my illusion is simply 'empty space'?  If I were to create an illusion of empty space and then place myself in it, would I be essentially invisible?  What if I created an illusion that was partially-empty space, like a 5x5 cube of swiss cheese? Would it seem like there was a swiss cheese cube formed around my person or could my 'fake-empty-space-image' fill the holes?  Would my 'empty space' illusion simply need to work like the aforementioned 'sheet of what I expect you to see' in order to function (and thus most likely only work from limited viewing angles)? How to show a group is cyclic? One question asking if $\mathbb{Z}^*_{21}$ is cyclic.  I know that the cyclic group must have a generator which can generate all of the elements within the group.  But does this kind of question requires me to exhaustively find out a generator? Or is there any more efficient method to quickly determine if a group is a cyclic group? Given $|z|&lt;1$ with $z \in \mathbb{C}$ prove $\lim_{n \to \infty} z^n=0$.  My attempt given $\epsilon &gt;0$ we wish to show that there exists $\delta &gt;0$ such that $n&gt; \delta$ means $|z^n-0| &lt; \epsilon$.  For $n \in \mathbb{N}$. We have $|z^n|=|z|^n$. We wish $|z|^n &lt; \epsilon$. This means,  $$n \ln |z| &lt; \ln \epsilon$$  But because $\ln |z|&lt;\ln 1=0$ dividing both sides by $\ln |z|$ gives:  $n&gt; \frac{\ln \epsilon}{\ln |z|}$  So that's what we choose for $\delta$.   My question is is how can we get away from the assumption that $n \in \mathbb{N}$. Or is this correct even with the assumption? Ready-to-Use Database models example Where can I find ready-to-use database models ?  I don't need a database with data in it, but only schemas (UML diagrams). Perhaps something like the , but much more complex and real world. Does Java Connection.close rollback? Does Java Connection.close rollback into a finally block?.  I know .Net SqlConnection.close does it.  With this I could make try/finally blocks without catch...  Example:  try {     conn.setAutoCommit(false);     ResultSet rs = executeQuery(conn, ...);     ....     executeNonQuery(conn, ...);     ....      conn.commit(); } finally {    conn.close(); } Unbounded continuous function on non-compact metric space Suppose $(S,d)$ is a non-compact metric space. Is it possible to construct an unbounded continuous function from $S$ to $\mathbb{R}$? If it is possible, please show the construction method :)  Here's my attempt to solve this problem: Because $S$ is not compact, we can find a neighborhood assignment function $N(x)$ so that a finite cover is not possible. Then each time we can find an uncovered point from the union of neighborhoods before, and change the function by $f(x):=max\{f(x),\text{a function which equals to the indice of this point at that point and gradually vanishes at further points from the selected point}\}$. However I'm concerned that while this function is unbounded, there may be some invalid points for this function (goes to infinity)...  EDIT: As I found out there is a duplicate question, however the elementary solution is not presented in that question, so I still wish to know about this problem. :) scp from remote Linux to local Windows with spaces in local path To push a file from a Linux terminal to a Windows system, the following two examples work just fine.  scp /home/user.name/file.html user.name@local.ip.num:/C:/Users/user.name/test_folder/file.html  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test_folder/file.html"   I need to do this where the local folder has spaces and I cannot change the name,  say /C:/Users/user.name/test folder/  All of the following fail with the message scp: ambiguous target  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test folder/file.html"  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test\ folder/file.html"  scp /home/user.name/file.html user.name@local.ip.num:"'/C:/Users/user.name/test\ folder/file.html'"  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test\\ folder/file.html"  scp /home/user.name/file.html user.name@local.ip.num:"'/C:/Users/user.name/test\\ folder/file.html'"  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test\\\ folder/file.html"  scp /home/user.name/file.html user.name@local.ip.num:"'/C:/Users/user.name/test\\\ folder/file.html'"   How do I get this to work? Rationale behind pronunciation of "subtle" Is there a closed form expression for $\text{n}^{\text{th}}$ coefficient of Maclaurin series of  $$\ln(1-x+x^2)$$ I know it is defined as $ dP \wedge dx  $ or explicitly,  $$ \frac{\partial P }{\partial y } dy \wedge dx   . $$  The question is, could it be $dx \wedge d P $?  Or  $$  \frac{\partial P }{\partial y }  dx \wedge dy ?    $$  I know the question must be very naive or even stupid. But I am indeed confused. List all sites in multisite I want to list all sites in the multi site network in alphabetical order? Right now, the code lists by registered date  &lt;?php // Query for getting blogs             $blogs = $wpdb-&gt;get_results( $wpdb-&gt;prepare("SELECT blog_id, domain, path FROM $wpdb-&gt;blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' ORDER BY registered DESC", $wpdb-&gt;siteid), ARRAY_A );              // put it in array               foreach ( (array) $blogs as $details ) {$blog_list[ $details['blog_id'] ] = $details;}             unset( $blogs );             $blogs = $blog_list;              // if is valid array             if (is_array( $blogs ) ){                     echo '&lt;ul&gt;';                     $array= array();                     // reorder                     $array= array_slice( $blogs, 0, count( $blogs ) );                     for($i=0;$i&lt;count($array);$i++){                     // get data for each id                     $blog = get_blog_details( $array[$i]['blog_id'] );                     // print it                     echo '&lt;li&gt;&lt;a href="'.$blog-&gt;siteurl.'"&gt;'.$blog-&gt;blogname.'&lt;/a&gt;&lt;/li&gt;';                     }                     echo '&lt;/ul&gt;';             }             ?&gt;