Javascript: Function overwrite with passing arguments
Passing arguments forward to another javascript function
Someone told me I need a ticket out of Thailand in order to enter.  I am traveling to Thailand, on March 18th. I have a Ticket from Bangkok to Sweden booked for June 4th.   I will be staying in Thailand for 2 weeks when I arrive there, then traveling around Cambodia, Laos and Vietnam until June 4th when I leave.   With that ticket out of Thailand, will I be able to get in and get a (30 day) Visa-On-Arrival (or not because the ticket out is not within the first 30 days). Or do I need to show proof that I am leaving within 2 weeks of being there at first? Who did Khan get his Starfleet insignia from? Galois Group of $\sqrt{2+\sqrt{2}}$ over $\mathbb{Q}$ So I want to show that $\mathbb{Q}(\sqrt{2+\sqrt{2}})$ is Galois over $\mathbb{Q}$ and determine its Galois group.   My thoughts are as follows:  Define $\alpha := \sqrt{2+\sqrt{2}}$. Then it is easily shown that $\alpha$ satisfies $\alpha^4-4\alpha^2+2=0$.  Define $f(x) := x^4-4x^2+2$. Then $f$ is irreducible over $\mathbb{Q}$ by Eisenstein with $p=2$.  So we have that $f$ is the irreducible polynomial for $\alpha$ over $\mathbb{Q}$.   Further $|\mathbb{Q}(\alpha):\mathbb{Q}|=4$.  For $\mathbb{Q}({\alpha})$ to be Galois, it must contain all roots of $f$.   Define $K=\mathbb{Q}(\alpha)$ for convenience.  Define $\alpha := \alpha_1$.  Since $f$ has only even powers, we know that $-\alpha := \alpha_2$ is a root, and therefore contained in $K$ since $K$ is a field.  We note that the other two roots are $\alpha_3=\sqrt{2-\sqrt{2}}$ and $\alpha_4=-\sqrt{2-\sqrt{2}}$.  So in order to show $K$ is Galois, it must be shown that $\alpha_3$ and $\alpha_4$ lie in $K$.  Now $\alpha_1^2=2+\sqrt2$ and so $\sqrt2 \in K$. Thus $-\sqrt2 \in K$ since $K$ is a field.  Can somebody explain why $\alpha_3$ and $\alpha_4$ lie in $K$?  Next we are to determine the Galois group of $K$.  Assuming $K$ is Galois, since it has degree $4$ over $\mathbb{Q}$ (shown earlier), we know that its Galois group has size $4$. There are only two groups of size $4$, namely $V_4$ and $C_4$, the Klein four group and the cyclic group of order $4$.  How do we determine which of these choice is in fact the Galois Group? How do I install the latest version of gcc and g++?  I am using a variety of C++11 and C++1y features; which is why I need this. In a script I'm trying to find the Terminal.app window containing a specific tty device and raise that window to the top. Here's what I have in Applescript so far:  tell application "System Events"   set foundWin to false   if (name of processes) contains "Terminal" then     tell application "Terminal"       set theTabs to first tab of every window where tty is "$(tty)"       repeat with theTab in theTabs         if class of theTab is tab then           set theWin to (first window whose tabs contains theTab)           set selected tab of theWin to theTab           set foundWin to true         end if       end repeat     end tell   end if   if foundWin then     --RAISE THE WINDOW?!   end if end tell   Where I'm getting stuck is the "raising the window" part.  Here are some things that are not quite what I want:  set frontmost of theWin to true -- this brings the window to the front of the group of Terminal.app windows but doesn't raise it above any other windows.  tell application "Terminal" to activate -- this brings every Terminal window to the front in a big stack. I just want the one window.  tell application "System Events"     set theSysWin to first window of process "Terminal" whose name is (name of theWin)     perform action "AXRaise" of theSysWin end tell   This almost does it, but what it does is to raise the terminal window to the #2 position, still underneath the active window (if the active app is something other than Terminal.app.)  click theSysWin at {10,50} -- doesn't seem to do anything.  click first static text of theSysWin -- doesn't seem to do anything.  Is there a way to do this? It doesn't have to be in Applescript.  EDIT I did find this web page (  ) quoting an Obj-C/Cocoa call:  SetFrontProcessWithOptions(&amp;psn, kSetFrontProcessFrontWindowOnly);  I'm not familiar with either ObjC or Cocoa, and this is (ultimately) getting invoked from a shell script, so not sure where to go from there. Re-enabling backspace as "go back" in recent Chrome Since start of this summer, I think that Google removed the option of using backspace for returning to previous page or so.   I was wondering, if there exist any chance, of undo-ing this thing? Is there such thing that would help me, such as downgrading Chrome or using any additional add-ons or something such as this for getting this glorious function back?  It's nearly impossible for me to forget this shortcut (as old habits die hard, lol) and keep pressing it and later on using the mouse to go back. When I updated from 14.04 to 14.10 I noticed my track-pad cursor and left and right mouse clickers were not working. I have tried looking this issue up and can not find any solutions anywhere. If anyone could help me that would be amazing, I am using a wired mouse to my USB port for a temporary fix. I have a Dell Inspiron 15R. If a ring element is right-invertible, but not left-invertible, then it has infinitely many right-inverses. Let $A$ be a ring and $a\in A$ an element that has a right-inverse but does not have a left-inverse. Show that $a$ has infinitely many right-inverses. I have a script that needs to do some stuff based on file creation &amp; modification dates but has to run on Linux &amp; Windows.  What's the best cross-platform way to get file creation &amp; modification date/times in Python? Here's a corollary of AC stating that: if there exists an onto mapping $f:A\to B$, then there exists a 1-1 mapping $g:B\to A$. What I'm confused about is that whether or not  AC can be derived from this proposition, in return? I have tried but haven't found a proof. Any help would be appreciated. Reducing resolution of huge categorical raster in QGIS? Sending form POST request to PHP How do I disable usb storage? I'm using Ubuntu 12.04 and I want to block usb storage on it. What is the correct way to do this? In episode 10 of Full Metal Alchemist: Brotherhood, during the events in the Research Lab 5, Edward Elric is severely hurt. Later in the hospital, he writes down everything he had come to know, and he discusses with Alphonse, Hughes, and Armstrong about what to do with the information to continue the investigation.  At this point, King Bradley arrives with lemon into the room. He finds out what they are doing but acts very calm and chilled out and allows them to continue investigation while being careful.  Why did he not get Hughes and Armstrong killed at that point? Or at least tell them to not investigate at all? I'm new to latex, I'm thankful if someone can give me an example script to customize TOC that looks like  Chapter 1.XXXXXX                                                            (1-15)  1.1 Introduction 1.2 xxxxxxxx 1.3 xxxxxxxxxx 1.4 xxxxxxx ...............  Chapter 2.xxxxxxx  2.1 xxxxx ......                                                           (16-30)  because the (default) TOC appears to be very large for my book, since it arranges the section name row-by-row. Are user accounts on data.stackexchange.com and Stack Exchange two different entities? I tried to search for similar questions, as I always do, but was not able to find one. I just created a new  on Data.Stack Exchange with my existing Google OpenID and it seems to be not associated with my regular Stack Exchange account. Is this by design? and if so, why? Why is $1 in a function not printing the script's first argument? Why doesn't echo $1 print $1 in this simple bash script?    #!/bin/bash # function.sh print_something () { echo $1 } print_something  $ ./function.sh 123  -&gt; why doesn't it print '123' as a result? How does one know when to use a gerund or an infinitive? As a native speaker of English, the gerund version of this sentence sounds better:  infinitive:     When used together in chains,   extension methods are an unprecedented   tool to produce extremely concise   code.   gerund:     When used together in chains,   extension methods are an unprecedented   tool for producing extremely concise   code.   But how can I explain to someone learning English how to decide in situations like these whether to use the infinitive or the gerund? Code block is not properly formatted when placed immediately after a list item Consider the following piece of Markdown code:  This is some regular text.      &gt;&gt;&gt; def factorial(n):     ...     return 1 if n &lt; 2 else n * factorial(n - 1)     ...   * This is a list item.      &gt;&gt;&gt; def factorial(n):     ...     return 1 if n &lt; 2 else n * factorial(n - 1)     ...    Notice that the second code block is preceded by a list item.   Why is the factorial code not properly formatted under these circumstances? To demonstrate the problem, I'll insert the Markdown code show above:    This is some regular text.  &gt;&gt;&gt; def factorial(n): ...     return 1 if n &lt; 2 else n * factorial(n - 1) ...     This is a list item                 def factorial(n):       ...     return 1 if n &lt; 2 else n * factorial(n - 1)       ...               This applies to numbered as well as unnumbered lists. How can I shutdown my Android phone using an adb command? How do I halt an android phone using adb command? I can reboot, but I don't know how to halt.  I tried shutdown -k wait command, but it did not work.