problem in installing : unmet dependencies
How do I resolve unmet dependencies after adding a PPA?
node.js conflicts: /sbin/node vs /usr/bin/node I have two Ubuntu 12.10 machines: machine A is a VMWare VM and machine B is and old Acer laptop. On both machines, I installed node using apt-get. However machine A installs the main binary as /usr/bin/node and machine B as /usr/bin/nodejs. Here are some behaviors I observed:   Both machine returns /usr/bin/node in response to the which node command. However, there is no such file on machine B. Issuing the command node works for machine A, not B. On B, I have to use nodejs instead. On B, there is a binary called /sbin/node, A does not have it.   These behaviors causes inconsistency problem when developing on both machines. For now, I worked around by renaming the binaries on B as such:  sudo mv /sbin/node /sbin/node-sbin sudo ln -s /usr/bin/nodejs /usr/bin/node   Is there a way to really fix this, so that node will be installed as /usr/bin/node instead of /usr/bin/nodejs? Prove $\sin^2\theta + \cos^2\theta = 1$ How do you prove the following trigonometric identity: $$ \sin^2\theta+\cos^2\theta=1$$  I'm curious to know of the different ways of proving this depending on different characterizations of sine and cosine. Verbatim in beamer showing error: "File ended while scanning use of \@xverbatim." I am using Texmaker and MiKTeX on Windows 7. I have the following beamer code,  \documentclass{beamer} \theme{AnnArbor} \begin{document} \begin{frame} \begin{verbatim}     \begin{frame}[&lt;alignment&gt;]    \frametitle{Frame Title Goes Here}    Frame body text and/or LATEX code    \end{frame}  \end{verbatim} \end{frame} \end{document}   I was expecting the following output,         \begin{frame}[&lt;alignment&gt;]        \frametitle{Frame Title Goes Here}        Frame body text and/or LATEX code        \end{frame}   But instead I got the following Error Message,  File ended while scanning use of \@xverbatim.   Can any one please point out the error here. As far as I know verbatim can have anything inside it.  Also when I tried the following code,  \begin{verbatim}  \ begin{frame}[&lt;alignment&gt;]  \frametitle{Frame Title Goes Here}  Frame body text and/or LATEX code  \ end{frame} \end{verbatim}   I got the following output,      \ begin{frame}[&lt;alignment&gt;]      \frametitle{Frame Title Goes Here}      Frame body text and/or LATEX code     \ end{frame}   But I don't want space between \ and begin and \ and end. In node.tpl.php, I have done some changes, like creating an array of paragraphs:      $paragraphs = explode("&lt;p&gt;",render($content));   So, I have a for loop for showing the paragraphs, like:  $number = count($paragraphs); if($page){   print render($paragraphs[0]);   for ($i=1;$i&lt;$number;$i++)       {          print render($paragraphs[$i]);        &lt;a href="#commenting"&gt;Put comment for Paragraph &lt;?php echo $i?&gt;&lt;br&gt;&lt;/a&gt; &lt;?php  } ?&gt;     &lt;a id="commenting"&gt;&lt;?php print render($content['comments']); ?&gt;&lt;/a&gt; &lt;?php }?&gt;   As you can see I want to create a hyperlink under each paragraph, so when user click on it, they can put comment on the paragraph, But right now, when they click on the hyperlink, it will  jump to the end of the page, which has the comment form.  If you check the CommentPress website, in the right column, you can see for example, it is said: 5 Comment on Paragraph 1, and when you click on it, it will show the comments and the comment form under that link, I want to have the same thing, I mean, when users click on the link under each paragraph, the comment form displays under that link instead of jumping to the end of the page. The equivalent electric field of a magnetic field So I was thinking about something for the past while  Consider a large spherical foam-ball with homogeneous density. Where a foam ball is defined as an object that can absorb matter with 0 friction (example: a gravitational well without an object inside). This is a purely theoretical construct.  If the foam-ball has a radius R and a charge Q. What charge must the foam-ball have, such that there is well defined sphere or horizon such that any object with a negative charge (even if it is the slightest bit) must travel faster than C in order to escape the field of the ball.  Aka what charge would turn this into a black-hole for all objects with opposite sign on their charge?  Once again I assume the foam-ball is a single particle, that doesn't repel itself... its just a very large homogenous 'thing' with charge. Evaluate $ \int_{0}^{\frac{\pi}2}\frac1{(1+x^2)(1+\tan x)}\:\mathrm dx$ Why is it sensical for a proposition with a false antecedent to validate to true? How do I connect the initial highway to my six-lane road? Sugar daddy wants my online banking login info to make deposits — is it a scam? Someone is offering to pay me in a sort of sugar daddy/sugar baby arrangement. They want to make online deposits to me, and they're asking me for my online banking username and password. Is that information alone enough for them to be able to take my money out of my account, or am I safe? The only thing I need is an exact copy of an existing shapefile in the same directory with a different name.  I have tried:   arcpy.CopyFeatures_management (ORLinks, MyLinks) #ORLinks: old links, MyLinks: new links   but for some reason, I cant make it a feature layer using:  arcpy.MakeFeatureLayer_management(MyLinks, 'MyLinks')   Error Encountered:  Error: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset  M:\RAIL\Rail2.0.shp does not exist or is not supported Failed to execute (MakeFeatureLayer). Unable to SSH to my virtual machine via Windows Power Shell ISE Intuitive proof of $\sum_{k=1}^{n} \binom{n}{k} k^{k-1} (n-k)^{n-k} = n^n$ Is there an intuitive way, though I am not sure how to find a conceptual proof either, to establish the following identity: $$\sum_{k=1}^{n} \binom{n}{k} k^{k-1} (n-k)^{n-k} = n^n$$ for all natural numbers.  I am thinking about binomial formula $$\sum_{k=0}^n\binom nk x^{n-k}y^k=(x+y)^n$$ but I'm not sure how to use it.  I find this problem tantalizing because it looks as if there should be some sort of intuitive way so that is why I share it here. I am looking for an answer like  if possible. Can you find one? Uninstall kubuntu-desktop I installed kubuntu-desktop using sudo apt-get install kubuntu-desktop but I no longer want to use KDE.  How do I remove all the packages that were installed by this command ?  Thank you Where did Harry's parents get all of their money from? Why is the Star Trek 2009 reboot called a reboot? Doctor Who (2005) isn't called a reboot. It is called a continuation of the old series. This was made possible by that regeneration ju-ju and stuff.  On the other hand, Star Trek 2009 reincarnation is often called a reboot. Nobody dared call it continuation. I don't think I need to do citation because it's common.  Now, if we actually go into the details:   The new universe contains two Spock. One is from the original timeline. The Spock Prime even gives data from the original timeline like trans-warp equation, Khan etc. We see other past data from before the timeline diverged. For example, Scott told that he transwarped Admiral Archer's dog. "Archer's dog" existed in Star Trek: Enterprise TV series.   So, why didn't the legacy survive in-universe? Why isn't it considered a continuation of the old Star Trek TV shows and movies?  Or, is the reboot word used by mistaken fans and media only?  Update: After the release of Star Trek: Beyond (2016), this is no longer a confusion as the movie showed a photo from original timeline. Access 2007 Work in a separate file using ACCDE how to plot two graphs in a single sheet? I am new to Latex. Cann some one tell me how can I plot two graphs in a single page and How can resize the legend. I have attached the picture how the legend looks. I need it out from the plot and how can i have gridded lines in the plot. Please help me. My code is as follows: \documentclass[12pt, a4paper]{report} \usepackage{filecontents,pgfplots}  \begin{filecontents}{mydata.dat} m0_FEED, AT 773.15K, AT 823.15K, AT 873.15K, AT 923.15K, AT 973.15K 0.005, 1.30E+04, 12959.71536,12959.71536,12959.71536,12959.71536 0.007, 1.81E+04, 18145.78478,18145.78478,18145.78478,18145.784 0.009, 2.33E+04, 23333.9541,23333.9541,23333.9541,23333.9541 0.011, 2.85E+04, 28524.71381,28524.71381,28524.71381,28524.71381 0.013, 3.37E+04, 33718.48576,33718.48576,33718.48576,33718.48576 0.015, 3.89E+04, 38915.61947,38915.61947,38915.61947,38915.61947 0.017, 4.41E+04, 44116.39602,44116.39603,44116.39603,44116.39603 0.019, 4.93E+04, 49321.02848,49321.02848,49321.02878,49321.02849 0.021, 5.45E+04, 54529.67237,54529.67238,54529.67238,54529.67238 \end{filecontents}  \begin{document}   \pgfplotstableread[col sep=comma]{mydata.dat}{\mydata} \begin{tikzpicture}[scale=1.8] \begin{axis}[minor tick num=1, xlabel=Degrees, ylabel = temperature] \addplot [black,very thick] table [x={m0_FEED}, y={AT 773.15K}] {\mydata}; \addplot [red,very thick] table [x={m0_FEED}, y={AT 823.15K}] {\mydata}; \addplot [blue,very thick] table [x={m0_FEED}, y={AT 873.15K}] {\mydata}; \addplot [green,very thick] table [x={m0_FEED}, y={AT 923.15K}] {\mydata}; \addplot [dashed,yellow,very thick] table [x={m0_FEED}, y={AT 973.15K}] {\mydata}; \legend{AT773.15K, AT823.15K, AT873.15K, AT923.15K, AT973.15K} \end{axis} \end{tikzpicture}  \begin{filecontents}{mydatax.dat} m0_FEED AT 773.15K  AT 823.15K  AT 873.15K  AT 923.15K  AT 973.15K 0.005   4.06E+03    4601.511738 5147.966831 5703.120845 6267.035737 0.007   5.69E+03    6439.241858 7204.278989 7981.494608 8625.923 0.009   7.31E+03    8274.205759 9257.824928 10257.10215 11272.14896 0.011   8.92E+03    10105.75535 11307.95656 12529.29539 13769.90815 0.013   1.05E+04    11933.33165 13354.1149  14797.51533 16263.69405 0.015   1.21E+04    13756.46929 15395.83457 17061.29661 18753.04129 0.017   1.37E+04    15574.79159 17432.7389  19320.26254 21237.57317 0.019   1.53E+04    17388.009   19464.53834 21574.12348 23717.00014 0.021   1.69E+04    19195.90581 21491.01717 23822.664   26191.10653 \end{filecontents}  \pgfplotstableread{mydatax.dat}{\mydatax} \begin{tikzpicture}[scale=2] \begin{axis}[minor tick num=1, xlabel=Degrees, ylabel = temperature] \addplot [black,very thick] table [x={m0_FEED}, y={AT 773.15K}] {\mydatax}; \addplot [red,very thick] table [x={m0_FEED}, y={AT 823.15K}] {\mydatax}; \addplot [blue,very thick] table [x={m0_FEED}, y={AT 873.15K}] {\mydatax}; \addplot [green,very thick] table [x={m0_FEED}, y={AT 923.15K}] {\mydatax}; \addplot [dashed,yellow,very thick] table [x={m0_FEED}, y={AT 973.15K}] {\mydatax}; \legend{AT773.15K, AT823.15K, AT873.15K, AT923.15K, AT973.15K} \end{axis} \end{tikzpicture}   \end{document} Is there a RegExp.escape function in JavaScript? Split a string by a delimiter in python