grab query string using javascript
How can I get query string values in JavaScript?
I have a Xonar DX (CMI8788 driver) 7.1 surround sound card installed on my Ubuntu 11.10 system.   I want to use the outputs of the card as 4 separate stereo outputs and I am struggling with ALSA to get it to work.  This is my asound.conf:  #/etc/asound.conf pcm_slave.eightchannels {         pcm "hw:0,0"            # or "hw:1,0" for the second card         channels 8 } pcm.stereo1 {         type plug         slave.pcm {                 type dshare                 ipc_key 87882222                 slave eightchannels                 bindings [ 2 3 ]         } } pcm.stereo2 {         type plug         slave.pcm {                 type dshare                 ipc_key 87882222                 slave eightchannels                 bindings [ 4 5 ]         } } pcm.stereo3 {         type plug         slave.pcm {                 type dshare                 ipc_key 87882222                 slave eightchannels                 bindings [ 6 7 ]         } } pcm.stereo4 {         type plug         slave.pcm {                 type dshare                 ipc_key 87882222                 slave eightchannels                 bindings [ 0 1 ]         } }   This is my aplay -l output:  $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: DX [Xonar DX], device 0: Multichannel [Multichannel]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: DX [Xonar DX], device 1: Digital [Digital]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]   Subdevices: 1/1   Subdevice #0: subdevice #0   This is my aplay -L output:   The system seems to completely ignore my configuration. However, I am sure that the config is used, because when i insert a random string at the top, i get a parsing error.  Any help is greatly appreciated. When voting to migrate an off-topic question, why is the list of sites limited? Earlier, I voted to close  as off-topic.  The question has since been closed.  There is an , but it didn't show up in the list when I selected "off-topic".  The options were:   Meta Stack Overflow Server Fault Super User Webmasters Programmers   Questions:   Should Wordpress appear in this list? Are there any other sites that should appear in the list?   Should all non-beta sites appear in that list by default? Edits on closed posts Should questions or answers on questions that are closed be edited, even if the question is closed and the edit does not change anything about the reason it's closed? Example:  was just edited, which I saw in the review queue. It certainly improves the answer, but since the answer doesn't really have to exist on SE at all (because the question is off-topic), should this edit be made? In my understanding, the only reason that the edit option for a closed question is not greyed out is so that it can be edited to make it comply with the SE rules. What does the '=>' syntax in C# mean? What to do when OP answers his/her own question in an edit? Reference question:   Sometimes users solve their own questions, which is great. Sometimes they say they've solved it and move on, which is not so great. The above question is middle-ground: the user posted an answer to his own question, but as an edit to the question instead of as a real answer.  Should any action be taken in such a case? The obvious solution is to copy the edit into a real answer. But is this the right solution? In this case, the answer is a little hidden and there are no other answers, so it appears on the unanswered list.     Related: I've seen this Kuratowski definition for ordered pairs, but can't fathom why it implies an order to $x$ and $y$  $(x,y):=\{\{x\}, \{x,y\}\}$  As I understand sets, $\{\{x\}, \{x,y\}\}$ is also $\{\{x,y\}, \{x\}\}$. Only when I think about the Axiom of Union does $\{\{x\}, \{x,y\}\}$ "collapse down" to $S = \{x, y\}$, but that doesn't give me much either. All I can see is some as yet hidden message in the set saying "I am the set $\{x,y\}$ and my order of $x$ first is indicated by having $\{x\}$ along for the ride." When people want to classify a group with certain (small) order, they seem to find a normal subgroup $H$ and a subgroup $K$, and then consider how many distinct $H \rtimes_\varphi K$ are there.  My question is: For any group $G$, does it always exist normal subgroup $H$, subgroup $K$ and $\phi : K \rightarrow Aut(H)$ s.t. $G\cong H \rtimes_\varphi K $?  Sorry if this question is too basic...  Thanks the comment and the answers. Then if the $G$ is not simple, can we have can $G\cong H\rtimes_\varphi K$ for proper subgroup $H$, $K$, with $H$ normal?  EDIT:  If we have a group $G$, that is not simple (then $G$ has at least one normal subgroup), are there always a non-trivial normal subgroup $H$ and a proper subgroup $K$ s.t. $G \cong H \rtimes K$. (Note that if $G$ is simple this is clearly not possible).  But the quaternion group and $Z_4$ given in answers have shown that we cannot always have it. Why is negative times negative = positive? Moyal Product in Non Commutative Quantum Mechanics Can someone please explain me what is a ?  Also, how does putting $$X_a(\psi) ~=~ x_a\star\psi$$ realise $$[X_a,X_b]=i\theta_{ab}{\bf 1}?$$   Ref: Order and degree of a differential equation What is the function of the "Sticky edges" on/off setting in displays? I have installed Ubuntu 12.04 (Precise Pangolin). If I open System Settings &gt;&gt; Displays there is a new (?) on/off button for a setting named Sticky edges.  Can someone tell me what this setting is supposed to control? Why does the jquery change event not trigger when I set the value of a select using val()? How can I compute $\mathrm{Aut}(\mathbb{Z}/4\mathbb{Z}\times\mathbb{Z}/6\mathbb{Z})$? Can US stocks list on one stock exchange but trade on other US stock exchanges? I am trying to understand how the US stock market works. From my understanding, there is one stock exchange where a company is &quot;listed&quot;. This stock exchange listing requires the company to adhere to the regulations of the stock exchange where it is listed. Once a company is &quot;listed&quot;, its shares can start to trade on any stock exchange. For example, once a company lists on NASDAQ, its shares can be traded on NASDAQ, NYSE, Boston Stock Exchange, Philadelphia Stock Exchange, National Stock Exchange, EDGX Exchange, EDGA Exchange, NYSE Arca, etc. Is my understanding correct? Is it true that once a stock is listed on a US stock exchange, the stock can then trade on any US stock exchange? Consider the Level 2 quotes for Microsoft (NASDAQ: MSFT). Microsoft is only listed on NASDAQ, but it also trades on the NYSE and other stock exchanges:  My questions are:  Does this mean that companies only need to be listed on one stock exchange in order for their stock to trade on other stock exchanges?  If so, do companies need to adhere to the &quot;listing requirements&quot; of all the stock exchanges where their stock is traded, even though they are not &quot;listed&quot; on those stock exchanges? Does Microsoft have to follow the listing requirements of the NYSE even though it is not listed there?  If stocks can trade on any US stock exchange regardless of which US stock exchange the stock is listed on, why don't NYSE-listed companies reduce their yearly listing fees by listing on NASDAQ instead? "Accountsd wants to use the 'iCloud' keychain" I, too, am suddenly getting this message.  I don't see a Keychain First Aid option in Keychain, and the two Login Keychain Settings were already unlocked.  Any other ideas for what the error message is all about, and what I should do about it? What is wrong with my mob spawner? Is the universe finite or infinite? How to install qt 4.8 from repository? How to install qt 4.8 and QtCreator from repository ? Proving the snake lemma without a diagram chase How do I check if a given string is a legal/valid file name under Windows? I want to include a batch file rename functionality in my application. A user can type a destination filename pattern and (after replacing some wildcards in the pattern) I need to check if it's going to be a legal filename under Windows. I've tried to use regular expression like [a-zA-Z0-9_]+ but it doesn't include many national-specific characters from various languages (e.g. umlauts and so on). What is the best way to do such a check?