I have this folder which contains a program i can launch by double clicking on its executable, but it doesn't run from the console.  some info:     ➜  knime_3.5.3 file knime       knime: ELF 64-bit LSB executable, x86-64,   version 1 (SYSV), dynamically linked, interpreter   /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.9, with debug_info, not   stripped      ➜  knime_3.5.3 ls -l knime      -rwxr-xr-x 1 rob rob 80393 apr  4 22:18 knime   Stuff i've already already:   right click on it, go to permission, check the "Allow execution as program"     ➜  knime_3.5.3 knime zsh: permission denied: knime  ➜  knime_3.5.3 sudo knime [sudo] password for rob:  sudo: knime: command not found
I'd like to know if there is a way to run  program/shell script without typing full path:  /opt/idea/bin/idea.sh
I want to subtract a constant number from my data to get new data file. For example, I want to subtract  10 from my data.   data.txt  Id  a   b   c   d   e 1   1   2   3   4   5 2   2   3   4   5   6 3   3   4   5   6   7 4   4   5   6   7   8 5   5   6   7   8   9 6   6   7   8   9   10 7   7   8   9   10  11 8   8   9   10  11  12 9   9   10  11  12  13 10  10  11  12  13  14 11  11  12  13  14  15 12  12  13  14  15  16 13  13  14  15  16  17 14  14  15  16  17  18   Required output:  out.txt   Id  a   b   c   d   e 1   -9  -8  -7  -6  -5 2   -8  -7  -6  -5  -4 3   -7  -6  -5  -4  -3 4   -6  -5  -4  -3  -2 5   -5  -4  -3  -2  -1 6   -4  -3  -2  -1  0 7   -3  -2  -1  0   1 8   -2  -1  0   1   2 9   -1  0   1   2   3 10  0   1   2   3   4 11  1   2   3   4   5 12  2   3   4   5   6 13  3   4   5   6   7 14  4   5   6   7   8 Sorry for the vague title--I don't want the title to be a spoiler.  I've seen the movie three times, and the last two times I looked specifically for clues to this question, but found none.  The final scene in  shows       Cobb's top spinning, as he goes off to be reunited with his children.  The top continues to spin, then the movie ends, without telling us if the top topples--and therefore revealing whether he's in the "real world" or still in a dream. Do we know if he was in a dream at the end of the movie?   I'm assuming the answer is that we simply cannot know.  But did I miss anything?  Were there clues that I missed? What does template  mean? Flattening a shallow list in Python What happens in electron-electron collisions? Is the density operator a mathematical convenience or a 'fundamental' aspect of quantum mechanics? In quantum mechanics, one makes the distinction between mixed states and pure states.  A classic example of a mixed state is a beam of photons in which 50% have spin in the positive $z$-direction and 50% have spin in the positive $x$-direction.  Note that this is not the same as a beam of photons, 100% of which are in the state $$ \frac{1}{\sqrt{2}}[\lvert z,+\rangle + \lvert x,+\rangle]. $$ It seems, however, that at least in principle, we could describe this beam of particles as a single pure state in a 'very large' Hilbert space, namely the Hilbert space that is the tensor product of all the $\sim 10^{23}$ particles (I think that's the proper order of magnitude at least).  So then, is the density operator a mathematical convenience, or are there other aspects of quantum mechanics that truly require the density operator to be a 'fundamental' object of the theory?  (If what I mean by this is at all unclear, please let me know in the comments, and I will do my best to clarify.) I will quote a question from my textbook, to prevent misinterpretation:     Let $G$ be a finite abelian group and let $m$ be the least common multiple of the orders of its elements. Prove that $G$ contains an element of order $m$.   I figured that, if $|G|=n$, then I should interpret the part with the least common multiple as $lcm(|x_1|,\dots,|x_n|)=m$, where $x_i\in G$ for $0\leq i\leq n$, thus, for all such $x_i$, $\exists a_i\in\mathbb{N}$ such that $m=|x_i|a_i$. I guess I should use the fact that $|x_i|$ divides $|G|$, so $\exists k\in \mathbb{N}$ such that $|G|=k|x_i|$ for all $x_i\in G$. I'm not really sure how to go from here, in particular how I should use the fact that $G$ is abelian. I have a StreamReader object that I initialized with a stream, now I want to save this stream to disk (the stream may be a .gif or .jpg or .pdf).  Existing Code:  StreamReader sr = new StreamReader(myOtherObject.InputStream);    I need to save this to disk (I have the filename). In the future I may want to store this to SQL Server.   I have the encoding type also, which I will need if I store it to SQL Server, correct? Input image strip without stretching to fit output frame When you add an image strip to the Video Sequence Editor, it stretches/shrinks your image to fit the full output frame.  How can I add an image at its original resolution?  For example, if I add a 60x60 pixel image, it should appear very small in the final 1080p render. About $\lim \left(1+\frac {x}{n}\right)^n$ Can you combine multiple lists with LINQ? Say I have two lists:  var list1 = new int[] {1, 2, 3}; var list2 = new string[] {"a", "b", "c"};   Is it possible to write a LINQ statement that will generate the following list:  var result = new []{      new {i = 1, s = "a"},     new {i = 1, s = "b"},     new {i = 1, s = "c"},     new {i = 2, s = "a"},     new {i = 2, s = "b"},     new {i = 2, s = "c"},     new {i = 3, s = "a"},     new {i = 3, s = "b"},     new {i = 3, s = "c"} };   ?  Edit: I forgot to mention I didn't want it in query syntax. Anyway, based on preetsangha's answer I've got the following:  var result = list1.SelectMany(i =&gt;  list2.Select(s =&gt; new {i = i, s = s})); What do you call all the pieces of a song minus the lyrics I think there must be a good word for this, but can't think of what it might be.  Harmony and Melody are pieces of it, beat seems simplistic, Instrumentation seems too scientific and dull.  Any Ideas? Explain Root Mean Square Error to non-technical audience My technophobe mother returned from a European trip to discover she'd erased all but 15 images from a nearly full 2GB card. As I am the computer guy in the family, she posted the card to me and asked that I make something magical happen.  The photos were taken with and deleted by a Nikon Coolpix. (I don't know the model.)  I am a Linux guy, but there is a Windows Vista box at my disposal.  What is my best strategy to try to recover something? Shocking? - MacBook stubby earthed charger UK I have no idea why. But apple have not earthed the stubbly plug for the macbook pro transformer. So on the short lead the only way the charger is earthed is when I touch it or the macs unibody which gives you a sort of vibrating feeling on your palms.  When I went to the genius bar to complain about it they said that it was completely 'normal'. Where their definition of normal is that every MacBook does it. I have had 4 MacBooks and all have done it.    The genius did say that he though he has seen a few earthed 3pin plugs. So my question is where can I pick one up? or how could we force apple to earth the stubby plugs and recall them? Running own executable on Android shell I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system and tried to run it.  The output is permission denied.  What do I have to do, in order to run my own compiled programs in Android file system? Why do we need both using namespace and include directives in C++ programs?  For example,   #include &lt;iostream&gt;  using namespace std;  int main() {  cout &lt;&lt; "Hello world"; }   Why is it not enough to just have #include &lt;iostream&gt; or just have using namespace std and get rid of the other?  (I am thinking of an analogy with Java, where import java.net.* will import everything from java.net, you don't need to do anything else.) In , someone suggested in a  that I should not cast the result of malloc. i.e., I should do this: int *sieve = malloc(sizeof(int) * length);  rather than: int *sieve = (int *) malloc(sizeof(int) * length);  Why would this be the case? Sum data based on cell color in Google Spreadsheets I have seen  and altough I face the same problem, the answer to that question is not helpful to my case.   I have large spreadsheets which are changed frequently. So, according to the solution accepted to that question, it is hard to duplicate all populated columns and it is cumbersome to edit one more cell everytime I wish to make a change on cells background colors.  Isn't there a way to sum data based on a condition regarding cell background color in Google Spreadsheets? Simple prime number generator in Python