How to configure multiple servers on the same IP address with Nginx?
How do I set a default host for nginx?
From the :  [1,4,9].map(Math.sqrt)   will yield:  [1,2,3]   Why then does this:  ['1','2','3'].map(parseInt)   yield this:  [1, NaN, NaN]   I have tested in Firefox 3.0.1 and Chrome 0.3 and just as a disclaimer, I know this is not cross-browser functionality (no IE).  I found out that the following will accomplish the desired effect. However, it still doesn’t explain the errant behavior of parseInt.  ['1','2','3'].map(function(i){return +i;}) // returns [1,2,3] I have a program which I am trying to run, however when I run it; it just complains that it can't find a particular file.  However I have no idea which folder it is trying to find this particular file in. I have a copy of the required file, I just need to know which folder to copy it too.  Is there any way to show in real time which files are being accessed or which files are trying and failing to be accessed?  I am using Ext4 filesystem if that helps.  Thanks How do I turn on workspaces? (Why do I only have one workspace?) It appears that Unity on Raring only comes with a single virtual desktop (aka workspaces) by default, and CCSM's Wall plugin has no way to add more. Is this configurable at all? escaping double quotes and percent signs (%) in cron The following command works from prompt but not from crontab.   grep abc  /var/log/messages | grep "`date '+%B %d'`" | mail -s"abc log of `hostname`" shantanu.oak+`hostname`@gmail.com   I need to add it to daily cron. Skipping Iterations in Python I have a loop going, but there is the possibility for exceptions to be raised inside the loop. This of course would stop my program all together. To prevent that I catch the exceptions and handle them. But then the rest of the iteration runs even though an exception occurred. Is there a keyword to use in my except: clause to just skip the rest of the current iteration? Basic mathematical induction regarding inequalities These are just the examples from my textbook, but I don't think it did not explain well.  One of the problem was to prove the inequality   $$n&lt;2^n$$  for all integers $n$.  I understand we assume if $P(n)$ is true, $P(k+1)$ is true.  Thus $k+1&lt; 2^{k+1}$  But in the text book, they added one more line that I don't understand:  $$k+1&lt;2^k+1 \le 2^k+2^k=2\cdot2^k=2^{k+1}$$  I understand  $$k+1&lt;2^{k+1}$$  But how do I know $2^k+1$ is larger than $k+1$, and smaller than $2^{k+1}$?  I have one another example just in case,  proving $2^n&lt;n!$ using induction.  $$2^{k+1}=2\cdot 2^k&lt;2\cdot k!&lt;(k+1)k!=(k+1)!$$  I understand we should start with $2^{k+1}&lt;(k+1)!$, but  Where did $2\cdot k!$ come from? Textbook says it came from inductive hypothesis, but I still don't get it.  Please advise. Insect identification - Is this a bedbug? This bug was found on a couch in . The couch, and the two beds in the room show no signs of other bugs. Is this a bed bug that I should worry about or something harmless? It was slightly larger than a common tick. How to mount a RAM disk on startup? I'm trying to mount a RAM disk on startup with this:  /Users/Aram/Development/Tools/ramdisk.sh  diskutil erasevolume HFS+ "RamDisk" `hdiutil attach -nomount ram://800000`   com.aram.ramdisk.plist  &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"          "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt;     &lt;dict&gt;         &lt;key&gt;Label&lt;/key&gt;         &lt;string&gt;com.aram.ramdisk&lt;/string&gt;         &lt;key&gt;ProgramArguments&lt;/key&gt;         &lt;array&gt;             &lt;string&gt;/bin/sh&lt;/string&gt;             &lt;string&gt;/Users/Aram/Development/Tools/ramdisk.sh&lt;/string&gt;         &lt;/array&gt;         &lt;key&gt;RunAtLoad&lt;/key&gt;         &lt;true/&gt;     &lt;/dict&gt; &lt;/plist&gt;   And then running:   sudo chown root:wheel /Library/LaunchDaemons/com.aram.ramdisk.plist sudo launchctl load -w /Library/LaunchDaemons/com.aram.ramdisk.plist   But I get these in the console:  1/08/12 1:29:25.982 PM fseventsd[64]: could not open &lt;&lt;/Volumes/RamDisk/.fseventsd/fseventsd-uuid&gt;&gt; (No such file or directory) 1/08/12 1:29:25.982 PM fseventsd[64]: log dir: /Volumes/RamDisk/.fseventsd getting new uuid: 102D7293-F1F1-4640-AA50-D547C365339F  1/08/12 1:29:24.561 PM sudo[1193]:     Aram : TTY=ttys000 ; PWD=/Library/LaunchDaemons ; USER=root ; COMMAND=/bin/launchctl load -w /Library/LaunchDaemons/com.aram.ramdisk.plist  1/08/12 1:40:17.052 PM com.apple.launchd[1]: (com.aram.ramdisk) Throttling respawn: Will start in 8 seconds   It works if I set KeepAlive to true, but then it creates a RAM disk every 10 seconds.  Is there a way to delay the script for 10 seconds before running? POSIX compliant way to redirect stdout and stderr to a file I am trying to write a script which is POSIX compliant, so it can run on any *nix system (Debian, Fedora, CentOS, AIX, Arch... ALL of them). When it comes to redirection, I am rather confused on what is supported by POSIX and what is not.  If I redirect ls -l file missingfile &amp;&gt; out.txt this works perfectly in bash. The line from stderr complaining that missingfile doesn't exist, and the permissions output from file, are both in out.txt. However, I believe this is only working because these shells support more than just POSIX standard operators. Upon researching this question I've come across conflicting answers.  , for example, seems to imply that &amp;&gt;, &gt;&amp;, &gt;&gt;&amp; and &amp;&gt;&gt; are non-standard operations. However,  explicitly states that some-program &gt; some_file 2&gt;&amp;1 is POSIX compliant. Does this mean that the &gt;&amp; operator (using digits for stderr &amp; stdout) is POSIX compliant whereas using &amp;&gt; to auto redirect both stderr and stdout to a file is not POSIX compliant? Or are both &amp;&gt; and &gt;&amp; not POSIX compliant / POSIX compliant (one of these two people are wrong)?  I considered just avoiding the &amp; sign completely and using ls -l file missingfile &gt;out.txt 2&gt;out.txt however this comes with its own issue. Running the ls command this way causes the shell to open two file handles for out.txt, both pointing to offset 0 in the file. So when ls looks for these two files, one of the messages gets clobbered.  What one would expect ls -l file missingfile &gt;out.txt 2&gt;out.txt to output:  -rw-r--r-- 1 blah blah 0 Jun  3 13:18 file ls: cannot access 'missingfile': No such file or directory   What is actually output:  -rw-r--r-- 1 blah blah 0 Jun  3 13:18 file le or directory   What is the best way to redirect both stdout and stderr to a file in a POSIX compliant fashion? Is there any canon information in Harry Potter that proves one way or another whether a wizard always owns only one wand as a matter of routine?  What I am talking about is a wizard buying and owning one wand and also a second wand (for backup, or simultaneous use, or separate purpose, or ceremonial+work wand), akin to people buying more than one pair of boots, guns or hammers.  A proof would be either canon info showing someone owning 2 wands simultaneously; or a statement showing why that does not happen except in rare exceptions (see below).    NOTE: I am discounting special situations such as winning an extra wand in a duel ala Harry (e.g. the second wand's obtainment wasn't intended/planned), or someone winning a Death Stick from prior owner (in which case it was intended as a replacement wand and not an extra one); or taking another's wand for a time being, ala Voldemort and Lucius Malfoy (since it was more of a "temporary replacement because main wand was useless for the purpose due to paired cores" - far from a normal situation).  Also, I meant wands intended for use - e.g. if Malfoy would have a (imagined by me) collection of rare antique wands, that's as irrelevant as someone having flintlocks in a display case. Ask to install program after "The program 'x' is currently not installed" If you try to execute a program that is not installed you will get a message  The program 'x' is currently not installed. You can install it by typing:  sudo apt-get install x   and instead of offering you to install the program for you, you have to type the actual command. How can this behavior be changed? Mac turns off randomly and has lines on screen For some reason my iMac keeps turning off around 5 to 10 minutes into boot.  Also just recently it turns on but has shaded lines going down the screen. I have not installed any weird programs and i have not used it in around 3 months.   Any ideas on what the issue is, i don't have any other information about the issue besides whats happening when i use it.  The image i'm showing you was found on google but this looks exactly like mine does.  The model of my imac is the late 2011 model. Is there a black hole in the centre of the Milky Way? Is there a label/goto in Python? Is there a goto or any equivalent in Python to be able to jump to a specific line of code? Studying for an exam, a review question...  Given $G=\langle x,y|x^4=y^4=e,xyxy^{-1}=e\rangle$.    Show $|G|\leq16$.   For this, I want to consider that $x^3=x^{-1}$ and $y^3=y^{-1}$ based on our assumptions. I am a little lost as to how to put the second part, $xyxy^{-1}=e$ to show there are no more than 16 elements.   If $|G|=16$, find the center of the group and find a group that is isomorphic to $G/\langle y^2\rangle$.   I'm pretty sure the group is centerless. Add new JDBC Driver to connect Mathematica to SQL database Is there any way to increase the drop rate of items? Have you used any of the C++ interpreters (not compilers)? I am curious if anyone have used UnderC, Cint, Cling, Ch, or any other C++ interpreter and could share their experience. Moved bin and other folders! How to get them back? How do I identify an airport’s official free Wi-Fi network? While traveling in the Berlin Tegel airport (TXL), I wanted to get on Wi-Fi. I found three unsecured networks in addition to a number of password-protected networks.   _Free_TXL_WiFi airberlin Berlin Tegel Airport WiFi   I had no idea which of these were an official Wi-Fi network provided by the airport and which were provided by other people, potentially for malicious purposes like capturing my network traffic. Presumably the official one uses a captive portal to allow internet access.  Is there any way to determine which Wi-Fi network is the official one provided by the airport? Would airport staff such as at the ticketing booths know? Are there official lists available somewhere?  I’d like an answer that is applicable to airports generally, rather than specific to the Berlin Airport. Also, please don’t just give a blanket “don’t use any public Wi-Fi network” answer; I know there are risks associated with it, but sometimes it is a necessity and so I want to know how to identify the airport-provided one.   suggests there are no official Wi-Fi networks, but the answers are six years old, so it’s not clear if things have changed or if none of the networks I saw were official.