I've got a lot of history in email servers in the cloud (i.e. someone else's computer). I'm looking for some way to make a local backup of all that data, preferably one I could easily access/search.  There are two products I know of that do exactly what I want but they're both Windows only MailStore and MailShelf. There's apparently also a Mac only program called Horcrux. But nothing I can find for Linux.  Thunderbird is not and could not ever be considered a backup solution. There is no way within TB to know it has completed downloading mail (even assuming it ever would). This is on its own absolutely disqualifying. It's not good enough for a backup to simply hope it's done, if it worked at all (which there is no way to check in TB). Thunderbird's cache was never designed to produce authoritative backups, it's just a convenience feature.  There do seem to be a number of Linux console tools that do the first half of what I want (imapsync, imap-backup, more?) but I'm not sure how I'd access/search the mail after the messages were down. There are also enterprise products (Piler, MailArchiva) which are probably overkill, and would be a hassle to setup anyway.  I asked this question on Ubuntu's own forum several days ago but the only solution suggested was to run a local mail server and then sync the cloud accounts to that. It might work, but it seems there should be a better way.  Is anyone out there willing to share the solution they have for this problem?
I use Thunderbird to backup my web-based email account: I open Thunderbird and copy the mail messages from the Inbox to a local folder.   Is there a way to do this automatically every day, so that I don't have to open Thunderbird all the time?  EDIT:  is very useful for GMail accounts. For non-GMail account, the getmail method should probably be used.
Regex for numbers only I haven't used regular expressions at all, so I'm having difficulty troubleshooting. I want the regex to match only when the contained string is all numbers; but with the two examples below it is matching a string that contains all numbers plus an equals sign like "1234=4321". I'm sure there's a way to change this behavior, but as I said, I've never really done much with regular expressions.  string compare = "1234=4321"; Regex regex = new Regex(@"[\d]");  if (regex.IsMatch(compare)) {      //true }  regex = new Regex("[0-9]");  if (regex.IsMatch(compare)) {      //true }   In case it matters, I'm using C# and .NET2.0. How would I import/export Blender's preferences? I constantly stay up to date with each new release of Blender, but this means my preferences are wiped clean each time. How do I export/import these preferences to avoid loosing my carefully crafted set up each time? This is a neat little problem that I was discussing today with my lab group out at lunch. Not particularly difficult but interesting implications nonetheless  Imagine there are a 100 people in line to board a plane that seats 100. The first person in line realizes he lost his boarding pass so when he boards he decides to take a random seat instead. Every person that boards the plane after him will either take their "proper" seat, or if that seat is taken, a random seat instead.  Question: What is the probability that the last person that boards will end up in his/her proper seat.  Moreover, and this is the part I'm still pondering about. Can you think of a physical system that would follow this combinatorial statistics? Maybe a spin wave function in a crystal etc... Show that every prime $p&gt;3$ is either of the form $6n+1$ or of the form $6n+5$, where $n=0,1,2, \dots$ How do you keep parents of floated elements from collapsing? Although elements like &lt;div&gt;s normally grow to fit their contents, using the float property can cause a startling problem for CSS newbies: If floated elements have non-floated parent elements, the parent will collapse. For example:   &lt;div&gt;   &lt;div style="float: left;"&gt;Div 1&lt;/div&gt;   &lt;div style="float: left;"&gt;Div 2&lt;/div&gt; &lt;/div&gt;    The parent div in this example will not expand to contain its floated children - it will appear to have height: 0. How do you solve this problem? I would like to create an exhaustive list of solutions here. If you're aware of cross-browser compatibility issues, please point them out. Solution 1 Float the parent.   &lt;div style="float: left;"&gt;   &lt;div style="float: left;"&gt;Div 1&lt;/div&gt;   &lt;div style="float: left;"&gt;Div 2&lt;/div&gt; &lt;/div&gt;    Pros: Semantic code. Cons: You may not always want the parent floated. Even if you do, do you float the parents' parent, and so on? Must you float every ancestor element? Solution 2 Give the parent an explicit height.   &lt;div style="height: 300px;"&gt;   &lt;div style="float: left;"&gt;Div 1&lt;/div&gt;   &lt;div style="float: left;"&gt;Div 2&lt;/div&gt; &lt;/div&gt;    Pros: Semantic code. Cons: Not flexible - if the content changes or the browser is resized, the layout will break. Solution 3 Append a &quot;spacer&quot; element inside the parent element, like this:   &lt;div&gt;   &lt;div style="float: left;"&gt;Div 1&lt;/div&gt;   &lt;div style="float: left;"&gt;Div 2&lt;/div&gt;   &lt;div class="spacer" style="clear: both;"&gt;&lt;/div&gt; &lt;/div&gt;    Pros: Straightforward to code. Cons: Not semantic; the spacer div exists only as a layout hack. Solution 4 Set parent to overflow: auto.   &lt;div style="overflow: auto;"&gt;   &lt;div style="float: left;"&gt;Div 1&lt;/div&gt;   &lt;div style="float: left;"&gt;Div 2&lt;/div&gt; &lt;/div&gt;    Pros: Doesn't require extra div. Cons: Seems like a hack - that's not the overflow property's stated purpose. Comments? Other suggestions? Site hosted on EC2 / Amazon held hostage with private key I have a new client whose previous developer has left her high &amp; dry with her site on Amazon/EC2. He holds the private key to the instance, and though she has full access to the Amazon control panel (she's paying $300/mo for a site that has like 3 visitors per week) she doesn't have any way to get her content off and move to a new host.  I'm not familiar with AWS and am not sure how to help her. The site's group/file permissions are screwed up on the server so exporting the content/database via her WordPress control panel isn't working.  Any ideas on how to help her? Thanks! How prove that $q \geq b+d$ for $ad-bc = 1$ and $\frac{a}{b} > \frac{p}{q} > \frac{c}{d}$? Let $a,b,c,d,p$, and $q$ be natural numbers such that $ad-bc = 1$ and $\frac{a}{b} &gt; \frac{p}{q} &gt; \frac{c}{d}$.  How prove that  $q \geq b+d$? Understanding a particular evaluation of $\prod\limits_{n=2}^{\infty}\left(1-\frac{1}{n^3}\right)$ I'm having a hard time understanding the following evaluation of the infinite product  $$ \prod_{n=2}^{\infty}\left(1-\frac{1}{n^3}\right).$$ In particular, I don't understand how you go from line 2 to line 3. Here $\omega = -\frac{1}{2}+ i \frac{\sqrt{3}}{2}$, which is a primitive third root of unity.  $$\begin{align}\prod_{n=2}^{\infty}\left(1-\frac{1}{n^3}\right)  &amp;=\prod_{n=2}^{\infty}\frac{(n-1)(n^2+n+1)}{n^3} \\  &amp;=\lim_{m\to\infty}\frac{1}{m}\prod_{n=2}^m\frac{(n-\omega)(n-\omega^2)}{n^2} \\  &amp;=\lim_{m\to\infty}\frac{\Gamma(m+1-\omega)\Gamma(m+1-\omega^2)}{m(m!)^2\Gamma(-\omega)\Gamma(-\omega^2)(1-\omega)(1-\omega^2)(-\omega)(-\omega^2)} \\  &amp;=\frac{1}{3\Gamma(-\omega)\Gamma(-\omega^2)} \\ &amp;=\frac{\sin{\pi(-\omega)}}{3\pi} \\  &amp;=\frac{\cosh (\frac{\sqrt{3}\pi}{2})}{3\pi } \end{align}$$ EDIT: I think I'm starting to make sense out of this by writing out the terms. $$ \begin{align} \prod_{n=2}^{m} \frac{(n- \omega)(n-\omega^{2})}{n^{2}} &amp;= \frac{(2-\omega)(3-\omega) \cdots (m- \omega)(2-\omega^{2})(3-\omega^{2})\cdots (m- \omega^{2})}{2^{2} \cdot 3^{2} \cdot \cdots  \cdot m^{2}}  \\ &amp;= \frac{1}{(m!)^{2}} \frac{\Gamma(m+1-\omega)}{(1-\omega)(-\omega)\Gamma(-\omega)} \frac{\Gamma(m+1-\omega^{2})}{(1-\omega^{2})(-\omega^{2})\Gamma(-\omega^{2})} \end{align}$$ Now I have to figure out how to take the limit as $m \to \infty$. How to count the number of set bits in a 32-bit integer? Which props in Star Trek: Picard are reused from the original TNG show and films (if any)? How to succeed with making omelette int fn();  void whatever() {     (void) fn(); }   Is there any reason for casting an unused return value to void, or am I right in thinking it's a complete waste of time?  Follow up:   Well that seems pretty comprehensive.  I suppose it's better than commenting an unused return value since self documenting code is better than comments. Personally, I'll turn these warnings off since it's unnecessary noise.    I'll eat my words if a bug escapes because of it... How to prove that if $\forall x \in (a,b)$ Lebesgue integral $\int_{(a,x)}fd\lambda=0$, then $f(x)=0$ $\lambda$-almost everywhere? Let $f:(a,b)\rightarrow\mathbb{R}$.  The statement to prove is that if $\forall x \in (a,b)$ Lebesgue integral $\int_{(a,x)}fd\lambda=0$, then $f(x)=0$ $\lambda$-almost everywhere.  So if it wouldn't be true then we would have $\forall x \in (a,b):\int_{(a,x)}f_+d\lambda=\int_{(a,x)}f_-d\lambda\neq0$, so every interval contains positive and negative values of the function. It is  such an $f$ so my guess would be that this function is not Lebesgue measurable and we can't take this integral.  Thanks in advance! Detecting pattern at the end of a line with grep Interface vs Base class Proof a $2^n$ by $2^n$ board can be filled using L shaped trominoes and 1 monomino Closed form solution for slope coefficients in bivariate regression In a univariate regression, $Y=a+bX+e$, the solution for slope b is given by $COV(X,Y)/VAR(X)$.  Is there a similar expression for a bivariate regression $Y=a+bX+cZ+e$. What is the closed form solution for b and c in this case? Find the probability of an event determined by an inequality on exponential random variables Let X and Y be independent random variables such that $X∼Exp(1)$ and $Y∼Exp(2)$.  Find the probability that $3X+4Y≤5$.  I thought the equation for solving this was the integral from $\int_0^a \int_ 0^{(a-y)} \lambda_1 e^{-\lambda_1 x}\lambda_2 e^{-\lambda_2 y} dx dy$ where $a = 5$, so I first started with the integral from $\int_0^5 \int_0^{(5-y)} 3 \times 1e^{-1x} \times 4 \times 2e^{-2y} dx dy$ and got $23.83828927$ which is much larger than a probability can be. Any help? Reference Books on Cryptography Sci-fi book, blue critters than only some people can see, kids fight the critters as they feed off energy and are a threat I can't really remember how long ago it was, but I think the book was marketed towards children/teens.  All I remember is the basic premise of the story.  Some story about these unusual little blue electric critters that only certain people could see, and these kids took it upon themselves to go about destroying them since they fed off energy or something like that.  Not sure whether they fed off people or off electricity... or both maybe?  I think the dominant method of destroying them was an electric baton that was taken from law enforcement.  I wanna call them buzz batons, but that's probably thanks to Artemis Fowl.