How to make bash script use a particular python version for executing a python script?
How do I tell a Python script to use a particular version
Kinematic Viscosity How would you define ? What does it physically represent? Around the Internet I've found it defined as just a ratio, and that's it.  I saw in an answer that I can think of it as "diffusivity of momentum". What does this mean? FTP File Upload with HTTP Proxy Is there a way to upload a file to a FTP server when behind an HTTP proxy ?  It seems that uploading a file is not supported behind an HTTP Proxy using .Net Webclient. ().  If there is no workaround ? If not, do you know a good and free FTP library I can use ?  Edit: Unfortunately, I don't have any FTP proxy to connect to. I'm setting up a child theme in WordPress and I can't make add_action to be fired within functions.php.  Functions.php is called and I can run code from within. Any idea on what I'm doing wrong?  $debug_msg = "Hi there!";  function test_function() {     error_log($debug_msg, 0);  } add_action('init', 'test_function', 20); I know the statement:  create table xyz_new as select * from xyz;   Which copies the structure and the data, but what if I just want the structure? How to check if value is in range of cells? I want to check if the value of a cell exists in a range of cells. How can I do this?  Just like you would be able to do "if value in list_of_values" in Python for example. What is the best way to identify outliers in multivariate data? Suppose I have a large set of multivariate data with at least three variables. How can I find the outliers? Pairwise scatterplots won't work as it is possible for an outlier to exist in 3 dimensions that is not an outlier in any of the 2 dimensional subspaces.  I am not thinking of a regression problem, but of true multivariate data. So answers involving robust regression or computing leverage are not helpful.  One possibility would be to compute the principal component scores and look for an outlier in the bivariate scatterplot of the first two scores. Would that be guaranteed to work? Are there better approaches? I am creating an ZIP file with ZipFile in Python 2.5, it works ok so far:  import zipfile, os  locfile = "test.txt" loczip = os.path.splitext (locfile)[0] + ".zip" zip = zipfile.ZipFile (loczip, "w") zip.write (locfile) zip.close()   but I couldn't find how to encrypt the files in the ZIP file. I could use system and call PKZIP -s, but I suppose there must be a more "Pythonic" way.  I'm looking for an open source solution. $x^2$ is congruent to $-1 \bmod p$ In general, how do you solve $x^2$ is congruent to $-1 \bmod p$, where $p$ is an odd prime and $x$ is an integer.  Specifically, I need to solve $x^2\equiv-1 \pmod{29}$ How to Recover truncate table in MySQL? I am getting the "wrong input table name" when use TRUNCATE as following:  TRUNCATE `stats`   The table should bans.  How to recover stats table?  I am using CentOS 6, and MySQL-Server. I can't boot into a usable system after updates. What should I do? Since some system updates, my machine can no longer boot properly. I am no Ubuntu guru. I do not have a week to spare diagnosing the issue. I just want to retrieve important data from this machine's hard drive and get a working computer again ASAP.  What should I do? Frequently when EM waves are taught, it is said that the change in electric field causes a change in the magnetic field, which then causes a change in the electric field, and so on and so forth.   But from my understanding of basic electromagnetics, it is not necessarily a changing electric field that creates a change in magnetic field, but instead an accelerating charge. and it is this charge that creates both the electric and magnetic field. Again, from my understanding, a changing magnetic field is not generated by a changing electric field, but instead just happens to always be present perpendicular to a changing electric field due to the laws of electromagnetism.   Am I wrong? Or is the "mutual generation" concept between the electric and magnetic components of an EM wave an actual thing? There is a badge named Electorate which is going to be awarded on "Voted on 600 questions and 25% or more of total votes are on questions". Can somebody explain this to me?  Voted on 600 Question and 25% are on Question? is this  means   Voted on 600 Posts and 25% are on Question  Can't SO place some easy text or Definitions for average users? Dual boot Ubuntu (14.04) with Windows 10 In C++, sizeof('a') == sizeof(char) == 1. This makes intuitive sense, since 'a' is a character literal, and sizeof(char) == 1 as defined by the standard.  In C however, sizeof('a') == sizeof(int). That is, it appears that C character literals are actually integers. Does anyone know why? I can find plenty of mentions of this C quirk but no explanation for why it exists. Suppose $f$ is an isometric (i.e., distance preserving) function on $\mathbb{E}^2$ such that $f(0,0) = (0,0)$.  Then I want to show that $f$ is necessarily linear.  Now $f$ is linear iff $f$ is both additive and homogenous.  The following is an attempted proof for the homogeneity of f (missing the last step); still more, I have no idea how to argue for the additivity of $f$.  Any ideas?  Let $x \in \mathbb{E}^2$ and $\alpha \in \mathbb{R}$   We know that $\forall x \in \mathbb{E}^2$, $\Vert x - 0 \Vert = \Vert f(x) - f(0)\Vert = \Vert f(x) - 0 \Vert$ so that $\Vert x\Vert = \Vert f(x)\Vert$.  From this we immediately have the following facts:  $\Vert x \Vert = \Vert f(x) \Vert$  $\Vert \alpha x \Vert = \Vert f(\alpha x) \Vert$  We can then argue that since $\Vert \alpha x\Vert = |\alpha| \Vert x \Vert = |\alpha| \Vert f(x) \Vert = \Vert \alpha f(x) \Vert$, we also have that $\Vert f(\alpha x) \Vert = \Vert \alpha f(x)\Vert$.  Finally, we have that  $\Vert \alpha x - x \Vert = \Vert \alpha f(x) - f(x) \Vert$   iff $ \Vert (\alpha - 1)x \Vert = \Vert (\alpha - 1) f(x) \Vert$   iff $|\alpha - 1| \Vert x \Vert = |\alpha - 1| \Vert f(x) \Vert$  Since the last of these statements is in fact true, we now have $\Vert \alpha x - x \Vert = \Vert \alpha f(x) - f(x) \Vert$ as desired.  Now at this point it seems like I have all of the facts required to assert that $f(\alpha x) = \alpha f(x)$, but I can't figure out how to formally state why without illegally appealing to visual intuition.  Any ideas? What is the difference between weight and mass? What is the difference between the weight of an object and the mass of an object? Quick directory navigation in the bash shell Using The Terminal Command to Shutdown, Restart and Sleep My Mac? I'm getting more interested in using Terminal as an alternative way to address solutions on my Mac. I have seen this question entitled .  I would therefore like to know:  How to shut down, restart and sleep my Mac using the Terminal command exclusively ? How do I  prevent .xsession-errors from eating disk space? Minimal $ab$ for Rational Number $a/b$ in an Interval Given rational numbers $L$ and $U$, $0&lt;L&lt;U&lt;1$, find rational number $M=a/b$ such that $L \le M&lt;U$ and $(a\times b)$ is as small as possible---$a$ and $b$ are integers. For example,    If $L=66/101$ and $U=19/29$ then $M=17/26$. If $L=66/101$ and $U=19/28$ then $M=2/3$.   Right now I'm using a naive search that is exponential in complexity. Is there a better method?  If it is of any help, it can be assumed the prime factorization of numerator and denominator of $U$ and $L$ are known.