Execute terminal commands in python3
How to execute a program or call a system command from Python
I don't understand this and I'm now worried as I have donated to a lot of servers and I don't want to lose this account. On the launcher it says my new username but when I log on it says "Account not Authenticated with minecraft.net" and "Non-Valid Username".  How can I regain the ability to use my account online? I often find myself adding a lot of \textsl{} around inside \emph{} or \textit{} blocks because I find italicized digits to look too "showoffy" and "baroque" and to hinder legibility (I'm using $$ when the number has a mathematical sense, but this situation occurs in less technical texts like CVs, and such.).  Could someone help me write a renewcommand to automate this, or better, a single low level command that makes \emph, \itshape, \textit and friends choose slanted over italic for numbers? I'm not too familiar with the low level latex font selection system nor with a way to detect digits from regular letters.  Edit: MWE of what I need and what I want to avoid  \documentclass{article} \begin{document} He thought: '\emph{Why 1234567890 apples?}' then he realized '\emph{ah yes, he has \textsl{1234567890} childs}' \end{document}   gives:   I find the italicized version (first one) of 2,3,4 and 7 to look especially bad. Redirecting stdout to a file you don't have write permission on When you attempt to modify a file without having write permissions on it, you get an error:  &gt; touch /tmp/foo &amp;&amp; sudo chown root /tmp/foo &gt; echo test &gt; /tmp/foo zsh: permission denied: /tmp/foo   Sudoing doesn't help, because it runs the command as root, but the shell handles redirecting stdout and opens the file as you anyway:  &gt; sudo echo test &gt; /tmp/foo zsh: permission denied: /tmp/foo   Is there an easy way to redirect stdout to a file you don't have permission to write to, besides opening a shell as root and manipulating the file that way?  &gt; sudo su # echo test &gt; /tmp/foo Is it alright to use lowercase "i" or should you always use "I" (uppercase)? Official way to ask jQuery wait for all images to load before executing something In jQuery when you do this:  $(function() {    alert("DOM is loaded, but images not necessarily all loaded"); });   It waits for the DOM to load and executes your code. If all the images are not loaded then it still executes the code. This is obviously what we want if we're initializing any DOM stuff such as showing or hiding elements or attaching events.  Let's say though that I want some animation and I don't want it running until all the images are loaded. Is there an official way in jQuery to do this?  The best way I have is to use &lt;body onload="finished()"&gt;, but I don't really want to do that unless I have to.  Note: There is a  in Internet Explorer which actually does wait for all images to load before executing code inside $function() { }. So if you're using that platform you'll get the behavior I'm looking for instead of the correct behavior described above. Is it possible to add new alphabets to unicode-math? In ordinary LaTeX, one can easily add new math alphabets by using \DeclareMathAlphabet. One is then able to use, say, cmsy, eus, and rsfs letters side-by-side. Unfortunately, there does not seem to be a similar mechanism in unicode-math, or at the very least \DeclareMathAlphabet doesn't do what it's supposed to do.  Question. How can I set up my own math alphabets in unicode-math?   Attempted workarounds  Since unicode-math has lots of math alphabets, one workaround might be to replace an unused alphabet with the desired one using \setmathfont[range=...-&gt;...]. This doesn't quite work right in my example:  \documentclass[12pt]{article} \usepackage{fontspec,xltxtra,xunicode} \defaultfontfeatures{Mapping=tex-text}  \usepackage{unicode-math}  \scrollmode  \setmathfont{xits-math.otf} \setmathfont[range={\mathscr,\mathbfscr},StylisticSet=0]{xits-math.otf} \setmathfont[range={\mathcal,\mathbfcal},StylisticSet=1]{xits-math.otf} \setmathfont[range={\mathtt-&gt;\mathcal}]{latinmodern-math.otf}  \begin{document} \[ \begin{array}{c} \mathcal{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \\ \mathscr{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \\ \mathtt{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \end{array} \]   I suspect the problem is that the codepoints of the calligraphic letters in Unicode are not contiguous.   Using \mathversion seems to work better:  \documentclass[12pt]{article} \usepackage{fontspec,xltxtra,xunicode} \defaultfontfeatures{Mapping=tex-text}  \usepackage{unicode-math}  \setmathfont{xits-math.otf}  \setmathfont[version=eucal]{latinmodern-math.otf} \newcommand{\eucal}[1]{\mathchoice %   {\mbox{\mathversion{eucal}$\displaystyle\mathscr{#1}$}} %   {\mbox{\mathversion{eucal}$\mathscr{#1}$}} %   {\mbox{\mathversion{eucal}$\scriptstyle\mathscr{#1}$}} %   {\mbox{\mathversion{eucal}$\scriptscriptstyle\mathscr{#1}$}}}  \setmathfont[range={\mathcal,\mathbfcal},StylisticSet=1]{xits-math.otf}  \begin{document} \[ \begin{array}{c} \mathcal{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \\ \mathscr{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \\ \eucal{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \end{array} \] \end{document}   But this feels very inefficient. Analogue of closed graph theorem This is the analogue of closed graph theorem for compact space          Suppose that $X$ and $K$ are metric spaces, that $K$ is compact, and that the graph of $f: X \rightarrow K$ is a closed subset of $X \times K$. Prove that $f$ is continuous.      Because metric space is first countable, all we need is to prove that if $x = \lim_{n \rightarrow \infty} x_{n}$, then $f(x) = \lim_{n \rightarrow \infty} f(x_{n})$. Suppose $x = \lim_{n \rightarrow \infty} x_{n}$, then because $K$ is compact, sequence $\{f(x_{n})\}$ has a subsequence $\{f(x_{n_{i}})\}$ converge. Because the graph of $f$ is closed, we must have $\lim_{n \rightarrow \infty}\{f(x_{n_{i}})\} = f(x)$. All we need to prove now is $\{f(x_{n})\}$ converge to $f(x)$, but I can't prove that. Can any one help me. I really appreciate. Thanks When writing letter to an academic professor (not necessarily from student to professor), what is the appropriate way to address his/her title?  I have seen in letters using  Dear Prof. X even when the addressee is not a full professor  Dear Dr. X though, knowing that the addressee is a full professor  Dear Mr/Mrs X though, knowing that s/he has an academic title Why the number of indexed pages decreased for a "site:" search Recently I created a website with hundreds of thousands of unique pages. A week ago, Google had indexed about 250,000 pages. It has now decreased to 90k URLs (using a site:domain.com query).   What should I do to have Google index all the pages again? Why did all these pages get de-indexed from Google?. Packed images used as background don't show up when reopening the file I am trying to make an explosion with Blender Mantaflow, but I do not see the following in the Properties view in the Physics Properties:  Color Mapping Smoke   I am using Blender 2.91. Can you help me solve the problem? How do you do a deep copy of an object in .NET? com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Is 3+1 spacetime as privileged as is claimed? Proper way to exit iPhone application? How is exponentiation defined in Peano arithmetic? How would exponentiation be defined in Peano arithmetic? Unless $n$ is fixed natural number, $x^n$ seems to be hard to define.   Edit 2: So, what would be the way to define $x^n+y^n = z^n$ using $\Sigma_1^0$ formula?  Edit: OK, I say Peano arithmetic has addition and multiplication stuffs. This allows additions to be expressed without quantifiers but as for exponentiation Peano arithmetic is silent. That's why I asked this question. Just for clarification. Message appearing when a user was removed.     It seems I lost 1765 reputation points on Stack Overflow yesterday. The reason given in my history is "removed", with the description of "User was removed ()". I don't understand what that means. What caused this? This book came out of the 1970s (early 1980's) at the latest. In it the protagonist, a not so diligent student, gets turned on to computer programming and creates (I think..) a weather program.   Eventually he moves on and years later the program contacts him. It has become an AI and he is its creator.  I forget what the setup is post contact which is not helpful at all.. Is there something like python's interactive REPL mode, but for Java? Is there something like python's interactive REPL mode, but for Java? So that I can, for example, type InetAddress.getAllByName( localHostName ) in a window, and immediately get results, without all this public static void nightmare() thing? HDMI to VGA convert I just bought a new HP Pavilion dv7t Quad Edition laptop that has HDMI out. I already have a couple of monitors that are VGA and I'd like to hook up one of these to dual monitors.  I've read some sketchy reviews of products that try to convert directly from HDMI (digital) to  VGA (analog), so I was wondering if someone has a good recommendation on how to hook these two together.