Running Ubuntu 14.04. I want to delay Cairo-Dock. What should be in the command in "Startup Applications". I tried it with: "sleep 10; cairo-dock" but that doesn't work. What is the proper syntax to use... FYI I want to delay Cairo-Dock because when it starts immediately it ruins the shutdown options in the top panel (seems to be a known but unsolved bug)
How to delay a program such as cairo-dock (No openGL) or Firefox?  Sometimes programs crash when started with other startup apps. I want programs to start 10 seconds late to avoid a crash.
I have a very large codebase (read: thousands of modules) that has code shared across numerous projects that all run on different operating systems with different C++ compilers. Needless to say, maintaining the build process can be quite a chore.   There are several places in the codebase where it would clean up the code substantially if only there were a way to make the pre-processor ignore certain #includes if the file didn't exist in the current folder. Does anyone know a way to achieve that?  Presently, we use an #ifdef around the #include in the shared file, with a second project-specific file that #defines whether or not the #include exists in the project. This works, but it's ugly. People often forget to properly update the definitions when they add or remove files from the project. I've contemplated writing a pre-build tool to keep this file up to date, but if there's a platform-independent way to do this with the preprocessor I'd much rather do it that way instead. Any ideas? Here's the question: Prove that $\lim_{n \to \infty} (\sqrt{n^2+n}-n) = \frac{1}{2}.$  Here's my attempt at a solution, but for some reason, the $N$ that I arrive at is incorrect (I ran a computer program to test my solution against some test cases, and it spits out an error). Can anyone spot the error for me?  $\left|\sqrt{n^2+n}-n-\frac{1}{2}\right| &lt; \epsilon$  $\Rightarrow \left|\frac{n}{\sqrt{n^2+n}+n} - \frac{1}{2}\right| &lt; \epsilon$  $\Rightarrow \frac{1}{2}-\frac{1}{\sqrt{1+\frac{1}{n}}+1} &lt; \epsilon$  $\Rightarrow \frac{1}{\sqrt{1+\frac{1}{n}}+1} &gt; \frac{1}{2} - \epsilon = \frac{1-2 \epsilon}{2}$  $\Rightarrow \frac{1}{\sqrt{1+\frac{1}{n}}} &gt; \frac{1-2 \epsilon}{2}$  $\Rightarrow \frac{1}{\sqrt{\frac{1}{n}}} &gt; \frac{1-2 \epsilon}{2}$  $\Rightarrow \sqrt{n} &gt; \frac{1-2 \epsilon}{2}$  $\Rightarrow n &gt; \frac{4 {\epsilon}^2-4 \epsilon +1}{4}$ My DOM looks like this:  &lt;div id="d1"&gt;    &lt;div class="c1"&gt;             &lt;a href="#"&gt;&lt;img src="img1_on.gif"&gt;&lt;/a&gt;             &lt;a href="#"&gt;&lt;img src="img2_on.gif"&gt;&lt;/a&gt;    &lt;/div&gt; &lt;/div&gt;   When someone clicks on an image, I want the image src to change to &lt;img src="imgx_off.gif"&gt; where x represents the image number 1 or 2.  Is this possible or do I have to use CSS to change the images? What is the difference between these two ways to calculate average velocity? Average velocity:  $$v_{\rm avg,1}=\frac{v_{\rm final}+v_{\rm initial}}{2}$$   and average velocity:   $$v_{\rm avg,2} =\frac{\rm total\;displacement}{\rm time \;taken}=\frac{\Delta x}{\Delta t} $$  What is the difference between them and when do we use them? Is short-circuiting logical operators mandated? And evaluation order? Does the ANSI standard mandate the logical operators to be short-circuited, in either C or C++?  I'm confused for I recall the K&amp;R book saying your code shouldn't depend on these operations being short circuited, for they may not. Could someone please point out where in the standard it's said logic ops are always short-circuited? I'm mostly interested on C++, an answer also for C would be great.  I also remember reading (can't remember where) that evaluation order isn't strictly defined, so your code shouldn't depend or assume functions within an expression would be executed in a specific order: by the end of a statement all referenced functions will have been called, but the compiler has freedom in selecting the most efficient order.  Does the standard indicate the evaluation order of this expression?  if( functionA() &amp;&amp; functionB() &amp;&amp; functionC() ) cout&lt;&lt;"Hello world"; Earlier today, I was suspended from chat due to an inappropriate message (I totally deserved it, but that's not the point). I looked at my phone, and this is all that it told me:    ...which confused me because chat was still moving as normal. I didn't realize that I had been suspended until I checked on my computer to see what the heck was going on.  To me, "This room is read-only" sounds like some sort of database lockup or something related specifically to the room, not the user. It doesn't give any feedback to indicate that the room will be "read-only" for 30 minutes, and doesn't mention that all other rooms are also "read-only". Even a message saying just "You have been suspended from chat" would be more helpful. Round function in Excel, worksheet function vs VBA I had an application for returning closest matches to certain values in a large  cluster of values( as in my earlier )   and I chose a VBA solution. While in the course of using the said application, I observed that the results for the value of 0.5 were not correct. I had been using the VBA Round function which I found to be returning 0 for 0.5 rounded to integer whereas the worksheet round function returns 1. Strangely, the VBA round function returns 2 for 1.5. I had to substitute the worksheet function in place of the VBA one.  Am I missing something? How to run my own program without specifying its path Let's suppose I have compiled something and I run it like so:  $ /path/to/my/executable/mycmd Hello World   What do I need to do to run it like   $ mycmd Hello World    from everywhere in my computer? Unparsed HTML shows on search result page Flag pop-up hidden beneath answer box (and it's still transparent!) The flag window on (a comment to) the last question is hidden beneath the answer box, as shown in the following screenshot:    Linked: , which is currently  - this is not fixed for flags on comments! How to change horizontal alignment of \frac? Typing \frac{W+W^*}{2} gives a fraction in which the denominator appears to the eye to be in the wrong position. Is there a way to correct this, i.e. place the 2 in under the + (without using arbitrary negative spacing)? What diode modifiers are used in practice to model LEDs with SPICE (Berkeley v.3f5)?  are available to me:  #       Name    Parameter                    Units      Default Example  Area 1       IS      Saturation current             A         1e-14   1e-14    * 2       RS      Ohmic resistance               Ω         0       10       * 3       N       Emission coefficient           -         1       1.0 4       TT      Transit-time                   s         0       0.1ns 5       CJO     Zero-bias junction capacitance F         0       2pF      * 6       VJ      Junction potential             V         1       0.6 7       M       Grading coefficient            -         0.5     0.5 8       EG      Activation energy              eV        1.11    1.11 Si                                                                  0.69 Sbd                                                                  0.67 Ge 9       XTI     Saturation-current temperature exponent  3.0     3.0 jn                                                                  2.0 Sbd 10      KF      Flicker noise coefficient      -         0 11    AF      Flicker noise exponent         -         1 12    FC      Coeff. for for.-bias dep. cap. formula   0.5 13    BV      Reverse breakdown voltage      V         ∞       40.0 14    IBV     Current at breakdown voltage   A         1.0e-3 15    TNOM    Parameter measurement temp.    °C        27      50         The dc characteristics of the diode are determined by the parameters IS and N. An ohmic resistance, RS, is included. Charge storage effects are modeled by a transit time, TT, and a nonlinear depletion layer capacitance which is determined by the parameters CJO, VJ, and M. The temperature dependence of the saturation current is defined by the parameters EG, the energy and XTI, the saturation current temperature exponent. The nominal temperature at which these parameters were measured is TNOM, which defaults to the circuit-wide value specified on the .OPTIONS control line. Reverse breakdown is modeled by an exponential increase in the reverse diode current and is determined by the parameters BV and IBV (both of which are positive numbers).   For example, using this basic, cheap red:      I don't care much about high-frequency characteristics -- just would like to be able to match it's IV-curve within its operating specs (-10uA/-5V leakage to +100mA/+2.2'ishV forward): $\mathbb R$ has the same cardinality of any interval What are LiDAR returns? Can someone help with an explanation and some references, in order to understand the nature of return pulses within a LiDAR system. Riemann and Darboux Integral of a product of two functions I have an equation contained inside \[...\], which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis.  Any idea how to make the parenthesis completely enclose the whole summation?  \documentclass{article} \begin{document} We have: \[ \sum_{i=1}^n i = (\sum_{i=1}^{n-1} i) + n = \frac{(n-1)(n)}{2} + n = \frac{n(n+1)}{2} \] \end{document} Find Oracle JDBC driver in Maven repository This is a follow up question to . My reference database contains some DOI codes, but mainly normal URLs and some ISBN/ISSN codes. What I would like to achieve is extending the code from Herbert and hyperlink the title of the entry with the following priority: 1. DOI, 2. URL, 3. ISBN/ISSN. What I mean is, if both DOI and URL is available, use DOI. If URL and ISBN is available use URL. If only ISBN is available use that.  There are two further isses:    The URL field might contain several URLs, which are just seperated by a white space. In that case just the first URL should be used.  Herbert's code just extends to articles. I would like to extend this to all entry types.   The code from Herbert to Hyperlink the Title with DOIs is:   \newbibmacro{string+doi}[1]{%   \iffieldundef{doi}{#1}{\href{http://dx.doi.org/\thefield{doi}}{#1}}} \DeclareFieldFormat{title}{\usebibmacro{string+doi}{\mkbibemph{#1}}} \DeclareFieldFormat[article]{title}{\usebibmacro{string+doi}{\mkbibquote{#1}}}   This far surpasses my skill, so it would be great if someone could give me some guidance how to achieve that. How to delete a file with a path too long to be deleted I was working with some computer vision source code I found and didn't realize that it creates a cache file that has a VERY LONG name and now I can't delete the 2 of them. I tried to rename it to a shorter name but I can't do anything to the file, I also tried to restart my computer and see if it would just go away. The error message says:  Destination Path Too Long. The file name(s) would be too long for the destination folder. You can shorten file name and try again, or try a location that has a shorter path.   How can I delete the files in this case? Arguably the most famous scene in Star Wars is when Darth Vader reveals to Luke Skywalker that      He is Luke's father.   This surprise was kept secret to most of the crew and even the cast , with Dave Prowse, the actor playing Darth Vader, delivering a fake line, the actual line being overdubbed. (Of course, Darth Vader wasn't voiced by him in the first place; all lines were overdubbed by James Earl Jones).   Like Mark Hamill relates in :     But, for example, your big scene, one of the classic cinematic moments when Darth Vader divulges his true identity, is no longer a revelation.       It's such a great moment! The fake line that was put in there just to try and keep the secret was "You don't know the truth: Obi-Wan killed your father!" But as much as I enjoyed leaking false information, it was a wonderfully hard secret to keep because (Irvin) Kershner, the director, brought me aside and said "Now I know this, and George knows this, and now you're going to know this, but if you tell anybody, and that means Carrie or Harrison, or anybody, we're going to know who it is because we know who knows."   So how do we explain ?       And [David Prowse] offered a glimpse of a possible plot for the second sequel. Darth Vader and Luke Skywalker, the young hero in the first film played by Mark Hamill, are hooked up in a do-or-die light saber duel when Luke learns that Darth is, in fact, his long-lost father.   So exactly how secret was this secret anyway?    As DVK points out , the newspaper article is probably authentic.