upload file in php
PHP: how do I copy a temp file upload to multiple places?
How to check if jQuery.ajax() request header Status is "304 Not Modified"? Finding center and radius of circumcircle Find the center and radius of the circle which circumscribes the triangle with (complex) vertices $a_1,a_2,a_3$. Express the result in symmetric form.   I'm not sure where to start in this question. The circumcenter is the intersection of the perpendicular bisectors, but I don't know how to calculate the line equation of the perpendicular bisectors yet. As for the radius, after we find the circumcenter $c$ we can calculate it using $|c-a_1|$ (or $|c-a_2|$ or $|c-a_3|$; all three should be equal.) So how can I calculate the circumcenter? As per the following example, and as in  In bash, where has the trailing newline char gone?, I want to know "why" it happens    x="$(echo -ne "a\nb\n")" ; echo -n "$x" | xxd -p  # Output is: 610a62  # The trailing newline from the 'echo' command #   has been "deleted" by Command Substitution   I assume there must be some very significant reason for a shell action, namely Command Substitution, to actually delete some data from the command output it is substituting... but I can't get my head around this one, as it seems to be the antithesis of what it is supposed to do.. ie. to pass the output of a command back into the script process... Holding back one character seems weird to me, but I suppose there is a sensible reason for it...  I'm keen to find out what that reason is... When it comes to , I often read recommendations like "Use adb logcat to find some more details". Looking for a good way to backup all my apps including their data,  refers to adb backup and adb restore. In several places one can find ways to remotely do on an Android device with the use of , such as transferring files using adb push or adb pull, accessing the  via adb shell, and more. So ADB seems to be a good thing to have for an Android user.  But how to get this "ADB thingy" on my computer? Not being a developer, installing the entire  seems a bit overkill. Is there a more minimalistic approach available? Extracting intersection areas in R I have two polygons. One contains fields(X,Y,Z) and the other contains soil types (A,B,C,D). I want to know what  area of every field contains which type of soil. I tried the following:    library(rgdal) library(rgeos) Field&lt;-readOGR("./","Field") Soil&lt;-readOGR("./","Soil") Results&lt;-gIntersects(Soil,Field,byid=TRUE) rownames(Results)&lt;-Field@data$FieldName colnames(Results)&lt;-Soil@data$SoilType  &gt; Results       A     B     C     D Z  TRUE FALSE FALSE FALSE Y FALSE  TRUE  TRUE FALSE X  TRUE  TRUE  TRUE  TRUE   and achieved good results with it telling me which field contains which soil type. However, how do I get the area instead? Eclipse Shortcut to Split Long Strings I swear I've seen someone do this, but I can't find it in the various lists of shortcuts.  Given:  String s = "A very long ............................ String";   Is there an Eclipse shortcut to turn it into:  String s = "A very long ............................ "      + "String"; Prove that $\lim_{x \to +\infty} \frac{f(x)}{x} = L$ if $\lim_{x \to +\infty} [f(x+1) - f(x)] = L \space$ Let $f:[0, +\infty) \rightarrow \mathbb{R} $ be a bounded function in each bounded interval. If $$\lim_{x \to +\infty} [f(x+1) - f(x)] = L$$ then $$\lim_{x \to +\infty} \frac{f(x)}{x} = L$$   I tried using the definition on the first limit; then, I attempted to use that inequality to apply the triangular inequality to arrive at the definition that gives me the second limit. It is supposed to be simple, but I'm not feeling safe as in how I should write it. Flag indicator present on Meta, but no flags visible Convert continuous numeric values to discrete categories defined by intervals I don't really get why these hyperbolic functions are named after trig functions. Can someone enlighten me? Can helium disappear from Earth? I would like to make cross references to own defined counter on environments. So far I have tried the following,   \documentclass{book} \newcounter{entryc}[subsection] \newcommand{\thetheorem}{\thesubsection.\arabic{entryc}} \newenvironment{qd}[1]{\refstepcounter{entryc}\noindent\textbf{Quasi Definition \thetheorem.}\begin{itshape}} {\end{itshape}} % \begin{document}  \chapter{First chapter} This is the first chapter.  \section{First section} This is the first section.  \subsection{First subsection} This is the first subsection.  \begin{qd}{}\label{qd:emp} This is my environment. \end{qd}  \noindent In quasi definition \ref{qd:emp} it \dots  \end{document}   What happens is that     But I would prefer "...In quasi definition 1.1.1.1". Do anyone have some suggestions of how solve this? and How to avoid the          \noindent  thing before the continuation of the text?   Additional information: if possible I would try to not use ntheorem. How do I check if an element is really visible with JavaScript? In JavaScript, how would you check if an element is actually visible?  I don't just mean checking the visibility and display attributes. I mean, checking that the element is not   visibility: hidden or display: none underneath another element scrolled off the edge of the screen   For technical reasons I can't include any scripts. I can however use  as it is on the page already. I'm using IEEEtran to format an article, and I wanted to include an image. I included the graphicx and hyperref packages, and used the following code, like normal, to include an image.  \begin{figure}[!t] \centering \includegraphics[width=3in]{fetch} \caption{Pipeline: Fetch Instruction} \label{fig:fetch} \end{figure}   What appears, however, is this:    Fetch.png is a file in the directory, and if I remove it, pdflatex errors instead of producing an output. I'm using MiKTeX 2.9 on Windows 7. Any ideas? Not able to add 3 JPanels to a main panel When I set up a site in multiple languages, how should I set up my URLs for search engines and usability?  Let's say my site is www.example.com, and I'm translating into French and Spanish. What is best for usability and SEO?  Directory option:  http://www.example.com/sample.html http://www.example.com/fr/sample.html http://www.example.com/es/sample.html   Subdomain option:  http://www.example.com/sample.html http://fr.example.com/sample.html http://es.example.com/sample.html   Filename option:  http://www.example.com/sample.html http://www.example.com/sample.fr.html http://www.example.com/sample.es.html   Accept-Language header:  Or should I simply parse the  header and generate content server-side to suit that header?  Is there another way to do this? If the different language versions don't have different urls, what do I do about the search engines?    UPDATE 2011-12-06  Google has new recommendations for meta tags for explicitly pointing to other language content: .  UPDATE 2012-05-25  Related but not precisely:   UPDATE 2013-06-12  includes discussion of several URL schemes directly relevant to the question. Show that every prime $p&gt;3$ is either of the form $6n+1$ or of the form $6n+5$, where $n=0,1,2, \dots$ Why am I getting a NoClassDefFoundError in Java? Can I visit Schengen countries on a Type-D Schengen Visa? I’m going to Germany for a semester exchange and I have a long-stay visa from Germany. Can I travel to the other Schengen states during this period with this visa or do I have to apply for a separate short stay Schengen visa?  My visa is German national visa type D. It is for a duration of 4 months, i.e., longer than 90 days. It says on the visa that the long stay visa is valid in Deutschland, which is different from my earlier visa, which I had when I visited Germany earlier; that one was a short stay visa and said it was valid in Schengen Staten.  Perhaps my current visa means that I can stay in Germany for a period of longer that 90 days can visit the other Schengen states if I don’t exceed the 90 day period. Prove that any conjugate of $a$ has the same order as $a$. I am trying to prove that any conjugate of $a$ has the same order as $a$.  Let $G$ be a group and let $a \in G$.  An element $b \in G$ is called a conjugate of $a$ if $b=xax^{-1}$.  My professor gave us a hint.  Prove $a^k=e$ iff $b^k=e$ for all $k \in \mathbb{Z}$ implies $o(a) = o(b)$.  My first move is to $b^k = (xax^{-1})^k = (x^{-1})^ka^kx^k = (x^{-1})^kex^k = (x^{-1})^kx^k=x^{-k+k}=x^0$  I am not sure that I am doing this correctly?  I am trying to get $b^k=e$.  However when I raise $(xax^{-1})^k$, I am not sure if I what I have done is correct?  I am kind of confused here.