How to upload file through Jquery/AJAX
Uploading both data and files in one form using Ajax?
I want to add a comma in the thousands place for a number.     String.Format()? Definition of the Pauli group and the Clifford group There seem to be two definitions of the Pauli group. In Nielsen and Chuang, the Pauli group on 1 qubit is defined as \begin{align*} \mathcal{P}_1 = \{\pm I, \pm iI, \pm X, \pm iX, \pm Y, \pm iY, \pm Z, \pm iZ\} = \langle X, Y, Z\rangle. \end{align*} But in other references, such as ,  \begin{align*} \mathcal{P}_1 = \{\pm I, \pm X, \pm iY, \pm Z\} = \langle X, Z\rangle. \end{align*} The second definition makes more sense in the stabilizer formalism, since we usually only consider the action of Pauli strings of $X$ and $Z$. What bothers me is that by the second definition, the phase gate $S$, which is an element of the Clifford group, results in \begin{align*} SXS^\dagger = Y \notin \mathcal{P}_1. \end{align*} I know that the prefactor $\pm i$ somehow doesn't matter, but can someone justify it from a more mathematical/group-theoretical perspective? Does Earth really have two high-tide bulges on opposite sides? The bit that makes sense – tidal forces My physics teacher explained that most tidal effect is caused by the Moon rotating around the Earth, and some also by the Sun. They said that in the Earth and Moon system, the bodies are in freefall about each other. But that points on the surface of Earth, not being at Earth's centre of gravity, experience a slightly different pulls towards the Moon. The pull is a little greater if they are on the Moon's side, and slightly lesser if they are on the side away from the Moon. Once freefall is removed, on the Moon side this feels like a pull towards the Moon and on the the opposite side it feels like a repulsion from the Moon. This makes sense to me, and is backed up by other questions and answers here, like  and also  Phys.SE question. The bit that doesn't make sense – tidal bulges They also said that there are &quot;tidal bulges&quot; on opposite sides of the Earth caused by these forces. The bulges stay still relative to the Moon and Earth rotating through the bulges explains why we get two tides a day. They drew a picture like this one…  An image search for  finds hundreds of similar examples, and  from a scientist on Twitter. …But, if there is a tidal bulge on both sides of Earth, like a big wave with two peaks going round and around, how can an island, like Great Britain where I live, simultaneously have a high tide on one side and a low tide on the other? For example:   on the West coast  on the East  Two ports with tides 6 hours, or 180º apart. It's high tide at one while low tide at the other. But they are only  by road. Great Britain is much smaller than Earth. It's probably not even as big as the letter &quot;A&quot; in the word &quot;TIDAL&quot; in that picture.  To prove this isn't just Britain being a crazy anomaly, here is another example from New Zealand:     Two ports that are 180º (6 hours) apart, but separated by  through a national park. New Zealand, unlike the UK, is in fairly open ocean. Is there any standard that covers the portability of running a command after variable assignment on the same line?  APPLE="cider" echo hi   How portable is something like that? Where will it work and where won't it?   Also: my shell scripts start with #!/bin/sh if that makes any difference. Substitute for onions and garlic Why does $\lim_{n\to\infty} z_n=A$ imply $\lim_{n\to\infty}\frac{1}{n}(z_1+\cdots+z_n)=A$? I'm self-studying a bit of complex analysis, and I'm attempting to figure out the following.   Suppose $\lim_{n\to\infty}z_n=A$. How can I show that $$ \lim_{n\to\infty}\frac{1}{n}(z_1+\cdots+z_n)=A. $$  Is there a clever way to write the limit to make it more approachable? Thank you. Simulate Multiple Monitors I'm trying to find out if there is a product out there to simulate Multiple Monitors on one large monitor/tv?  So take a screen and turn it into something like below...  -------------------------------- |               |              | |               |              | |               |              | |               |              | -------------------------------- |               |              | |               |              | |               |              | |               |              | --------------------------------   Something like this...even though in reality it's a single screen.  A software solution is perfectly fine as long as it functions like the built in Windows 8 functionality (Start screen only consumes the screen it was started on/etc).  If anyone is curious as to the reason.  I'm looking to get a treadmill desk since I'm a developer and don't like being sedentary all day.  So the two options that I see are having 4 monitors and mirroring them (I don't want to have to worry about forgetting to move the window that I need) or getting a large monitor/tv and putting it on an arm that I can simply swivel into place.  There are dual-monitor swivel mounts, but they are EXTREMELY pricey and the ones I've found don't appear to have the range of motion that I'm anticipating needing.  EDIT:  I found ... but I can't find the answer to the start menu question (I've sent the company a message on facebook).  Hoping I hear good news as this appears to offer many of the features I'm wanting.  So Fingers crossed there. Is rejecting the hypothesis using p-value equivalent to hypothesis not belonging to the confidence interval? While formally deriving the confidence interval of an estimate, I ended up with a formula that resembles very closely the way $p$-value is computed.  Thus the question: are they formally equivalent? I.e. is rejecting an hypotheses $H_0 = 0$ with a critical value $\alpha$ equivalent to $0$ not belonging to the confidence interval with critical value $\alpha$? Algorithms for computing multiplicative order modulo $n$ In my scene I have a camera sitting at the origin. I would like to contraint it so that it always looks at the center of a given object. But the camera should not change its position.  I found some answers using a "TrackTo" or "LockedTrack" constraint but could not manage to make it work.  Could I probably use a Driver for this and if yes, how can I adjust it?  Thanks in advance! Change cursor color after log out on ubuntu 18.04.2 LTS I've set my cursor color on gnome-tweaks to be DMZ-Black, which works fine when I log in and lock the computer. But, after I log out, the cursor color changes to white.  Is there a way to change the color of the cursor after log out?  My gnome-tweaks setting: Run faster than outer turret attacks As the title says, is there any way to run faster than the turret attack (the missile like thing) so that you can arrive spawn before the attack reaches you, and therefore can't kill you? You know, when you have low health, and you are targeted by the turret? Is there any item sets or things like that? Conveying "under the radar" in a less colloquial way I am searching for a word to contrast with iconic  I want to characterize views of the city as both iconic and under the radar, maybe "non-iconic."  I was thinking about saying that a view of the city was undiscovered, but I think that maybe that overstates what I'm think-- I more mean under-appreciated. Are there any other words that come to mind? Typesetting a function defined by case analysis Can any one suggess me the code to write this equation in LaTeX. Why are we limited to six questions per day? Is there a drupal.org API for retrieving the list of available modules, a description of them and available versions? Redirect all requests to HTTPS, except for one subdirectory I'm trying to move from self-signed certificates to Let's Encrypt certificates on my nginx webserver.  Currently, I redirect all requests to http/80 to https/443, which uses a self signed certificate I created a while ago.  Now - from what I understand Let's Encrypt makes a request to port 80 (as I am using the webroot option of certbot). These requests are redirected, which renders the certificate generation unsuccessful.  I tried to achieve this with the following server block, listening at port 80:  server {         listen  80;              server_name     sub.domain.tld;         server_tokens   off;           location /.well-known {                 root /var/www/letsencrypt;         }          location / {                 return 301 https://$host$request_uri;         } }   But requests to /.well-known are redirected to https/443 anyways.  How can I redirect all requests from http/80 to https/443, except the requests to /.well-known/? I've bunch of folders in folder A. I want to move files from all those folders to A.  Or  I want to cut all files from child folders and paste them in parent folder.  How to do that? Can I deduct a contribution to a traditional IRA if I am also contributing to a 401(k) in the same tax year? "I", "me" and "myself" Possible Duplicate:           What is correct? We are a family of four: my father, my mother, my brother and me. or We are a family of four: my father, my mother, my brother and I. or We are a family of four: my father, my mother, my brother and myself.