At the end of such a sentence, does the single quote come before the punctuation?  If it does not, is a space between the single quotation and double quotation marks necessary?  &gt;&gt;, ' "   or '"?  I ask because the publisher's font does not show a space like it seems to here, which looks confusing, so I'm wondering if this is acceptable, or do we just live with the oddity of what appears to be a triple quotation mark)
The American convention in quotations is (typically) to place punctuation inside quoted text. But I always run into situations where the punctuation of the quote interferes with the punctuation of the sentence. How would you punctuate this (American, non technical)?     When my friends ask, "What do you want for your birthday?", I never know how to respond.   It seems odd to place the last comma outside the quote simply because of the question mark. Is that the preferred (i.e. most often accepted) standard?
How to model non-negative zero-inflated continuous data? I'm currently trying to apply a linear model (family = gaussian) to an indicator of biodiversity that cannot take values lower than zero, is zero-inflated and is continuous. Values range from 0 to a little over 0.25. As a consequence, there is quite an obvious pattern in the residuals of the model that I haven't managed to get rid of:   Does anyone have any ideas on how to solve this? I am trying to solve:  $$\int_{-\infty}^{\infty}\frac{x\sin{x}}{x^2 + a^2}dx$$  and show that it equals $\pi e^{-a}$ for all $a &gt; 0$.  I translate it to its complex equivalent:  $$lim_{R \rightarrow \infty} \int_{-R}^{R}\frac{z\sin{z}}{z^2 + a^2}dz = \int_{C}\frac{z\sin{z}}{z^2 + a^2}dz - \int_{\gamma}\frac{z\sin{z}}{z^2 + a^2}dz$$  where C is a half circle with radius R, above the real axis, and $\gamma$ is only the curved (top part) of the half circle.  I've shown that $$\int_{\gamma}\frac{z\sin{z}}{z^2 + a^2}dz$$ tends to 0 as $R \rightarrow \infty$.  So now:  $$lim_{R \rightarrow \infty} \int_{-R}^{R}\frac{z\sin{z}}{z^2 + a^2}dz = \int_{C}\frac{z\sin{z}}{z^2 + a^2}dz$$  By residue theorem,   $$\int_{C}\frac{z\sin{z}}{z^2 + a^2}dz = 2\pi i \cdot res_{ai}f$$  as $ai$ is the pole of $f$ that lies above the real axis.  $$2\pi i \cdot res_{ai}f = 2\pi i \cdot lim_{z \rightarrow ai} (z-ai)\frac{z sin{z}}{z^2 + a^2}$$  By L'Hospital's rule, this is equivalent to:  $$2\pi i \cdot lim_{z \rightarrow ai} (z-ai)\frac{z^2\cos{z} + 2z\sin{z} - zai\cos{z} - ai\sin{z}}{2z} = 2\pi i \cdot \frac{\sin{ai}}{2} = \pi i \sin{ai}$$  But how is $\pi i \sin{ai}$ equivalent to $\pi e^{-a}$? Did I make a mistake? Nexus 7 2013 error upgrading to 5.0.2 OTA I updated to 5.0.1 via OTA sometime ago, and it worked fine. Now I got a notification that 5.0.2 is ready but when Android shuts down to install update it returns error (with no other message. My Nexus 7 is rooted but has the stock recovery.  Is there an easy fix that doesn't require factory reset or installing recovery? I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question: Best way to save a ordered List to the Database while keeping the ordering I was wondering if anyone has a good solution to a problem I've encountered numerous times during the last years.  I have a shopping cart and my customer explicitly requests that it's order is significant. So I need to persist the order to the DB.  The obvious way would be to simply insert some OrderField where I would assign the number 0 to N and sort it that way.  But doing so would make reordering harder and I somehow feel that this solution is kinda fragile and will come back at me some day.  (I use C# 3,5 with NHibernate and SQL Server 2005)  Thank you Show the post's comments on the "Suggested Edits" review interface Are positive real numbers $x,y$ allowed to be taken out during this proof? Prove $$\left(x^2 - y^2\right)\left(\frac1y - \frac1x\right) \ge 0$$ where $x$ and $y$ are positive real numbers.   Can I simplify $\frac{(x^2 - y^2)(x-y)}{xy} \ge 0$ and then $(x^2 - y^2)(x-y) \ge 0$ cancelling out the $xy$?  Is this valid because then  \begin{align} (x+y)(x-y)(x-y)&amp;\ge  0\cdot(x-y)^2\ge 0 \end{align}  which is always true and then prove backwards from here? I'm trying to use a mask to hide a part of a render layer, so that when the render layer is shown over a movie, some parts in the movie will appear to be in front of the render layer.  For example, assume I want to add a box to this image, so that it would look like it's behind the person:    I created the following simple object:    If I render the object, it looks great - the object is solid, everything else is transparent (I didn't use any 'sky'):     Now I create a mask to describe the standing person (or at least the part that would otherwise be covered by the box):    What I want now is to create a "hole" in the rendered box, so that when I use Alpha-over, the box look as if it's behind the person, but I can't find an easy way to do that. My first guess was to use 'Set alpha' to apply the mask (inverted) as an alpha for the rendered layer, but this doesn't look good:    The mask did create a "hole" where it should, but now all the other pixels are not transparent. How can I "retain" the transparent pixels while setting more pixels to be transparent based on the mask (use it as a matte)?  Note: I can do this with (I'm ashamed to say) some math work on the alpha channel, but it just doesn't seem right:    Thanks, and sorry for the [oh so] long question. When & How often do 4e Monster powers recharge? What is the quickest way to send some text from desktop\laptop to iPhone? I usually send emails to myself, but I wonder if there is a better way to share something quickly from my PC\laptop to iPhone. Who is sample No. 118 in The Case of Charles Dexter Ward? In H. P. Lovecraft's The Case of Charles Dexter Ward, Dr. Willett      Enters Joseph Curwen's dungeon and resurrects a dead person identified as No. 118 by reciting the incantation of the Ascending Node over his salts.   Dr. Willett is told by      The resurrected Joseph Curwen, impersonating Charles Dexter Ward, who he secretly murdered,   that   " 'twas Number 118, and I conceive you would have shook had you looked it up in my list in t'other room."  No. 118 himself gives Dr. Willett a note asking the doctor to      kill Joseph Curwen.   It soon becomes clear that No. 118 is opposed to the nefarious dealings that have been transpiring and desirous of being an ally of Dr. Willett.  Who is No. 118?  Earlier in the story,      The grave of Ezra Weeden, a primary instigator in Joseph Curwen's initial downfall and the romantic rival of Curwen, is robbed. There doesn't seem to be any other mention of Weeden in the 20th century occurrences, so without a further connection the passage seems superfluous.   The shared goals of these two people seem to indicate that No. 118 may, in fact, have been that person, but the      Note given by No. 118 to Dr. Willett in eighth century Latin seems to indicate someone much older than Ezra Weeden.   It also occurred to me that No. 118 could be      The recently murdered Charles Dexter Ward himself. Ward's reference to killing Dr. Allen (who is actually an alias of Curwen) and dissolving his body with acid and No. 118's mention of doing the same to Curwen seem to support the idea, but that still doesn't explain the archaic note. Ward is described as writing in a somewhat modern style, at least as opposed to Curwen. It also doesn't explain why Curwen would want to murder Ward if he was going to resurrect him later anyway. I have a subomain which I do not want to be listed in any search engine result. Let say I have:   http://www.example.com http://child.example.com   How can I hide all URLs of child.example.com domain which are currently showing in the search engine results? How to show also the name of the parent counter with cleveref? Consider the following piece of code:  \documentclass{book} \usepackage{cleveref} \usepackage{lipsum}  \begin{document}   \chapter{Chapter One}   \section{Section One.One}   \label{mysection}   \lipsum    \section{Section One.Two}   Please ignore \cref{mysection}.    \chapter{Chapter Two}   \section{Section Two.One}    As you may have noticed, \cref{mysection} is useless. \end{document}   By default, in both uses of \cref I get Section 1.1 as expected.   Is it possible to change the way the reference is shown in such a way that the second use of \cref above will print Section 1 of Chapter 1? i.e., naming the parent counter as well.   However, this should be done only outside the own chapter, so the first use of \cref in the above example should print Section 1.  This comes from a use case of a normative text where the document is divided in "articles" and "commas", and it is good to have references like "Comma 1 of Article 2" or "Article 2, Comma 1". I have a website with login page that works normal. The problem is that once logged in, the user still has access to the login page form to enter, which should not happen.  I would like to know a wordpres plugin that redirects this user to another page when they access it after login. Combining all the address fields into one? How do I find out what fonts are used in a document/picture? Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag. Installing Office 2010 on Ubuntu 15.04 using Wine I had installed Office 2010 32bit on Ubuntu 12.04 before using guides such as . However, due to package changes, I was not able to replicate the same on Ubuntu 15.04.  How does one install Office 10 using Wine? How to switch render source (VSE or Camera)? If you create a scene for the Video Sequence Editor and start working on a project Blender will render the output from the VSE. But if you want to later switch it to render your 3D scene again (the camera output) where is the setting to select the source?  Usually I keep a separate .blend for VSE edits so I don't need to switch, but I feel like I ought to learn how to do this as it's pretty basic. I would expect to find this in the Render context but I see no place to specify the source.  Thanks. Calculating the number of possible paths through some squares I'm prepping for the GRE.  Would appreciate if someone could explain the right way to solve this problem. It seems simple to me but the site where I found this problem says I'm wrong but doesn't explain their answer. So here is the problem verbatim:    Find the number of paths from x to y moving only right (R) or down (D).  My answer is 6. What am I missing??  Thanks for any help. Incorrectly answered 'No' to "Any previous visa refusals..." on a UK Standard Visitor visa application. How can I fix my mistake?