Manipulate DOM elements before adding them to the document
jQuery: Selecting and manipulating html elements outside the DOM
I am trying to calculate the sum of this infinite series after having read the series chapter of my textbook: $$\sum_{n=1}^{\infty}\frac{1}{4n^2-1}$$  my steps:   $$\sum_{n=1}^{\infty}\frac{1}{4n^2-1}=\sum_{n=1}^{\infty}\frac{2}{4n^2-1}-\sum_{n=1}^{\infty}\frac{1}{4n^2-1}=..help..=sum$$  I am lacking some important properties, I feel I am coming to the right step and cannot spit that out.. How to avoid using sudo when working in /var/www? I am trying to find a story where a children's nursery turns into a jungle I read this short story(I believe it was under novella length, but I could be mistaken) a while back, and I am trying to identify the title for a friend.   Plot:      Parents(male and female) get a computer aided/holographic nursery for their children. The mother becomes increasingly agitated as the children withdraw more. The children are barely even featured in the story, and the ending concludes with lions possibly eating the parents.   Publishing date: Years ago.   Tech level: Seemingly functional AI, not much more. Does a constantly accelerating charged particle emit EM radiation or not? The  gives the recoil force, $\mathbf{F_{rad}}$, back on a charged particle $q$ when it emits electromagnetic radiation. It is given by:  $$\mathbf{F_{rad}} = \frac{q^2}{6\pi \epsilon_0 c^3}\mathbf{\dot{a}},$$  where $\mathbf{\dot{a}}$ is the rate of change of acceleration.  If a particle has a constant acceleration, $\mathbf{\dot{a}}=0$, then there is no reaction force acting on it. Therefore the particle does not lose energy.   Does this mean that a constantly accelerating charged particle does not emit electromagnetic radiation? I have a time series that shows a nonstationary seasonal autoregressive component as well as known heteroshedasticity. In order to model the series, I have fit a seasonal ARIMA model for the mean with the auto.arima model in the forecast package in R and a GARCH model on the residuals of the ARIMA model.   Is the procedure of sequentially estimating ARIMA and GARCH model correct or would it have been better to jointly model the mean and the variance of the series? If this were correct, is there a (possibly R) function to do it? Actually snapping to pixel grid Does anyone know if there's a way to have Illustrator CC (2014) constrain control points to the pixel grid? I understand that "Align to pixel grid" makes it so that a shape will try to match the pixel grid, but the actual control points don't line up to said grid... The image I've attached illustrates my problem. How do I help my third-grader focus on homework? My child just entered third grade, and the homework load is much higher this year, with a lot of writing and math drills. It is all work that she can do easily, but it's causing the whole family a lot of pain, because she's have a really hard time just sitting down and doing it — asking many questions about things she clearly actually knows, and getting distracted by the smallest thing going on around her. (Setting up a special quiet area isn't helping, because the distractions could be her pencil or a sudden burst of word association based on something in the lesson.)  So, a page of writing and a couple of pages of math which could be done in fifteen minutes total is taking an hour and a half. She can easily explain the reasoning behind the math problems, but when it comes to writing down what she just said, it's like pulling teeth. She'll slowly write a word, sounding it out in slow motion as she writes each word. And she'll say that she doesn't understand a question, but when she actually gets her mind pointed at it, she can write a great answer. And she's clearly picking up the concepts in class; I have no doubt that she actually understands, which is part of our frustration.  My wife feels like she's just wanting attention, but I think it's more about our daughter's own ability to focus. We both feel that sitting down and working painfully through each question isn't really helping her. That works, but my wife feels like it's just rewarding the behavior, and I feel like it's not really helping her learn any better focus on her own, which, you know, she'll need in actual life. And, we're happy to spend child with our kid, this pretty much the opposite of quality time.  Neither rewards or consequences seem to have any effect, and nor do charts. All of those things basically just seem to add another layer of complication, distraction, and misery. What else can we do? MySQL replication of single DB to same server Why is quantum entanglement considered to be an active link between particles? From everything I've read about quantum mechanics and quantum entanglement phenomena, it's not obvious to me why quantum entanglement is considered to be an active link. That is, it's stated every time that measurement of one particle affects the other.  In my head, there is a less magic explanation: the entangling measurement affects both particles in a way which makes their states identical, though unknown. In this case measuring one particle will reveal information about state of the other, but without a magical instant modification of remote entangled particle.  Obviously, I'm not the only one who had this idea. What are the problems associated with this view, and why is the magic view preferred? Guests see the Protected notice , somewhat displaced:    Logged in, all is fine:    It actually belongs there, at the bottom, but then it has some design glitches, or it needs to be placed at the top.  Verified on Firefox and Chrome stable. Reference request: convergence for periodic Markov chains Consider an irreducible but possibly periodic Markov chain on a finite state space with transition matrix $P$. We know there exists a unique stationary distribution $\pi$. If the Markov chain were aperiodic, we would have $P^n_{ij} \to \pi(j)$ as $n \to \infty$. This fails if the chain is periodic, but we have convergence of the Cesaro averages: $$\frac{1}{n}\sum_{k=1}^n P^k_{ij} \to \pi(j) \text{ as } n \to \infty.$$ Can anyone point me to a reference that states this fact? Every reference I've seen only considers convergence for aperiodic chains, or "fixes" periodicity by considering a lazy version of the chain. Alternatively, is there a simple way to obtain this result using the result for aperiodic chains? In Age of Ultron, Thor seems to know something he possibly shouldn't? Sorry for the cryptic title, but I realise the film has only just been released in the UK and Europe and is yet to be released in the US.  I'll hide all substantial parts of my question, just in case. I don't want to spoil anything.     At the end of Age of Ultron, Thor states that 4 infinity stones have now shown up in the last few years.   So,     By my count we have the Tesseract, from several of the first few films. The Aether, from Thor 2. The Chitauri Scepter, again from several films. And finally, we have The Orb, from Guardians.    Now, to my knowledge     Thor, and indeed none of the Avengers, should know about The Orb. I don't remember Thor visiting the Collector between GoTG and the AoU. So, how did Thor know that The Orb had appeared? Or is he referencing a different infinity stone?   I'm looking for an in universe answer, ideally. I want to implement an addition key layer, so that I can access non-alphanumeric keys without having to move my wrists.  I've been using Autokey for this purpose, but the experience was unsatisfactory: it had occasional lags and let original keystrokes slip into certain apps.  So I need a low-level solution. How does the 2009 Star Trek film mesh with Enterprise canon? All of the events in the 2009 Star Trek movie would have taken place after the adventures of Captain Johnathan Archer and company.  So, unless J.J. Abrams and friends decide to completely hand-wave that bit of history as well, all of the events in Enterprise should (in theory) still be able to line up with this new timeline.  Are there any points of conflict in this?  How about any time-travel episodes in the Enterprise series which may have happened differently after the interventions of Nero?  Are there possible good explanations for such conflicts, or are there some which are irreconcilable?  NOTE:  I'm not arguing here whether or not ST2k9 is a part of Star Trek canon.  In fact, this question is specifically granting that it is.  I just want to know if there's any conflicts between the new movie and the existing Star Trek history that remains applicable to it. Is time continuous or discrete? I was coding a physics simulation, and noticed that I was using discrete time. That is, there was an update mechanism advancing the simulation for a fixed amount of time repeatedly, emulating a changing system.  I though that was interesting, and now believe the real world must behave just like my program does. It is actually advancing forward in tiny but discrete time intervals? apt-get build-dep is unable to find a source package I have already followed  to disable middle mouse button paste on my Ubuntu 12.04.   Works like a charm.   Now I am trying to achieve the same on my Linux Mint 17. When I try to  sudo apt-get build-dep libgtk2.0-0   it gives me the following output:   Reading package lists... Done Building dependency tree        Reading state information... Done Picking 'gtk+2.0' as source package instead of 'libgtk2.0-0' E: Unable to find a source package for gtk+2.0   For me it looks like apt-get is somehow "resolving" 'libgtk2.0-0' to 'gtk+2.0', but then does not find any package named like that.   EDIT:  although I am now able to compile the program (see my answer), I still do not know what  Picking 'gtk+2.0' as source package instead of 'libgtk2.0-0' is supposed to mean. Any insight on this would be appreciated, thanks! Help with this trigonometry problem Prove the given identity.  $$\left(\sin\frac {9\pi}{70}+ \sin\frac {29\pi}{70} - \sin\frac {31\pi}{70}\right) \left(\sin\frac {\pi}{70}-\sin\frac {11\pi}{70} - \sin\frac {19\pi}{70}\right) =\frac {\sqrt {5} -4}{4}$$  Please help, I could not gather enough ideas, even on how to get to the first step. I thought of using the transformation formula (from sum to product) but did not find a fruitful result.   UPDATE 1.:  $\left(-\frac{1 +\sqrt{5}}{8} + \frac{1}{8} \sqrt{14\left(5 - \sqrt{5} \right)}\right)\left(-\frac{ 1+ \sqrt{5}}{8} -\frac{1}{8} \sqrt{14 \left(5 -\sqrt{5} \right)}\right) $,    I noticed that Alexis had got to this point.  Can anyone explain me how did he get here, with calculations. Please help.  Thanks in Advance. I needed to change the SID of an Oracle XE database (not the Service Name) to match a production database.  When I tried searching online, most of the pages were describing changing or adding a service name through tnsnames.ora; that's not what I needed to do. How can Linux/Ubuntu be installed safely on ChromeBook? Is installing Ubuntu on my Chromebook potentially dangerous to anything on my Chromebook? I got it as a gift, so I don't want to destroy anything that is important on the laptop. Also, which is better for being able to safely install Ubuntu: ChrUbuntu or Crouton? I'm using the Samsung Chromebook 3 (as described by the quick-start manual). Does that make any other differences as well? Dropout: scaling the activation versus inverting the dropout When applying dropout in artificial neural networks, one needs to compensate for the fact that at training time a portion of the neurons were deactivated. To do so, there exist two common strategies:   scaling the activation at test time inverting the dropout during the training phase   The two strategies are summarized in the  below, taken from .  Which strategy is preferable, and why?    Scaling the activation at test time:    Inverting the dropout during the training phase: