Reverse a string with spaces
Reverse the ordering of words in a string
Prove or find a counterexample: For all real numbers x and y it holds that x + y is irrational if, and only if, both x and y are irrational. The following is a Homework Question that I've been working on and I would like some feedback on my answer: Prove or find a counterexample: For all real numbers $x$ and $y$ it holds that $x + y$ is irrational if, and only if, both $x$ and $y$ are irrational.  So I've got (or at least like to think I've got) a counter example.  Let $x = 1$ and $y = \sqrt{2}$.   Thus $x$ is rational and $y$ is irrational. Adding $x$ and $y$ gives us $1 + \sqrt{2}$ which cannot be simplified any further (right?) and is an irrational number.  Thereby proving that $x + y$ can be irrational without both x and y being irrational.   Is this okay? Any feedback is greatly appreciated thank you! Possibilities for Python classes organized across files? I'm used to the Java model where you can have one public class per file.  Python doesn't have this restriction, and I'm wondering what's the best practice for organizing classes. Are black hole regarded as baryonic matter in cosmology? Black holes do not have any property as baryonic or non-baryonic matter, as is stated by the no-hair theorem. Regarding conventional theories, in different models of cosmology, like Lambda-CDM, are black holes regarded as baryonic matter, and does the black hole matter significantly affect the baryonic density? Proving that $\sum\limits_{n = 0}^{2013} a_n z^n \neq 0$ if $a_0 > a_1 > \dots > a_{2013} > 0$ and $|z| \leq 1$ I'm going to teach a preparation course for the complex analysis qualifying exam from my university (which basically consists of me doing some problems from past exams) and I'm trying to solve some questions from previous exams. One of the questions is the following:           Prove that $\displaystyle{\sum_{n = 0}^{2013} a_n z^n \neq 0}$ if the coefficients  satisfy $a_0 &gt; a_1 &gt; \dots &gt; a_{2013} &gt; 0$ and $|z| \leq 1$.      I tried to approach the problem by using the reverse triangle inequality to try to isolate the leading term, which I thought should be the constant coefficient, as follows:  \begin{array} . \left|  \sum_{n = 0}^{2013} a_n z^n \right| &amp;= \left| a_0 +  \sum_{n = 1}^{2013} a_n z^n \right| \\ &amp;\geq |a_0| - \left|  \sum_{n = 1}^{2013} a_n z^n \right|\\ &amp;\geq |a_0| -  \sum_{n = 1}^{2013} |a_n z^n|\\ &amp;\geq a_0 -  \sum_{n = 1}^{2013} a_n |z^n|\\ &amp;\geq a_0 -  \sum_{n = 1}^{2013} a_0 |z^n|\\ &amp;= a_0\left( 1  -  \sum_{n = 1}^{2013} |z^n| \right) \end{array}  Then for $|z| &lt; 1$, we have that this last expression is equal to  $$ a_0\left( 1  -  |z| \frac{|z|^{2013} - 1}{|z| - 1} \right) $$  and my hope was to prove that this was always positive, nevertheless, after failing to prove it, I plotted the expression inside the parenthesis as a function of $|z|$, and found out that it changes sign in the interval $(0, 1)$.  Question  Can my approach somehow be made to work? And if not, how can I prove that the sum $\displaystyle{\sum_{n = 0}^{2013} a_n z^n \neq 0}$ under the given conditions?  Thank you very much for any help. What is a good SSH server to use on Windows? In my spare time I remotely support my wife's office via VPN into a Windows Server. I am about to purchase a wireless broadband service which doesn't support VPN.  I don't want to open up the remote desktop ports directly, and I would like to set up an SSH tunnel into the network, and if necessary then VPN over the top of that.  What is the best windows SSH Server implementation to use on a Windows 2003 Server, or should I just be using ? Trigonometric fraction Inequality question In the following code, I need to use +/- where I have used it, and plus/minus where I have used it.  \documentclass{amsart} \usepackage{lipsum} \usepackage{calc} \parindent=0 pt \parskip=12 pt plus 0 pt minus 0 pt \def\headsep{25pt} \newcommand{\LAYOUT}[5]{%   \setlength{\hoffset}{0pt}   \setlength{\voffset}{0pt}   \setlength{\topmargin}{#1 - 1in - \voffset - \headheight - \headsep}    \setlength{\oddsidemargin}{#2 - 1in - \hoffset}   \setlength{\evensidemargin}{\oddsidemargin}   \setlength{\textheight}{#3}   \setlength{\textwidth}{#4}   \setlength{\marginparwidth}{#5} } \newcommand{\FULLPAGE}{\LAYOUT{1in}{1in}{9in}{6.5in}{0.75in}}  \FULLPAGE \begin{document} \lipsum[1-10] \end{document}   If I replace the plus and minus in line 5 with + and - I get an enigmatic  "missing begin{document}" error.    If I replace the minus's in lines 10-11 with "-" I get an equally enigmatic error:  "Missing number, treated as zero. Illegal unit of measure (pt inserted)."   Can somebody please explain when one can use +/- and when one can use plus/minus?  Presumably there's a good reason why latex's error messages are so completely mystifying, and why inconsistencies like these keep appearing? It's really hard to explain to my coauthors, who regularly complain that latex is the most infuriating program ever devised by mankind.  Thanks very much for any advice!   Leo Shift numbers into a different range I was wondering how can I shift my data that fall between a range lets say [0, 125] to another range like [-128, 128].  Thanks for any help grep a file, but show several surrounding lines? I would like to grep for a string, but also show the preceding five lines and the following five lines as well as the matched line. How would I be able to do this? What happens if no one survives the Hunger Games? It is possible that the remaining last two tributes might get killed at the same time, for example, by a land mine explosion, and in that case the games will end with no victor standing.  Is there a reference in the original books as to what happens if nobody emerges victor in the Hunger Games? What does increased caster level affect? A  adds +1 caster level, what does this affect?   Damage from spells? (Like fireball) Duration and area of effect? "Amount" of effect (Like number of missiles from magic missile) Spells known by a wizard (ie +1 caster level mean a level 2 wizard gets the spells as if they were level 3?) Anything else? sed : Ignore line starting whitespace for match When you respond to someone in a comment you use @PersonsName. Is there anyway it could be linked like this @ If I run history, I can see my latest executed commands.  But if I do tail -f $HISTFILE or tail -f ~/.bash_history, they do not get listed.  Does the file get locked, is there a temporary location or something similar? How do I write a short literal in C++? Very basic question: how do I write a short literal in C++?  I know the following:   2 is an int 2U is an unsigned int 2L is a long 2LL is a long long 2.0f is a float 2.0 is a double '\2' is a char.   But how would I write a short literal?  I tried 2S but that gives a compiler warning. Filling triangle doesn't seem to work with PGF/TikZ I was wondering if anyone had any clue on why my triangles are not filled in red within the following piece of code:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,3d}  \usepackage[active, pdftex, tightpage]{preview} \PreviewEnvironment[{[]}]{tikzpicture} \newcounter{number}  \begin{document} \begin{tikzpicture}[x  = {(-0.5cm,-0.5cm)},                     y  = {(0.9659cm,-0.25882cm)},                     z  = {(0cm,1cm)}] \begin{scope}[canvas is yx plane at z=0] \foreach \x / \y / \label in {1 / 0.4 / 1, 0.9 / 0.4 / 0, 1 / 0.5 / 1, 0.7 / 0.3 / 0, 0.8 / 0.4 / 0, 0.9 / 0.5 / 0, 1 / 0.6 / 1, 0.7 / 0.4 / 0, 0.4 / 0.4 / 0, 0.6 / 0.4 / 0, 0.5 / 0.4 / 0, 0.8 / 0.5 / 0, 0.9 / 0.6 / 0, 1 / 0.7 / 1, 0.7 / 0.5 / 0, 0.5 / 0.5 / 0, 0.4 / 0.5 / 0, 0.6 / 0.5 / 0, 0.8 / 0.6 / 0, 0.9 / 0.7 / 0, 1 / 0.8 / 1, 0.7 / 0.6 / 0, 0.6 / 0.6 / 0, 0.5 / 0.6 / 0} { \addtocounter{number}{1} \pgfmathparse{\value{number}}\let\k\pgfmathresult \draw (8 * \x, 8 * \y) node[inner sep=0, outer sep = -0.1pt,color=black,fill,circle] (node-\k) {}; };  \foreach \x / \y / \z / \trash in { 4/5/8/0, 9/11/16/0, 9/16/17/0, 11/10/18/0, 11/18/16/0, 10/8/15/0, 10/15/18/0, 8/5/12/0, 8/12/15/0, 5/2/6/0, 5/6/12/0, 2/1/3/0, 2/3/6/0, 17/16/24/0, 16/18/23/0, 16/23/24/0, 18/15/22/0, 18/22/23/0, 15/12/19/0, 15/19/22/0, 12/6/13/0, 12/13/19/0, 6/3/7/0} { \draw[fill=red]  (node-\x) --  (node-\y) --  (node-\z) -- cycle; } \end{scope} \end{tikzpicture} \end{document}) Consider that we have two balls, one white and one black, and two distant observers A and B with closed eyes. We give the first ball to the observer A and the second ball to the observer B. The observers don't know the exact color (state) of their balls, they know only the probability of having one or another color, until they look at them (measure). If the observer A looks at his ball he will see its color, which is white, so he immediately knows the color of the second ball. Lets call this “classical entanglement”.  My question is: What is the difference between this “classical entanglement” and the quantum entanglement, for example, of two entangled electrons with opposite spins states? Can this analogy be used to explain the quantum entanglement? Fighting Spam - What can I do as an: Email Administrator, Domain Owner, or User? This is a  about Fighting Spam.   Also related:                    There are so many techniques and so much to know about fighting SPAM. What widely used techniques and technologies are available to Administrator, Domain Owners, and End Users to help keep the junk out of our inboxes?  We're looking for an answer that covers different tech from various angles. The accepted answer should include a variety of technologies (eg SPF/SenderID, DomainKeys/DKIM, Graylisting, DNS RBLs, Reputation Services, Filtering Software [SpamAssassin, etc]); best practices (eg mail on Port 25 should never be allowed to relay, Port 587 should be used; etc), terminology (eg, Open Relay, Backscatter, MSA/MTA/MUA, Spam/Ham), and possibly other techniques. How can I determine the name of the Bash script file inside the script itself?  Like if my script is in file runme.sh, then how would I make it to display "You are running runme.sh" message without hardcoding that? Do Pokémon trainers develop some kind of limited resistance to their Pokémon's abilities? Obvious comedic aspects of the cartoon show especially aside, this may be a partial explanation. Think about it:  James can breathe Weezing's smog with no ill effects. Brock was able to hug a Sharpedo. And Ash has gotten trampled, tossed, smacked, singed, smothered, submerged, routed, run over, and electrocuted so often by his Pokemon he should be perpetually hospitalized! Yet these characters always seem to bounce back without serious injury.  Considering [a] it is partially cartoon logic, and [b] Pokémon trainers, much like animal handlers, likely will get somewhat more sturdy and hardy from simply regularly dealing with the animals they train....  Is it at all possible that just being around a Pokémon somehow helps their trainers develop a higher resistance to that Pokémon's special abilities?