Currently, I am creating something that will simply allow me to create tasks, click them when they are done and swipe left to get rid of them. The problem I am having is that when the new tasks are appended, they are not affected by any of the JQuery events on in the script.  Tl;dr: appended divs are not affected by the below javascript, how can I fix this issue?  &lt;div class="app"&gt;    &lt;div class="appHeader"&gt;     &lt;h2&gt;Tasks&lt;/h2&gt;      &lt;form class="createTask"&gt;       &lt;input type="text" class="createTaskInput" size="10" maxlength="25" placeholder="Type here to create your task..." //&gt;     &lt;/form&gt;    &lt;/div&gt;    &lt;div class="task"&gt;     &lt;div class="summary"&gt;This is an example task       &lt;br&gt;When you complete a task, click the red button       &lt;br&gt;Should you want to remove a task, swipe left on the task.     &lt;/div&gt;     &lt;div class="completion"&gt;&lt;/div&gt;   &lt;/div&gt; &lt;/div&gt;   &lt;script&gt;   $(".completion").on({     'touchstart': function() {       $(this).addClass("completed")     }   });    $(document).ready(function() {     $("div.task").on("swipeleft", swipeleftHandler);      function swipeleftHandler(event) {       $(event.target).addClass("swipeleft");     }   });    $(document).ready(function() {     $(".createTask").submit(function(e) {       var value = $(".createTaskInput").val();        $('.app').append('&lt;div class="task"&gt;&lt;div class="summary"&gt;' +         value + '&lt;/div&gt;&lt;div class="completion"&gt;&lt;/div&gt;&lt;/div&gt;')       e.preventDefault();     });   }); &lt;/script&gt;
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.
Sci-Fi short story that involved time travel and a couple who keep losing each other I read a collection of Sci-Fi short stories back in the 1970's or early 80's that had one about a couple in love who kept losing each other. The book was my dad's so the story itself could be much older than that. I am very fuzzy on the details as I was young when I read it and it was so long ago. I believe the woman/girlfriend was "taken" (by some bad guy aliens??) while she was sleeping. I think it involved time travel and the man had to search through time to find her. After he found her, when he was asleep one time, he somehow was then "taken" and I think transported through time and had to fight his way back to her again. He may have been some sort of police officer. I just remember in the end, at night when they went to bed, the couple always wore handcuffs so they were never separated when they went to sleep ever again. Does this ring a bell with anyone?  (There is a possibility it is in a short story collection that also contained " The Twonky " by Lewis Padgett (1942), as I remember reading that story around the same time) I've always been taught to put myself last when referring to myself in the same sentence as others but the usage of "me and..." seems to be everywhere these days. The misuse of the word "me" instead of "I" aside, is there some new rule I haven't heard of? Shouldn't we put ourselves last regardless of the "me"/"I" usage?  Examples of "correct" usage:      My friends and I went for some ice   cream. Did you see my friends and me   at the ice cream stand?   Examples of "incorrect" usage:     Me and my friends went for some ice   cream. Did you see me and my friends   at the ice cream stand?   Note: I was also taught that the only person who could put themselves first was the queen. Flat quads (or, why is my mesh so funky?) I think my question relates to a fundamental of 3D modeling that I haven't picked up on yet. It's very simple:  Let's say I have a flat quad. A plane on the XY plane inserted into am empty blender file is a great example. Now let's say I start moving each of the 4 vertices around on in any direction, especially the Z axis.   At this point, there would still be one face, but its extremely unlikely that the face would be planar (I just learned this word). So blender does its best to make sense of what this should look like.  The problem I'm having is that it seems like my quads are always like this, but they never look the way I want. There are edges and seams that look like they are dangling in space, and what tends to happen is that my mesh looks great when viewed from most angles, but if you look at it from just the right angle, you notice the dangling edges or sometimes even some kind of impossible geometry. And so I might try to nudge the problematic vertices around, but this often seems to either make it worse, or just hide the bad geometry until you see it from a different angle.  For me, this always seems to happen whenever I'm trying to move vertices to add roundness to something that is originally square.   There is another question on here about how to actually flatten the quads. That's great, and I might use some of the techniques mentioned there. My question is:   Why does this happen? (Can someone explain this better?) What are some tips and tricks to avoid this situation? What are some tips and tricks to mitigate this situation?   EDIT Here is an illustration:  The overall mesh as viewed from a distance looks decent (for my skill level)    But if you get closer and look from a certain angle...    Super close up:    The "edge" that is pointed to by the arrow is not actually an edge, but some kind of artifact created when blender tries to show the quad. The way the vertices are positioned, it shouldn't actually be possible to see the sliver of the face that I marked in red, since this face is supposed to be around the corner from the edges. The edges should form the silhouette on the right side of my figure.     Here is the side view. Maybe it is the angled topology that skews the face in a funny way?  But I'm not looking for help with this one particular issue, but rather a better understanding of why this happens, and ideas to prevent this in future models. Year-Round Hats for Fun and Profit How to remove session entries from LightDM? Finding the sum of the series $\frac{1}{1!}+\frac{1+2}{2!}+\frac{1+2+3}{3!}+ \ldots$ Deteremine the sum of the series $$\frac{1}{1!}+\frac{1+2}{2!}+\frac{1+2+3}{3!}+ \ldots$$  So I first write down the $n^{th}$ term $a_n=\frac{\frac{n(n+1)}{2}}{n!}=\frac{n+1}{2(n-1)!}$.  So from there I can write the series as $$1+\frac{3}{2}+\frac{4}{2\times 2!}+\ldots +\frac{n+1}{2(n-1)!}+\ldots $$  I am quite sure I can do some sort of term by term integration or differentiation of some standard power series and crack this. Any leads? Discount for Roles I am using Drupal Commerce and I would like to know if it is possible to have discounted prices for registered users and much better for roles.  For example, the nomral price is $100 but when a user logs in that belongs to Role1 for example, he will see different prices with the percentage discount that I will have assigned to that role.  How can I accomplish such a feature? What is the purpose of the bin directory? What are some examples? What do the different colors mean in ls? I have a Python function that takes a numeric argument that must be an integer in order for it behave correctly. What is the preferred way of verifying this in Python?  My first reaction is to do something like this:  def isInteger(n):     return int(n) == n   But I can't help thinking that this is 1) expensive 2) ugly and 3) subject to the tender mercies of machine epsilon.   Does Python provide any native means of type checking variables? Or is this considered to be a violation of the language's dynamically typed design?  EDIT: since a number of people have asked - the application in question works with IPv4 prefixes, sourcing data from flat text files. If any input is parsed into a float, that record should be viewed as malformed and ignored. If $x^{2}-x\in Z(R)$ for all $x\in R$, then $R$ is commutative. If $x^{2}-x\in Z(R)$ for all $x\in R$, then $R$ is commutative.  I need to proof this theorem and I have something like this below. However, I do not know how to continue this proof.   $(x+y)^{2}-(x+y)=x^{2}+xy+yx+y^{2}-x-y=(x^{2}-x)+(y^{2}-y)+xy+yx\in Z(R)$  so $xy+yx\in Z(R)$ Integral of Wiener Squared process I don't have a background of stochastic calculus.   It is known  that definite integral of standard  from $0$ to $t$ results in another Gaussian process with slice distribution that is normal distributed with mean equal to $0$ and variance $\frac{T^3}{3}$ i-e  $$ \int_0^{t} W_s ds \sim \mathcal{N}(0,\frac{t^3}{3})    $$  Question:  What if we square the standard Wiener process and then integrate i-e $$ \int_0^{t} W_s^2 ds \sim ?    $$  Would that be scaled Chi-square distributed ? L1 & L2 Regularization in Light GBM This question pertains to L1 &amp; L2 regularization parameters in Light GBM. As per official documentation:  reg_alpha (float, optional (default=0.)) – L1 regularization term on weights.  reg_lambda (float, optional (default=0.)) – L2 regularization term on weights  I have seen data scientists using both of these parameters at the same time, ideally either you use L1 or L2 not both together.   While reading about tuning LGBM parameters I cam across one such case: Kaggle official GBDT Specification and Optimization Workshop in Paris where Instructors are ML experts. And these experts have used positive values of both L1 &amp; L2 params in LGBM model. Link below (Ctrl+F 'search_spaces' to directly reach parameter grid in this long kernel)      I have seen same in XGBoost implementations.  My question is why use both at the same time in LGBM/XGBoost.  Thanks. How to import an FBX file into Blender I am trying to import an FBX file from Unity into Blender. Does anybody know how to do that? Why does Google not consider dot in usernames of Gmail addresses? I would like to know the physical meaning of the , if there is any? I've used it in thermodynamics and classical mechanics and it seemed only a change of coordinates? What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? Suggested Edits Dashboard doesn't agree with Suggested Edits view I recall :    It was one that I knew could use a bit more spit and polish, but I didn't have the inclination or energy to edit it myself, so I skipped it.  I wander my way over to  (10K only), and look at the listing...    ...so, when did I approve this again? I skipped the question; that doesn't mean I gave my tacit approval, does it?  Seems like the dashboard needs to agree with the suggested edits view. Why can't I buy the Windhelm house (Hjerim)? What is wrong with this fake proof $e^i = 1$?