Multiple, sequential commands in cron I read about the following :     We can run several commands in the same cron job by separating them with a semi-colon (;).   * * * * * /path/to/command-1; /path/to/command-2      If the running commands depend on each other, we can use double ampersand (&amp;&amp;) between them. As a result, the second command will not be executed if the first one fails.   * * * * * /path/to/command-1 &amp;&amp; /path/to/command-2   My requirements are:   the commands must be executed sequentially (wait for the current one to complete before executing the next one) the commands must be executed in the given order but every command should be executed, even if the previous one failed   What the link above therefore doesn't say is:  Does the semicolon ; approach still guarantees that the commands will be executed sequentially, and in the given order?
What's the difference between semicolon and double ampersand && What is the difference between  echo "Hello " ; echo "world"   and  echo "Hello " &amp;&amp; echo "world"   Both seems to run the two commands after each other.
Finding out the area of a triangle if the coordinates of the three vertices are given What is the simplest way to find out the area of a triangle if the coordinates of the three vertices are given in $x$-$y$ plane?   One approach is to find the length of each side from the coordinates given and then apply . Is this the best way possible?   Is it possible to compare the area of triangles with their coordinates provided without actually calculating side lengths? I'd like to add an invisible watermark to each PDF document that I produce so that in case it leaks, I know where it leaked from. Anyone knows what would a good way for an invisible watermark be in a PDF document and how to add one? Server 2012 deduplication: run on Hyper-V host or guest VM? I have a Windows Server 2012 Hyper-V host with VMs on a dedicated RAID-5 volume. One VM is also running Server 2012 and is being used to serve files. The other VMs are smaller and mostly used for temporary testing scenarios.   The main file server VM has two dynamically expanding VHDX files - one for the OS and one for storage. The VHDX being used for storage has quite a few duplicated files on it.  Should I run Server 2012 deduplication on the volume containing the storage VHDX file on the host, or within the file server VM itself? I understand that running it within the VM will not decrease the size of the VHDX file on the host, but my goal is to enable as much storage capacity within the VHDX file itself. I also understand that if I run it on the host, I will have to take the VM offline to do it. Downtime isn't a concern in this instance, just the best way to do this. Create backup iPhone with forgotten encryption password I'm trying to make a backup from my iPhone, however it's set to be password protected. I do not know the password, as I've never set one. I've tried all the passwords I know, which I've ever used to make sure I didn't set it.  I've also tried the default 0000 and 1234 codes.   I want to uncheck the encryption checkbox in iTunes, but it requires me to type a password. What else can I try?  I have no problems in removing all backups and start from the scratch somehow, however - I do not want to restore my phone as new and remove all those settings. Why does speed of light have to be constant? Can we use "there is" for plural nouns? "The news is good." Why? I am trying to put a server together to install Ubuntu. I bought an Intel S1200v3RPS motherboard and plugged an Intel Xeon E3 processor into it. I purchased a 1U chassis from Supermicro with a power supply.  The power supply does not have a 5-pin cable to the motherboard's Auxiliary Power Supply socket. A bit of research did not give any definite answer on the need for the 5-pin connection. The motherboard does not power on and the CPU fan is off. I tested the power supply on a desktop Intel motherboard and it works fine.   I would like to buy a new power supply but could not find one which expressly stated that it comes with the 5-pin aux power supply cable. Any recommendations on a power supply unit for this motherboard would be helpful. Any comments on the problem would be greatly appreciated. Is commitment necessary to participate in beta (as of June 2015)? There's this proposal for a new S.E. site which is about to enter the beta phase. It reads  This proposal is in: Commitment A successful site needs people to commit to use it. This proposal is 100% complete. Committed users will be invited to the private beta soon.  I'd like to participate in the beta but I don't want to commit (due to a full name being required). Will I be unable to participate in the beta if I don't commit? Can I declare a duplicate page via javascript for google? Most sources of documentation state that one can declare a webpage a duplicate of another by applying this tag on the duplicate page:  &lt;link rel="canonical" href="(absolute URL to original page)"&gt;   I could generate the above tag via the script below:  &lt;script&gt; var l=document.createElement('Link'); l.rel='canonical';l.href='(absolute URL to original page)'; document.getElementsByTagName('head')[0].appendChild(l); &lt;/script&gt;   My question is, would google be able to process this javascript and believe I'm declaring the page as a duplicate page? or would I be forced to use the link tag in the header?  I ask because I'm trying to reduce the unnecessary bytes required to be processed before the actual user readable content begins. I am in a situation where when I get an HTTP 400 code from the server, it is a completely legal way of the server telling me what was wrong with my request (using a message in the HTTP response content)  However, the .NET HttpWebRequest raises an exception when the status code is 400.   How do I handle this? For me a 400 is completely legal, and rather helpful. The HTTP content has some important information but the exception throws me off my path. When closing a question as duplicate the &quot;Possible duplicate of&quot; comment is automagically added to the question. However when adding such a comment manually: &quot;possible duplicate of random text&quot; that comment is also removed. To me it doesn't make sense that questions which to not point to a SO / SE question or even comments without any links in it are also removed when the question is closed as a dupe. I just found this out by close voting a question as a dupe of another question, but I also added a manual comment which linked to a user profile (because it contains lots of relevant information for OP and possible future reasons): possible duplicate of this [user](http://stackoverflow.com/users/727208/teresko?tab=answers&amp;sort=votes)'s list.  By the looks of it the script simply checks whether the comment starts with &quot;possible duplicate of&quot; and if it matches it will be removed. The  team also did a quick test with a very simple example which also got thrown away: possible duplicate of testing........  I understand that this issue is minor and there might as well be a technical reason for this (i.e. not having to keep track of automatic vs manual comments), but this behavior is kinda odd to me. I can think of two solutions for this:  keep track of manually vs automagically added dupe comments (again you SO people might have a good reason to not want this). Improve the &quot;dupe comment matcher ™&quot; to at least check whether the comment is in the correct format for &quot;auto dupe comments ™&quot; with a proper link to a question page. Should I use static_cast or reinterpret_cast when casting a void* to whatever Both static_cast and reinterpret_cast seem to work fine for casting void* to another pointer type. Is there a good reason to favor one over the other? What blocks can Endermen pick up and what blocks they can't? How can I reset $PATH to its default value in Ubuntu? I accidentally unset all the directories of $PATH while trying to add a new one in ~/.bashrc. I opened a new terminal window as I was editing and now $PATH is empty. I'm worried if I boot from another drive to find the $PATH I won't be able to boot into this drive again.  Basically, what is the default result of echo $PATH? A spaceship crew stuck in a damaged spaceship that's losing power Show that $\lim_{n\to\infty}b_n=\frac{\sqrt{b^2-a^2}}{\arccos\frac{a}{b}}$ If $a$ and $b$ are positive real numbers such that $a&lt;b$ and if $$a_1=\frac{a+b}{2}, b_1=\sqrt{(a_1b)},..., a_n=\frac{a_{n-1}+b_{n-1}}{2},b_n=\sqrt{a_nb_{n-1}},$$ then show that   $$\lim_{n\to\infty}b_n=\frac{\sqrt{b^2-a^2}}{\arccos\frac{a}{b}}.$$ I tried to calculate explicitly the first few terms $a_2,b_2$ etc but the terms got too complicated really quickly and I couldn't spot any pattern. How do I read and parse an XML file in C#? To find tangents to given circle from a point outside it Find the combined equation of two tangents drawn from $P(x_1,y_1)$ to the circle $x^2+y^2 = a^2$. Point $P$ lies outside the circle. How can we prove that for every pair $N \in \mathbb{N}$, and natural number $\beta\in [2, \infty)$ there exists a unique set of integers $x_i \in [0, \beta -1]$, $k\in [0,\infty)$ such that:  $$N = \sum_{i=0}^{k}\beta^ix_{i}, \quad $$  It's a question if every positive integer has its unique representation in every base $\beta$. Is the validity of above statement somehow related to Horner's rule?