I would have thought this is fairly classic, but I haven't found an answer.  I have a form which links to a MySQL (actually MariaDB) database table, contacts. Part of the jQuery.ready() function populates, by AJAX, a drop-down list (i.e. &lt;select id="drop_box" /&gt; for example) with options, which are all the surnames + first names in the contacts table, with value = ID field from the record. Just to clarify, the injected code contains &lt;select&gt; as well as all the options.  Then when the user clicks on/selects one of these names I want the value (ID field) of the option to be sent to a JS/jQuery function, perhaps defined in the &lt;head&gt; tags. The idea would then be another AJAX call to fill various other boxes and tables and things on the page with all the other details plucked from the contacts table.  But how to get either   an existing $("#drop_box").change() function to "see" and respond to events in the injected &lt;select&gt; objet or if injecting the change() functionality, how to get the latter to call an existing function on the page.   It strikes me as bad practice to inject all the response code as a return AJAX call, and anyway I'd just like to know how injected JS code can be made to interact with JS code already on the page.
I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
Stop sound from speakers when connecting headphones I guess this question already had the answer here but I can't find it. I'm using 12.04.  Update:  The problem is that I can hear the sound from my laptop's speakers even if I plugged in my headphones. Headphones is just standard stereo headphones. And the most interesting thing is  that all was working just a week ago.  I tried to play with pulseaudio and alsamixer settings - no results. Need to schedule a job every hour in jenkins I'm New to Jenkins. I have a job which i need to schedule every 1 hour.  I am using   * */1 * * *    but it is not working effectively.  Please provide any other solution. Consider a system of the two identical positive point charges situated in free space (isolated from the influence of any other external fields) as shown in the attached diagram. Particle $1$ is at $(a,a,0)$ and particle $2$ is at $(0,a,0)$. Their velocities, at the considered instant of time, are as shown in the diagram ($\mathbf{v}_1$ along the $+x$ axis, $\mathbf{v}_2$ along the $+z$ axis).    Now, by applying the Biot-Savart law, we find that the magnetic field due to particle $2$ at the position of particle $1$ is along $+y$ axis, which means that the force acting on particle $1$ is along $+z$ axis according to Fleming’s left-hand rule. A similar analysis shows that there is no magnetic force on particle $2$ as the magnetic field of particle $1$ should vanish at positions (relative to particle $1$) located along its velocity vector.  Now, if we observe the net torque on the system of two particles about the $y$ axis then it is non-zero and is directed along the $-y$ axis. Here, there are no external forces or torques acting on the isolated two-particle system, and yet the net torque, as well as the net force on the particles, are nonzero. Why? Also, Newton's third law of motion seems to be broken in this scenario. Why?    Edit $1$  I have come to know from the responses that the electromagnetic field itself takes away some momentum and angular momentum about the considered axis. However, I think that if I consider only two charged particles as my system then the Abraham-Lorentz force can be assumed to be acting upon the system, and that is sufficient to make sure that we have considered the momentum being carried away by the electromagnetic field itself.   Even after considering the action of the Abraham-Lorentz force for the two-particle system, the scenario breaks both Newton's third law and the conservation of linear and angular momentum. This is because the Abraham Lorentz forces do not exactly counterbalance the force and the torques, on the two-particle system under consideration, due to the magnetic field.    Edit $2$  The previous edit was a result of confusion and misunderstanding on my part. The force associated with the momentum carried away by the electromagnetic field as a result of the electromagnetic interaction described in the question is the Lorentz force itself which simply doesn't obey the third law of motion. The Abraham-Lorentz force is a different story. It is associated with the momentum carried away by the radiation emitted by the accelerated charged particles. This is an additional force apart from the Lorentz force and corresponds to an additional carriage of momentum by the electromagnetic field. The momentum carried away by the electromagnetic field in correspondence with the Lorentz force doesn't correspond to radiation. Is the universe fundamentally deterministic? How does one prove that if $n \mid (a^{n}-b^{n}) \ \Longrightarrow$ $ \displaystyle n \mid \frac{a^{n}-b^{n}}{a-b}$ where $a,b, n \in \mathbb{N}$.  What i thought of is to consider $$(a-b)^{n} \equiv a^{n} + (-1)^{n}b^{n} \ (\text{mod} \ n)$$ and if we suppose that $n$ is odd then we have, $$(a-b)^{n} \equiv a^{n} -b^{n} \ (\text{mod} \ n)$$ and since $n \mid (a^{n} - b^{n})$ we have $$(a-b)^{n} \equiv 0 \ (\text{mod} \ n) $$  I think i am far away from the conclusion of the problem, but this is what i could work on regarding the problem. How to create a soft or symbolic link? Show that $\lim\limits_{a \to 0^+} \int^1_0 ax^{a−1}f(x)dx=f(0)$. Suppose $f$ is Riemann integrable on $[0,1]$ and continuous at 0. Show that $$\lim\limits_{a \to 0^+} \int^1_0 ax^{a−1}f(x)dx=f(0).$$   Can anyone share some insight on this one? I have no idea where to begin. Maybe a substitution? I would like to set up memoir so that when I use \footnote{foo}, foo is displayed in the margin with the proper label and preferably break over pages.  There is an option \footnotesinmargin which gives almost exactly what I need, only justified. I want it to use ragged2e and change alignment based on even/odd page so that the margin note is always flushed towards the main text area and allows hyphenation on the side of the edge.  \documentclass[12pt, draft]{memoir} \footnotesinmargin \usepackage{polyglossia} \setmainlanguage{english} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont[Ligatures=TeX,Numbers=OldStyle]{Minion Pro} \usepackage{kantlipsum}  \begin{document} \kant[1]\footnote{\kant[1]} \kant[2]\footnote{\kant[2]} \kant[3-5] \end{document}   Possible partial work-around  I have remembered a nice thesis based upon the Classic thesis template and found the  which indeed contains a possible solution:  \usepackage{marginnote} \usepackage{ragged2e} \newcommand{\sidemark}[1]{#1.{\:}}  \newcommand{\marginelement}[2][0]{%   \marginnote{%     \strictpagechecktrue     \checkoddpage     \ifoddpage%       \RaggedRight\footnotesize%     \else%       \RaggedLeft\footnotesize%     \fi%     #2%   }[#1\onelineskip]% }%  \newcommand{\sidenote}[2][0]{%   \footnotemark%   \ignorespaces%   \marginelement[#1]{%     \sidemark{\thefootnote}%     \ignorespaces#2%   }%   \unskip% }%   Nevertheless, I would still prefer a memoir-specific solution with the re-definition of footnotes when used with the option \footnotesinmargin mainly for the sake of portability. This work-around also does not work with hyperref (there is no hypertext connection) and does not break over pages automatically. How to solve this equation $x^{2}=2^{x}$? How to solve this equation $$x^{2}=2^{x}$$   where $x \in \mathbb{R}$.  Por tentativa erro consegui descobri que $2$ é uma solução, mas não encontrei um método pra isso. Alguma sugestão?(*)  (Translation: By trying different values I've found that $2$ is a solution, but I couldn't find any method to this though. Any suggestions? ) No, this is not a , nor is it a solicitation on  to backup or  and only a little bit about Where to backup and When to do it.  This is basically a strategy question: what, where and when all together. "How" is not really relevant: there are tons of back-up programs out there and they all do the same basic thing: make copies of data.  But the real question is: are these back-up programs making copies of the data important to you?  How should you install&amp;run Ubuntu while safeguarding your data?  There is no "one size fits all" when it comes to computers, Ubuntu versions or a backup strategy, therefore I've split this up into 5 basic user types with each their own answer:       (or you're running in UEFI mode!)   And as the above does not fit everyone, one for the impatient:   !    So click one of the above links and go to your user type!  P.S. If you're running a server farm and you've read this question so far, I'm sorry: this is about a single PC, not a network, nor a server farm. What are all the correct answers to the Squirrel's questions, and what is the reward when I get them all correct? I encountered The Squirrel at "A tree."              |   |                                                                         |   |                     "   Hello, I'm The                        |             |                        Squirrel. I can                        |             |                      provide you candies,                     |             |                      and lots of things.                                    |                      I know how much you                                    |        _.-'''-,      love candies. But I                                    |      .'        `\     feel alone in this                                    |     /           /          forest.       "                         |        |    /      .--^_^                                                   |        |    |     /  C ,,\                                                           |    |    |   \  _.)                           ___                            |     \   |   /  \                   ____.----'.-'                            |      '-, \./ \)\)               .-' --  __.-'                   |            \        `-/   );/           ___/  - _.-'                        |             \_________''--'-'________.-' --    /                            |              -   --        -  -     -     __.-'                                              -    --    -     --   --  /                                                 _________________________.-'                                 He asks you some questions. What are the correct answers, and what is the reward for getting them correct? Can XeLaTeX generate bold and italic font styles for typefaces that lack them? I use XeLaTeX in order to have easy access to fonts installed on my operating system, and Chinese in particular. Some of the Latin typefaces most pleasing to my eye do not have bold or italic font styles, and I wonder if XeLaTeX can remedy that.  I'm aware of the FakeBold and FakeSlant transformations within the fontspec package, but I'd be glad to know of a more attractive process, if there is one. (The specification, v2.1f, says, "Please don’t overuse these features; they are not a good alternative to having the real shapes.") Accessing the index in 'for' loops? When do I use the following:   home.php frontpage.php Under Settings > Reading Settings  Front Page Posts Page    I wish to clarify this as I find myself using "Placeholder Pages", empty pages just for the sake of a menu item and to display blog listings.   If I use a Static Front Page (Set under Settings > Reading Settings > Front Page) how do I access my posts page? Do I need to have a "Placeholder Page" titled blog and use page-blog.php? How to compare two TeX codes and mark differences with color I would like to find easy tool, which compares two TeX codes and generates a PDF file of the first code, in which the differences from the second code are marked by a given color. I use winedt 7.0 under windows 7.  I just noticed that latexdiff provides what I need. As far as I understand it is included in Miktex. Is there an interface (menu commands) in winedt 7.0, which allow to work with latexdiff ? How to create a table with merged columns and rows, and wrapped text, like in MS Word? Do you use "a" or "an" before acronyms / initialisms? 99% of the time, I'm clear on when I should use "a" versus "an." There's one case, though, where people &amp; references I respect disagree.  Which of the following would you precede with "a" or "an," and why?   FAQ FUBAR SCUBA   [Note: I've read the questions  and , but the rules given there don't necessarily apply here.]    [Edited to add]  Here's a shorter (and hopefully clearer) version of the question…  In written English, which is correct (and why): "a FAQ" or "an FAQ"?  Some references with differing opinions:   an: the  and  a: the Microsoft Manual of Style for Tech Publications, 3e either: the  and LaTeX multi-character subscript Probability of $p(x_1<x_2<\max(x_3,x_4))$ I have a question about my choice of name for publication.  I recently got married and legally changed my name to my husband's surname (for example's sake: from Hunter to Jones). So, despite legally being Ms Jones now, I would quite like to use the hyphenated name Hunter-Jones in the professional context and in publications. This is so that people realise that it is still me and so that I can somewhat keep my maiden name.  Is this possible or do I have to use my legal name professionally and when publishing? Thank you for any help