I'm going to try to keep this simple.   I have a function that calls a modal pop up via ajax, it loads in all the images saved to a database. This modal displays the images, and gives you the option to click another button to "insert" an image into a form. (It puts the image on the main page, and inserts the image id into a hidden input field.)  I had this working with an 'onclick="functionName()"' option, but since I'm still learning js and jQuery, I found this way was older. So I've been working on updating my code.  Here is what I've got, and I've done a few hours of research, and from what I can guess, since the ajax loads these new function calls, the DOM isn't recognizing them as a "call" to the JS function?  If anyone can help or point me in the right direction, I'd greatly appreciate it.  //Ajax Modal Button: &lt;img/&gt; &lt;button type="button" class="insertPageImages"&gt;Insert Image&lt;/button&gt;  //JS Function $(function(){      $('button.browsePageImages').on('click', (function(e){           //Loads Ajax Modal For insertPageImages Button      }));       $('button.insertPageImages').on('click', (function(e){         e.preventDefault();         alert("TEST WORKING");     })); });
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.
IndentationError: unindent does not match any outer indentation level Assume that $(\text{X}, T)$ is compact and Hausdorff. Prove that a comparable but different topological space $(\text{X},T')$ is not. Say that a topological space is CH if it is both compact and Hausdorff.   Let $T$ and $T'$ be two topologies on the same set X that are comparable   but different, i.e., $T$ is either strictly smaller or strictly larger than $T'$.   Assume that $(\text{X}; T )$ is CH. Prove that $(\text{X}; T')$ is not CH.   I just can seem to get started, so I was wondering if anybody could give me a hint...  If $T' \subsetneqq T$, then the identity $id: (\text{X},T) \rightarrow (\text{X}, T')$ is continuous and surjective. This implies that $id(\text{X},T) = (\text{X},T')$ is also compact. So in order to show that $(\text{X},T')$ is not CH, I need to show that it is not Hausdorff, right? But I'm stuck... Efficient computation of $\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor$ I realize that there is probably not a closed form, but is there an efficient way to calculate the following expression?  $$\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor$$  I've noticed $$\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor = \left\lfloor\frac{1}{2}\sum_{k=1}^{\left\lfloor\frac{n}{2}\right\rfloor} \left\lfloor\frac{n}{k}\right\rfloor\right\rfloor + \sum_{k=1,\ odd(k)}^n \left\lfloor \frac{n}{k}\right\rfloor$$  But I can't see an easy way to let the second term enter in a recursion. View history of commands run in terminal Is there a way to save all my typed terminal commands and view it like history in a log book? The  EU book The Rise and Fall of Darth Vader reveals that Vader personally gave the stormtroopers the order to kill Owen and Beru Lars, and that he knew who he was condemning to death before he gave the order:  “Lord Vader,” said one of the sandtroopers, adjusting a control on his helmet so that only Vader could hear his voice.  “The Jawas sold a protocol droid and an astromech to these moisture farmers, but both droids are gone.” Moisture farmers? Intrigued, Vader examined the holograms of the kneeling couple and said, “The farmers’ names?” “Owen and Beru Lars, sir,” the sandtrooper responded. “They say they don’t know where the droids are, but it looks like a landspeeder is missing from their garage.” Owen and Beru, Vader recalled... “Tell Mr. and Mrs. Lars that they seem to have trouble keeping protocol droids on their property.”1 Not certain if he had heard correctly, the sandtrooper said, “Sir?” “Then you may extend to them every courtesy that you showed the Jawas before you continue your search. Establish checkpoints to detain any droids entering Mos Espa or Mos Eisley spaceports. And one more thing.” “Yes, Sir?” “Do not stop transmitting until I break the connection.” “Understood,” said the sandtrooper. Vader watched the sandtroopers carry out his orders on their helpless victims. He found the sight of rising flames — even holograms of flames burning millions of light years away — to be most satisfying.  I had always assumed that the stormtroopers killed the Larses on their own initiative, or in accordance with a previously given order.  The version of events in this book is interesting, but it raises the question of why it took Vader so long to figure out who Luke was. In canon, who gave the order to kill Owen and Beru Lars?  If Vader was involved, did he recognize the couple before he gave the order?  1 A reference to the fact that Anakin took C-3PO from the Lars homestead the last time he was on Tatooine, without informing the Larses that he would do so. How to disable pylint 'Undefined variable' error for a specific variable in a file? Current situation: I'm required to cite "normative" documents (read: standards and manuals) separately from articles and books etc. Using biblatex and biber with the numeric style I'm doing that by issuing multiple printbibliography commands like so:  \usepackage[style=numeric,backend=biber,bibencoding=utf8]{biblatex} %... lots of stuff \printbibliography[type=standard,title=Standards \&amp; Manuals] \vskip\baselineskip \printbibliography[type=manual,heading=none] \printbibliography[nottype=standard,nottype=manual]   which gives a heading Standards &amp; Manuals, prints a list of manuals, leaves a bit of space then the list of standards and finally, under a new heading Bibliography gives books and articles etc. Thus far everything is fine, enter:  The Problem: I'm using the shorthand field in my database for the standards and manuals which works perfect as far as output within the text is concerned and sets the shorthand as the label in the bibliography and prints the details to the right of it - problem is: my shorthands are considerably longer than the labels generated by the numeric style, but even though they're in three different \printbibliography commands, everything gets indented to the maximum width of the label, making the part for books and articles look quite ridiculous.  The following shows the problem with only two separate \printbibliography (and an obviously exaggeratedly long shorthand):   Now  what I would obviously want is for each of the \printbibliography commands to only use the indentation actually necessary to accommodate the largest label appearing within, i.e. rendering the Manuals section as above, but the Bibliography section like follows:   Can anyone help me to achieve this? Or give me some pointer where to look?  The above was produced with the following MWE on an up-to-date TeXLive 2014:  \documentclass[10pt,british]{scrbook}  \usepackage{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern}  \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @manual{HowTo,     title = {How to Make the World Go Round},     shorthand = {HowToMakeTheWorlGoRound},     publisher = {The Publisher},     year = {2000} }  @article{Article,     author = {Author, A. and Buthor, B.},     journal = {Journal Title},     pages = {113--126},     title = {The Article},     volume = {65},     year = {1900} } \end{filecontents*}  \usepackage[style=numeric,backend=biber,bibencoding=utf8]{biblatex} \addbibresource{\jobname.bib}  \usepackage[hidelinks]{hyperref}  \begin{document} \let\cleardoublepage\relax \chapter{The Document} Nothing to see here, but we refer to the \parencite{HowTo} based on a principle discovered by \textcite{Article}.  \printbibliography[type=manual,title=Manuals] \printbibliography[nottype=manual] \end{document} Since I'm confused with these two phrases, I did a search in Google Books hoping to find some examples. But then I found :     Two private spaces or replicas cannot contain the same object with two distinct references. For example, during a disconnected phase, the pump can be present in two different private spaces and still be designated with the same name. During a meeting, two replicas use a same name to access the pump object(local or distant).   This made me more confused. I don't really understand why "the same name" was used in one sentence while "a same name" was used in another. Are there any differences between them? Finding the 1st three derivatives of a function and plotting all four curves Can someone give me a short description and comparison of the different road cycling pedal / shoe systems? I am looking at buying a pedal/shoe system as the clips and straps I am using are hurting my feet again.  It's been a long time since I have bought a road pedal / shoe system, and I have forgotten the differences between SPDs, Look pedals and all the others.    Can someone give a short comparison of each pedal system with pros and cons of each? My usage is/will be mainly city street cycling and then road cycling (recreation, not racing).  I'd prefer if people would give the pros and cons of each and not their opinion on the "pedal system war".  :) However, "I use them because I find XYZ and it helps in ABC ways" is very useful. Why is electric field of an infinite plate constant at all points? I know from Gauss law, it is $\vec{E}=\dfrac{\sigma}{2 \epsilon_0}(\hat{n})$ at all points. But it doesn't make sense because of the inverse square nature of electric field which suggests if you move further away from the plane, electric field must reduce.   Then why is electric field of an infinite plate constant at all points? How bad is it to use display: none in CSS? I've heard many times that it's bad to use display: none for SEO reasons, as it could be an attempt to push in irrelevant popular keywords. A few questions:   Is that still received wisdom? Does it make a difference if you're only hiding a single word, or perhaps a single character? If you should avoid any use of it, what are the preferred techniques for hiding (in situations where you need it to become visible again on certain conditions)?   Some references I've found so far:       If you're straight-out using CSS to hide text, don't be surprised if that is called spam. I'm not saying that mouseovers or DHTML text or have-a-logo-but-also-have-text is spam; I answered that last one at a conference when I said "imagine how it would look to a visitor, a competitor, or someone checking out a spam report. If you show your company's name and it's Expo Markers instead of an Expo Markers logo, you should be fine. If the text you decide to show is 'Expo Markers cheap online discount buy online Expo Markers sale ...' then I would be more cautious, because that can look bad."   And  on the same article     We can flag text that appears to be hidden using CSS at Google. To date we have not algorithmically removed sites for doing that. We try hard to avoid throwing babies out with bathwater.   Eric Enge      The legitimate use of this technique is so prevalent that I would rarely expect search engines to penalize a site for using the display: none attribute. It’s just very difficult to implement an algorithm that could truly ferret out whether the particular use of display: none is meant to deceive the search engines or not. Is it possible to interrupt spellcasting? It's time to remove the bounty delay After the performance problems we have run into with  we've decided to make a change, we're moving the network on to .  Here's where to get started:   What works:   All search operators should be in Many changes below from the old search behavior   What's different:   The new search is AND, adding a search term will narrow your results, not expand them. The look of search results is now more unified with the following differences between Q&amp;A:   "Q:" or "A:" prefix Answer counts and tags will be present in questions. The answer count will be highlighted in green if it's accepted. (We may index other things later, that's why the results are more generic/google-y now.)  It's faster, about 5-10x faster for almost all searches on large sites like Stack&nbsp;Overflow Quoted phrases are exact matches except for case-sensitivity, for example,  or . If not in a quoted phrase, words will now be stemmed () Snippets for context will now be more relevant Excludes are now explicitly supported (like -term and -"my phrase") We don't roll up to the question anymore, if you searched for something that matched an answer, we'll show you the answer directly in search results The search per minute limit is effectively gone, it'll block a bot, but no one else should hit it... We'll be monitoring performance though infavorites:mine is back, with infavorites:12345 (any user id) added   What needs work:   What you tell us is broken... Do your worst.   Testing, not yet final:   New range support, here are some examples:   answers:1..1 (exactly one answer) answers:10..20 (10 to 20 answers) created:2008..2009 (created between Jan 1st, 2008 and Dec 31, 2009) created:2010-04..2010-05 (created between April 1st, 2010 and May 31st, 2010) created:2011-01-05..2011-01-06 (to be clear: it goes to end-of-day) This range syntax applies to a new advanced operator: lastactive: and the other numerical ranges, views:, and score:  Additionally, the above syntax is a bit more flexible if you forget it exactly (e.g. score:20-30) in an effort to be intuitive as possible, give it a try - tell us what you think.    I'll try and improve the search as much as possible before it becomes default... At the very least we want it equivalent in relevance and functionality before the switch, but ideally much better. We won't switch until then.  Please give it a try, tell us what you think here, and we'll continually improve it over the holidays as time allows. Bear in mind you may get a search offline page during this test if a change we're making for results necessitates a reindex, and even that should only last about two minutes here on Meta&nbsp;Stack&nbsp;Overflow.  Give it your worst, compare results to the old search, tell us what's better and what's not. We look forward to the feedback.  Update The new search is now the default across the network - we'll be monitoring things over the next few days and would appreciate reports of any crazy behavior you see here. Is using std::deque or std::priority_queue thread-safe? Why are the solutions of polynomial equations so unconstrained over the quaternions? An $n$th-degree polynomial has at most $n$ distinct zeroes in the complex numbers.  But it may have an uncountable set of zeroes in the quaternions.  For example, $x^2+1$ has two zeroes in $\mathbb C$, but in $\mathbb H$, ${\bf i}\cos x + {\bf j}\sin x$ is a distinct zero of this polynomial for every $x$ in $[0, 2\pi)$, and obviously there are many other zeroes.  What is it about $\mathbb H$ that makes its behavior in this regard to be so different from the behavior of $\mathbb R$ and $\mathbb C$?  Is it simply because $\mathbb H$ is four-dimensional rather than two-dimensional? Are there any theorems that say when a ring will behave like $\mathbb H$ and when it will behave like $\mathbb C$?   Do all polynomials behave like this in $\mathbb H$? Or is this one unusual? Is it possible to see cp speed and percent copied? I'm having problems when copying large files using nautilus (it gets stuck). I need to copy, using cp. I would like to know if there are any parameters that shows the % copied and also the transfer speed. Possible Duplicate:          I sometimes work outside and are using a 3G usb connection with quite a limited data allowance.  I want some fast and easy way to temporary block all incoming and outgoing traffic in windows firewall except for chrome to be sure that Dropbox or something else is not using up my data.  I've tried to set Windows Firewall Properties to "Block" which gives "Outgoing/Incoming connections that do not match a rule are blocked".  Problem: There are many allow-rules like Dropbox that would "override" the block. And I don't want to disable all rules and then enable them, since there are some that I want disabled even when I get to the office...  Any suggestions?  Thanks! I want to know, if this bug is fixed, because all previous versions of Ubuntu didn't work for me. So I just want to know, should i leave Windows 10 and go for Ubuntu 17.10. Thanks!