Should you use is or are here:     I can't tell is you or Amanda is/are the best.   I know with you it would be are.  I know with Amanda it would be is.   And I know with a list of Amanda and Dave it would be is.  But I'm unsure in this particular situation, mixing 2nd and 3rd person.
Should I use 'was' or 'were' in this example?     I was always delighted when my brother or one of my sisters was/were asked to do them.
permission denied for root@localhost for ssh connection I just installed Ubuntu 14.04 and LAMP on that. Then, I wanted to configure my server, so tried out  tutorial.  When I give the command:  ssh root@localhost   I get : Permission denied, please try again. I have logged in as root user through the command :  sudo -i   I also tried the same, by logging in through:  sudo -s   I use the same password as that I used to log in as user, but still am getting the same error message.  Could someone help me out here?  PS: I looked into  but didn't seem to work for me. Review of a proof for De Moivre's theorem using mathematical induction The following is a rigorous proof of De Moivre's theorem by means of mathematical induction. The theorem put simply is that:  Any complex number, $z = a+bi$, on a cartesian plane can be expressed in polar form, where $a=r\cos\theta$ and $b=r\sin\theta$ and $r$ is the absolute distance from the origin to the point $z$. In light of this, the expression for the complex number $z$ in polar form is $z=r(\cos\theta+i\sin\theta)$ In order to find the $n^{th}$ power of $z$, the following rule applies: $$\displaystyle z^n=(r(\cos\theta+i\sin\theta))^n=r^n(\cos n\theta+i\sin n\theta)$$ where $n\in\mathbb N$ (I have confined $n$ to the natural numbers given that I intend on using mathematical induction to prove the theorem.  Base step: We must prove that what is stated is true for $n=1$, hence $$z^1=r^1(\cos 1\cdot\theta+i\sin1\cdot \theta)$$ $$=r(\cos\theta+i\sin\theta)$$ which is true. Next we assume it is true for $n=k$, and therefore proceed to the inductive step. Inductive step: When calculating $z^{n+1}$, it's the same as calculating $z^nz$, hence $$z^{n+1}=(r^n(\cos n\theta + i\sin n\theta))(r(\cos \theta+i\sin \theta))$$ $$=r^nr(\cos n\theta+i\sin n\theta)(\cos\theta +i\sin \theta)$$ $$=r^{n+1}(\cos n\theta\cdot\cos\theta+\cos n\theta \cdot i\sin\theta+i\sin n\theta\cdot\cos\theta+i^2\sin n\theta\cdot\sin\theta)$$ from here, $i^2=-1$, and therefore $+i^2\sin n\theta\cdot\sin\theta$ becomes $-\sin n\theta\cdot\sin\theta$. In addition to this, the following trigonometric identities will be used: $$\sin(n\theta + \theta) = \sin n\theta\cdot\cos\theta+\cos n\theta\cdot\sin\theta$$ $$or$$ $$k\sin(n \theta+\theta)=k\sin n \theta\cdot\cos \theta + \cos n\theta\cdot k\sin\theta$$ $$and$$ $$\cos(n \theta + \theta)=\cos n\theta\cdot\cos\theta-\sin n\theta\cdot\sin\theta$$ by using these, the original equation has now become $$=r^{n+1}(\cos(n \theta + \theta) + i\sin(n \theta + \theta))$$ then, after factoring out $\theta$, the theorem becomes $$=r^{n+1}(\cos((n+1)\theta)+i\sin((n+1)\theta))$$ which completes the proof. Question: is this proof correct all the way through? Or have I missed any conditions? If all is well in the case of this proof, could somebody aid me in proving it for $\{n|n\in\mathbb R,n\geq1\}$ Substitute for onions and garlic I'm trying to figure out a good workflow for developing scripts and add-ons in Blender. Here's what I'm currently doing as I try my luck with a PyNode add-on:   Open blender Create a text editor panel Open my script (external text file) Edit my script in a nice external editor Reload the script Save the .blend file Run the script   Now that I can see what my code does, this Blender instance has been modified, so I can't (make changes to my script and) run my script again. So I do this:   Close blender Open blender with the .blend from step 6 and repeat steps 4-7, over and over and over..   Is there a better workflow for this sort of thing? Conditional page breaking I have used LaTeX on and off for a number of years now for several large documents with evolving versions over long lifetimes. But every time it seems like, powerful and wonderful as LaTeX is, there arise cases where I want to tweak the pagination in ways that are impossible without using the \newpage or \clearpage sledgehammer.  The macro I think I want is something like  \ifnotremaining{&lt;length&gt;}{&lt;cmd&gt;}   that is, if less than  space remains on the page then perform . For example:  \ifnotremaining{5cm}{\newpage}   Note that &lt;length&gt; need not be perfect–if a little too big no problem, or a little small (perhaps because the "protected" text got bigger) then you just increase it a bit. FWIW, I am usually happy with \raggedbottom.  An alternative might be a \disablepagebreak and \enablepagebreak pair which could be used to forbid a page break in the given range of text. (This capability cannot be formulated as an environment because it cannot always nest wrt other environemnts.)  Is there something I have overlooked that can fill this need? Dynamically reformatting man pages on terminal dimension changes One common workflow of mine is to open a manual page in a terminal, then another terminal in which to test things. The man page is formatted to the initial dimensions of the first terminal. When I now resize my windows (or have my WM do that for me automatically), there is either a gap to the right of the preformatted page, or lines wrap. At this point I usually q(uit) and !! (run again), which loses my position in the page.  I assume the formatting process is quite CPU intensive, or maybe it stems from ancient times of fixed terminal sizes. The less pager dynamically reacts to terminal resize events, so it should be possible in theory.  I tried perusing man pages, searching the Web, asking on IRC -- the whole lot -- but couldn't come up with anything.   Can I trigger reformatting from within or outside of the man utility? Is there a version of the man utility that resizes the page dynamically?  Is there way to customize some part of the formatting/display process to make it update on SIGWINCH? How do you detect Credit card type based on number? I'm trying to figure out how to detect the type of credit card based purely on its number. Does anyone know of a definitive, reliable way to find this? The question is pretty straight forward. I can get the exit code of the previous command by using $?. But what exactly is it?  I don't think it is a variable, because you can't have any special characters in the name of variable other than _.  foo?foo=10   will result in the error: foo?foo=10: command not found  So if it is not a variable, what is it? Are there others like it? collapse vs minimize Understanding Dirac's notation Expected value of $|X - Y|$ Let $X \sim U(0, 1)$ and $Y \sim U(0, 2)$ be independent random variables. What's the expected value of $|X - Y|$? I found $f_{X}(x) = 1$ and $f_{Y} = \frac{1}{2}$ so that $f_{XY}(x, y) = \frac{1}{2}$ and $$\mathbb{E}[|x - y|] = \int_{0}^{1} \int_{0}^{2} \frac{|x - y|}{2} \mathop{dy} \mathop{dx},$$ but how can I compute this quantity? It looks tricky. I know the trick where you split the integral in the one-dimensional case, but I'm having trouble getting it in the two-dimensional case. Does it make a difference to CP if you feed candies before or after evolving? When activating the evolution for a caught Pokemon, it seems to amplify the Combat Power (CP). Thus it seems most beneficial to evolve your Pokemon with the highest CP, if you have multiple of the same kind.   But what I am not sure about is whether it makes an efficiency difference if you spend candies and dust to boost CP before evolving, to gain more from the amplification? Or is it more efficient to just evolve without spending, and then using the leftover candies afterwards, since they now give a bigger CP boost per candy?   I only tested with a Rattata so far, which gained +8 CP per candy before evolving, and +15 CP afterwards. I collected no numbers on the amplification efficiency though, and now ran out of materials for further testing.  Or maybe it is a balanced calculation and makes no difference at all? I would love to have some insight on that.    Some data I collected thus far: (GPC = CP gain per candy)  79 CP Weedle (GPC 6) evolved to: 84 CP Kakuna (GPC 6), evolved at 90 CP to: 297 CP Beedrill    Note: The max-CP "half circle" in the profile stayed filled roughly at the same relative position throughout the evolutions. I have been stuck for several days on this old Analysis problem (I am doing some study on my own).  I have tried several things (which I'll indicate below), but I cannot seem to figure it out.  Here is how the problem is presented: Problem: &quot;Let $f$ be a continuous real-valued function on $[a,b]$.  Suppose there exists a constant $M \geq 0 $ such that $$|f(x)| \leq M \int_a^x |f(t)| dt$$ for all $x \in [a,b]$.  Show that $f(x)=0$ for all $x \in [a,b]$.&quot; My Thoughts: I have tried using the mean value theorem iteratively, but that seems to always lead me down a dead end road.  I deduced that $f(a)=0$.  If only $f$ were assumed to be differentiable, then maybe I could play with trying to get the derivative to be $0$, but unfortunately it's only continuous.  My other thought was to (somehow) use the condition to show that $\int_a^b |f(x)| dx = 0$.  I also played around a bit with contradiction, but to no avail.  Even if one of these hair-brained thoughts is correct, I am not really sure what to do next. If you have any ideas, suggestions, or solutions, I would really appreciate it if you are willing to share them.  Thank you for your time. I get the following error in my log files every time I try to upload a large file.  a client request body is buffered to a temporary file /var/lib/nginx/body/0000000001   Although the file uploads successfully, I always get the above error.  I increased the client_body_buffer_size to 1000m which is what I expect the largest file uploaded to be. However, this is was just a guess and although I don't get that error anymore I am wondering if this is an appropriate value to set for the client_body_buffer_size?  I would appreciate it if anyone can shed some light on this directive and how it should be used. Fell for fake sugar daddy. How do I get out? I fell on hard times and for the first time I attempted to get a sugar daddy. He asked for my bank account login info and reluctantly I gave it to him even though I knew I shouldn't have. Short story, I figured out he's fake and called him out on it after he made a couple of mobile deposits. Every time he made a mobile deposit he would go in there and take a third of the money he deposited. I also noticed he somehow used an old check I deposited and changed it and used it again. I got him to admit he wasn't who he claimed to be and I changed my login info. He claimed he could still see how much money was in my account and sent me a screenshot of how much money was in the account with the amount and &quot;Chase checking&quot; before it. That was the only information in the screenshot. He also threatened to get me in trouble with the law if I didn't send him more money. I changed my login info again just in case but I could really use some advice on what should I do next. Accused of cheating on online exams UTF8 to/from wide char conversion in STL Is it possible to convert UTF8 string in a std::string to std::wstring and vice versa in a platform independent manner? In a Windows application I would use MultiByteToWideChar and WideCharToMultiByte. However, the code is compiled for multiple OSes and I'm limited to standard C++ library. How does the "tail" command's "-f" parameter work? $ tail -f testfile   the command is supposed to show the latest entries in the specified file, in real-time right? But that's not happening. Please correct me, if what I intend it to do is wrong...  I created a new file "aaa" and added a line of text and closed it. then issued this command (first line):  $ tail -f aaa xxx xxa axx   the last three lines are the contents of the file aaa. Now that the command is still running (since I used -f), I opened the file aaa via the GUI and started adding a few more lines manually. But the terminal doesn't show the new lines added in the file.  What's wrong here? The tail -f command only shows new entries if they are written by system only? (like log files etc) On Ubuntu 18.04, I have connected my laptop to an external display and I am able to set the external display as primary and external display only mode. But when I turn on my laptop or log out from my session the display login screen is displayed only on my(internal) laptop screen. But once I login the display switches to external only and my laptop screen turns off as expected. Is there a way I can make the login screen appear only on the external screen on bootup or on logout as in 16.04? Also the login screen does not follow my cursor as in 16.04. Change \textwidth and \textheight in mid-document