Unable to install apps on Trusty Tahr
How do I resolve unmet dependencies after adding a PPA?
mysql_fetch_array does not retrieve all rows Ordeal of Heliod and changing creature control Here is the situation that came up:  Player 1 controls a creature enchanted with  and two +1/+1 counters. On Player 2's turn, they cast  to take control of the creature, and then attack with it. The attack triggers the Ordeal, putting another +1/+1 counter on it. Now that it has three counters, it is sacrificed and a player gains 10 life.  Which player sacrifices the enchantment and gains 10 life? The controller of the creature (Player 2) or the player who cast the enchantment (Player 1)? Where is the Ubuntu file system root directory in Windows Subsystem for Linux and vice versa? Is this study stating red algae reduces cold virus by 92% believable? I was using this spray meant to hasten recovery from the common cold. , sponsored by the pharmaceutical company that produces the spray, stated it reduced virus by 92%, and so shortens the duration of the common cold.  Meanwhile a doctor told me that these kinds of things don't work.  Does someone have some perspective on this? Is this a believable study? Was it well designed, and has it been duplicated?   If so, why wouldn't the pharmaceutical produced a certified and expensive drug instead of a no-prescription drug? Listings: text highlighting based on prefix How can I apply different styles to keywords depending on their prefix?  Here is some sample code:  (-2,0,0) (2,1,1) op-registerbox !box1 ;box1 /Blue op-setproperties   I'd like to typeset   words starting with ! and ; in color red, words starting with / in color green, words starting with cp- in bold.   So far, this is what I've got:  \lstdefinelanguage{XX} { basicstyle=\small\sffamily\fontseries{c}, emphstyle=\underbar, keywordsprefix=[2]{/}, alsoletter={/}, keywordstyle=\textbf, keywordstyle=[2]\color{green}, morekeywords={op,registerbox, ...}, morestring=[b][\color{green}]", columns=flexible, escapechar=\%, numbersep=6pt, numberstyle=\scriptsize }   I'm aware that only one keywordsprefix can be defined at the moment: specifying more than one class of prefix (keywordsprefix=[2]{/}) is currently not supported. I'd like to avoid having to list all the words that match my description into morekeywords. Is that possible? How? How much longer will my 10 year old frame last? Which package to use for presentations? Beamer, Prosper, or Other What's the best way to build a string of delimited items in Java? While working in a Java app, I recently needed to assemble a comma-delimited list of values to pass to another web service without knowing how many elements there would be in advance. The best I could come up with off the top of my head was something like this:  public String appendWithDelimiter( String original, String addition, String delimiter ) {     if ( original.equals( "" ) ) {         return addition;     } else {         return original + delimiter + addition;     } }  String parameterString = ""; if ( condition ) parameterString = appendWithDelimiter( parameterString, "elementName", "," ); if ( anotherCondition ) parameterString = appendWithDelimiter( parameterString, "anotherElementName", "," );   I realize this isn't particularly efficient, since there are strings being created all over the place, but I was going for clarity more than optimization.  In Ruby, I can do something like this instead, which feels much more elegant:  parameterArray = []; parameterArray &lt;&lt; "elementName" if condition; parameterArray &lt;&lt; "anotherElementName" if anotherCondition; parameterString = parameterArray.join(",");   But since Java lacks a join command, I couldn't figure out anything equivalent.  So, what's the best way to do this in Java? Compute $\int\limits_{-\infty}^{\infty}\frac{1}{(1+x^2)^{n+1}}dx$ via residue calculus. Let $\Gamma_R$ be the semicircle of radius $R$ in the upper half plane. Then,  \begin{align} \int\limits_{-\infty}^{\infty}\frac{1}{(1+x^2)^{n+1}}dx  &amp;= \lim_{R\to \infty}\int_{\Gamma_R}\frac{1}{(1+z^2)^{n+1}}dz \\ &amp;= 2\pi i \operatorname{Res}\left(\frac{1}{(1+z^2)^{n+1}},i\right) \end{align} The pole of the function at $i$ is of order $n+1$, so the residue is computed by \begin{align} \operatorname{Res}\left(\frac{1}{(1+z^2)^{n+1}},i\right) &amp;= \frac{1}{n!}\lim_{z\to i}\frac{d^n}{dz^n}\left(\frac{1}{(z+i)^{n+1}}\right) \\ &amp;= \frac{1}{n!}\lim_{z\to i}(-1)^n\frac{(n+1)(n+2)\cdots(2n+1)}{(z+i)^{2n+1}} \\ &amp;=\frac{(2n+1)!}{i2^{2n+1}(n!)^2} \end{align} Hence, $$\int_{-\infty}^{\infty}\frac{1}{(1+x^2)^{n+1}}dx = \pi\frac{(2n+1)!}{2^{2n}(n!)^2}$$ The answer provided is $\frac{1\cdot 3\cdot 5\cdots(2n-1)}{2\cdot 4\cdot 6\cdots (2n)}\pi$. How do I manipulate my answer to obtain this answer? Function $f(z)$ such that $|f(z)| > |z|$ for every $z\in\mathbb{C}, 1/f(z)$ $f(z)$ is a function such that $|f(z)| &gt; |z|$ for all $z\in\mathbb{C}$  How would you prove the function $\frac{1}{f(z)}$ is bounded. I think you have to use the $|f(z)|\leq M$ but I'm not sure. I can't create an onCheckedChanged listener for my RadioGroup Why do neural networks need so many training examples to perform? A human child at age 2 needs around 5 instances of a car to be able to identify it with reasonable accuracy regardless of color, make, etc. When my son was 2, he was able to identify trams and trains, even though he had seen just a few. Since he was usually confusing one with each other, apparently his neural network was not trained enough, but still.  What is it that artificial neural networks are missing that prevent them from being able to learn way quicker? Is transfer learning an answer? Which English dialects have 2nd person plural? "Y'all" is the famous southern US form of the 2nd person plural.  The Brooklyn / Italian-American "youse" might be another.  While the existence and usage of "y'all" has been addressed somewhat thoroughly here:  , I've found nothing else on EL&amp;U regarding 2nd person plural forms in other English dialects.  I know there was a dual form in Old English () does that survive in any of the dialects in the Danelaw?  Do Scots / Gaelic / Welsh / Australian / other dialects retain any type of 2nd person plural / dual in modern usage? How to use JACK and Pulseaudio/ALSA at the same time on the same audio device? Whenever I launch hydrogen it breaks my audio in all other applications which use Pulse, for example, I can no longer play videos in Chrome after having launched Hydrogen once, until I restart my PC or do sudo alsa force-reload. I have found people with similar issues, but no actual guide to fix this, often there are links to  (which has moved to  ) I am using Ubuntu Studio 14.04 64bit.  ALTERNATIVELY if this is truly impossible to achieve, can someone tell me how to use Jack on one soundcard and Pulse on another? This way I could plug in a USB sound card only when I need JACK.  Please don't make me use windows. 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? Can you be sued for using publicly used images on a blog without copyright permission? Lets say I write a blog post about the new Batman movie or a the new Grand Theft Auto game and i decide to use the boxart/poster or a wallpaper as the main image for the blog post,  can I be sued for breach of copyright on this image?  Im pretty sure Warner Bros are going to be hunting anyone down even if it is legal, but is this actually legal? If i buy the DVD or Game and take a picture of it, is this my copyright? When a trailer gets released and put on youTube, can i take a screenshot of this video and use this as an image?  It seems people can get rightly screwed for this, so I would like to know where i stand on this sort of thing. Interpretation of interaction term So I've been trying to create a mathematical model for an electric motorcycle and began to wonder about the maximum possible torque that could be supplied to the rear driven wheel without having the bike begin to lift up on one wheel.  I found ways to calculate this value online; however, the basic concept as to how the bike actually lifts escapes me.    My problem started when I began to think about what axis the bike will rotate about when it is doing the wheelie.  My first intuition was that the frame and front wheel, together, rotate about the rear axle.  But when I drew a free body diagram of the frame/front wheel system just at liftoff (see below) I made note that the only forces acting about the rear axle, point O, is the force of weight.  This means that an increase in applied torque and subsequently, the applied force Fa, should not effect the rotation about the rear axle.  I know that the applied force on the back wheel is indeed correlated with the propensity for a bike to wheelie, so I considered that the axis of rotation I was choosing was wrong.  If we take the free body diagram above and sum the moments about the center of mass, we would find that an increased applied force would in fact cause the solid body to rotate.  The problem with this understanding is that during rotation, the center of mass of the drawn system should actually rises relative to the surface the bike is moving across.  If the bike were to be truly rotating about its center of mass, then the back wheel would begin to dip below the surface of the road like you might see in a glitchy video game.    So I suspect that the bike is in fact rotating about the back axle, but I don't understand why, please help!  edit: I added the external torque from the back wheel to the frame, which would allow the bike to rotate about the back axle  edit 2:  I suppose that the torque acting on the frame via the engine should not effect the rotation as the movement of a motorcycle can be perfectly replicated by applying a force at the back axle.  A third possible axis of rotation might be the lowest point of the back wheel. How do I pre-populate a jQuery Datepicker textbox with today's date? Difference between "speed up something" and "speed something up" Both seem to be in common usage, but is there a nuanced difference about when one is more appropriate than the other? Thanks.