Error with \include: Improper \prevdepth
When should I use \input vs. \include?
Apache reverse proxy error page when proxied server is down I am using Apache2 as a reverse proxy for tomcat, my configuration being something like:  ProxyRequests Off  ProxyPass        / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/   My question is: can I configure Apache to show up a courtesy page (an "under construction" HTML static page) whenever Tomcat is down? I normally use the following idiom to check if a String can be converted to an integer.  public boolean isInteger( String input ) {     try {         Integer.parseInt( input );         return true;     }     catch( Exception e ) {         return false;     } }   Is it just me, or does this seem a bit hackish?  What's a better way?    See my answer (with benchmarks, based on the  by ) to see why I've reversed my position and accepted  to this problem.  I think this original code will be used by most people because it's quicker to implement, and more maintainable, but it's orders of magnitude slower when non-integer data is provided. Sum of the series $1+\frac{1\cdot 3}{6}+\frac{1\cdot3\cdot5}{6\cdot8}+\cdots$ Prove that $i^i$ is a real number According to WolframAlpha,  but I don't know how I can prove it. How to pick a specific Pantone color in Photoshop? What about finding a Pantone that is close to a specific CMYK color? How would I select a specific Pantone color in Photoshop, e.g. PMS 5625?  Also, how do you pick a Pantone colour that is similar to a specific CMYK color, e.g. C61, M41, Y58, K16 green?    In this case Pantone 5615C looks closest to the CMYK color. At what times before $1{:}30$ in the afternoon do all three doctors schedule their appointments to begin at the same time? In a certain medical group, Dr. Schwartz schedules appointments to begin $30$ minutes apart, Dr. Ramirez schedules appointments to begin $25$ minutes apart, and Dr. Wu schedules appointments to begin $50$ minutes apart. All three doctors schedule their first appointments to begin at $8{:}00$ in the morning, which are followed by their successive appointments throughout the day without breaks. Other than at $8{:}00$ in the morning, at what times before $1{:}30$ in the afternoon do all three doctors schedule their appointments to begin at the same time?  I'm not sure how to approach this question. They all begin at the same time at $8{:}00$. Also doesn't the overlapping of appointments depend on how long their respective appointments take? Is it possible to write a regular expression that matches a nested pattern that occurs an unknown number of times? For example, can a regular expression match an opening and closing brace when there are an unknown number of open/close braces nested within the outer braces?  For example:  public MyMethod() {   if (test)   {     // More { }   }    // More { } } // End   Should match:  {   if (test)   {     // More { }   }    // More { } } If I have a Xaml Window, how does one open it as a child window, and then have the parent window wait for the child to close before the parent window continues executing? "EOL while scanning single-quoted string"? (backslash in string) I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is in use. When I opened GParted in the Live CD, I realized that I could not resize the partition, because when I right-click it, the option "resize/move" is disabled.  I tried to unmount it, to "lazy" unmount it (umount -l /dev/sda2) but it didn't work.  A screenshot from GParted: I know that the Windows copy dialog (in Windows&nbsp;XP) stores the copy in memory first, and it is still copying after the dialog closes, so the time is off, but why is the estimation of the time it will take to make a copy so inaccurate, even when memory copying has been disabled (in Vista and Windows&nbsp;7)? It seems so arbitrary! How does the whole copy procedure work, and why can't Windows estimate it correctly? For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements? What did Auggie's father give to his wife in the movie Wonder? There is a scene roughly in the last third of Wonder where Auggie's parents Nate and Isabel (Owen Wilson and Julia Roberts) spend an evening together while the kids are out. Nate has a surprise gift for his wife. She opens the box just enough to see it, laughs, and closes it again. So I asked myself the question:  What's in the box? Points in Polygon missing from QGIS 2.16.x? Looking to do a basic Hex analyis with some random points within the Gulf of Mexico.      I created a hex grid from MMQGIS  Under my Vector tool - Analysis tools, I dont have Points in Polygon.  Is it missing on 2.16.3 (2.16.x)? Inhumans vs. Mutants in the Marvel Universe What's the difference between those two? Aren't Inhumans supposed to be an evolution of the human race "forced" by the Kree? Which is almost the same as Mutants, the natural evolution of the human race...  What exactly am I missing? What are the differences between "su", "sudo -s", "sudo -i", "sudo su"? When I installed the latest update of Ubuntu, I was asked for the username but I do not remember what my username is. How do I find out what my username is? Why should the minimal class be avoided? I have the following question:    $\textbf{Question}:$ Let $\mathcal{F}_1$ and $\mathcal{F}_2$ be two algebras. Is $\mathcal{F}_1 \cap \mathcal{F}_2$ a $\sigma$-algebra?  I believe the answer is no. I know the definition of an algebra and the definition of $\sigma$-algebra.    I'm assuming I need to show that the intersection of the finite unions of each algebra is finite, but then I get stuck trying to work out how to show it is not a $\sigma$-algebra.  All help is appreciated.  Many thanks, John Redefining "cited on" string (and others) in biblatex