Am using HTML and PHP for my internal web Reporting. The problem is, when an user using report-x and request data and try to open other (report-y) at the same time the report-x is running the query, report-y is hang until report-x is finish, and then report-y respond.  I am using PDO to connect to my DataBase, i use session_start(); but it still hang.  I expect the user can use a second report while the first report is working.
I have two PHP scripts, both using the same session by calling session_name('MySessID').  When the first script calls the second script using curl, the second script hangs when session_start() is called.  Why would this happend?
How to calculate the Fourier transform of a Gaussian function? I would like to work out the Fourier transform of the Gaussian function   $$f(x) = \exp \left(-n^2(x-m)^2 \right)$$  It seems likely that I will need to use differentiation and the shift rule at some point, but I can't seem to get the calculation to work. Does anyone have any advice?  By the way, I am using   $$\mbox{FT}(f)(k)=\int_{-\infty}^\infty f(x)e^{-ikx}\,\mathrm d x$$  as my definition of a Fourier transform. Many thanks. Node Package Manager got corrupted in some way, now it cannot be installed I ran into a problem today when I decided to use npm update -g in a nodejs app directory. This was a bad decision, because it caused me to run into a .   The solution is to reinstall nodejs and npm. Unfortunately when I go to install npm using sudo apt-get install npm it doesn't work.  The full error in the terminal is here:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that  some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies:  npm : Depends: nodejs but it is not going to be installed    Depends: node-abbrev (&gt;= 1.0.4) but it is not going to be installed    Depends: node-ansi but it is not going to be installed    Depends: node-archy but it is not going to be installed    Depends: node-block-stream but it is not going to be installed    Depends: node-fstream (&gt;= 0.1.22) but it is not going to be installed    Depends: node-fstream-ignore but it is not going to be installed    Depends: node-github-url-from-git but it is not going to be installed    Depends: node-glob (&gt;= 3.1.21) but it is not going to be installed    Depends: node-graceful-fs (&gt;= 2.0.0) but it is not going to be installed    Depends: node-inherits but it is not going to be installed    Depends: node-ini (&gt;= 1.1.0) but it is not going to be installed    Depends: node-lockfile but it is not going to be installed    Depends: node-lru-cache (&gt;= 2.3.0) but it is not going to be installed    Depends: node-minimatch (&gt;= 0.2.11) but it is not going to be installed    Depends: node-mkdirp (&gt;= 0.3.3) but it is not going to be installed    Depends: node-gyp (&gt;= 0.10.9) but it is not going to be installed    Depends: node-nopt (&gt;= 2.1.1) but it is not going to be installed    Depends: node-npmlog but it is not going to be installed    Depends: node-once but it is not going to be installed    Depends: node-osenv but it is not going to be installed    Depends: node-read but it is not going to be installed    Depends: node-read-package-json (&gt;= 1.1.0) but it is not going to be installed    Depends: node-request (&gt;= 2.25.0) but it is not going to be installed    Depends: node-retry but it is not going to be installed    Depends: node-rimraf (&gt;= 2.2.2) but it is not going to be installed    Depends: node-semver (&gt;= 2.1.0) but it is not going to be installed    Depends: node-sha but it is not going to be installed    Depends: node-slide but it is not going to be installed    Depends: node-tar (&gt;= 0.1.18) but it is not going to be installed    Depends: node-which but it is not going to be installed E: Unable to correct problems, you have held broken packages.   What can I do to get npm properly installed and running again?  Thanks. I think it would be good to have a way for the user to view the target URL of a link before following it. I'm pretty sure that I'm not the only one who dislikes blind-clicking -tapping links.   When I use SE in the mobile browser, I routinely long-press links to find out where they go before following them. I wish I could do the same thing in the app, with the same or a similar method.  (It's important that this won't conflict with text selection, since you can't long-press on links to select them now anyway.) Minipage: 2 tables side by side isn't working How well-known is the theology of Middle-earth, in Middle-earth? One thing that is notably absent in Middle-earth is any mention of temples, churches, priests or religious rites.  There are passing mentions of Men who would "worship" Sauron, but generally the world of Middle-earth seems much less religious than medieval Europe, or even classical antiquity.  One never hears about "the cult of Aule" or "the cult of Yavanna," although historically there were many "cults of Athena" or "cults of Poseidon."  Aragorn doesn't (to my memory) make an offering to Tulkas before battle, nor does he pray to Eru Ilúvatar for victory, and all the holidays and solemnities seem to commemorate historical figures, not religious ones.  This is especially strange in a world where there are still living witnesses, like Galadriel, to the actions of the Valar and other "divine" beings, and where there are still Maiar wandering around talking to people and putting on flashy firework shows.  Now, a lot of people talk about how Tolkien didn't want the Valar to be considered "gods," but at the same time he did use phrases like "the gods of old" numerous times.  Clearly, these beings would have qualified for worship in most cultures.  And even without the Valar being considered a true pantheon, there is still Eru, a closer analogue to the Christian God of Tolkien's beliefs, and we know the denizens of Middle-earth knew of him (Him?) because of the line "Eru, who in Arda is called Ilúvatar."  And yet, Ilúvatar seems not to be terribly important to anyone on a daily basis.  So my question is this: how familiar with the "theology" of Middle-earth were the citizens of Middle-earth?  Would the average merchant in Rohan know about the Valar and the Maiar and Iluvatar and the Music of the Ainur?  The average noble in Minas Tirith?  The younger Elves, like Legolas?  The Dwarf Lords?  Were the theological truths about the formation of the world, the Valar and the Maiar just so well known that they weren't worth commenting on, or had they been forgotten by most?  And if they had been forgotten, why wasn't the knowledge (whether through deliberate teachings or casual conversation) re-invigorated by witnesses like Gandalf or Galadriel? I was listening to the song  by Eminem. I've listened it before many times but from the time I've started learning English grammar I am getting confused while reading or listening English. This time I got stuck at the line "Too much pride, between you and I Not a jealous man but females lie". The phrase "between you and I" always sounded correct to me. But recently I learned that me is only used as an object and hearing that phrase sparked my head. Then I searched over the net and found on  that it is actually a hypercorrection.  says,      "...according to many grammarians and stylists a pronoun in a prepositional phrase in English is supposed to be in the oblique case...   ...though there is still disagreement on whether the phrase itself in today's language is grammatically correct or not."   My first question is, why is there a disagreement? Don't we always use the object form in the oblique case? If not then what are those cases?  Secondly, I want to know how common the phrase "between you an I" is? Is it used colloquially by common native English speakers. By common speakers I mean who don't bother grammar. I searched on  and got some results, e.g. . I found the phrase in another song -- . Is it a common mistake among native English speakers or is it used to give some special linguistic affect? I think this phrase has some linguistic affect that is why the singer would have given the name of her song "Between You and I". Because no one would like to use incorrect English in the title of a song, it must have some purpose. Solving a system of ODEs with the Runge-Kutta method Hump, Rump, Lump, Bump I’m referring to the similar definitions of these four nouns – something raised and rounded.  Why do these four rhyming words have similar meanings?  I have not found very specific sources for these words on the  and . Hump is “probably from Dutch homp.” Rump is “from a Scandinavian source,” “from Old Norse rumpr” ultimately from Proto-Germanic “rumpo.” Lump is “perhaps from a Scandinavian source” and finally, Bump is “perhaps from Scandinavian,” “probably of North Germanic origin.”   Could these words come from the same root? Other than the fact that they all might come from northern Europe, the only hint I have in this direction is the following from , tracing the origin of Hump through Dutch, Middle Low German, Old Saxon and Proto-Germanic, to Proto-Indo-European *kumb-, *kumbʰ- (“curved”). Could this PIE root, which is not given in these online sources for any of the other three words, be a common root to all four words? I find myself looking at other –ump words and “seeing” a curved or rounded line: jump (a curved trajectory), grump (a downturned mouth), pump (the action of the pump handle), clump (a rounded clod of earth, not sharp), etc. Am I just seeing this because the words sound similar, or is there something more to my tendency? For example, the  suggests the origin of jump is "perhaps onomatopoeic (cf. bump)" although this view is not echoed on Wiktionary. Is it possible that these words do all share a common root and are simply onomatopoeic variations of each other? Are there other pairs or groups of words like these in English? (Wham! Bam! Ka-blam!) Does     this phenomenon have a name? I engaged with some enemy NPCs, and accidentally shot a civilian in the head (though not sure it would've mattered if I hit them somewhere else or not) as they ran across my screen. As a result of this, I was alerted by the game that the NCPD (the police) were automatically en route to 'investigate', and that I could avoid them by leaving the area and &quot;lying low for a while&quot;. How long does it take for the police to stop searching for me, and is there any kind of visual information on the HUD that alerts me to when NCPD is or is no longer looking for me? Hiding get mobile app button on SP online communication site collection For one of the clients, I have spin up a modern communication site collection and on the landing page of the same, I am seeing 'Get the mobile app' showing up, I was able to hide the 'feedback' button using css but no luck with Get the mobile app button.  Can someone please share css to hide 'get mobile app' button, appreciate the help. build argument lists containing whitespace In bash one can escape arguments that contain whitespace.  foo "a string"   This also works for arguments to a command or function:  bar() {     foo "$@" }  bar "a string"   So far so good, but what if I want to manipulate the arguments before calling foo?  This does not work:  bar() {     for arg in "$@"     do         args="$args \"prefix $arg\""     done      # Everything looks good ...     echo $args      # ... but it isn't.     foo $args      # foo "$args" would just be silly }  bar a b c   So how do you build argument lists when the arguments contain whitespace? Generate three correlated uniformly-distributed random variables How do I clone a generic List in Java? Managed metadata columns in document information panel with multiple content types How to change Function (Fn) Key behavior on wireless Logitech keyboard I do have a wireless Logitech K750 keyboard (silver Mac version) connected to a Lenovo ThinkPad (via the unifying USB receiver, together with a wireless Logitech mouse M705) and currently running Ubuntu 12.04.  By default the F-keys are mapped as multimedia/function keys, e.g. Play  /Pause. As I don't use them very often, I want the F-keys to behave like the "real" F-keys (F1-F12). How can I do that?  I know there is an option in the BIOS settings, but this only toggles the built-in keyboard of the notebook, not on my wireless keyboard.  I know there is a way to change this for the Apple wireless keyboard (), but there is no "parameters" directory in /sys/module/hid_logitech_dj/.  Any ideas? Or is there maybe a way to do this in a later Ubuntu version (13.04)?  UPDATE:  lsusb -d 046d: shows Bus 002 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver  UPDATE 2: Thanks a lot for your help Lekensteyn. Finally  works just fine. In the "Known Issues" of Solaar it says that it does not work with the Nano Receiver. But I have one and it works just fine. Just don't forget to read the installation instructions and run the rules.d/install.sh script. It also recognized my M705 Mouse. Find all $n \in \mathbb{N}$ such that $\phi(n) = 4294967296=2^{32}$.  I managed to find that $16106127360$, $8589934592$, $10737418240$ and $12884901888$ are solutions for the equation, but I do not know how to find all of them. How to minimize residual sum of squares of an exponential fit? I have the following data and would like to fit a negative exponential growth model to it:  Days &lt;- c( 1,5,12,16,22,27,36,43) Emissions &lt;- c( 936.76, 1458.68, 1787.23, 1840.04, 1928.97, 1963.63, 1965.37, 1985.71) plot(Days, Emissions) fit &lt;- nls(Emissions ~ a* (1-exp(-b*Days)), start = list(a = 2000, b = 0.55)) curve((y = 1882 * (1 - exp(-0.5108*x))), from = 0, to =45, add = T, col = "green", lwd = 4)   The code is working and a fitting line is plotted. However, the fit is visually not ideal, and the residual sum of squares seems to be quite huge (147073).   How can we improve our fit? Does the data allow a better fit at all?  We could not find a solution to this challenge on the net. Any direct help or linkage to other websites/posts is greatly appreciated. I tried the Chrome development version for a few days, didn't like it because my tabs became broken and wouldn't load properly. I changed back to the live version, but I forgot to uninstall the development version, which gave me 2 chrome icons on my task bar, but they would both load a broken version of Chrome. I then uninstalled Chrome through the control panel and reinstalled the live version, but I now have one of those broken links on my task bar (a blank page with a folded corner) that points to a version of Chrome that's no longer there. Is there a way to remove this icon? Reserved words as names or identifiers Is there any tricky way to use Java reserved words as variable, method, class, interface, package, or enum constant names? What does it mean for something to hold "up to isomorphism"?