How to pass multiple results calculated in a module to global variables?
How to modify function argument?
error: requested operation requires superuser privilege How do you check if a selector matches something in jQuery? In Mootools, I'd just run if ($('target')) { ... }.  Does if ($('#target')) { ... } in jQuery work the same way? Generating all Pythagorean triplets for given Hypotenuse can anybody help me out to find all  Pythagorean triplet when Hypotenuse is given? for example 10 is given i need (10,6,8)  ,and not needed such triplet (10,24,26) as 10 is not Hypotenuse for this triplet! Preventing reverse search engines from finding the origin of your image? I am planning to make a game, where I give the user an anime related image and they have to guess where its from.  However, most of the images, specially from popular anime are easy to use on Google reverse search to find and pin point the anime.  I've tried to see if I could make so it would not recognize the image but unhappily my tricks were not good enough.  Original image:    Grey-scale with horizontal flip:    Watermarking:    Puzzling the image with grey-scale:    Grey-scale with horizontal and vertical flip worked for this image but doesn't always work:    Also the above mentioned methods are rather easy for people to guess the anime.  I would like to know if there any good trick, that I could use on my images to make so it would not work on reverse search engines and yet not be so overcomplicated that I can implement on my program.  For example grey-scale, cropping, flipping are rather easy things to achieve in C#. This is a follow up question to . My reference database contains some DOI codes, but mainly normal URLs and some ISBN/ISSN codes. What I would like to achieve is extending the code from Herbert and hyperlink the title of the entry with the following priority: 1. DOI, 2. URL, 3. ISBN/ISSN. What I mean is, if both DOI and URL is available, use DOI. If URL and ISBN is available use URL. If only ISBN is available use that.  There are two further isses:    The URL field might contain several URLs, which are just seperated by a white space. In that case just the first URL should be used.  Herbert's code just extends to articles. I would like to extend this to all entry types.   The code from Herbert to Hyperlink the Title with DOIs is:   \newbibmacro{string+doi}[1]{%   \iffieldundef{doi}{#1}{\href{http://dx.doi.org/\thefield{doi}}{#1}}} \DeclareFieldFormat{title}{\usebibmacro{string+doi}{\mkbibemph{#1}}} \DeclareFieldFormat[article]{title}{\usebibmacro{string+doi}{\mkbibquote{#1}}}   This far surpasses my skill, so it would be great if someone could give me some guidance how to achieve that. Some guy called one of my Snipplr submissions "crap" because I used if ($_SERVER['REQUEST_METHOD'] == 'POST') instead of if ($_POST)  Checking the request method seems more correct to me because that's what I really want to do. Is there some operational difference between the two or is this just a code clarity issue? Manually installing a program on Debian This is a question in Ahlfors in the section on the argument principle: How many roots of the equation $f(z)=z^4+8z^3+3z^2+8z+3=0$ lie in the right half plane?  He gives a hint that we should "sketch the image of the imaginary axis and apply the argument principle to a large half disk."  Since $f$ is an entire function, I think I understand that the argument principle tells us that for any closed curve $\gamma$ in $\mathbb{C}$, the winding number of $f(\gamma)$ around 0 is equal to the number of zeros of $f$ contained inside $\gamma$.  How would you go about actually applying the hint though? I am having trouble figuring out what the image of a large half disk under $f$ would look like. Typing the ZIP code doesn't yield the company page I'm trying to make a map using the Javascript API.  I want to use my own basemap, but I can't find the most simple code to do this.  I always see something like this:    function init() {     map = new esri.Map("mapDiv", {       basemap: "satellite",       center: [-97.395, 37.537],       zoom: 11     });   But I don't want to use the ArcGIS online basemaps.  What is the code to make a map service I am hosting my basemap? Sequence converges iff $\limsup = \liminf$ I want to prove that a sequence of real numbers $\{s_n\}$ converges to $s$ if and only if $\limsup_{n \to \infty} s_n = \liminf_{n \to \infty} s_n = s$.  Here are my definitions:  For any sequence of real numbers $\{s_n\}$, let $E$ be the set of all subsequential limits of $\{s_n\}$, including possibly $+\infty$ and/or $-\infty$ if any subsequence of $\{s_n\}$ diverges to infinity.  Then $\limsup_{n \to \infty} s_n = \sup E$, and $\liminf_{n \to \infty} s_n = \inf E$.  I know the theorem that a sequence converges to a point if and only if every one of its subsequences converge to that same point, so one direction of this proof is easy:  If $\{s_n\}$ converges to some point $s \in \mathbb{R}$,  then every subsequence of $\{s_n\}$ converges to $s$.  So the set $E$ of every subsequential limit of $\{s_n\}$ consists of the single point $s$, so $$\limsup_{n \to \infty} s_n = \sup \{s\} = s = \inf \{s\} = \liminf_{n \to \infty} s_n$$  But the other direction seems more tricky...  If $\limsup_{n \to \infty} s_n = \liminf_{n \to \infty} s_n = s$, then every convergent subsequence converges to the same point $s$.  Also, there can be no subsequences which diverge to infinity (otherwise $\limsup_{n \to \infty} s_n$ would be $+\infty$, or $\liminf_{n \to \infty} s_n$ would be $-\infty$).  But can't there be subsequences which diverge otherwise?  And wouldn't that throw off the convergence of $\{s_n\}$?    EDIT:  I'd also be willing to accept a solution which makes use of the "Pinching Theorem" (if $a_n \leq s_n \leq b_n$ for every $n \in \mathbb{N}$, and if $a_n \to s$ and $b_n \to s$, then $s_n \to s$). There have been several questions already posted with specific questions about , such as when to use it and what frameworks are there for it. However,  What is dependency injection and when/why should or shouldn't it be used? Memory management in Objective-C I'm a big fan of the podcast Astronomy Cast and a while back I was listening to a Q&amp;A episode they did. A listener sent in a question that I found fascinating and have been wondering about ever since.   From the show :      Arunus Gidgowdusk from Lithuania asks: "If you took a one kilogram mass and accelerated it close to the speed of light would it form into a black hole? Would it stay a black hole if you then decreased the speed?"   Dr. Gay, an astrophysicist and one of the hosts, explained that she'd asked a number of her colleagues and that none of them could provide a satisfactory answer. I asked her more recently on Facebook if anyone had come forward with one and she said they had not.  So I thought maybe this would be a good place to ask. Sum two dates in Java 9 rows is just way too small by default. Is this a text-editor for ants? How does "Reputation" work? A non-blocking read on a subprocess.PIPE in Python Regex (C#): Replace \n with \r\n How can I replace lone instances of \n with \r\n (LF alone with CRLF) using a regular expression in C#?  Sorry if it's a stupid question, I'm new to Regex.  I know to do it using plan String.Replace, like:  myStr.Replace("\n", "\r\n"); myStr.Replace("\r\r\n", "\r\n");   However, this is inelegant, and would destroy any "\r+\r\n" already in the text (although they are not likely to exist). If I take a loss when I sell my car, can I claim a capital loss deduction on my income tax return?