How do I convert a string var a = "123456"; in to an array z = [1,2,3,4,5,6];? I tried everything and nothing seems to work. Thanks!
How do I split a string with multiple separators in JavaScript? I'm trying to split on both commas and spaces, but AFAIK JavaScript's split() function only supports one separator.
$\int_{\frac{1}{3}\pi}^{\frac{2}{3}\pi} {\sin(x)\;dx}$ using Riemann sums? How can I return pivot table output in MySQL? I searched around, and currently there are two methods suggested; installing an enhancement for Windows Subsystem for Linux and installing an XServer.  I want to know which method is the most hassle-free (easy to install AND to use), and which one is less memory-heavy.  I just want Synaptic and CMake. Why couldn't that be a builtin feature? Migrated questions don't have a user action label in the question list Is it possible to use `find -exec sh -c` safely? I'm trying to use find to echo 0 into some files, but apparently this only works with sh -c:  find /proc/sys/net/ipv6 -name accept_ra -exec sh -c 'echo 0 &gt; {}' \;   But using sh -c with find -exec makes me feel very uneasy because I suspect quoting problems. I fiddled a bit with it and apparently my suspicions were justified:   My test setup:  martin@dogmeat ~ % cd findtest  martin@dogmeat ~/findtest % echo one &gt; file\ with\ spaces martin@dogmeat ~/findtest % echo two &gt; file\ with\ \'single\ quotes\' martin@dogmeat ~/findtest % echo three &gt; file\ with\ \"double\ quotes\" martin@dogmeat ~/findtest % ll insgesamt 12K -rw-rw-r-- 1 martin martin 6 Sep 17 12:01 file with "double quotes" -rw-rw-r-- 1 martin martin 4 Sep 17 12:01 file with 'single quotes' -rw-rw-r-- 1 martin martin 4 Sep 17 12:01 file with spaces  Using find -exec without sh -c seems to work without problems - no quoting necessary here:  martin@dogmeat ~ % find findtest -type f -exec cat {} \; one two three  But when I'm using sh -c {} seems to require some kind of quoting:  martin@dogmeat ~ % LANG=C find findtest -type f -exec sh -c 'cat {}' \; cat: findtest/file: No such file or directory cat: with: No such file or directory cat: spaces: No such file or directory cat: findtest/file: No such file or directory cat: with: No such file or directory cat: single quotes: No such file or directory cat: findtest/file: No such file or directory cat: with: No such file or directory cat: double quotes: No such file or directory  Double quotes work as long as no file name contains double quotes:  martin@dogmeat ~ % LANG=C find findtest -type f -exec sh -c 'cat "{}"' \; one two cat: findtest/file with double: No such file or directory cat: quotes: No such file or directory  Single quotes work as long as no file name contains single quotes:  martin@dogmeat ~ % LANG=C find findtest -type f -exec sh -c "cat '{}'" \; one cat: findtest/file with single: No such file or directory cat: quotes: No such file or directory three    I haven't found a solution that works in all cases. Is there something I'm overlooking, or is using sh -c in find -exec inherently unsafe? What bends fabric of space-time? I know that mass can bend fabric of space-time, which causes gravity by making an object curve around a planet or star but is there anything else that can bend it?  Other energy sources, forces anything? I want to learn to use biper and biblatex in Lyx. This is how I would do it in LaTeX traditionally with biblatex and biber  \documentclass[12pt,a4paper,oneside,pdftex]{report} \usepackage[backend=biber]{biblatex} \addbibresource{minCuts.bib} ... \printbibliography \end{document}   The error is apparently originating from the \bibliographystyle command and biblatex package getting mixed, by . But I have no \bibliographystyle command in Preamble so they should not be mixed unless Lyx is somehow importing the \bibliographystyle.   How to resolve the biblioraphystyle error in Lyx with Biber and Biblatex?    Settings by the instructions  and Error        Document > Settings > Bibliography > Biber                  In Document > Settings > LaTeX Preamble                   Insert > List / TOC > BibTeX Bibliography...                        Package biblatex Error : '\bibliographystyle' invalid. A question of Euclidean domain Is taking the CUA (certified Usability analyst) certification worth it? I see a lot of people taking this  nowadays and I wonder if its actually worth it and how is it received by the industry and does it really help in bringing you up to speed with UX and usability best practices. Can anyone who has taken the exam before provide inputs on its benefits and also its cons if any.  I did see the question  and David's answer did mention that he found it useful but I would like to get more context in what sense people might find it useful and how it could potentially supplement or enhance a career. Recovering files from harddrive My laptop got broken (by what it seems the graphics card burned) and it is so old that it is not worth fixing it.   I took the harddrive from it and tried to use it as external hard drive with other computer, however I cannot access all the data, ie anything that is inside my user folder (it shows it to be empty). Couldn't find anything to solve it. We are experimenting with running an OpenVPN server for our business. One question I can't seem to find the answer to is this:  When we generate keys for one of our users for them to use at home, can their use the same keys on their home laptop as well as their home desktop? Or do we need to generate separate keys for each user's client machine? I often have to sort a dictionary, consisting of keys &amp; values, by value. For example, I have a hash of words and respective frequencies, that I want to order by frequency.  There is a SortedList which is good for a single value (say frequency), that I want to map it back to the word.   orders by key, not value. Some resort to a , but is there a cleaner way? Prove $\det(kA)=k^n\det A$ Prove that if $n \in \mathbb{N}$, then $\sum_{d|n}{(d(n))^3}=(\sum_{d|n}{d(n)})^2$ where $d(n)$ is the divisor function. Recently my paper is reviewed (by a professor from independent third party) and accepted by a journal. But, my employer allows me to publish this paper only without its name there.  Publishing house is expecting affiliation for each author, i.e. I can not leave affiliation as blank.   What should I write as the affiliation? How do I delete all my mail from my Gmail account? Too many SE sites causes confusion have already been created through .  have already completed their beta stage and are waiting for launch.  are in public beta stage.  are in commitment phase in   proposals are listed in   Now it is really confusing to find a suitable site to ask a question. As an example - I host a blog using . Now I have a question about this hosting. I want to post it in a . Where will I post? I have 2 options available now.     Are developers trying anything to solve this confusing matter? Is the oil thrown on a creature consumed when it's dealt fire damage and lit? I had the idea of throwing oil flasks on enemies at level 1, then hitting them with a torch to deal a bunch of bonus fire damage.  PHB 152:     If the target takes any fire damage before the oil dries (after 1 minute), the target takes an additional 5 fire damage from the burning oil.   PHB 152:     If you make a melee attack with a burning torch and hit, it deals 1 fire damage.   A flat 6 fire damage is pretty potent at level 1, but does the oil remain or does it burn out in a flash when hit (since it has no damage over time) when hit?  If not there is potential for a dual torch wielding PC to throw down 12 fire damage per round, or for multiple PCs to deal 6 damage per torch per PC per round. Why is a nonstop flight sometimes more expensive than multiple connections? I left myself signed in to my work Gmail account on my personal computer. I am not using Chrome. I had an internet session that was not suitable for work. At all. This included Google searches and YouTube searches.  Will my employer be able to identify what I have been searching?