My Java application crashes because of this method
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop
How can I undo git reset --hard HEAD~1? Creating point features with exact coordinates in QGIS? Deep Format of a Harddrive on a Linux System I've got an original Asus Eee PC Netbook that I'd like to sell.  When I've sold old computers in the past, I've typically done a deep/secure/zeroing out style format.  How can I do this on a Linux Netbook?  I'm looking for   The command that will let me do this Advice on how I can do this on a device with (seemingly?) non-removable media   Thanks in advance! Rethrowing exceptions in Java without losing the stack trace MySQL Seems to be crashing quite often, I'd say every hour or so.   The only thing running on this server that is using MySQL is a Drupal installation that I'm working on, there's only one person that's using it and it literally has around three pages - from what I can gather this seems to be a memory issue with innoDB? I'm not great at this stuff so I'm unsure.  Any guidance? Here's the relevant parts from my error.log  140216 14:20:01 [Note] Plugin 'FEDERATED' is disabled. 140216 14:20:01 InnoDB: The InnoDB memory heap is disabled 140216 14:20:01 InnoDB: Mutexes and rw_locks use GCC atomic builtins 140216 14:20:01 InnoDB: Compressed tables use zlib 1.2.3.4 140216 14:20:01 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(135987200 bytes) failed; errno 12 140216 14:20:01 InnoDB: Completed initialization of buffer pool 140216 14:20:01 InnoDB: Fatal error: cannot allocate memory for the buffer pool 140216 14:20:01 [ERROR] Plugin 'InnoDB' init function returned error. 140216 14:20:01 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 140216 14:20:01 [ERROR] Unknown/unsupported storage engine: InnoDB 140216 14:20:01 [ERROR] Aborting  140216 14:20:01 [Note] /usr/sbin/mysqld: Shutdown complete  140216 14:20:02 [Note] Plugin 'FEDERATED' is disabled. 140216 14:20:02 InnoDB: The InnoDB memory heap is disabled 140216 14:20:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins 140216 14:20:02 InnoDB: Compressed tables use zlib 1.2.3.4 140216 14:20:02 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(135987200 bytes) failed; errno 12 140216 14:20:02 InnoDB: Completed initialization of buffer pool 140216 14:20:02 InnoDB: Fatal error: cannot allocate memory for the buffer pool 140216 14:20:02 [ERROR] Plugin 'InnoDB' init function returned error. 140216 14:20:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 140216 14:20:02 [ERROR] Unknown/unsupported storage engine: InnoDB 140216 14:20:02 [ERROR] Aborting  140216 14:20:02 [Note] /usr/sbin/mysqld: Shutdown complete   EDIT The server is the lowest-spec DigitalOcean Droplet with 512MB RAM. This particular Droplet is running NodeJS, MySQL and Apache. There's a low-traffic static site, a Ghost blog and this Drupal site I'm developing.   Should I just upgrade the RAM, or is there something I can do to fix this? Problem: Let $X$ and $Y$ be independent and suppose that each has a $\text{Uniform}(0,1)$ distribution. Let $Z = \min\{X, Y\}$. Find the density $f_Z(z)$ for $Z$. Hint: It might be easier to first find $\mathbb{P}(Z &gt; z)$.  Attempted Solution:  Given that $X, Y \sim \text{Uniform}(0,1)$, how do we not just have the following?  $$ f_Z(t) = f_X(t) = f_Y(t) = \begin{cases} 1 &amp; \text{if } 0 \le t \le 1 \\                                           0 &amp; \text{otherwise}                             \end{cases} $$  Of course I'm highly suspicious of this answer because it's not making use of the fact that $X$ and $Y$ are independent, nor is it making use of the provided hint. Express  $$\forall\ n\in\mathbb N\ \exists\ m \in\mathbb N: \ n^4 = m^2$$  in words without using the symbol $\mathbb N$. How to use Fermat's little theorem to find $50^{50}\pmod{13}$? This is a question from the book Methods of Real Analysis by R. R. Goldberg.     If $(s_n)$ is a sequence of real numbers and if $$\sigma_n=\frac{s_1+s_2+\cdots+s_n}{n}$$ then prove that: $\operatorname{{lim sup}}\sigma_n \leq \operatorname{lim sup} s_n$.   I don't have any idea how to start working on this problem. Please help. Thanks. Add year to question and answer dates How to backup an Android device? Can anyone recommend a good way to backup Android devices? Ideally I would like to do this wirelessly and, not only backup my data, but also my user settings. Is it possible to backup an image of an Android device - so that one doesn't even need to reinstall apps? It would be particularly useful to hear from users that have restored backups, as to how easy, and complete, their processes were. Thanks Why massless particles have zero chemical potential? How to XZ a directory with TAR using maximum compression? A two column loop with one lead post I got a loop from internet (I forgot the site) for two column post view. It has a nice CSS for it too. But skipping that for the question now.  &lt;?php $counter = 1; ?&gt;                  &lt;?php query_posts( 'cat=3&amp;showposts=6' ); //Find whether the catID is 3 ?&gt;             &lt;?php while ( have_posts() ) : the_post() ?&gt;                   &lt;?php /* Two Column Support get class */ ?&gt;              &lt;?php $class = ( $counter % 2  ? ' one' : '' ) ?&gt;                  &lt;?php /* Two Column output open the div class */ ?&gt;              &lt;div class="column&lt;?php echo $class;// echo $first; ?&gt;"&gt;              &lt;?php news_format(); ?&gt;             &lt;/div&gt; &lt;!-- End Two Column Support close div class --&gt; &lt;?php $counter++; //Update counter ?&gt;   It printed my posts into 2 columns like:  ========= | 1 | 2 | --------- | 3 | 4 | --------- | 5 | 6 | =========  It's fine. But I want to print it like this:  ========= |   1   | --------- | 2 | 3 | --------- | 4 | 5 | --------- | 6 | 7 | =========  What the modification I need to do? I can't pass any custom limit into the WordPress' custom loop &lt;?php while ( have_posts() ) : the_post() ?&gt;. It's for a custom theme. I did it, but the problem is, it's showing like:  ========= |   1   | --------- | 1 | 2 | --------- | 3 | 4 | --------- | 5 | 6 | =========   is my whole bunch of code. In the Harry Potter universe, there is a spell that unlocks things. In the books and movies, there are many occasions where the main characters use this spell to open doors in wizard buildings (such as the door leading to where the Philosopher's Stone is hidden, or a door in the Magical Congress Of USA headquarters). Hermione knows the spell in her first year, which seems to indicate it's pretty easy to learn/cast, especially for the average adult wizard.   What I'm wondering, then, is why do wizards lock their doors when it's so easy to unlock them? And if it's so easy to unlock locked doors, why aren't there more doors locked with enchantments? Is it acceptable to vote to close a question without leaving a comment? Although  is obviously an exceptionally poor question, it still amazes me that 5 people can vote to close and yet not one of them leave a comment to help explain how the poster can improve their question.  I see loads of similar examples where questions from new users are closed and heavily voted down without anyone taking any effort to explain why - not a pleasant experience for new users.  Is there anything that can be done to encourage users to leave comments when voting to close? Is sudo required for installing VMware Tools? I'm trying to install VMware Tools in Ubuntu 16.04. Should I do this by using sudo? Why? How can I use an align environment flush left? Is there a way possible to imitate the align environment for math mode commands, without having all writing being placed toward the center on the output page?  MWE:  \documentclass{article} \usepackage{mathtools}  \begin{document} \begin{align*} \cos\theta_1 \cos\theta_2-\sin\theta_1\sin\theta_2 &amp;= \cos(\theta_1 +\theta_2) \\ \sin\theta_1 \cos\theta_2 + \cos\theta_1 \sin\theta_2 &amp;= \sin(\theta_1+\theta_2) \end{align*}  \end{document} I have installed Ubuntu on my laptop and now I want to remove it and the Grub Loader. How I can do it without the Windows installation disk (I cannot use the Recovery Console). The review system suggested something was probably spam, what should I do when I see this? While reviewing suggested edits and first posts by new users today, the review system did something new - an alert appeared that suggested that what I was reviewing was probably spam, and prompted me to take a careful look at it.  Should I be doing anything differently than I otherwise do while reviewing when I see this? Additionally, are my actions contributing to helping the spam prevention systems learn?