I have the HTML below:  &lt;td id="tppBox"&gt;      &lt;div&gt;                                        &lt;input name="tpp[]" type="text" style="width:90%"/&gt;        &lt;a id="addtpp" class="small-button btn"&gt;+&lt;/a&gt;      &lt;/div&gt; &lt;/td&gt;   and the JavaScript code:  $(document).ready(function(){     $('#addtpp').click(function(){          var box = $("#tppBox");           box.append("&lt;div&gt;&lt;input name='tpp[]' type='text' style='width:90%'&gt;&lt;/input&gt; \n\              &lt;a class='small-button btn removetpp'&gt;-&lt;/a&gt;&lt;/div&gt;");     });      $(".removetpp").on('click',function(){         $(this).parent().remove();     });  });   Although input fields with - are added, when I press - to delete nothing happens! What am I doing wrong?   Thanks in advance!
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.
Notepad ignoring linebreaks Most documents I'm opening in notepad.exe under windows 7 lately, there are no linebreaks... everything just runs together.  The same documents in any other program, even previewed directly in Explorer, will show the linebreaks correctly.  this is happening with many .info files, .css, .js.. but not all of them.   I am guessing it's some kind of character encoding unix line endings something or other, but wondering if there's anything I can do or if anyone else has experienced similar and if I can make notepad work correctly. I prefer it to notepad++/other text editors for certain uses. What *is* an Artificial Neural Network? What's the difference between using black and white mode in-camera, and converting in post? For black and white photography, will there be any quality difference between using the built-in black and white mode, or shooting in color initially and then removing the color later using Photoshop (or similar application)?  I have a high-end compact camera, the . Which is the rarest badge awarded/the least popular one/the one hardest to get? The  defines multiple padding schemes for signature generation/verification ( and ),  and encryption/decryption ( and the less safe ).   Which attacks are possible on signature generation/verification and encryption/decryption if no padding mechanisms are applied, i.e. if raw RSA is used over the plaintext or hash? Given a DateTime representing a person's birthday, how do I calculate their age in years? How to use "fit" to frame the nodes and labels I'm using the fit TikZ library to fit a rectangle around two nodes which include labels. However, the rectangle is only fit around the actual nodes, not about their labels:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit}  \begin{document} \begin{tikzpicture}   \node [label=label1,draw] (node1) {Node1}; \node [label=label2,draw] (node2) at (4,2){Node2};  \node[fit=(node1)(node2), draw] {}; \end{tikzpicture} \end{document}     How to fit the rectangle also around the node labels? Just noticed this:  Someone @replied to me in a question which appropriately showed up in my feed.  I go to click on that notice in the feed, and it presents me with "Loading the question failed."  I'd show a picture, but I don't think that it's entirely relevant - I believe it's reproducible if an answer is posted, someone makes a reply, the answer is removed, then that someone else goes back in the feed to try and revisit the post.  Alternatively, why not synchronize the interface between what a 10K user sees on the site, and what they see in the app?  As a 10K user, I would expect to see deleted questions and answers. I run sudo apt-get install git-all in Ubuntu 16.04 and see the following in the end  Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                       Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   I get the error after rebooting my system also. It really blocks my whole system.  I run killall update-notifier. I run sudo apt-get install git-all but  I get the same error message. I run pgrep -a apt but get nothing as output. I run pgrep -a update but get nothing as output.  A bug report about the case .    In Grub, Choose Advanced options > Ubuntu (Upstart) Linux kernel 4.22. Doing the same only in terminal without systemd causes the same error.      Why is this error here with runit? An elementary proof of $\int_{0}^{1}\frac{\arctan x}{\sqrt{x(1-x^2)}}\,dx = \frac{1}{32}\sqrt{2\pi}\,\Gamma\left(\tfrac{1}{4}\right)^2$ virtualbox crash on kernel 4.13.0-26 Ubuntu 16.04 LTS Virtualbox 5.0.40 ubuntu r 115130  Today after upgrading to kernel 4.13.0-26 guest vbox machines started to crash whole ubuntu. just hard poweroff is working.  If I startup with kernel 4.10.0-42 everything works fine.  what may be the problem ? How can I dynamically unload a javascript file? Page Object Model or External property file for Selenium Object Repository I am a beginner in Selenium WebDriver (Java with TestNg). I'm trying to create a framework of my own.  My question here is what would be the better option to store my objects (basically all the webelements of my website under test), Page Object Model or External Property file? Why? Is there a better method than those? Please help. Is there a way to send a thanks message to Stack Overflow or any of the individual Stack Exchange sites, aside from sending an email? I want to thank Stack Overflow for being an awesome live QA site. It helps people a lot. Insert a paragraph into a list that uses the whole text width Show that not all 5 cycles in $A_5$ are conjugate in $A_5$ This is a practice question (not assignment). One thing I am wondering is what this question exactly means. From my understanding, the conjugate of $a \in A_5$ is $gag^{-1} \in A_5$ where $g \in A_5$. I was trying to look at a similar question here on MSE and someone mentioned $(12345) \in A_5$ is not conjuagte in $A_5$. So does that means there exists a $g \in A_5$ such that $g(12345)g^{-1} \notin A_5$ (I am guessing this is incorrect since $A_5$ is a group). I am also away of the property that $g(12345)g^{-1} = (g(1)g(2)g(3)g(4)g(5))$. Why does Leia's accent change during A New Hope? Possible Duplicate:    It's time once again to support your favorite open source project through our Free Vote-Based Advertising for Open Source Projects. We are clearing the leader boards to start the first half of 2011 anew. Here is your chance to create a . Create a graphical ad for an open source programming project and post it as an answer to this question (in the right format), and it will feed live remnant ads on Stack Overflow. Ad Requirements It must be an advertisement soliciting the participation and contribution of programmers writing actual source code. This is not intended as a general purpose ad for consumer products which just happen to be open source. It's for finding programmers who will help contribute code or other programmery things (documentation, code review, bug fixes, etc.). Your ad should be an original creation which has not previously appeared on Stack Overflow. Please do not resubmit entries that have appeared as ads on Stack Overflow in previous periods. In order to work, the answers you post to this question must conform to the following rules. Answer Template  [![Tagline to show on mouseover][1]][2]        [1]: http://image-url   [2]: http://clickthrough-url   Please do not add anything else to the body of the post. If you want to add any commentary, keep it in the comments. Image requirements  The image that you create must be 220 pixels by 250 pixels Can be hosted anywhere (tinypic, twitpic, your blog); we will mirror the image locally when we serve it. Must be GIF or PNG No animated GIFs Absolute limit on file size of 150 KB  The output, which ultimately will be served in an ad slot on Stack Overflow, can be previewed by clicking through to this URL:  Score Threshold There is a minimum score threshold an answer must meet (currently 6) before it will be served up by that URL and shown on Stack Overflow. You can see all the ads that currently make the threshold and meet our criteria on this page:  You can also view the ads that meet the threshold using 's I'm using an unsigned repo in Ubuntu 16.04 from Debian multimedia:  deb http://www.deb-multimedia.org jessie main   To install deb-multimedia-keyring, I'm running:  apt-get update &amp;&amp; apt-get install deb-multimedia-keyring -y   This gives an error:  W: GPG error: http://www.deb-multimedia.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117 E: The repository 'http://www.deb-multimedia.org jessie InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. I have an unlocked North American (Canada) iPhone 5s, where can I buy a data only SIM card in Japan ? I'm not interested in renting nor in a voice plan, I'll be staying for 4 weeks.  I'll be landing in Tokyo, so preferably around there. Can I get them from the airport somewhere ? I'm assuming I won't have problems with the network/frequencies, am I correct ?