I have a value   sections = "12A,13B,14C"   But I need [12A, 13B, 14C] for future use. How to create array from above string?
I have this string  'john smith~123 Street~Apt 4~New York~NY~12345'   Using JavaScript, what is the fastest way to parse this into  var name = "john smith"; var street= "123 Street"; //etc...
Is there a list of the names used for Sauron in Lord of the Rings? Which characters played the parts of the lineup discussed by Rusty and Daniel? In planning the heist, Rusty names a number of roles that are going to be needed to pull off the job.      Off the top of my head, I'd say you're looking at a Boesky, a Jim Brown, a Miss Daisy, two Jethros, and a Leon Spinks. Not to mention the biggest Ella Fitzgerald ever.   Which characters in the film lined up with these named roles? How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses? Where does gravitational waves' energy go? Why is time special? In Special Relativity, the spacetime interval between two events is $s^2 = -(c{\Delta}t)^2+({\Delta}x)^2+({\Delta}y)^2+({\Delta}z)^2$ giving the Minkowski metric $\eta_{\mu\nu}=\text{diag}(-1, 1, 1, 1)$. What is the justification for making time have a negative coefficient, and how closely is that related to the 2nd law of thermodynamics? Sure, by letting $\eta = \text{diag}(1, 1, 1, 1)$, we get a pretty boring spacetime, and the boosts in the Poincaré group become trig instead of hyperbolic functions, but what's the physical reasoning behind this? Let's assume we have a table where it has two columns, one an ID and one an hstore column, which stores key/value pairs.  You could query that column as such:  SELECT name, attributes-&gt;'device' as device FROM products WHERE attributes-&gt;'edition'= 'ebook'   Can you create a view for this table where the keys/values appear as columns in the view instead of all in the hstore column?  Example: I have an hstore key where it might have the key of amenity.  I want to create a view showing the the ID and the amenity values in a new view. What to write in visa application form and what documents to submit as an unregistered freelancer? There are many visa applicants who are working as an unregistered freelancer (photographer, construction contractor, fashion designer, journalist etc ). Some of these freelancers make really handsome monthly income and don't really need to work as a full time employee. Most of them receive variable amount of payments (cash, cheques, demand drafts etc) When it comes to filling a visa application form (USA, UK, Schengen etc), there is always an employment section in all visa form, eg for Schengen visa employment form :    This is a very important factor to make an application really strong.  Questions:   1 Unregistered freelancers can just simply write their profession? what documents to produce along with the application?  2 Bank statements with variable methods of payments could convince the visa officer that these are all legitimate payments? Why is propagation of uncertainties quadratic rather than linear? Trying to find some simple SQL Server PIVOT examples.  Most of the examples that I have found involve counting or summing up numbers.  I just want to pivot some string data.  For example, I have a query returning the following.  Action1 VIEW   Action1 EDIT   Action2 VIEW   Action3 VIEW   Action3 EDIT     I would like to use PIVOT (if even possible) to make the results like so:  Action1 VIEW EDIT   Action2 VIEW NULL   Action3 VIEW EDIT     Is this even possible with the PIVOT functionality? How compute $\lim_{p\rightarrow 0} \|f\|_p$ in a probability space? Why are the holodecks on Voyager in use if they have energy issues? I'm watching the first two seasons of Voyager and various episodes have commentary on having energy limitations -- but we constantly see crew using extremely complicated holodeck simulations. Why would they allow use of the holodeck if they need to conserve energy? Was the significance of Arya's Braavosi coin ever explained? Jaqen H'ghar gives Arya the iron coin, she can apparently give it to any Braavosi and say Valar Morghulis and that gets her where she needs to go, but why?    Where do these coins come from and what do they indicate to a Braavosi? Prove $(1+a+b)(1+b+c)(1+c+a)\ge 9(ab+bc+ca)$ How one can prove the following.  Let $a$, $b$ and $c$ be non-negative real numbers. Then the inequality holds:  $(1+a+b)(1+b+c)(1+c+a)\ge9(ab+bc+ca).$  WLOG one can assume that $0\le a\le b\le c$.  It is not difficult to prove the statement when $0\le a\le b\le c\le 1$ or $1\le a\le b\le c$. I want my Ubuntu to look like Mac OS X. Just icon and theme if possible! Is it possible? Is there any way to install slingshot launcher? Linear independence of $\sin(x)$ and $\cos(x)$ In the vector space of $f:\mathbb R \to \mathbb R$, how do I prove that functions $\sin(x)$ and $\cos(x)$ are linearly independent. By def., two elements of a vector space are linearly independent if $0 = a\cos(x) + b\sin(x)$ implies that $a=b=0$, but how can I formalize that? Giving $x$ different values? Thanks in advance. Filter "Hot Network Questions" by excluding sites I was going to make a filter for the &quot;&quot; by excluding some sites from it.  I noticed  which talks about &quot;negative filtering&quot; but does not explain how one can do it or if it is possible.  There does not seem to be a way to do this, though.  On the filter page, my only options are:  So how can I do &quot;All sites except [list]&quot;? It would also be nice if this could include similar functionality with the meta checkbox.  Something like &quot;All main &amp; meta sites except...&quot; How to iterate over a comma separated list? This question is essentially the same as one of my , except the only difference is that I am using "only" to change the text at the same location (i.e., ). In other words, I am destroying my earlier text as I go, and not adding new ones underneath the previous ones.   Since the text for the first "only" is shorter than the second "only", therefore the image will shift location. I would like for the image to remain at its location.   Here is an example     it may not be obvious but the second image is higher up than the first.  The code is here, can someone find a solution?  \documentclass{beamer}  \usepackage{graphicx}  \title[Title]{Presentation} \author{Sandro Botticelli} \institute{Italy} \date{1484}  \begin{document}   \begin{frame} \begin{figure} \includegraphics[scale = 0.8]{Venus}     \caption{Nascita di Venere} \end{figure}  \only&lt;1&gt;{In the centre the newly-born goddess Venus stands nude in a giant scallop shell. Its size is purely imaginary, and is also found in classical depictions of the subject. }    \only&lt;2&gt;{Alternative identifications for the two secondary female figures involve those also found in the Primavera; the nymph held by Zephyr may be Chloris, a flower nymph he married in some versions of her story, and the figure on land may be Flora. Flora is generally the Roman equivalent of the Greek Chloris; in the Primavera Chloris is transformed into the figure of Flora next to her, following Ovid's Fasti, but it is hard to see that such a transformation is envisaged here.} \end{frame}   \end{document} Find the area where dog can roam A dog is tied to circular pillar by a rope. Radius of this pillar is $1m$ and length of rope is $\pi m$. What is an area where dog can roam?   I tried to find the area of all semicircles and then to find its sum. It is easy to find an area at front side of the pillar. It is $\displaystyle\frac12\pi^2\pi=\frac{\pi^3}{2}$. Problem is how to find remaining area. I tried to write this area using compass and straightedge, but I couldn't. Then I wrote this in AutoCAD and it looks like this: Is it possible to find the exact value of this area? Ok, I must be missing something obvious, but I'm having trouble adding a link to user/%/edit to the main menu.  In the Menu UI, I clicked "add link," set the title to "Account settings," and then was at a loss about what to put for the path.  I know how to generate a link to the account edit page using views, which is what I've always done before, but this time I actually need to add the link to the "Main Menu."