I'm loading a form using Nivo Lightbox AJAX.  form#users-add   Now I use another AJAX function to submit the form:  var users_add = $('#users-add'); users_add.submit(function (e) {     e.preventDefault();     $.ajax({         type: users_add.attr('method'),         url: users_add.attr('action'),         data: users_add.serialize(),         success: function (data) {             if (data == 'users-add-success') {                 $('#users-add-cbk').html('&lt;div class="alert alert-success" role="alert"&gt;Utilisateur ajouté!&lt;/div&gt;');                 users_add[0].reset();             } else {                 $('#users-add-cbk').html('&lt;div class="alert alert-danger" role="alert"&gt;Une erreur c\'est produite.&lt;/div&gt;');             }         },         error: function (data) {             $('#users-add-cbk').html('&lt;div class="alert alert-danger" role="alert"&gt;Une erreur c\'est produite.&lt;/div&gt;');         },     }); });   The problem here is that I have to re-map the DOM as form#users-add wasn't there when the the document has been fully loaded.  How to properly make the form#users-add seen by the script?
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.
Equivalent Definitions of the Operator Norm Is there a set of lines in $\mathbb{R}^3$ such that their union is equal to the set of points with not all coordinates rational? Does there exist a set L of pairwise disjoint lines, each line in an axis direction, in $\mathbb{R}^3$ such that their union is equal equal to $\{ x : x \text{ has at least one irrational coordinate}\}$? How can see call history in iPhone one month back, i also tried with tried party software but that is not perfect , is the any solution from apple? Proving that: $\lim\limits_{n\to\infty} \left(\frac{a^{\frac{1}{n}}+b^{\frac{1}{n}}}{2}\right)^n =\sqrt{ab}$ Let $a$ and $b$ be positive reals. Show that $$\lim\limits_{n\to\infty} \left(\frac{a^{\frac{1}{n}}+b^{\frac{1}{n}}}{2}\right)^n =\sqrt{ab}$$ If $p$ is a prime such that $p≡1\pmod 7$ then $p ≡1\pmod{14}$ Prove or disprove the following:  1)  if $p$ is odd prime such that $p≡1\pmod 7$ then $p ≡1\pmod{14}$  2)  if $p$ is odd prime such that $p≡4 \pmod 7$ then $p ≡4\pmod{14}$  I think that both statement are true and have a similar proof  1) $p≡1\pmod 7$ so $p≡8\pmod 7$ then $7|p-8$ so $p-8= 7 k$ where $k$ is an integer so $p=8+7k$, so $p ≡1\pmod {14}$  It is that a correct proof? Thank you. How do injuries work with Polyjuice Potion? We know that if you (using Polyjuice), take the form of someone who had been injured, you assume that injured form (e.g. Barty/Moody). If you are injured, presumably you would be uninjured while under Polyjuice. My question is, is this in real-time? That is, if you take a Polyjuice, and while you're still under its effects, the person being transformed into gets injured (or even dies), will that injury be transferred onto you? And conversely, if you get injured while in someone else's body, will that transfer over to your real body after the Polyjuice wears off, will it disappear, or will it go to the person you turned into? What is dependency injection? Neural networks output probability estimates? Suppose my training data contains ~100 variables, and each example is tagged as "success" or "failure".  I understand how a neural network can be used to try and predict success vs failure based on the variables.  However I am interested in the neural network outputting the posterior probability rather than success or failure. In fact, I evaluate the efficacy of the NN based on how accurate the probabilities are (eg. AUROC over the entire dataset) rather than % of cases with correct prediction.  Are NN's the right tool for the job here and if so how do you structure the NN to output this?  (NOTE: I'm a ML newbie!) What is the relation between linear purity and von Neumann entropy of a state? Given a density matrix $\rho$, its linear purity is $\mathrm{Tr} \rho^2$, its von Neumann entropy is $-\mathrm{Tr} \rho \log \rho$. Knowing one how do I calculate the other?  Edit:   My thought is that the linear purity and the von Neumann entropy are a parallel set of benchmarks for mixedness. Their inter-conversion should be like unit conversion.  See it this way, as a state goes from a pure state to a maximally mixed state, $\mathrm{Tr} \rho^2$ goes from $1$ to $0$, and $-\mathrm{Tr} \rho \log \rho$ goes from $0$ to $\log d$, like two rulers. A point on one should correspond to a point on the other. If H is a subgroup of a group G and K is a normal subgroup of G the show that K is a normal subgroup of HK. Note K is a normal subgroup of HK  I thought I could just prove K is a subset of HK and vice versa so as to prove it a normal subgroup but then how to do this I have no idea because I keep getting hk element again while trying to do so.  I just tried to implement the steps to find HK is a subgroup of G. Is it possible to set a global Blender preference so that all keyframed motion is linear by default? Can I use set instead of List to resolve the duplicate id issue If you take a look into this issue     I have provide an answer of using set&lt;Sobject&gt; instead using list&lt;Sobject&gt;  i.e.  if( !contacts.values().isEmpty() ){   set&lt;Contact&gt; setContacts = new set&lt;Contact&gt;();   for( Contact objCon : contacts.values() ){     if(!setContacts.contains(objCon)){         setContacts.add( objCon );     }   }  update new list&lt;Contact&gt;(setContacts); }   even if(!setContacts.contains(objCon)) is not needed  if( !contacts.values().isEmpty() ){   set&lt;Contact&gt; setContacts = new set&lt;Contact&gt;();   for( Contact objCon : contacts.values() ){         setContacts.add( objCon );   }  update new list&lt;Contact&gt;(setContacts); }   So is there any condition/use case where this answer might fail? What is Stack Overflow's deployment process? I'm looking for some insight into how Stack Overflow releases are deployed and managed.   What software/tooling is used? What time are releases generally performed? How many and what steps are involved?   I'm assuming it's not too stringent given the light team working on the codebase. But considering the high rate of change, I could see some kind of tooling and automation becoming increasingly relevant, so I'm curious to learn what kind of decisions are being made to deal with the changes in scale and feature set over time.  Is this information available somewhere? I am trying to find all 1- or 2- dimensional Lie Algebras "a" up to isomorphism. This is what I have so far:  If a is 1-dimensional, then every vector (and therefore every tangent vector field) is of the form $cX$. Then , by anti-symmetry, and bilinearity:  $$[X,cX]=c[X,X]= -c[X,X]==0$$  I think this forces a unique Lie algebra because Lie algebra isomorphisms preserve the bracket.  I also know Reals $\mathbb{R}$ are the only 1-dimensional Lie group, so its Lie algebra ($\mathbb{R}$ also) is also 1-dimensional. How can I show that every other 1-dimensional algebra is isomorphic to this one? Do I use preservation of bracket?  For 2 dimensions, I am trying to use the fact that the dimension of the Lie algebra g of a group $G$ is the same as the dimension of the ambient group/manifold $G$. I know that all surfaces (i.e., groups of dimension 2) can be classified as products of spheres and Tori, and I think the only 2-dimensional Lie group is $S^1\times S^1$, but I am not sure every Lie algebra can be realized as the Lie algebra of a Lie group ( I think this is true in the finite-dimensional case, but I am not sure).  I know there is a result out there that I cannot yet prove that all 1- and  2-dimensional Lie algebras are isomorphic to Lie subalgebras of $GL(2,\mathbb{R})$ (using matrix multiplication, of course); would someone suggest how to show this last? Thanks. I am looking for a story about the future of mankind, in which most people have been enslaved in a virtual reality. It ends with the revelation that the people are just lying there imagining their lives with their heads in a trough of feed.  It explains that chemists began to create compounds that could be released into the air to manipulate citizens - causing them to live, shop, think as desired by whoever was in charge. Eventually these tools got subtle enough that they could simulate reality using just these airborne compounds.  This was clearly a prescient view of what later became computer-based virtual reality fiction. Continuity $\Rightarrow$ Intermediate Value Property. Why is the opposite not true?    It seems to me like they are equal definitions in a way.    Can you give me a counter-example?    Thanks Is it possible to install an iPhone app in MacBook Pro? $(\Bbb R,+)$ is a topological group. Is there any other group structure on $\Bbb R$ such that it is still a topological group and this group is not isomorphic to $(\Bbb R,+)$ ?  Refer to  for the general problem. In that problem I have conjectured that there is no such group however I couldn't prove it. Does $\lim_{h\rightarrow 0}\ [f(x+h)-f(x-h)]=0$ imply that $f$ is continuous? Most people know the famous equation:    What were his steps of thinking for this equation that helped us discover so much about our world?