How can I use a javascript onclick function like  $('#resultTable tbody tr').on('click', function () {   on an element (in this case table) that is returned in partial view?
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.
How to add indicator on a light switch to indicate the outdoor 3-way light is on? Have some carriage lights outside my garage that can be turned on from inside the house. It's common that the switch will get flipped and the lights will stay on when they're not wanted.  Is there some way I can add an indicator to the light switch so I can know if the light is on?  Note: the carriage lights are on a 3 way switch. Shorten title on each beamer slide In a beamer presentation the title is long but ok for the first slide. The problem is that when the title appears below on each slide it is very long and I would like to use here some sort of running or shorter title, how can this be done? Solutions of $x^2 \equiv 1 \pmod N$ I am stuck with this exercise:     Show that $\forall s &gt;0 \quad \exists N &gt;0$ such that $$x^2 \equiv 1\pmod N$$ has more than $s$ solutions.   I think I cannot use the theory if quadratic residues, because the modulus is not prime, so maybe I must prove it with square roots or roots of unity, but I don't know how to approach it at all.  Thanks for any help. Obtaining a formula for prediction limits in a linear model (i.e.: prediction intervals) Let's take the following example:  set.seed(342) x1 &lt;- runif(100) x2 &lt;- runif(100) y &lt;- x1+x2 + 2*x1*x2 + rnorm(100) fit &lt;- lm(y~x1*x2)   This creates a model of y based on x1 and x2, using a OLS regression.  If we wish to predict y for a given x_vec we could simply use the formula we get from the summary(fit).  However, what if we want to predict the lower and upper predictions of y? (for a given confidence level).  How then would we build the formula? Generating ordered combination of numbers Can anyone explain reverse bias pn junction using only electrons as charge carriers In forward bias condition p-type semiconductor is connected to positive side and ntype semiconductor to negetive side and the electrons flow from n-type to p-type to cathode of battery.  But imagine the same situation when the situation is reverse biased so now p-type is connected to negetive terminal of battery and n-type to positive terminal of battery.  Now there is excess of electrons in n-region and it is connected to positive terminal of the battery.So electron can flow from n-type region to positive terminal of the battery due to potential difference created by battery whereas in p-type electrons can flow from one covalent bond to another as they do in forward biasing.  Only difference is,here electron move in opposite direction (from one covalent bond to another) i.e. from n-region to depeletion region whereas in forward bias they move from depeletion to n-region.Which shouldn't be a problem   Now in this manner current must flow regardless of biasing so what's the correction? Google Maps choose zoom to fit country TIGHTLY in given window ls -la symbolics... what does that last symbol mean? Do mindless creatures get feats? Do creatures that have no Intelligence Score ("Int —" in the stat block) gain Feats? I'm creating some monsters but I failed to find the answer for this question. Purchasing a Switch - AC vs DC Current Specifications? I'm trying to purchase several switches for a DC system with moderately low current (a few amps at 12V). When browsing for switches in parts catalogs (e.g.  and ) there are always separate voltage ratings for AC and DC applications. I understand that AC switches are less expensive because the switching time does not need to be as fast and arcing is less of a concern. There is only one current rating listed and I am not sure if it applies to AC switching, DC switching, or both.  Does this current rating apply to both the rated AC and DC voltages? Is there a good rule-of-thumb for converting between AC and DC voltage/current ratings? What is the highest current I could reasonably expect from a DC switch before moving to a relay? Permanent PATH variable How will I make this /media/De Soft/mongodb/bin PATH variable permanent?  Everyone is saying "export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your shell".   I don't know what is ~/.profile, or .bashrc, or .zshenv. What do they do actually?  How will I add export PATH=$PATH:my/path to my .profile/.bashrc/.zshenv?   I'm using 64 bit Ubuntu 14.04 LTS with default terminal. Why is the de-facto standard sigmoid function, $\frac{1}{1+e^{-x}}$, so popular in (non-deep) neural-networks and logistic regression?   Why don't we use many of the other derivable functions, with faster computation time or slower decay (so vanishing gradient occurs less). Few examples are . One of my favorites with slow decay and fast calculation is $\frac{x}{1+|x|}$.  EDIT  The question is different to  as I'm only interested in the 'why' and only for the sigmoid. Evaluating and proving $\lim\limits_{x\to\infty}\frac{\sin x}x$ I've just started learning about limits. Why can we say $$ \lim_{x\rightarrow \infty} \frac{\sin x}{x} = 0 $$ even though $\lim_{x\rightarrow \infty} \sin x$ does not exist?   It seems like the fact that sin is bounded could cause this, but I'd like to see it algebraically.   $$ \lim_{x\rightarrow \infty} \frac{\sin x}{x} =  \frac{\lim_{x\rightarrow \infty} \sin x} {\lim_{x\rightarrow \infty} x}   = ? $$  L'Hopital's rule gives a fraction whose numerator doesn't converge. What is a simple way to proceed here? Probability of people attending same and different places $5$ tourists plan to attend Octoberfest. Each attends a location at random from the choices: Alpine, Bingeman, Concordia, Kitchener, Queens, Schwaben, Transylvania. Q What is the probability that two attend one location and three attend another same location?  I get that there are $\binom{5}{2}$ possibilities to create 2 groups. There are $\binom{7}{2}$ ways to choose 2 places so shouldn't it be $\frac{\binom{7}{2}\binom{5}{2}}{7^5}$? What should I do when the GETDEB repository is down? I'm trying to install programs/files from the getdeb repo but get a "check your internet connection" error.  Programs than I've tried include Qbittorrent and Mozilla-Plugin-VLC.    Through the terminal I get the following errors:  Err http://archive.getdeb.net/ubuntu/ natty-getdeb/apps qbittorrent amd64 2.8.2-1~getdeb2   Could not connect to archive.getdeb.net:80 (209.105.191.78). - connect (113: No route to host) E: Failed to fetch http://archive.getdeb.net/ubuntu/pool/apps/q/qbittorrent/qbittorrent_2.8.2-1~getdeb2_amd64.deb: Could not connect to archive.getdeb.net:80 (209.105.191.78). - connect (113: No route to host)   &amp;  Err http://archive.getdeb.net/ubuntu/ natty-getdeb/apps mozilla-plugin-vlc amd64 1.1.10-1~getdeb1   Could not connect to archive.getdeb.net:80 (209.105.191.78). - connect (113: No route to host) E: Failed to fetch http://archive.getdeb.net/ubuntu/pool/apps/v/vlc/mozilla-plugin-vlc_1.1.10-1~getdeb1_amd64.deb: Could not connect to archive.getdeb.net:80 (209.105.191.78). - connect (113: No route to host)   I'm not having any problems adding/removing other programs/files from my machine.  Is there a problem with GETDEB repo (and if so, is there any way to fix it on my end) or is there something wrong with my computer's configuration? How can I run ssh-add automatically, without a password prompt? Does the curvature of spacetime theory assume gravity? Whenever I read about the curvature of spacetime as an explanation for gravity, I see pictures of a sheet (spacetime) with various masses indenting the sheet to form &quot;gravity wells.&quot; Objects which are gravitationally attracted are said to roll down the curved sheet of spacetime into the gravity well. This is troubling to me, because, in order for objects on the locally slanted spacetime sheet to accelerate, gravity must be assumed. Therefore I ask; does the explanation of gravity as the curvature of spacetime assume gravity? If yes, what is the point of the theory? If No, what am I missing? Can we get notification in the tab (change of title)? I'm usually running many different StackExchange sites in Firefox using tabs (using ReloadEvery to update every 5 minutes).  Right now to check for activity, I have to manually click on the tab to see if the envelope is lighted.  How about making the icon on the tab i.e. the title text change in some way, denoting that you have activity on the page?  We already add a message count for the chat tabs, so this shouldn't be very complicated.  Possible Example: SSL_read failing with SSL_ERROR_SYSCALL error Virus added .mbed File Extension The files on my PC's 2 drives have been altered by a virus; all files on both drives now have an extra extension of ".mbed"  Here you have a screenshot to get my point:   So what is the shortcut way for me to correct all these file extensions?