So, I'm trying to make only &lt;h1&gt;text&lt;/h1&gt; aligned vertically and horizontally to the body of a page with the body's css set to be 100% width and height.  I don't want it to be a div. ONLY h1 within a &lt;body&gt;
Best way to center a &lt;div&gt; element on a page both vertically and horizontally?  I know that margin-left: auto; margin-right: auto; will center on the horizontal, but what is the best way to do it vertically, too?
Custom attributes - Yea or nay? What is the simplest SQL Query to find the second largest value? Is there any method to close connection similar to  for  in WordPress?  Is it not necessary to close connection for global $wpdb? Why "hide" Luke from his father somewhere Anakin knows? Extracting one band from three band raster in ArcMap? Browning Avocados - What Helps? Years ago  asked "Oxidized Avocado: What's Going on &amp; How to Prevent It?" That question has been merged with this one because it's dealing with the same issue.  Recently, we had this question: . Now I'm just curious, I want an answer.  After Logophobe's answer to the acidity question, and my own research backing up that answer, I feel like I know less than I did before!  Lemon contains more ascorbic acid (Vitamin C) and citric acid than limes, yet limes are more acidic overall. Distilled vinegar is more acidic than lemons and almost as acidic as limes,  is an extremely highly concentrated mixture of ascorbic acid and citric acid specifically developed to prevent browning in fruits.  So what works to keep avocados pretty and green?  Perhaps some experimentation is in order. I think I'll start with acids, since the common wisdom is that acid helps keep avocados green.  EDIT As of 1/8/15, I have added a new answer, as the highly upvoted one really only says what doesn't help. The accepted answer  shows the results of further experimentation, and what does help. "Where" exactly are complex numbers used "in the real world"? Aliens want to destroy all dogs because they are seen as next step in evolution beyond Man I read a SF short story years ago, I think it may have been in high school back in the 1970s. Aliens come to earth, to kill all the dogs, because they see Man as destroying himself, and dogs as evolving to take Man's place, thus being a threat to the aliens. Humanity agrees to kill all the dogs to get rid of the aliens, but in fact have taken border collies (?) deep underground in order to save them and ensure that they evolve.  Does anyone know the title/author of this short story?  Thank you in advance for your assistance. I can easily find files with given string in name:  me@comp:/usr/local/hydra/hydra-7.4.2$ find -D stat -name "*hack*" ./hack881663129.txt ./hack881663129_7.txt ./hack881663129_5.txt ./hack881663129_4.txt ./hack881663129_4_7.txt ./hack881663129_6.txt ./hack881663129_1_6.txt ./hack881663129_8.txt   How can I also print file details, like size, date of creation etc.? Can .exe and .msi files (Windows software) be installed in Ubuntu? Im trying to have the bibliography defined for my document using BibTeX and the natbib citation management package. Styles such as unsrtnat give me the references in order of appearance in text. However, I have a problem that I cannot get around. Basically if a reference is supposed to look like:     Tyson J.P. Dikstra M. Holmes F.M.R. Theoretical Analysis on Effect of   Anomalous Low Friction. International journal of Placticity,   34(3-4):413, 1997.   after typesetting it appears as :     Dikstra M. Holmes F.M.R. Tyson J.P. Theoretical Analysis on Effect of   Anomalous Low Friction. International journal of Placticity,   34(3-4):413, 1997.   In other words, it puts the first author in the last place. Is there any method of getting around this?  The entry as it appears in the .bib file (refs.bib) is:  @ARTICLE{Tyson1997, author={Tyson, J.P., Dikstra, M., Holmes, F.M.R.}, title={Theoretical Analysis on Effect of Anomalous Low Friction.}, journal={International journal of Plasticity}, year={1997}, volume={34}, number={3-4}, pages={413}, document_type={Article} }   An excerpt from the tex file:  \usepackage[round,comma]{natbib} \begin{document}  As an alternative method of analysis, \citet{Tyson1997} ...  \bibliographystyle{unsrtnat}  \bibliography{refs}  \end{document} I have a data frame in python where I need to find all categorical variables. Checking the type of the column doesn't always work because int type can also be categorical.   So I seek help in finding the right hypothesis test method to identify if a column is categorical or not.   I was trying below chi-square test but I am not sure if this is good enough  import numpy as np data = np.random.randint(0,5,100) import scipy.stats as ss ss.chisquare(data)   Please advise. Copy files excluding x,y,z causing error in shell script I'm not well versed in shell scripting but I imagine this to be a painfully easy fix but its eluding me.  I need to copy the contents of a directory excluding a number of files. I have a command that works when I enter it into the terminal, but when its run in a shell script it fails with a syntax error or just doesn't work.   The command in question is:  cp -r path/to/!(dir1|dir2|dir3) destination   Any help would be greatly appreciated! I have a large number of zip files that were compressed using the zip command. I would like to recompress them with the -9 flag to improve the compression ratio. Does anyone know if that can be done without manually decompressing and then compressing.  PS. I need to keep them as zip files since they are served to windows users( and as such have white spaces in their names) WPF DataGrid : CanContentScroll property causing odd behavior Why is the ROC curve two-dimensional instead of three-dimensional? How to tell what method was used to log in (Password vs. Keyfile) from the bashrc Is there a way how you can check what auth method the user which just logged in to an account were using?  I like to print out a warning after login if someone is using a password instead of a keyfile.  Sure one solution is to check the ssh-logs. But is there a nicer way to do this? Since looking up logs could impact performance depending on the log size and method you use to gather this information.  We are using SUSE and Ubuntu. Defining the appropriate Projected Coordinate System verifying an incorrect integrating factor I was doing some practice problems that my professor had sent us and I have not been able to figure out one of them. The given equation is:  $-y^2dx +x^2dy = 0$  He then asks us to verify that:  $ u(x, y) = \frac{1}{(x-y)^2}$  is an integrating factor.   I multiplied through to get:  $\frac{-y^2}{(x-y)^2}dx + \frac{x^2}{(x-y)^2}dy = 0$   However, the partial derivatives of these do not equal each other so I am a bit confused... How do I create a Windows 7 USB installer with preinstalled software? I was wondering if it was possible to make a bootlable image of a Windows 7 Pro OEM Installation CD that I have and put it on an USB stick for faster/easier installation. I am asking because we have a couple of PC´s where I´d have to install the OS using the same key (MAK).  Also is it possible to kind of populate that image with software that would have to be installed anyways on all machines (like Chrome, Outlook, etc)?  It would be really helpful to just install a Windows 7 image with customized software already installed. I would just make an image of an OS and use that, but the hardware of the machines differ.