When I run who on my ubuntu laptop I see myself listed twice.  Once with pts/0 and once with pts/2.  Why is that?
This is result of who -uH:  NAME     LINE         TIME             IDLE          PID COMMENT me    :0           2013-08-29 01:29   ?          1686 (:0) me    pts/0        2013-08-29 01:42  old         2905 (:0) me    pts/1        2013-08-29 01:45  old         2905 (:0) me    pts/2        2013-08-29 01:52  old         2905 (:0) me    pts/3        2013-08-29 02:26  old         2905 (:0) me    pts/4        2013-08-30 18:37 00:07        2905 (:0) me    pts/5        2013-08-29 10:34  old         2905 (:0) me    pts/6        2013-08-29 11:05  old         2905 (:0) me    pts/7        2013-08-29 13:34  old         2905 (:0) me    pts/8        2013-08-30 15:56 02:45        2905 (:0) me    pts/9        2013-08-30 18:27 00:17        2905 (:0) me    pts/10       2013-08-30 17:34   .          2905 (:0) me    pts/11       2013-08-30 17:37 00:13        2905 (:0) me    pts/12       2013-08-30 18:28 00:17        2905 (:0) me    pts/13       2013-08-30 18:38 00:07        2905 (:0)   Why it lists my username in 15 lines? How do I know If someone has connected to my system remotely?
Best way to find a point on a circle closest to a given point Given a point (pX, pY) and a circle with a known center (cX,cY) and radius (r), what is the shortest amount of code you can come up with to find the point on the circle closest to (pX, pY) ?  I've got some code kind of working but it involves converting the circle to an equation of the form (x - cX)^2 + (y - cY)^2 = r^2 (where r is radius) and using the equation of the line from point (pX, pY) to (cX, cY) to create a quadratic equation to be solved.  Once I iron out the bugs it'll do, but it seems such an inelegant solution. Disk space usage doesn't add up with df & du integral roots for $f(x) = 41$ if $f(x) = 37$ has 5 distinct integral roots. "The package lists or status file could not be parsed or opened" I would like to take control of my app on an iOS device (mostly an iPhone) from my MacBook Pro or Windows, doesn't matter which one.  I know that it can be accomplished via Veency, and that's exactly what I need - but I do NOT want to jailbreak my iPhone.  Is there a similar legal alternative?  If not - is it something I could develop perhaps, or will I run into some SDK limitations for such a thing? Meta's tag pages inaccessible due to self-redirect loop Tag pages (route /questions/tagged/tagname) redirect to themselves indefinitely:  $ curl -D - http://meta.stackexchange.com/questions/tagged/featured HTTP/1.1 302 Found Cache-Control: private Content-Type: text/html; charset=utf-8 Location: /questions/tagged/featured X-Frame-Options: SAMEORIGIN Date: Fri, 05 Jul 2013 16:47:42 GMT Content-Length: 143  &lt;html&gt;&lt;head&gt;&lt;title&gt;Object moved&lt;/title&gt;&lt;/head&gt;&lt;body&gt; &lt;h2&gt;Object moved to &lt;a href="/questions/tagged/featured"&gt;here&lt;/a&gt;.&lt;/h2&gt; &lt;/body&gt;&lt;/html&gt;   This only happens on Meta, so far, but only applies to any meta-tag that doesn't have a dash in it; those with a dash seem to be exempt, as do invalid tags:    redirects.  does not.  does not. How do I access previous promise results in a .then() chain? We know that you can't transfigure food, so you have to grow it or buy it. Ditto money.  I'm sure that aside from some medicinal plants Herbology Professor had there were no farmlands at Hogwarts. So they must have bought food (as well as potions ingredients for Snape etc...). And they needed to pay the teacher salaries.  Where did all that money come from according to canon?  Ministry funding?  Tuition?  Patent money on Dumbledore's inventions?  Philanthropic donations by Malfoys and co?  Other? Trying to dual boot Ubuntu 14.10 with Windows 10, last one not detected I have a laptop, and I'm going to install Ubuntu (I have experience, and I have  successfully installed , Ubuntu, , , , , , etc.), but installing  (Utopic Unicorn) alongside , Ubuntu can't detect Windows.  It shows me like there's no OS, but I have Windows&nbsp;10.  I have two primary partitions by the way if I manually install. If the Ubuntu installer can't detect Windows&nbsp;10, will it be detected at ? How do I restore the default repositories? What is an quick way to create a new blank file in Lion? In Windows, one can create a new file using Right Click -> Add New -> Type of File. Is there an analogous action in Lion?  I just want to create a new blank file on my Desktop. How do I include lines in resolv.conf that won't get lost on reboot? I have finally migrated to 12.04 from 7.10. I have one last part to complete but I am stumped. I am using Puppet on each server, and in the past I have included a nameserver address and a search domain name for the puppetmaster in resolv.conf.   search puppetmaster.com nameserver 192.168.1.XXX   In 12.04 resolv.conf gets overwritten when rebooted. I cannot use a static IP for these, so using the /etc/network/interfaces to help me out is a nill point.  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1   Is there a way to get resolvconf to handle this either in the head, tail or base? If there is, are there any examples I can use to tweak on my server.   Any help is much appreciated. How can I prevent my mail from being classified as spam? When sending or forwarding emails using a personal or company domain using a  website or email client, how do I prevent the email from being incorrectly marked as spam? Unsized array declaration in a struct The rules of Transfiguration: examples of making the inedible edible? Information from the official website of J.K.Rowling is generally considered canon. I remember at least one case when she 'changed her mind' after a particular rule has been  published on her website (what happens with a secret if a Secret Keeper dies). Nevertheless, the information from the website can generally be considered reliable.  A rather obscure piece of information is J.K.Rowling's Wizards' Ordinary Magic and Basic Aptitude Test () published on her website in 2007 and now accessible with a Time Turner.   In particular, we know that only one of the following options is correct (as the software allows you to choose only one option):     Which of the following is CORRECT?            a. Food can be conjured out of thin air.       b. Any object can be Transfigured into food.       c. Foodstuffs can be increased, Transfigured, summoned from a distance and magically cooked.       d. It is impossible to make the inedible, edible.   e. Food-related Charms are some of the simplest forms of magic.      W.O.M.B.A.T. Grade 3, 13 June 2007, question 8   The test appeared on J.K.Rowling's website before the release of Book 7, but we can almost safely assume that there was no time for J.K.Rowling to change her mind after compiling the test (though she must have submitted these questions weeks before they were eventually published).  As Hermione explained in Harry Potter and the Deathly Hallows:      Your mother can’t produce food out of thin air, no one can. Food is the first of the  to . It’s impossible to make good food out of nothing! You can Summon it if you know where it is, you can transform it, you can increase the quantity if you’ve already got some...   It means that the correct option is c, and therefore all other statements are false. So, apparently, you can make food out of something else, though not any object can be transfigured into food. Can you come up with any example of such transformation mentioned in the books? Given this (very) tricky determinant, how can we calculate it easily?  $$\begin{pmatrix} \alpha + \beta &amp; \alpha \beta &amp; 0 &amp; ... &amp; ... &amp; 0 \\ 1 &amp; \alpha + \beta &amp;  \alpha \beta &amp; 0 &amp; ... &amp; 0 \\ 0 &amp; 1 &amp; \alpha + \beta &amp; \alpha \beta &amp; ... &amp; ... \\ ... &amp; ... &amp; ... &amp; ... &amp; ... &amp; 0 \\ ... &amp; ... &amp; .... &amp; ... &amp; ... &amp; \alpha \beta \\ 0 &amp; 0 &amp; 0 &amp; ... &amp; 1 &amp; \alpha + \beta   \\ \end{pmatrix} \in M_{n\times n}$$  EDIT:     I have to prove it is equal to $\frac{{\alpha}^{n+1} - {\beta}^{n+1}}{\alpha - \beta}$   Any help is appreciated, I just could not find a trick to ease it up! How to determine if a type implements a specific generic interface type Why isn't an upgrade to 20.04 from 18.04 available yet? I want to use do-release-upgrade to upgrade from 18.04 to 20.04, but I can't do that do-release-upgrade Checking for a new Ubuntu release There is no development version of an LTS available.  It seems that  is used, and it still points to 18.04. Do you know when (or how?) can I upgrade to 20.04? A short story about finding an inhabitable planet and meeting aliens So the story goes, humans in a spaceship search for an inhabitable planet, being surprised they found none in the vicinity of Earth. They find one, and it seems uninhabited. At the same time are observed by the aliens, who go down on the planet to meet them. The aliens sit them down and tell them a story about war and conflict that ruled the galaxy, and how all the sentient races in the galaxy got together and got rid of the race that tried to conquer all by blowing up their planets.  In the end you realise man is this terrible conqueror the aliens are talking about. How many maximum CPUs does Ubuntu support by default?