I am adding HTML to the DOM with jQuery to an existing empty table with class sec_sch like this:  details += "&lt;tr&gt;"+     "&lt;td class=\"use\"&gt;" + this.name + "&lt;/td&gt;" +     "&lt;td&gt;" + this.start_year + "&lt;/td&gt;" +     "&lt;td&gt;" + this.end_year + "&lt;/td&gt;" +     "&lt;td&gt;" + this.qualification + "&lt;/td&gt;" +     "&lt;td&gt;" + "&lt;button class=\"rmv\"&gt;-&lt;/button&gt;" + "&lt;/td&gt;" + "&lt;/tr&gt;"; $(".sec_sch tbody").append(details);   It loads fine but I cannot seem to manipulate the button.rmv from the same JS file with such code.  $('.rmv').click(function(e) {     console.log(this);     e.preventDefault();     alert('hi'); }); // end of remove secondary school   please any idea why?
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 looked at similar questions and wanted to post a more specific one.  If I wanted one of my accounts on the network to no longer be associated to my global account, could an administrator do it manually? I mean, even if they could, would they?  It's a matter of professionalism. I don't want one of my accounts on the network to be visible from my other accounts. I just want that to be under a separate email that's not one of the OpenIDs associated with my global account.  I realize this would have been easier to do when I joined that site, but it's too late now, and only now have I realized that I don't really want that account showing up.  So can it be done by an administrator? I don't want to wait weeks and weeks for a response by using the contact form (funny, I've waited two with this post)... Is $\sin \infty$ an indeterminate form? I had a  over what seems like a simple question:     Is $\sin \infty$ an ?   What do you think? :)    I'm labelling this as (soft-question) to be safe, but it should have a clear answer depending on the definition of indeterminate form used. The term "indeterminate form" is seldom used in post-calculus mathematics, but I believe it has one or more accepted definitions, which are either informal or formal. So any answer which takes a standard definition and argues the case would be interesting to me.  How to make a good answer:   State the definition of indeterminate form, either from an online or textbook source, or a definition you came up with on your own. Determine, using your stated definition, whether $\sin \infty$ is indeterminate or not.   EDIT: What do I mean by $\sin (\infty)$?  It's not a well-defined expression, but neither are any of the other indeterminate forms: $\frac{0}{0}$ doesn't exist, $1^\infty$, doesn't exist, and so on. So the question is whether this expression -- which is not well-defined, just like any other indeterminate form -- is an indeterminate form. True Ubuntu on Chromebook ARM How can I get all three Kalos starters? I'm an Indian student currently in Singapore as a Research Associate with a TEP valid for five months and have just been selected for an internship in Switzerland this summer.  Is it possible for me to obtain a Schengen visa from the Swiss Embassy in Singapore? Can I put \fbox along the diagonal so that they touch each other? A question about long exact sequence of finite dim vector spaces How do I run executable scripts in Nautilus? Could anyone explain why the number of legal or reachable combinations of a $3\times 3\times 3$ Rubik's Cube is $1/12\mbox{th}$ of the total. I understood the logic behind the total number of combinations: $8! \cdot 2^{12} + 3^{12} \cdot 12!$. What I am not able to understand is why do we divide this quantity by $2 \cdot 3\cdot 2$. I don't have any idea about parity or group/set theory. Is there another possible explanation for it? How to change the shadow color in Blender Cycles? I want to change the color of the shadow casting by a cube to green. While it's very easy to do it in Blender Internal (you select the lamp, go to the Lamp data header and change the shadow's color in the Shadow panel) in Cycles there're no such options. How to achieve it in Cycles? Can one do the maths of physics without using $\sqrt{-1}$? The use of imaginary and complex values comes up in many physics and engineering derivations. I have a question about that: Is the use of complex numbers simply to make the process of derivation easier, or is it an essential ingredient, without which it would be impossible to derive some results?   I can identify two different settings where the answer may be different:   It doesn't look like it is mandatory for results in Newtonian mechanics, General Relativity and classical electrodynamics. Can we say the same thing about quantum mechanics either way for sure?   Could this be a difference in quantum mechanics over the classical picture? Meaning of tilde-greater-than (~>) in version requirement? Android CalendarView for Showing Events Use template_include with custom post types I want to check for an appropriate template in the theme folder before falling back to the file in my plugin directory. Here’s my code:  add_filter('template_include', 'sermon_template_include'); function sermon_template_include($template) {     if(get_query_var('post_type') == 'wpfc_sermon') {         if ( is_archive() || is_search() ) :            if(file_exists(TEMPLATEDIR . '/archive-wpfc_sermon.php'))               return TEMPLATEDIR . '/archive-wpfc_sermon.php';            return dirname(__FILE__) . '/views/archive-wpfc_sermon.php';         else :            if(file_exists(TEMPLATEDIR . '/single-wpfc_sermon.php'))               return TEMPLATEDIR . '/single-wpfc_sermon.php';            return dirname(__FILE__) . '/views/single-wpfc_sermon.php';         endif;     }     return $template; }   Problem is, it doesn’t work! :-) It always picks the file in my plugin folder. Any idea what to do? I’ve tried alot of variations but I can’t seem to get anything to work! Thanks in advance! Jack  EDIT  I'm expecting the archive-wpfc_sermon.php to be returned from the theme folder if it exists. However, the file from my plugin always gets returned. Thanks for your help! This is from my Sermon Manager plugin available in the repository. Use of comma separating two adjectives If I had the phrase       two blond haired, blue eyed people    would the comma be out of place?    should I hyphenate "blond haired" and "blue eyed"? I tried and got this   $$e=\sum_{k=0}^\infty\frac{1}{k!}=\lim_{n\to\infty}\sum_{k=0}^n\frac{1}{k!}$$ $$n!\sum_{k=0}^n\frac{1}{k!}=\frac{n!}{0!}+\frac{n!}{1!}+\cdots+\frac{n!}{n!}=m$$ where $m$ is an integer. $$\lim_{n\to\infty}n\sin(2\pi en!)=\lim_{n\to\infty}n\sin\left(2\pi n!\sum_{k=0}^n\frac{1}{k!}\right)=\lim_{n\to\infty}n\sin(2\pi m)=\lim_{n\to\infty}n\cdot0=0$$  Is it correct? Convert audio stream to WAV byte array in Java without temp file Given an InputStream called in which contains audio data in a compressed format (such as MP3 or OGG), I wish to create a byte array containing a WAV conversion of the input data. Unfortunately, if you try to do this, JavaSound hands you the following error:  java.io.IOException: stream length not specified   I managed to get it to work by writing the wav to a temporary file, then reading it back in, as shown below:  AudioInputStream source = AudioSystem.getAudioInputStream(new BufferedInputStream(in, 1024)); AudioInputStream pcm = AudioSystem.getAudioInputStream(AudioFormat.Encoding.PCM_SIGNED, source); AudioInputStream ulaw = AudioSystem.getAudioInputStream(AudioFormat.Encoding.ULAW, pcm); File tempFile = File.createTempFile("wav", "tmp"); AudioSystem.write(ulaw, AudioFileFormat.Type.WAVE, tempFile); // The fileToByteArray() method reads the file // into a byte array; omitted for brevity byte[] bytes = fileToByteArray(tempFile); tempFile.delete(); return bytes;   This is obviously less desirable. Is there a better way? 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.") I am just starting into calculus and I have a question about the following statement I encountered while learning about definite integrals:  $$\sum_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6}$$  I really have no idea why this statement is true. Can someone please explain why this is true and if possible show how to arrive at one given the other? Lock time not involved in MySQL slow query selection? I wish to analyze some read-write contentions problems on a very huge table where writes are very fast, less than 1ms in most case. The point is that the contention makes those write queries sometimes wait for the lock for a long time, i.e. hundreds of milliseconds. But the query itself remains very fast so it's not selected as a "slow query", which threshold is actually 10ms.  The only way to gather the information I need is to put à 0ms threshold so I can capture all queries, but it's not sustainable for more than 10mn on our production environment, where it would produce about 200MB of logs per minute.  In fact I can't understand why MySQL don't include the lock time, added to the execution time, for the slow query log selection process. At least, I wish there were an option for that.  Am I missing something ?