lock spacing in math mode
Removing spaces between "words" in math mode
How do I alter a message in the message queue independent of site language? I want to programatically alter a message in the message queue. The message I want to alter is set in the message queue by function comment_form_submit() in comment.module, i.e.:  if ($comment-&gt;status == COMMENT_NOT_PUBLISHED) {   if (!user_access('administer comments')) {     drupal_set_message(t('Your comment has been queued for review by site administrators and will be published after approval.'));   } }   Instead of this, I want the call to drupal_set_message() to be this:  drupal_set_message(t('Your comment will be published when you validate your e-mail address.'));   How do I do this?  Postscript: Based on the answer below by Topsitemakers, I got this working for any language by using array_search() inside a custom MYMODULE_comment_submit to search the message array, and then compare the translated strings to identify the key of the string to alter.  This is the working code I ended up with:  $mm = drupal_get_messages('status', TRUE); $key = array_search(t('Your comment has been queued for review by site administrators and will be published after approval.'), $mm['status']); if (FALSE !== $key) {   $mm['status'][$key] = t('Your comment will be published when you validate your e-mail address.'); } foreach ($mm['status'] as $msg) {   drupal_set_message($msg, 'status'); } Difference between $ and # in Linux environment I would like to think that some of the software I'm writing today will be used in 30 years. But I am also aware that a lot of it is based upon the UNIX tradition of exposing time as the number of seconds since 1970.  #include &lt;stdio.h&gt; #include &lt;time.h&gt; #include &lt;limits.h&gt;  void print(time_t rt) {     struct tm * t = gmtime(&amp;rt);     puts(asctime(t)); }  int main() {     print(0);     print(time(0));     print(LONG_MAX);     print(LONG_MAX+1); }   Execution results in:   Thu Jan  1 00:00:00 1970 Sat Aug 30 18:37:08 2008 Tue Jan 19 03:14:07 2038 Fri Dec 13 20:45:52 1901           The functions ctime(), gmtime(), and localtime() all take as an argument a time value representing the time in seconds since the Epoch (00:00:00 UTC, January 1, 1970; see time(3) ).      I wonder if there is anything proactive to do in this area as a programmer, or are we to trust that all software systems (aka Operating Systems) will some how be magically upgraded in the future?  Update It would seem that indeed 64-bit systems are safe from this:  import java.util.*;  class TimeTest {     public static void main(String[] args) {         print(0);         print(System.currentTimeMillis());         print(Long.MAX_VALUE);         print(Long.MAX_VALUE + 1);     }      static void print(long l) {         System.out.println(new Date(l));     } }    Wed Dec 31 16:00:00 PST 1969 Sat Aug 30 12:02:40 PDT 2008 Sat Aug 16 23:12:55 PST 292278994 Sun Dec 02 08:47:04 PST 292269055   But what about the year 292278994? It turns out that removing a virtual package with apt-get only remove the package itself,  leaving behind the real packages that were installed by it  So how do you remove a virtual package, along with all the real packages that it installs? Does a man contain all the genes needed to make a woman? This question is brought on by a Sci Fi novel I am thinking about writing. The plot device involves a colonist in charge of building a population on a new planet who loses his supply of embryos and so forth in the landing. With the artificial "wombs" intact, he populates the planet with clones of himself.  If he wanted to introduce enough variation (without making up new genes, only rearranging) in the population to allow them to be able to reproduce naturally without inbreeding problems, would he be able to? In particular, could he make a woman?  Alternately, could a woman (without a Y chromosome) do the the inverse?  At the risk of introducing bias into the answers, the plot as it stands assumes he is a male and he CAN'T do any of the above and he is restricted to clones. What is the command to remove all files but not directories? Let's say I have a directory tree like this:  FOLDER:     file1     file2     file3     Subfolder1:         file1         file2     Subfolder2:         file1         file2   If I used rm -r FOLDER/*, everything in FOLDER would be deleted including sub-directories. How can I delete all files in FOLDER and in its sub-directories without deleting actual directories? I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages.  Then I created a child theme that uses load_child_theme_textdomain() to achieve the same thing for its strings.  There are certain translated strings for a particular language on the parent theme that I'd like to replace/override in the child theme.  I know if they were on a template file I could replace the file and simply change the textdomain for those strings, but unfortunately the ones I'm talking about are used in many places and also in the dashboard (so inside some filter/action functions).  So my question is: is there a way to replace those translated strings inside the child theme without having to replace parent template files or functions?  I don't know, maybe adding a parent-theme.mo file inside the languages folder of the child theme with only those strings translated, or something like that. Show that $a \star b=a \cdot b+a+b$ is binary operation for the group $\Bbb{ Q} \setminus \{-1\}$ The group $\left(\Bbb{ Q}\setminus\{-1\},\star\right)$ has as its underlying set the rational numbers different from $-1$ and the operation $\star$ is defined as $a \star b=a \cdot b+a+b$ where multiplication/addition are the usual operations with rational numbers.Show that this is a binary operation.  What I did (Please help verify):  identity element has to be 0 since $a\star 0 = a+0+a(0)$ so for $a\star b=0$ we have  $ab+a+b=0$ $$ab+a=-b \\ a(b+1)=-b \\ a=\frac{-b}{b+1}$$ so $b$ cant be $-1$ since that solution is not in $\Bbb{Q}$. Similar question might have been answered here. Is this operation true for all groups? I think so.  Thanks for the tips and help. Calculate E[X] from incomplete data? The exercise I'm doing describes the random variable $X$ as the following  | Number of cars |  0  |  1 |  2 |  3 |  4+ |  | % of families  |  15 | 45 | 25 | 13 |  2  |   Then it asks me to evaluate $E[X]$. But if there could be cases with 4+ cars, wouldn't that make it impossible to calculate the expectancy? How can I install updates and shut down from the command line? I know that there is a simple way to shutdown the computer in command prompt, but is it possible to do system updates and then shutdown the computer in command prompt?   For example, when Vista needs to install updates, it will let me install them and shut down by clicking the Shut Down button (while relegating the normal shut down button into the menu). So is there a command to do this in command prompt? How can I check if my computer's powerful enough to run a certain game? Is there a service that I can use to check if my machine will be able to run a certain game? Who are the 3 men who would have a chance against Jaime Lannister in a sword fight? In Game of Thrones season 2, episode 8, "The Prince of Winterfell" , Jaime Lannister says to Brienne:     There are three men in the kingdoms who might have a chance against me [in a sword fight]   Who are those three people?                                  I don't believe this quote, or any variation, appears in the books. There was this quote from A Storm of Swords when he is fighting Brienne:     She is stronger than I am.      The realization chilled him. Robert had been stronger than him, to be sure. The White Bull Gerold Hightower as well, in his heyday, and Ser Arthur Dayne. Amongst the living, Greatjon Umber was stronger, Strongboar of Crakehall most likely, both Cleganes for a certainty. The Mountain’s strength was like nothing human. It did not matter. With speed and skill, Jaime could beat them all.   So in the books it suggest that Jaime can beat anyone, though he is only referring to people of great strength, not necessarily of great skill (somebody such as Barristan Selmy, who is not considered to be exceptionally strong but is exceptionally skillful, may be able to beat him).  Is there any canon evidence to suggest who these three people may be?  I won't accept any purely speculative answers. However if there is no direct canon quote answering the question (which I believe to be the case) I will consider answers that are strongly inferred from canonical sources (such as a canon quote saying X is the greatest fighter in the kingdom, for example). How to solve missing libmng.so.1 in Trusty (14.04) Package is no more available I would like to run SoulseekQT. However unfortunately one of the dependencies is libmng1, which is no more included in Trusty. sudo apt-get install libmng.so.1 or libmng1 or libmng1:i386 in Trusty (14.04) no more available. Do you have any idea how to solve this conflict? I mean is it really sure that libmng1 is excluded? Could I use libmng2 somehow instead? If not, could I somehow rebuild libmng1 for Trusty? Or do I have to downgrade back to Saucy (13.10)? Can I use a custom Splash screen? The default Splash screens are cool, but I'd like to add some of my own work to remind me of how awesome I am (no, not really).    Is it possible to customize/change the splash screen? YA novel where clumsy boy gains wings I'm trying to remember the name of a novel I read as a pre-teen.  If I recall correctly, it would have come out in the 90s (though it may have been a reprint).  The novel is set in modern times.  I recalled this because I've been reading a lot of urban fantasy lately, and this may be the first 'urban fantasy' book I read - our world, but with a touch of magic.  There's a somewhat clumsy, out of shape teenaged (or almost teenaged) boy who doesn't have a father.  His father had been a stage magician who was constantly frustrated by his son's complete inability to preform stage magic, despite a prediction saying he would have a great or powerful magic.  His father had died before the book started, I don't recall how long before.  The boy does something nice for an old woman (I don't recall what) and she gifts him a magical potion.  A drop of it, rubbed on his shoulder blades, will make him grow wings.  The book follows him for the summer, as he spends his evenings flying.  He makes himself a toga-like shirt out of some old curtains and spends time flying around at night.  I recall one scene where he learns about two children out in the middle of the bay (perhaps the book is set in San Fran?  I don't recall) in a rowboat with one oar.  He saves them (by pulling them back to shore using a rope they had with them) and gets mentioned in the paper as an angel.  At the end of the book, the potion has run out.  There's only a tiny little bit left, and when he rubs it in, it creates only a single feather.  Around that point, the boy realizes that he's no longer getting winded going up several flights of stairs and he's gained a lot of self-confidence.  From what I remember of the copy I read, the cover featured a shirtless boy wearing jeans standing in front of a mirror, looking at the large white feathered wings that had grown from his back. Why can't I log into minecraft with a mojang account? Is there any "superlogarithm" or something to solve $x^x$? Is there any "superlogarithm" or something to solve an equation like this:  $$x^x = 10?$$ Wirtinger Inequality: $\int_0^1 f'^2 \geq \pi^2 \int_0^1 f^2 $ I have a  basic question  Let $f$ be a $\mathcal{C}^1$  map  from  $[0,1]$ into $\mathbb{R}$ vanishing in $0$ and $1$. I want to prove that   $$\int_0^1 f'^2 \geq \pi^2 \int_0^1 f^2 $$  and to see when we have equality. Proper use of the IDisposable interface What SIM card would you recommend for a smartphone user for travel in Germany?  It would be probably the only or the most important connection to the Internet, so large amounts of data and relatively fast transfer is an issue.  I need to stay in touch with friends and family, so the calls to other EU countries should be as cheap as possible.   For to the first criteria, I found the T-Mobile offer interesting. The internet costs 10 Euros/month and after reaching the transfer limit it stays relatively fast. According to tests (Galileo from Pro7, AFAIR) it has also the best coverage. However, calls to other countries are very expensive.  For to second criteria, Lebara and Mobilka are interesting. The calls are very cheap, but there are problems with signal strength in many locations, where T-Mobile has no problem. The voice quality, at least in Lebara, is also limited. They both have mobile internet with unlimited transfer, but after reaching the high speed limit, the transfer is reduced to 64 kbps, which is too slow.  I've found out that O2 has foreign calls at moderate prices, but I haven't yet checked for details. There are so many other options, making it is hard to compare them all without spending the whole weekend on it. So, if someone has found a better option than having 2 SIM cards and constantly switching them, this answer would be greatly appreciated.