Image upload in one click - Onchange not being triggered
onChange event doesn't trigger
Where's the error in this $2=1$ fake proof? I'm reading Spivak's Calculus:  2 What's wrong with the following &quot;proof&quot;? Let $x=y$. Then $$x^2=xy\tag{1}$$ $$x^2-y^2=xy-y^2\tag{2}$$ $$(x+y)(x-y)=y(x-y)\tag{3}$$ $$x+y=y\tag{4}$$ $$2y=y\tag{5}$$ $$2=1\tag{6}$$  I guess the problem  is in $(3)$, it seems he tried to divide both sides by $(x-y)$. The operation would be acceptable in an example such as:  $$12x=12\tag{1}$$ $$\frac{12x}{12}=\frac{12}{12}\tag{2}$$ $$x=1\tag{3}$$  I'm lost at what should be causing this, my naive exploration in the nature of both examples came to the following: In the case of $12x=12$, we have an imbalance: We have $x$ in only one side then operations and dividing both sides by $12$ make sense. Also, In  $\color{red}{12}\color{green}{x}=12$ we have a $\color{red}{coefficient}$ and a $\color{green}{variable}$, the nature of those seems to differ from the nature of $$\color{green}{(x+y)}\color{red}{(x-y)}=y(x-y)$$ It's like: It's okay to do the thing in $12x=12$, but for doing it on $(x+y)(x-y)=y(x-y)$ we need first to simplify $(x+y)(x-y)$ to $x^2-y^2$. Links being changed to cppreference.com Someone just edited a link in one of my answers to point to a 'better reference'.    I've no problem with links being changed in general, but this smells like part of a concerted attempt to redirect traffic.   Is this kind of activity acceptable on SO? How do you use a gray card? There are already   on how to make a gray card, but unfortunately my ignorance goes deeper than that.  How do you use a gray card? Suppose $G$ is a semigroup and it holds both left and right cancellation. Suppose $G$ is a semigroup and it holds both left and right cancellation. Also for each $a,b\in G$, $xa=b$ has solution in $G$. Prove G is a group.   I know this question looks very "old" style. First I think it's easy for me too since I already practice probelems like "semigroup, $xa=b$ and $ax=b$ have solution , then group" Or "finite semigroup, both left and right cancellation hold, then group ". But I still get stuck... My try:  First of course, for $xa=a$ , there exists $e_a$ such that $e_aa=a$. Now we need to proof $e_a$ is left identity for all elements. Then left inverse exists hence $G$ is a group. But the key is to proof $e_ab=b$ for all $b\in G$. I have a simple circuit:    The max rating (current) of the LED is 30mA.  How can I work out what the resistance of the resistor needs to be? By using ohm's law I found it to be \$3V/0.03A = 100 \Omega\$. However using software called , and trial and error I got the minimum possible resistance to be 36&Omega;. However, if I use a 35&Omega; resistor, then the LED breaks. Is the software wrong, or (more likely) am I doing something wrong? In Triangle, $\sin\frac A2\!+\!\sin\frac B2\!+\!\sin\frac C2\!-\!1\!=\!4\sin\frac{\pi -A}4\sin\frac{\pi -B}4\sin\frac{\pi-C}4$ To prove  $$\sin\frac A 2+\sin\frac B 2+\sin\frac C 2-1=4\sin\frac{\pi -A}4\sin\frac{\pi -B}4\sin\frac{\pi-C}4$$  My approach :   $$ \begin{align} \text{L.H.S.} &amp; = \sin\frac{A}{2}+\sin \frac{B}{2}+\sin\frac{C}{2} -1 \\[8pt] &amp; = 2\sin\frac{A+B}{4}\cos\frac{A-B}{4}+\cos\left(\frac{\pi}{2}-\frac{C}{2}\right)-1 \\[8pt] &amp; = 2\sin\frac{\pi -C }{4}\cos\frac{A-B}{4} - 2\sin^2\left(\frac{\pi -C}{4} \right) \\[8pt] &amp; =2\sin\frac{\pi -C }{4}\left\{ \cos\frac{A-B}{4} - \sin\left(\frac{\pi -C}{4} \right)\right\} \end{align} $$  Unable to move further please help. thanks. Is  && statement() the same as if() statement()? Why are these sites cloning my content, and how do I stop them? So I was searching for one of my own websites on Google: http://www.botlibre.com  and to my surprise found some clones of my website, like:  http://83waystowasteyourtime.adidas.com  and:  http:// mediaiq.astral.comm  My question are:   Why are they creating clones of my website?  Some kind of SEO scheme or what? What gain could they be getting? How do they have a URL at adidas.com and astral.comm?  I assume it's not Adidas steeling my content. How do I shutdown these sites and stop people from stealing my content? (on Tomcat) SEO repeated keywords in domain and url Work out the type of c# application a class contained in a DLL is being used by Is there any way to know in C# the type of application that is running.  Windows Service ASP.NET Windows Form Console  I would like to react to the application type but cannot find a way to determine it. Expectation of random variables ratio I'm using this code to get standard output from an external program:  &gt;&gt;&gt; from subprocess import * &gt;&gt;&gt; command_stdout = Popen(['ls', '-l'], stdout=PIPE).communicate()[0]   The communicate() method returns an array of bytes:  &gt;&gt;&gt; command_stdout b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   However, I'd like to work with the output as a normal Python string. So that I could print it like this:  &gt;&gt;&gt; print(command_stdout) -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1 -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2   I thought that's what the  method is for, but when I tried it, I got the same byte array again:  &gt;&gt;&gt; binascii.b2a_qp(command_stdout) b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   How do I convert the bytes value back to string? I mean, using the "batteries" instead of doing it manually. And I'd like it to be OK with Python&nbsp;3. Partition of harddisk lost/unusable Why was my "shopping list" question closed? My question was closed for being a "shopping list question", even though it was very much related to the topic of the site. Why? Why can't I import a SVG file from Adobe Illustrator or Inkscape? How do I pass JavaScript variables to PHP? I have the following problem: I correctly obtain a numbered bibliography at the end but along the text the cite_key appear instead of a number. How to fix this problem?   \documentclass[11pt]{book}  \usepackage[]{biblatex} \begin{document} %some text  ... \cite{ABKM2015}... %some text  \begin{thebibliography}{99} \bibitem{ABKM2015} Arroja, F. and Bartolo, N. and Karmakar P. and Matarrese, S. (2015). \newblock The Two Faces of Mimetic Horndeski Gravity             \newblock {\em ArXiV}, 1506.08575 (2015). \end{thebibliography} \end{document}   After compiling I get ... [ABKM2015] ... while I want for example  [1]. I've made some high resolution pixel art in PS by drawing it down at the pixel level and then increasing the image size with the nearest neighbor setting to keep it crisp. In the web browser, however, I need to display these images as icons with a dynamic size, so I can't just size the images correctly to begin with, and the broswer seems to blur the images when rendering them smaller, while vector images seem to stay more crisp as they shrink.   So I'm wondering if there's a way to convert the pixel art neatly into vector. I'm aware of the trace function in illustrator, but it seems to do a rough job iirc. Why is volatile needed in C? Why is volatile needed in C? What is it used for? What will it do? How can I see my progress for different badges? I am trying to obtain more badges on Stack Overflow. For example, to gain Archaeologist I need to edit 100 inactive posts but I am not keeping track of the number of posts I've edited. For Deputy I need to raise 80 helpful flags, etc. How can I view all my statistics about the badges, such as how many more edits I need to do, etc. I'm not doing it for badges, but I can spend a bit more effort if I'm close to getting a badge.