I have a written a code to update likes and dislikes buttons. It works fine for the first time. But if the user again clicks on the buttons, It doesn't respond to clicks. I tried changing click to on('click') as suggested in questions of similar type.  $('.like').on('click', function (event) {     // My Code });
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.
I am trying to find out whether $A = \begin{bmatrix}     3 &amp; 1 \\     0 &amp; 2 \\ \end{bmatrix}$ and $B = \begin{bmatrix}     4 &amp; 1 \\     -2 &amp; 1 \\ \end{bmatrix}$ are similar. Both matrices have the same trace, same rank, same determinant and the same eigenvalues. So I think they are similar. The eigenvalues are $3, 2$. Now I'm not sure how to find if they are indeed similar.   I am trying to find if there is a basis for $\mathbb{R^2}$ that contains only eigenvectors but when trying to solve $(3 I - A)v = 0$ there is no solution... What should I do from here? Example of a finitely generated faithful torsion module over a commutative ring Can a finitely generated module $M$ over a commutative ring have $\operatorname{Ann}(x) \neq 0$ for all $x \in M$ while $\operatorname{Ann}(M) = 0$?  It's not difficult to show that there is no such module if the ring is a integral domain. For general, I guess the answer is yes. But I failed to find a desired example. There are many tutorials that use a pull-up or pull-down resistor in conjunction with a switch to avoid a floating ground, e.g.        Many of these projects use a 10K resistor, merely remarking that it is a good value.  Given a a particular circuit, how do I determine the appropriate value for a pull-down resistor?  Can it be calculated, or is it best determined by experimentation? When to use icons vs. icons with text vs. just text links? Are there any rules on when to use icons vs. icons with text vs. just text links in a web application?  For example:    vs.   save  vs.  save    Extra question: Is  save -or- save  preferable? mysqli_fetch_assoc() expects parameter / Call to a member function bind_param() errors. How to get the actual mysql error and fix it? First order differential equations with 2 varriables Does anybody know how to solve the following differntial equation?  $$w^2\cdot r+\frac{dw}{dt}\cdot r+\frac{dr}{dt}\cdot w=3g$$  where w and r are a function of time so $w(t)$ and $r(t)$. $g$ is a constant  EDIT: This equation came from a thought problem of mine which I will now explain since I still do not know how to approach the problem.  Basically I want to design a spiral track in which a vehicle will accelerate. However the total acceleration needs to be constant.   The vehicle will have 2 acceleration components, a radial component ($a_r$) and a change in speed component ($a_s$). Since we want constant acceleration: $a_r + a_s = constant$  From circular motion we know that $a_r = \omega ^2 r$ where $r$ is the radius, and $\omega$    Further we know that $v=\omega*r$, therefore: $a_s=\frac{d}{dt}(\omega r)$  For constant acceleration $a_{total} = a_r + a_s = \omega ^2 r + \frac{d}{dt}(\omega r) =constant$  Further usefull information: Length of the track covered at a certain time $l=v*t=\omega r t$  With all this the radius will be a function of time, $r(t)$ and the angular velocity will be a function of time, $\omega (t)$  Boundary conditions: $r(0)  = 0$ $\omega (0) = 0$  Now I would like to find a possible set of solutions to create a track by implementing end boundary conditions that i choose e.g. $v(t_{end})=100 [m/s]$ and $l(t_{end})=5000 [m]$  Here is a diagram for clarity: lognormal distribution, standard-deviation and (physical) units I have a distribution of microparticles that follows a lognormal distribution. The cumulative distribution function thus is given by:  $$ F_X(x;\mu,\sigma) = \frac12 \operatorname{erfc}\!\left(-\frac{\ln x - \mu}{\sigma\sqrt{2}}\right) $$ $$ \mu = ln(M) + \sigma^2 $$  Now, the plot of the distribution function should be exactly the same no matter if the particle diameter $x$ is given in micrometers or meters (as long as I adapt the x-axis accordingly of course). However, this only works if I only convert $x$ and $M$, while not touching the numerical value of $\sigma$, and I don't understand why. $F_X$ has to be unitless, so $x$, $\mu$ and $\sigma$ should all have the same unit, right? Standard and/or common directories on Unix/Linux OSes Movie with humans battling aliens piloting giant animalistic, water-walking robots or sea warships I have memories of watching it a few years ago (I was a kid then) in the early 2000s probably; before 2010 I think. It was a movie with giant robots, and the enemies were aliens piloting what I remember as giant, more animalistic robots. I remember those animalistic ones running on water. The aliens themselves were a little taller than humans but mostly humanoid. I remember what the aliens look like a bit; most of the movie they were clad in some kind of armor, but the scene I mentioned showed one's face, if I remember well, grey skin, vividly green eyes, a beard made of some kind of quills, bald. I have this one scene that stayed crystal clear in my memories. The heroes had captured an injured alien, and other aliens attack to, in the end, just retrieve the injured one, leaving with this one without attacking further this time. I also remember the aliens going through a city in some machine (I'm actually not sure this one was piloted though) and destroying anything it perceived as a threat, from cars to security cameras. My memories are coming from years ago, so I might be wrong in a bunch of things there, but this one scene, I can assure is correct. This might remind a bit of Pacific Rim, but it isn't. (It's watching Pacific Rim that reminded me of this movie.) It doesn't seem to show up on any giant robot movie list on internet, weirdly, so I hope you can help me. And now I'm starting to wonder if there was really robots on the heroes' side. Maybe it was warships (sea ones, not spaceships). As I said it was some time ago and I was young, so bad memories are likely. Change desktop background to a solid color (e.g. pitch black) in GNOME 3 How can I adjust Cycles material displacement amount? Why don't files from Xbox 360 show up when USB drive is plugged into computer? I'm using a Lexar JumpDrive S73 32GB USB flash drive. I've configured it on my Xbox 360 and got a message saying it's compatible and meets the standards, but when I plug in it in my computer no files show up, even in Horizon.   After the driver was installed, both the USB mass storage and Lexar JumpDrive USB device were ready to use (installed properly), but it said no driver found for Xbox 360.    I tried looking for some sort of driver (which sounds silly) but I couldn't find anything.  I'm attempting to mod Minecraft on my Xbox and I don't want to buy another USB. How can I remove fonts that I never use, from libreoffice and linux in general? There are a lot of extra fonts that all seem to look alike and just annoy me in the drop down list. Is there anyway I can erase them from the system? We've had a number of instances over on Stack Overflow involving users who get to the reputation level where they can comment, then spam comments across the site. Due to the lack of community review around comments, these spammed comments can remain on the site for months before someone notices and flags one. Moderators then have to go and manually remove each of these comments. In the last few months, I've personally had to deal with two users who spammed their website across 200+ questions each.  This isn't just limited to people spamming comments with a URL in them. We've had a number of users spray the same nonsense comment or insult across tons of posts and have no one seem to notice for months.  What I'd like is some kind of system-generated notification when a user has posted a barrage of copied-and-pasted comments. This could possibly be triggered when a user has posted a set number of identical comments in a row (4 of them, maybe) or maybe even if they've posted the same comment multiple times. We receive similar system-generated flags when users post duplicate answers, edit many of their posts in a row, or delete many of their own posts at a time.  This system-generated flag should ignore comments generated by review (which have the same text in them). I'm thinking that it shouldn't ignore comments generated by custom off-topic reasons, because someone using the exact same close reason over and over again might be something we want to look into.  The flag itself won't do anything to a user, and would only appear to moderators. I imagine there will be a number of false positives, but it should be easy for us to check these and identify the well-intentioned stock comments from the problematic ones.   We currently have no means of detecting comment spam, so even if this didn't have a great hit rate it would still be beneficial on the balance. Running sample queries for this seems to indicate that it wouldn't have that much noise.  This would allow us to catch comment spam early, and prevent it from living on the site or developing into a more serious problem. Plot points:   I think the man was one-armed or had one damaged/withered arm. He is an artist when we meet him. He's picked up by aliens to represent earth in a galactic armada. Put in a ship with other aliens only there so a representative of their species can be said to be present - but not expected to actually contribute much to the coming fight. Fight is to protect against invaders from another galaxy. Somehow or other, their ship and crew become integral to winning the war. How to filter by messages, not by conversation? I have been emailing my Gmail account error messages from a project I am working on.   I am trying to use Gmail filters/labels to sort out the class of errors.  But because the subject line is basically always the same even if I have a specific filter for 3 known error cases, the label is applied to the conversation, instead of the specific message.  Therefore, all the errors get all the filters.  I do not yet want to delete the errors, but would rather file them separately.   I have not yet used the NOT contains string yet, but that looks to be non-scalable as I get to the fourth or fifth error case I am done with handling.  Is there any option other than turning off Conversations for all my email?  (I guess I could use one of my spare accounts to turn off conversations and do the work there but would be nice to have such an option). What attracted Padmé to Anakin? I'm giving Deus Ex a quick playthrough as a refresher before jumping into Human Revolution. In the interest of expediency, I've decided to cheat. ^.^  Normally, cheats must be re-enabled for each level when playing the original DX. I've encountered instructions on several sites (word-for-word identical instructions, so clearly copy/pasted) for permanently enabling cheats, but they aren't working for me:     Because you will need to redo this for every level, you can open up 'user.ini' and add 'bCheatsEnabled True' in the [DeusEx.DeusExGameInfo] section of the file to allow cheats to be activated forever.   Not only is that not working for me, it doesn't even look right compared to the rest of the file (space instead of =). With increasing desperation, I've tried adding that line (both verbatim and switching to an equal sign) to every section of both User.ini and DeusEx.ini which looks even remotely plausible — even creating a [DeusEx.JCDentonMale] section, just in case.  Does anyone know how to get this working? I'm running DX:GOTY version 1.112fm from Steam on Windows 7. Value of $\frac{\sqrt{10+\sqrt{1}}+\sqrt{10+\sqrt{2}}+\cdots+\sqrt{10+\sqrt{99}} }{\sqrt{10-\sqrt{1}}+\sqrt{10-\sqrt{2}}+\cdots+\sqrt{10-\sqrt{99}}}$ Here is the question:     $$\frac{\sqrt{10+\sqrt{1}}+\sqrt{10+\sqrt{2}}+\cdots+\sqrt{10+\sqrt{99}} }{\sqrt{10-\sqrt{1}}+\sqrt{10-\sqrt{2}}+\cdots+\sqrt{10-\sqrt{99}}} = \;?$$   ()  I think we need to simplify it writing it in summation sign as you can see here:  $$\frac{\sum\limits_{n=1}^{99} \sqrt{10 + \sqrt{n}}}{\sum\limits_{n=1}^{99} \sqrt{10 - \sqrt{n}}}$$  or in Wolfram Alpha input in comments.  I can compute it too! It's easy to write a script for this kind of question. I need a way to solve it. How would you solve it on a piece of paper? how to get the base url from jsp request object?