How do I go back now?
How do I recover my accidentally lost Windows partitions after installing Ubuntu?
Select current element in jQuery mysql select from n last rows I have a table with index (autoincrement) and integer value. The table is millions of rows long.  How can I search if a certain number appear in the last n rows of the table most efficiently? Is $7$ the only prime followed by a cube? Google App Engine: Is it possible to do a Gql LIKE query? Within a custom command, I'm doing the following to write to a file:  \newcommand\mycommand[1]{   \newwrite\file   \immediate\openout\file=foobar.tex   \immediate\write\file{     foo     bar     #1     blarg   }   \immediate\closeout\file }   Of course when I invoke it as \mycommand{baz}, I get the following contents in foobar.tex:  foo bar baz blarg   with all new lines turned into spaces by LaTeX. My question is, is there a way to output these lines into the file "as expected", i.e. with real new lines at the end of each line instead of a space? I'm thinking some \catcode wizardry should do the trick, but I'm not sure which character I need to redefine and to what category code.  Update  The solution in  works perfectly. The only problem is when #1 contains embedded newlines. I can of course send it to mycommand with its own slew of ^^J, I was wondering if there is a way to avoid this. I just updated all my sites using the patch method of resolving the Drupal SA-CORE-2014-005 exploit. I just read reports that just yesterday there is someone from a Russian IP infiltrating drupal sites.     My main concerns are now:   How do I tell if my sites have been comprised? What should I search for in my apache access logs to detect if my site was a victim or not? So far what are these hackers doing to comprised sites? If your visa is on an expired passport but still valid, can you still use it with your new passport, or does the old passport have to have a recent expiration date? If so, how do you transfer your visa to your new passport? JQuery Selector for dynamic id How can I permanently enable cheating? Ubuntu server shows me that I  use allmost all disk:  Usage of /:   95.5% of 118.12GB   And I try to find big folders and files, run ncdu:  ncdu 1.8 ~ Use the arrow keys to navigate, press ? for help                                                                                                                                                  --- / ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------     5.5GiB [##########] /root                                                                                                                                                                                    2.3GiB [####      ] /var   628.6MiB [#         ] /usr   209.9MiB [          ] /lib    28.2MiB [          ] /boot     8.6MiB [          ] /bin     7.7MiB [          ] /sbin     6.6MiB [          ] /etc   208.0KiB [          ] /run   112.0KiB [          ] /tmp    48.0KiB [          ] /opt e  16.0KiB [          ] /lost+found     8.0KiB [          ] /dev     8.0KiB [          ] /media     4.0KiB [          ] /lib64 e   4.0KiB [          ] /srv e   4.0KiB [          ] /selinux e   4.0KiB [          ] /mnt e   4.0KiB [          ] /home     0.0  B [          ] /proc     0.0  B [          ] /sys @   0.0  B [          ]  initrd.img @   0.0  B [          ]  vmlinuz   According to ncdu I use about 10 GiB of 128 GiB - it is about 10 %. Contradiction.  How to clean my ubutntu server without rebooting?  I thought that ncdu lies and used another apps to find big files and folders. All of them shows the same result as ncdu.  And df -h command shows that disk is full.  # df -h Filesystem      Size  Used Avail Use% Mounted on /dev/xvda       119G  113G     0 100% / udev            2.0G  8.0K  2.0G   1% /dev tmpfs           788M  212K  788M   1% /run none            5.0M     0  5.0M   0% /run/lock none            2.0G     0  2.0G   0% /run/shm   Update  sudo du -sch /* result:  /# sudo du -sch /* 8.7M    /bin 29M /boot 8.0K    /dev 6.6M    /etc 4.0K    /home 0   /initrd.img 210M    /lib 4.0K    /lib64 16K /lost+found 8.0K    /media 4.0K    /mnt 48K /opt du: cannot access `/proc/4470/task/4470/fd/4': No such file or directory du: cannot access `/proc/4470/task/4470/fdinfo/4': No such file or directory du: cannot access `/proc/4470/fd/4': No such file or directory du: cannot access `/proc/4470/fdinfo/4': No such file or directory 0   /proc 5.0G    /root 212K    /run 7.8M    /sbin 4.0K    /selinux 4.0K    /srv 0   /sys 112K    /tmp 629M    /usr 2.3G    /var 0   /vmlinuz 8.1G    total   8.1G  total as usual. But I see cannot access rows, maybe problem because of them.  Then I checked the biggest folder in /. It is /root :  /# sudo du -sch /root/* 96K /root/Downloads 2.5G    /root/Dropbox 36K /root/nohup.out 4.0K    /root/npm-debug.log 4.0K    /root/readonly 980K    /root/redis-2.6.16.tar.gz 228M    /root/tmp 2.7G    total Including section titles in fancyhf headers Declaring static data members of normal class and class template Here is my attempt to prove the Well-Ordering Principle, i.e. that any non-empty subset of $\Bbb N$, the set of natural numbers, has a minimum element.  Proof. Suppose there exists a non-empty subset $S$ of $\Bbb N$ such that $S$ has NO minimum element. Define $A = \left\{n\in \Bbb N : (\forall s\in S)(n \leq s)\right\}$. It is obvious that $1\in A$. Suppose $n\in A$, then for each $s \in S$, there exists $q \in N$ such that $n + q = s$. Since $q \ge 1$, $n+1 \leq s$, for all $s\in S$. By Principle of mathematical induction, $A = \Bbb N$. Take any $s_0 ∈ S$, then $(\forall s\in S)(s_0 \leq s)$. (This contradicts that $S$ has no minimum element).  How do I prove the statement without invoking Mathematical Induction? Also, I read that the proof of Principle of Mathematical Induction makes use of Well-Ordering. Can it be proven independently of Well-Ordering too? sci-fi book where a meteorite gives 3 different kinds of telepathic powers to people who then vie for control 3 groups of telepaths each with different powers.  They received their powers from a meteorite.  One group is the strongest and are kind of in control.  Another group wants to gain control.  One group, I believe the strongest, have telepathic battles to determine the strength of one another conjuring up swords, walls, etc. in their minds. It was written by a lawyer.  Could have been written in the ‘80s, or earlier. Is there a standard function in C that would return the length of an array? Site-specific spellcheck? I often see misspelled words in titles and bodies of questions, only to see them spelled properly in the tags. I have to imagine that tags are always spelled right because it's hard to type arbitrary text into the tag box. I also have to imagine that sometimes autocorrect and spellcheck provided by browsers tend to turn programming terms and package names into English words. For example, see   Would it be possible to have some sort of spellchecker that compares text of titles (and maybe bodies) to known tags and offers some sort of correction (maybe red squiggles or something) when there's some statistical probability of a misspelling?  Since this would be using a site's tags, "magneto" would get corrected to "magento" on SO, while "magento" would get corrected to "magneto" on aviation.stackexchange.com.  In theory this could reduce a lot of stupid typos and prevent trivial edits just to fix the spelling of key words.  Note that this is not solving a problem that a user's browser can already solve because browsers ship with English dictionaries, not dictionaries of programming terms. In fact, it's potentially correcting a problem created by the browser (which might have already autocorrected "magento" to "magneto"). Get and Set Screen Resolution Determine the exact date of creation of an Apple ID Is it possible to determine the exact date and time (if possible) of creation of an Apple ID?   Is there any official or unofficial way to establish this if you don't have the initial sign up information recorded? In my question's preview, the attached image looks rotated. So, assuming you are able to see it in the real orientation, can anyone determine what is that dust flake type thing on the top, slightly towards the left?   One looks like a dust flake and there's another dot to the left of it?  Note: I wont have physical access to the camera until the weekend.  Is it just a dust flake on the lens or can it be some problem with the sensor? Its a 3 month old Canon 1500D. Genitive case or attributive noun Is there any rule for when it is better to use genitive case or noun as adjective? I'm not sure if there is any difference in meaning in this example:     The department of accounting       The accounting department   Can I also use both forms in situations like:     The restaurants of Paris / The Paris restaurants      The room window / The window of the room