I'm generating images from a folder with this script:  $(document).ready(function() { $.ajax({     url: "gallery_images",     success: function(data){         $(data).find("a:contains(.jpg),a:contains(.gif),a:contains(.png)").each(function(){             // will loop through             var images = $(this).attr("href");              $('&lt;div class="g_image"&gt;&lt;/div&gt;').html('&lt;img class="g_img" src="gallery_images/'+images+'"/&gt;').appendTo('#galerija');         });     } });   });  The problem is that, then I'm trying to click the image, simple jQuery click event does not work.  $(".g_image img").click(function(){ alert("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.
Have there been any anime with actual product placement? In Steins;Gate, Dr. Pepper is mentioned several times as the "An Intellectual Drink, For The Chosen Ones".    I've seen a lot of other shows that have stores or products with similar names to the real-life brand, so that the producers can avoid copyright issues.     Even though the inclusion of Dr.Pepper wasn't asked for by the Dr.Pepper company, after the release of Steins;Gate the sales in Japan for Dr.Pepper shot up. .   Have there been any anime where a company has paid for their product to be included in the show? How prove $\frac{a^2}{a+2b^2}+\frac{b^2}{b+2c^2}+\frac{c^2}{c+2a^2}\ge 1$ let $a,b,c$ be postive real numbers ,and such $$ab+bc+ac=3$$   show that   $$\dfrac{a^2}{a+2b^2}+\dfrac{b^2}{b+2c^2}+\dfrac{c^2}{c+2a^2}\ge 1$$   This problem is from Secrets In Inequalities volume 1  page 30,example 1.24. the comment.the  author this case is a bit more diffcult,But this author can't post solution.Thank you I just visited  and noticed that my profile picture is not the same as on all other sites.  According to  the image will be synchronized when synchronizing the complete profile. I did that but the image is still the same.  Then I wanted to change the image in the Area51 profile directly - but I can only change to a gravatar image and can't use the new and fancy Stack Exchange image.  Is that a bug? I know how to rename files in Unix:  $ mv ~/folder/subfolder/file.txt ~/folder/subfolder/file.sh       ^-------this part------^    ^------this part-------^   It takes too long time to repeat ~/folder/subfolder/file twice.  Is there a quicker way? Found an error in my thesis I've found a error in my thesis recently, after its submission. I made a mistake that wrongly accepted the hypothesis which should be rejected. What should I do?? Comparing SVM and logistic regression Can someone please give me some intuition as to when to choose either SVM or LR? I want to understand the intuition behind what is the difference between the optimization criteria of learning the hyperplane of the two, where the respective aims are as follows:     SVM: Try to maximize the margin between the closest support vectors LR: Maximize the posterior class probability    Let's consider the linear feature space for both SVM and LR.  Some differences I know of already:   SVM is deterministic (but we can use Platts model for probability score) while LR is probabilistic. For the kernel space, SVM is faster (stores just support vectors) Max length for HTML How to restrict the maximum number of characters that can be entered into an HTML &lt;textarea&gt;? I'm looking for a cross-browser solution. Guidelines for customizing biblatex styles Using same modulus for RSA I know that there exist some attack when using same modulus.      But with a little modification, $m$ is the plain-text $N$ is the RSA modulus $r_1, r_2$ is the random padding $e, s$ is the public exponent $C_e, C_s$ is the cipher-text  encrypt as follow $$С_e = (m + r_1)^e   \bmod N$$ $$С_s = (m + r_2)^s   \bmod N$$  If attacker only knows $C_e, C_s, r_1, r_2, e, s, N$. Is it possible to know $m$?  It seems the  does not work? Short version: In what circumstances is dd safe to use for copying data, safe meaning that there is no risk of corruption due to a partial read or write?  Long version — preamble: dd is often used to copy data, especially from or to a device (). It's sometimes attributed mystical properties of being able to access devices at a lower level than other tools (when in fact it's the device file that's doing the magic) — yet dd if=/dev/sda is the same thing as cat /dev/sda. dd is sometimes thought to be faster, but . Nonetheless, .  Problem: dd if=foo of=bar is not, in fact, the same as cat &lt;foo &gt;bar. On most unices¹, dd makes a single call to . (I find  fuzzy on what constitutes “reading an input block” in dd.) If read() returns a partial result (which, according to POSIX and other reference documents, it's allowed to unless the implementation documentation says otherwise), a partial block is copied. Exactly the same issue exists for write().  Observations: In practice, I've found that dd can cope with block devices and regular files, but that may just be that I haven't exercised it much. When it comes to pipes, it's not difficult to put dd at fault; for example try :  yes | dd of=out bs=1024k count=10   and check the size of the out file (it's likely to be well under 10MB).  Question: In what circumstances is dd safe to use for copying data? In other words, what conditions on the block sizes, on the implementation, on the file types, etc, can ensure that dd will copy all the data?  ( has a fullblock flag to tell it to call read() or write() in a loop so as to transfer a full block. So dd iflag=fullblock is always safe. My question is about the case when these flags (which don't exist on other implementations) are not used.)  ¹  I've checked on OpenBSD, GNU coreutils and BusyBox. What are alternatives to ExtJS? So what I'm looking for is a javascript framework I can use that has several UI controls. I have taken a look at  but those controls are very basic compared to ExtJS. Are there any other competitive alternatives?     This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. More info: . What is the correct possessive for nouns ending in "‑s"? What is the possessive of a noun ending in ‑s?  Are these both right, or is the second one wrong?   the boys' books the boss' car Why did the quality of terminators increase from movies 1 to 3? I have seen only the first three movies, so I don't know whether the other movies/TV series deal with this question or not. My main point is that in the movies, the terminator that travels back furthest in time is of the worst quality, and the quality increases with the time travel (meaning they travelled from a later time). What is a good explanation for this?  Note: I am not interested in the obvious not-in-universe explanation that they wanted something better and bigger for each new movie. What are the fundamental differences between the mainstream *NIX shells and what scenarios might prompt you to use one over the other?  I understand that some of it probably comes down to user preference but I've only ever used Bash and I'm interested to hear where another shell might be useful. Also, is there an impact on user-written shell scripts when running under one shell or another or is it simply a matter of changing the shell at the top of the file?  My instinct says it's not that easy. How does the Mac choose which connection to use when both Wifi and Ethernet are connected? When I'm connected to two networks with separate routers using Wifi and Ethernet, how does my Mac know what connection to use when I visit a website? Removing files with strange names Possible Duplicate:          Somehow I ended up with a file named "-r".  How do I remove it?  rm -r doesn't work.  I tried 'rm -i `ls -a`' to step through the file names, but it didn't prompt me to delete this one.  Edit A very hacky approach was to use python's os.unlink function.  That worked, but I'm curious to hear other ways. modulo version of the quadratic formula and Euler's criterion A book about explorers stranded on a planet with two computers I have been looking for a book that I read in the 80's but it's probably older. It was about a spaceship from Earth in a very long mission to discover life? I don't remember, but they had been far too long in space without any results, so the crew was on the verge of mutiny.  They land on a planet, home of two super-computers called...? Alpha? Beta? One seemed more advanced than the other, the planet was void of any other life, and supposedly it was forseen that the planet would be struck by a comet, and the computers see the ship as a way to save or abandon the planet before the impact.  At some point one member of the crew is captured by the computers, and it's vivisected in an attempt to get data about humans. Then they "reassemble" the crew member before returning it to the ship, hoping that the humans could "reactivate it" since the computers were unable to do so. Which of course enrages the ship's crew.  The ship was unable to take off for reason that I don't remember and they must fight the computers to save themselves.  Does anyone know what this is?  Thanks, as soon as I read the names, they did ring a bell on my memory. The case it's closed then. How to compute $\int_0^{\pi/2}\frac{\sin^3 t}{\sin^3 t+\cos^3 t}dt$? Calculating with Mathematica, one can have $$\int_0^{\pi/2}\frac{\sin^3 t}{\sin^3 t+\cos^3 t}\,\mathrm dt=\frac{\pi}{4}.$$   How can I get this formula by hand? Is there any simpler idea than using $u = \sin t$?     Is there a simple way to calculate $$ \int_0^{\pi/2}\frac{\sin^n t}{\sin^n t+\cos^n t}\,\mathrm dt $$ for $n&gt;3$? Could anyone come up with a reference for this exercise? Using pgfplots, why do I get "undefined control sequence" when trying to use a foreach variable as a parameter to addplot? Since I have multiple plots with error bars, I would like to shift the error bars slightly to make the overall plot more readable. However, when I try to do this using the variable of a \foreach as the amount to shift, I get an "undefined control sequence" error.  \documentclass{article}  \usepackage{tikz} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture} \begin{axis} \foreach \x/\y in {a/-1cm, b/0cm, c/1cm} {     \addplot+ [         %every error bar/.append style={xshift=\y},         %every node/.style={xshift=\y},         error bars/y dir=both,         error bars/y explicit,     ] coordinates {         (0, 0) +- (0, 1)         (1, 0) +- (0, 1)         (2, 0) +- (0, 1)     }; } \end{axis} \end{tikzpicture}  \end{document}   (The document does not compile when I uncomment either one of the two comments.)  What's wrong here?  EDIT: Added another variable to the \foreach. In my actual use-case it would contain the filename to plot data from or the label to use for the curve.