Why does simply importing a python module executes everything present in that module ?
Why is Python running my module when I import it, and how do I stop it?
How to define orbital angular momentum in other than three dimensions? Introduction to Statistical Learning defines the F-statistic as follows: $$\frac{(TSS - RSS) / p}{RSS / (n - p - 1)}$$ I am trying to interpret this formula intuitively - the numerator looks like the $ESS$ per regressor, and the denominator looks like the $RSS$ per observation. This does not seem like an apples to apples comparison; can anyone explain why it makes sense?  They also say that the expectation of the denominator is equal to the variance of the irreducible error if the linear model assumptions hold (I get this, as the denominator is really the Residual Standard Error, which is an unbiased estimator). They also say the numerator is equal to the variance of the irreducible error if the null hypothesis is true. Therefore the F-statistic will be close to 1 if the null hypothesis is true.  But if you let p = 1, that is, apply the F-statistic to single linear regression, it becomes:  $$\frac{TSS - RSS}{RSS / (n-2)}$$  According to the book, if the regressor has no explanatory power, the F-statistic should be close to 1. But if you imagine a data set where the coefficient on X is 0 (i.e. no explanatory power), $TSS$ will be equal to $RSS$, so the numerator and hence the F-statistic should be 0, not 1 as they claim. What is going on?  Furthermore, if you accept that the F-statistic is 1, as they claim, then $(TSS - RSS) = RSS / (n-2)$, which means $ESS = RSS / (n-2)$. If you think of the F-statistics as comparing explained vs. unexplained variation, this does not seem like a fair comparison since this decomposition makes it the ratio of TOTAL explained variation summed across ALL observations vs. the unexplained variation PER observation. Again, what am I missing?  I am just trying to make sense of it in a layman way, apologies if I am missing something obvious. Grep: unexpected results when searching for words in heading from man page Is there a way to disable certain Windows 7 keyboard shortcuts?  Specifically, in this case, I want to disable Alt+Space and WinKey+Space. Safely turning a JSON string into an object Given a string of JSON data, how can I safely turn that string into a JavaScript object?  Obviously I can do this unsafely with something like:  var obj = eval("(" + json + ')');   but that leaves me vulnerable to the JSON string containing other code, which it seems very dangerous to simply eval. Why can some holodeck matter leave the holodeck, while other holodeck matter (notably people) cannot? Words to describe people with good/poor vocabularies Words to describe people with good/poor vocabularies. I am looking for words which I can use to describe characters and I would also like to describe their vocabularies, and explain how their vocabularies stem from their upbringing I run processing.run(&quot;native:buffer&quot;) and from newly created vector I get all features and export them to string using QgsJsonExporter(). My problem is that newly created vector gives new IDs to all features and they aren't equal to attribute ID's values. And after exporting them to GeoJSON using QgsJsonExporter() I get GeoJSON features with identifiers. However I can solve this by declaring processing.run(&quot;native:buffer&quot;) algorithm OUTPUT to .geosjon file and opening it afterwards. Is there a way that I can get GeoJSON string without IDs without having to save OUTPUT to .geojson and reading it to string afterwards. vl = QgsVectorLayer(sys.argv[1],&quot;mygeojson&quot;,&quot;ogr&quot;)  def runProcessingNativeBuffer(inputGeoJson, distance):     processing.algorithmHelp(&quot;native:buffer&quot;)     return processing.run(&quot;native:buffer&quot;,                          {'INPUT': inputGeoJson,                           'DISTANCE': distance, 'SEGMENTS': 5,                           'END_CAP_STYLE': 0, 'JOIN_STYLE': 0,                           'MITER_LIMIT': 2, 'DISSOLVE': False,                           'OUTPUT': &quot;TEMPORARY_OUTPUT&quot;})  ats = runProcessingNativeBuffer(vl, sys.argv[2])  vl1=ats['OUTPUT']  features = vl1.getFeatures() exporter = QgsJsonExporter() print(&quot;GEOJSON&quot;,exporter.exportFeatures(features))  IDs in properties are fine I don't need additional IDs in &quot;features&quot; How to run updmap-sys after installing cm-super? My original question was:   The answer that seems suitable to my cause is to install cm-super. I did that (using package manager [winxp 32 bit, MikTex installation 2.9 recently updated]). But still the command  \usepackage{cm-super}    yields an error.  User H Cavendish suggested to run updmap-sys, but I am not sure about how to do that on WinXP.   2011 November 04 edit: I made it sure that I have installed 'cm-super' - but still get the same error:   I have also tried updating the file name databases - but no avail. When ssh'ing, how can I set an environment variable on the server that changes from session to session? How to draw arrows between circled coefficients of polynomials using tikz After reading Gonzalo's answer to , I thought  I would be able to modify it so that I could have the corresponding coefficients circled and an arrow going from one circle to the next. For example, I would like the coefficient of x^2 on the left, a, circled and the coefficient of x^2 on the right, 5 circled, then a curved arrow drawn between the two circles. How might I achieve this? Also, how would I add some text along the path of the arrow? I reproduce his code here.  \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{calc}  \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}  \begin{document}  \begin{equation}   a\tikzmark{a}x^2 + bx + c = 5\tikzmark{b}x^2 + bx + c.   \begin{tikzpicture}[overlay,remember picture,out=315,in=225,distance=0.4cm]     \draw[-&gt;,red,shorten &gt;=3pt,shorten &lt;=3pt] (a.center) to (b.center);   \end{tikzpicture} \end{equation}  \end{document} Why isn't persistence working on Lubuntu 12.04 Live-USB? When you first add a cylinder, you have the option to change the number of vertices, etc, but once you do anything else in blender, it seems you no longer can edit those parameters.   Is there a setting anywhere or an add-on that allows these parameters to be edited later on? If not, how easy would such an addon/feature be to create for anyone reading this? Suppose we have a magnetic field directed into the computer screen. Assume that there is no gravitational field. Now suppose we have a stationary positively charged particle in the magnetic field. The magnetic force is given by $$\mathbf{F}=q\mathbf{v}\times\mathbf{B}$$  Since $\mathbf{v}=0, \mathbf{F}=0$.  Now pick a reference frame moving to the left with constant velocity. In this frame, the particle is moving to the right with constant velocity. So, the magnetic force is directed upwards.  From what I've learnt in physics, forces are independent of choice of reference frames as long as the frames are inertial. But in the 2 inertial reference frames I have chosen, I get 2 different magnetic forces. How do we reconcile this? How to show $a,b$ coprime to $n\Rightarrow ab$ coprime to $n$? Let $a,b,n$ be integers such that  $\gcd(a,n)=\gcd(b,n)=1$. How to show that $\gcd(ab,n)=1$?   In other words, how to show that if two integers $a$ and $b$ each have no non-trivial common divisor with and integer $n$, then their product does no have a non-trivial common divisor with $n$ either.     This is a problem that is an exercise in my course.   Intuitively it seems plausible and it is easy to check in specific cases but how to  give an actual proof is not obvious. In my Java application, I want to run a batch file that calls "scons -Q implicit-deps-changed build\file_load_type export\file_load_type"  It seems that I can't even get my batch file to execute. I'm out of ideas.   This is what I have in Java:  Runtime.    getRuntime().    exec("build.bat", null, new File("."));   Previously, I had a Python Sconscript file that I wanted to run but since that didn't work I decided I would call the script via a batch file but that method has not been successful as of yet. How do I answer "Where do you work?" What are the main purposes to ask someone 'Where do you work?' apart from to find out the type of place he or she works in?  I can answer:     I work in a shop.   I work in a hospital.   I work in an office.   But what other things can (or should) I use as a reply to this question?    Extra question:  sometimes I see     I work at a shop.    I work at a hospital.    I work at an office.   What's the difference between 'at' and 'in' in this case? Does time stretch all the way back for infinity or was there a point when time appears to start in the universe?  I remember reading long ago somewhere that according to one theory time began shortly before the creation of the universe.  Does time have a starting point of note? trying to install Astromenace on my linux mint 14 cinnamon pc so i am following this tutorial as it is the only one i can find and any that i can find are the same as this one:    but when i type in the first command i gives me this  myname@myname-System-Product-Name ~ $ sudo wget -q -O- http://archive.getdeb.net/getdeb-archive.key | apt-key add - [sudo] password for myname: ERROR: This command can only be used by root. What does Use an Object cover?