When trying to run Sudo-apt-get in terminal in Ubuntu 14.04 it asks for password. I do not remember any password. how to reset password/ solve this problem
I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?
Recovering lost text which was copy pasted from a website to MS Word Zero search results when searching for [tagOne] [or] [tagTwo] score:-2 I'm able to search for the newest questions tagged with [xcode] and [ios] and score >= -2.    But I see 0 results when searching for the newest questions tagged with [xcode] or [ios] and score >= -2. The client can do several actions per frame, for instance, requesting a movement, shooting etc. Should i send a packet to the server for each action the client performed during the frame, or should i stack them in an unique packet and send it at the end of the frame?  EDIT: i'm using Jmonkeyengine and the provided network API SpiderMonkey. Let I and J be ideals of a ring R. Show by example that the set of products {xy | x ∈ I, y ∈ J} need not be an ideal Let I and J be ideals of a ring R. Show by example that the set of products {xy | x ∈ I, y ∈ J} need not be an ideal, but that the set of finite sums of products of elements of I and J is an ideal. This ideal is called the product ideal, and is denoted by IJ.   I want to check if my work on the first part makes any sense. I am not sure if I am picking the right example.  If I let R = Z and I = (2) and J = (3) then I has multiples of 2, and J has multiples of 3  6 will divide the product IJ if we add 2 and 3 though we get 5 in IJ, but I am not sure if 5 Divides IJ. Libvirt: how to pass qemu command line args? I have the current libvirt 1.2.20 i want to pass to my machine create with virt-manager some qemu flags. I edited the file and add    &lt;/devices&gt;   &lt;qemu:commandline&gt;           &lt;qemu:arg value='-L pc-bios'/&gt;   &lt;/qemu:commandline&gt; &lt;/domain&gt;   But doesn't work i also tried to edit from virsh  virsh edit domain   and put   &lt;qemu:commandline&gt;           &lt;qemu:arg value='-L pc-bios'/&gt;   &lt;/qemu:commandline&gt;   But give me this error  errore: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng Element domain has extra content: qemu:commandline  Failed. Try again? [y,n,i,f,?]:    How to pass correctly qemu command line? Thanks Smart guides aren't smart TL:DR Smart guides aren't accurate - even though the snap, (end up causing more problems in the long run) is there a way to fix it?  Maybe there are some settings that I'm missing (need to be changed)    I use my smart guides all the time (and am overall pleased with them). I do have my issues with it, as explained here:  A lot of times, when I'm trying to make a bunch of triangles like this:    Done by making a triangle, cloning, flipping, rotating etc. Repeat until full  (Perfect) Snapping using Smart Guides    Ends up looking likebetween the triangles (Outline Mode)    Now I personally (with a strong attention to detail) will notice that there is something off after making just 1 or 2 triangles (Even before outline mode... strokes look oh so slightly thicker/off)   And then I check in outline mode... and sure enough:    Notice the line spaces (and this is in outline mode, so if I didn't notice it before, now it's sitting right in front of my nose)  The way I (seemingly) "fixed" the first image was by adding in a thick stroke outline so that masks out the difference, however, in a lot of my cases I don't want to have a stroke at all (and then you really notice the problems). I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it? I am looking for a closed form (ideally expressed as elementary functions) of the function $\exp_n(x) = \sum_{k=0}^n x^k / k!$.  I am already aware of expressing it in terms of the gamma function. Background / Motivation When counting combinations of objects with generating functions, it is useful to be able to express the partial sum $1 + x + \cdots + x^n$ as $\frac{1-x^{n+1}}{1-x}$. For example, to count the number of ways to pick 5 marbles from a bag of blue, red, and green marbles where we pick at most 3 blue marbles and at most 2 red marbles, we can consider the generating function $f(x) = (1+x+x^2+x^3)(1+x+x^2)(1+x+x^2+\cdots)$. By using the partial sum identity, we can express it as $f(x) = \left(\frac{1-x^4}{1-x}\right)\left(\frac{1-x^3}{1-x}\right)\left(\frac{1}{1-x}\right)$.  Simplify, express as simpler product of series, and find the coefficient of the $x^5$ term. I want to be able to do the same for a generating function in the form $g(x) = \exp_{n_1}(x)^{p_1} \exp_{n_2}(x)^{p_2} \cdots \exp_{n_j}(x)^{p_j}$ The easiest way to extract the coefficient of a given term $x^p / p!$ would be to use a similar closed form expression for $\exp_n(x)$ and a similar technique to $f$. Attempted Solutions Differential equation Recall that the way to prove the identity $1+x+x^2+\cdots+x^n = \frac{1-x^{n+1}}{1-x}$ is to define $S = 1 + x + x^2 + \cdots + x^n$ and notice that: $S - Sx = 1 - x^{n+1}$. Likewise, notice that $y(x) = \exp_n(x)$ satisfies $y - y' = x^n/n!$.  Via SAGE, the solution is $y(x) = \frac{c+\Gamma(n+1,x)}{n!}e^x$.  Our initial condition $y(0) = 0$ so $c=0$.  By , $\Gamma(n+1,x) = n! e^{-x} \exp_n(x)$ so we have $y(x) = \exp_n(x)$. Recurrence Relation Notice that $\exp_n(x) = \exp_{n-1}(x) + x^n/n!$. Using the unilateral Z-Transform and related properties, we find that $\mathcal{Z}[\exp_n(x)] = (z e^{x/z})/(z-1)$. Therefore, $\exp_n(x) = \mathcal{Z}^{-1}\left[(z e^{x/z})/(z-1)\right] = \frac{1}{2 \pi i} \oint_C z^n e^{x/z}/(z-1)\;dz$. $(z^n e^{x/z})/(z-1)$ has two singularities: $z = 1$ and $z = 0$.  The point $z = 1$ is a pole of order one with residue $e^x$.  To find the residue at $z = 0$ consider the product $z^n e^{x/z} (-1/(1-z)) = -z^n \left( \sum_{m=0}^\infty x^m z^{-m} / m! \right) \left( \sum_{j=0}^\infty x^j \right)$.  The coefficient of the $z^{-1}$ term is given when $n - m + j = -1$. The residue of the point $z=0$ is then $-\sum_{m,j} x^m / m! = -\sum_{m=n+1}^\infty x^m / m!$. Let $C$ by the positively oriented unit circle centered at the origin.  By Cauchy's Residue Theorem, $\frac{1}{2 \pi i} \oint_C z^n e^{x/z}/(z-1)\;dz = \frac{1}{2 \pi i} 2 \pi i \left(e^x - \sum_{m=n+1}^\infty x^m / m!\right) = \exp_n(x)$. Finite Calculus I've tried to evaluate the sum using finite calculus, but can't seem to make much progress. $(this) inside of AJAX success not working Trying to format USB (using Linux/fdisk) so it shows up on my Mac I have a USB drive that I can see/access/modify/etc in Linux/Ubuntu but it doesn't show up on my Mac OSX.  I did sudo fdisk /dev/sdb (where my USB is) and then g to create a new GPT partition table, n to make a new partition, used all default settings, then w to save and exit.  Then I did sudo mkfs.fat -F32 /dev/sdb1 to format the partition with a FAT32 filesystem.  I ejected the USB and put it in my Mac and it doesn't show up / get detected.  What did I miss? Teleporting a player from the overworld to the end Relativity Of Simultaneity Confusion Intuitive Bernoulli numbers Declaring Text Decorations such as Underline, Strikethrough in a Style How do I include text decorations such as Underline, Strikethrough etc in a Style definition:  &lt;Style x:Key="UnderlinedLabel"&gt;      &lt;Setter Property="Control.FontFamily" Value="Trebuchet MS" /&gt;      &lt;Setter Property="Control.FontSize" Value="14" /&gt;      &lt;!-- Next line fails --&gt;      &lt;Setter Property="Control.TextDecorations" Value="Underline" /&gt; &lt;/Style&gt;   I'm familiar with using the following XAML to underline text:  &lt;TextBlock&gt;    &lt;Underline&gt;        Underlined text    &lt;/Underline&gt; &lt;/TextBlock&gt;   However text decoration is just another style, I want to be able to define it declaritively like FontWeight, FontSize etc.  [Update]  I was applying this style to a Label control.  This was my main problem.  It appears you can't underline text in a Label.  Change to a TextBlock (thanks gix) and all is well. Is it possible to know the (public) IP address of a computer where TeamViewer is ready for a remote control session - without connecting to the computer? What to do when you discover a mistake in the archived copy of your PhD thesis? I've just defended my PhD in mathematics and started a postdoc. While working  on an improvement of one of the results of my thesis, I realized that there are several minor mistakes and a big bug in a proof that invalids a minor result in the thesis (about 3-4 pages out of 110). Unfortunately neither I nor my advisor or referees figured it out the mistake. Though the result is minor, it is announced in the introduction and the manuscript is on-line on an ArXiv-like server, so that I could publish a new version but not cancel the one on-line.   What is the best thing to do? Upload an errata? Upload a "revised" version of the thesis?  Publish a "revised version" of the thesis on my web-page?  Can this damage my future career, making me look not "reliable" as a researcher? Which story is true at end of the movie "Life of Pi"? At the end of the movie  Pi tells us two stories. One with the tiger (unrealistic) and one without the tiger (realistic).  I believe that he was metaphorically referring himself as the tiger who enters the forest (world) after being rescued.  Is my thinking correct? can you explain me the ending?  At the end did Irfan Khan (older Pi/narrator) say that "even God chose the first story"? Does it mean that the first story was indeed real? Why is there a B in my flair? This was originally noticed and fixed back around the beginning of July. As of August 1, this problem seems to have returned. New bug report is here:   I just happened to notice that my SO flair has some sort of a B icon right before my username (instead of the expected site icon) Snapshot of the unknown icon:    My current (live) flair for monitoring:  It currently showing up like this for all users on all sites, but not on Combined or Meta flairs. For example Jon Skeet flair on programmers:    Live flair: I have the following code: info = new System.Diagnostics.ProcessStartInfo(&quot;TheProgram.exe&quot;, String.Join(&quot; &quot;, args)); info.CreateNoWindow = true; info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; info.RedirectStandardOutput = true; info.UseShellExecute = false; System.Diagnostics.Process p = System.Diagnostics.Process.Start(info); p.WaitForExit(); Console.WriteLine(p.StandardOutput.ReadToEnd()); //need the StandardOutput contents  I know that the output from the process I am starting is around 7MB long. Running it in the Windows console works fine. Unfortunately programmatically this hangs indefinitely at WaitForExit. Note also this code does NOT hang for smaller outputs (like 3KB). Is it possible that the internal StandardOutput in ProcessStartInfo can't buffer 7MB? If so, what should I do instead? If not, what am I doing wrong? What are 'closures' in .NET? What is a closure? Do we have them in .NET?  If they do exist in .NET, could you please provide a code snippet (preferably in C#) explaining it?