Can put "if" statements inside "print" statements in python?
Does Python have a ternary conditional operator?
Does $\lim_{n\to\infty}\underset{n}{\underbrace{\cos(\cos(...\cos x))}}$ exist? Possible Duplicate:         Does the following limit exist?  $$\lim_{n\to\infty}\underset{n}{\underbrace{\cos(\cos(...\cos x))}}$$  If yes, find the limit.  If no, please explain why the limit doesn't exist.  I think, the limit exists.  So, I tried to use Squeeze theorem but didn't work. What's interesting in latus rectum? I'm a maths teacher in Italian secondary school and I've been spending some time trying to construct "meaningful" problems about conic sections. I particularly like problems which focus on practical applications of the curves (in engineering, physics, finance, etc.), on their geometric properties, or both.  I know there's this really easy formula to find the latus rectum of a conic from its key parameters. It's quite nice and straightforward to derive it, but...  ... What's its use? Why should anyone be interested in knowing the latus rectum of a curve? Is there any physical phenomenon, any architectural trick, or anything else where its position and/or length plays a key role?   I know just the relation between angular momentum, standard gravitational parameter and latus rectum in an astronomical orbit ($l=\frac{h^2}{GM}$, where $l$ is half the latus rectum, and $h$ is the ratio between the angular momentum associated to the orbiting body and its mass). It's cool, but a bit tricky, and probably too far-fetched for secondary school students... Is there anything simpler? Or just anything else, at any difficulty level?  Many thanks! Difference between DispatchQueue.main.async and DispatchQueue.main.sync In System Info in 11.10, the graphics driver wasn't detected. I use ACER Aspire 4750 with Intel Core i3-2340M and Intel HD Graphics 3000 graphic card  How to install the driver for my Ubuntu? I'm looking for best practice in dealing with scheduled SQL Server Agent jobs in SQL Server 2012 availability groups. Maybe I missed something, however at the current state I feel that SQL Server Agent is not really integrated with this great SQL2012 feature.  How can I make a scheduled SQL agent job aware of a node switch?  For example I have a job running on the primary node which loads data each hour. Now if the primary goes down, how can I activate the job on the secondary which now becomes primary?   If I schedule the job always on the secondary it fails because then the secondary is read-only. Find full path of the Python interpreter? Tooltip with the question's tags in the hot questions column A geometric sequence has its first term equal to $12$ and its fourth term equal to $-96$.   How do I find the common ratio? And find the sum of the first $14$ terms Change equation font in Pages During a Pages update which was pushed out a few months ago, Pages obtained the ability to write equations using LaTeX or MathML commands. According to an Apple Support article, the size and color of the equation can be changed ():  The equation appears at the insertion point in your document (or before the selected text). The equation is an inline object, the same size and color as the surrounding text. If you change the size or color of the surrounding text, the size and color of the equation’s font also change.  This does not mention anything about the font used for the equation itself, which seems to be something similar to a Times New Roman font. Is there any way to change the font used, preferably to something like Latin Modern Math? I was considering the possibility of replacing the font file Pages uses with a downloaded Latin Modern Math font file, but I'm not sure what to replace. Could I replace Times New Roman in /System/Library/Fonts/ or something like that? Possible Duplicate:          I am a little bit confused about asking a question:     Can you please tell me my next work?   or     Could you please tell me my next work?   Which is more correct? How accurate is the location detection on the iPhone's Find My iPhone app C++ Redefinition Header Files (winsock2.h) Are PHP short tags acceptable to use? Here's the information :     There are four different pairs of   opening and closing tags which can be   used in PHP. Two of those, &lt;?php ?&gt;   and &lt;script language="php"&gt; &lt;/script&gt;,   are always available. The other two   are short tags and ASP style tags, and   can be turned on and off from the   php.ini configuration file. As such,   while some people find short tags and   ASP style tags convenient, they are   less portable, and generally not   recommended.   In my experience most servers do have short tags enabled. Typing  &lt;?=   is far more convenient than typing  &lt;?php echo    The programmers convenience is an important factor, so why are they not recommended? Can a dementor decide which people around it will be affected by its magic? Quoting from  and : From a :  Samantha: Was snape the only death eater who could produce a full patronus J.K. Rowling: Yes, because a Patronus is used against things that the Death Eaters generally generate, or fight alongside. They would not need Patronuses.  I always had the impression that just the presence of a dementor should have an effect on any human around, DE or otherwise. However, this quote makes it sound like DE's are exempt from the effect of the dementors. However, from Sirius's description in book 3, we know every prisoner in Azkaban was affected by dementors, which can further be corroborated by the fact of how much Barty Crouch, Jr. was scared of being thrown into Azkaban. Moreover, if the dementors didn't affect the DE's at all, throwing them in Azkaban wouldn't be much of a punishment either. So, Can dementors decide who to affect or not? Why does the beta distribution become U shaped when $\alpha$ and $\beta$ <1? In the Beta distribution (used to model Bernoulli probabilities), the $\alpha$ and $\beta$ parameters can be interpreted as the number of heads$+1$ and the number of tails$+1$ seen. So, if they were both $2$, it would lean towards the coin being fair and have a maximum at $0.5$. If they are both $20$, the distribution would become even surer we're dealing with a fair coin and peak even more at $p=0.5$.  What I don't get is its behavior when $\alpha$ and $\beta$ both become $&lt;1$.   In that case, it becomes U-shaped and the density peaks at $p=0$ and $p=1$. Meaning the coin is likely to be two-sided. I know there is an intuition for this since I think I had an idea about it a long time ago. However, I've been trying to recollect all day and can't piece it together. Does anyone have an intuition? In the following code I loop through a map and test if an element needs to be erased.  Is it safe to erase the element and keep iterating or do I need to collect the keys in another container and do a second loop to call the erase()?  map&lt;string, SerialdMsg::SerialFunction_t&gt;::iterator pm_it; for (pm_it = port_map.begin(); pm_it != port_map.end(); pm_it++) {     if (pm_it-&gt;second == delete_this_id) {         port_map.erase(pm_it-&gt;first);     } }   UPDATE: Of course, I then  which I didn't think would be related but answers my question. Stuck at 0% [waiting for headers] On googling this error it seems that a lot of people are having this issue.  apt-get upgrade hangs at 0% [waiting for headers] apt-get install apache2 hangs at 0% [waiting for headers]. Some apt-get commands are working, but only certain packages.  Any ideas? I don't think this is an issue with slow repos because I've had it up for a long while and it hasn't budged from 0%. I have edited sources.list but I removed the lines I added when this issue presented itself and it hasn't made a difference.  Any clues would be really useful. Finding the Mobius Transformation that maps open unit disk onto itself Hi I am trying to find all the Mobius transformations that map unit open disk onto itself i.e., if $|z|&lt;1$ then $|f(z)|&lt;1$ where $f(z)=\frac{az+b}{cz+d}$. I did so far \begin{align*} &amp;\Big|\frac{az+b}{cz+d}\Big|&lt;1\\ \Rightarrow &amp; |az+b|&lt;|cz+d|\\ \Rightarrow &amp; |az+b|^2&lt;|cz+d|^2\\ \Rightarrow &amp; |az+b||\bar{a}\bar{z}+\bar{b}|&lt;|cz+d||\bar{c}\bar{z}+\bar{d}|\\ \Rightarrow &amp; |a|^2|z|^2+|b|^2+2\text{Re }(az\bar{b})&lt;|c|^2|z|^2+|d|^2+2\text{Re }(cz\bar{d}) \end{align*}   After that I am stuck. Can anyone help me. I would be obliged...Thanks in advance. On-screen keyboard popping up whenever I touch screen I'm in 17.10. Whenever I touch the screen, whether to change windows/apps, scroll within a browser, or press a button, the stupid little keyboard pops up in the bottom left corner.  I have never left Screen Keyboard enabled in Universal Access, but if I toggle it on, that's the same keyboard popping up in the bottom left corner.    In this screenshot, I'm simply touching the screen in a full-screen youtube video. You can see the menu pop up on the right, under the point where I'm touching.  I don't have a before pic, but it was similar look/color keyboard, but it was smaller, maybe half as wide, and only in the bottom left section of the screen, as opposed to stretching across the entire width. This change from little left-hand keyboard to full-width keyboard happened after following @pomsky 's advice below.    This is a . You can mark yourself affected by it to hopefully increase its received attention. Massless charged particles