Moving mouse to stop monitor from sleeping
How to prevent Windows from entering idle state?
Coming from Eclipse and having been used to duplicate lines all the time, it's pretty strange finding out that Xcode has no such function. Or does it?  I know it's possible to change the system wide keybindings but that's not what I'm after. Provide an easily discoverable way to get the full URL to an answer , clicking &quot;link&quot; &quot;share&quot; for anwers yields a short (traceable) URL in the &quot;share a link to this answer&quot; dialog, such as †:  These short URLs show no clue about the linked question whatsoever. Also, when different people use a short URL for the very same post, then the user id suffix makes those be different URLs for a browser. Such links will then not be shown as visited‡. I know how to get URLs that have a proper slug. But as I see  pop up on these sites (where referrals ), I assume many others just don't realize full URLs would be better for use on these sites themselves? Or many don't want to do the little effort to get the full URL? So: can we please have an easy way to get the full URL as well, in a way that is easily found for those who don't know about the different links? (Currently for questions, clicking &quot;link&quot; has the same effect. But then one can also right-click the title, or take the URL from the location bar, to get the full human-readable URL. Once, Jeff .)  † The short links for answers are not (yet) [automatically converted][6] into a clickable question title either, unlike links such as `https://meta.stackexchange.com/questions/74274/privacy-leak-in-permalink#75963`, which renders as https://meta.stackexchange.com/questions/74274/privacy-leak-in-permalink#75963 But I guess that will change soon.  ‡ On Meta the CSS for posts doesn't indicate such difference anyway, which is a different issue. I need a shapefile for India which is up-to-date to display the regional borders. By up-to-date (in 2014), I mean that it includes Telangana as a state. Many shapefiles that I downloaded do not have Telangana as a state as it was partitioned a month ago, it is displayed as part of Andhrapradesh.  So I need the latest shapefile. What is the correct formula for gravitational time dilation for a satellite in a circular orbit? javax.persistence.PersistenceException : [PersistenceUnit: vodPersistenceUnit] class or package not found I have a sequence $T_1,T_2,\ldots$ of independent exponential random variables with paramter $\lambda$. I take the sum $S=\sum_{i=1}^n T_i$ and now I would like to calculate the probability density function.  Well, I know that $P(T_i&gt;t)=e^{-\lambda t}$ and therefore $f_{T_i}(t)=\lambda e^{-\lambda t}$ so I need to find $P(T_1+\cdots+T_n&gt;t)$ and take the derivative. But I cannot expand the probability term, you have any ideas? Object Positions Reset On Blender Load So I am attempting to make a modular environment in Blender, so I'm modeling many pieces in one scene to make sure they all match up properly before separating them out.  However, whenever I restart Blender after saving and closing it, many of my grouped objects (and their subobjects) have positions reset NOT to where I placed them.  For example, take a look at this:   Here you can see that the door pieces are in the "open" state, when I left them closed AND the "column" for the wall on the left has been moved from being flush with the wall (on the side) to being inside it.  It appears to be trying to move all of the objects to 0,0,0 which is what is messing this up. I'm not sure if it's an object hierarchy problem, but here is my hierarchy if anyone has ideas there:  Wall_Normal (parent)   Wall_Normal_Column (child)   Empty Axis Object (parent)   Door_Left (child a) Door_Right (child b)   Is there a reason why object positions (and their relative subobjects) aren't being saved? The add comment link and comment box overlaps bounty box Standard normal distribution is truncated to the left by 2 Would you please show me how to write the pdf distributions of the following   Standard normal distribution is truncated to the left by 2  Exponential distribution is truncated to the left by 2  Cauchy distribution is truncated to the left by 2  i do not know what does mean by truncated to the left by 2 I wish to select areas of a mesh, but it would be much simpler to just select the ones I don't want selected (because they are easier to access), and then inverse the selection.  Is this possible? How to delete (invalid) files with colon in their name under Windows? I've got a rather large number of files on my Windows drive that have a colon in their name. (These came from unpacking some Unix archives.)   When I try to delete them, Windows (XP) complains that the file does not exist, and refuses to delete it. This happens when trying to delete or rename it from explorer or the command line. Still, chkdsk does not complain about those files nor fix the problem.   Any ideas on how to get rid of them? I know from reading  that the "primary" use of the IDisposable interface is to clean up unmanaged resources.  To me, "unmanaged" means things like database connections, sockets, window handles, etc.  But, I've seen code where the Dispose() method is implemented to free managed resources, which seems redundant to me, since the garbage collector should take care of that for you.  For example:  public class MyCollection : IDisposable {     private List&lt;String&gt; _theList = new List&lt;String&gt;();     private Dictionary&lt;String, Point&gt; _theDict = new Dictionary&lt;String, Point&gt;();      // Die, clear it up! (free unmanaged resources)     public void Dispose()     {         _theList.clear();         _theDict.clear();         _theList = null;         _theDict = null;     }   My question is, does this make the garbage collector free memory used by MyCollection any faster than it normally would?  edit:  So far people have posted some good examples of using IDisposable to clean up unmanaged resources such as database connections and bitmaps.  But suppose that _theList in the above code contained a million strings, and you wanted to free that memory now, rather than waiting for the garbage collector.  Would the above code accomplish that? How can I stop certain apps from appearing in the Dash? File names for JSP include directive to avoid compilation of them Find out which process is locking a file or folder in Windows How can I find out which process is locking a file or folder in Windows?  For instance, when trying to delete a folder, Windows reports this:     The action can't be completed because the folder is open in another program   Happens the same with a file, but how do I find out what program or application is currently using it and preventing me from deleting the file or folder? How to "find and replace" in a PDF on OS X? GParted won't let me edit a partition How do I print a #defined constant in GDB? Suppose I am given a morphism of schemes $f: X \longrightarrow Y$ and suppose that for any point $y \in Y$, $\kappa(y)$ denotes the residue field. I would like to show that the fibered product $$X \times_{Y} \text{Spec}(\kappa(y))$$ is homeomorphic to the preimage $f^{-1}(y)$ in the induced topology.  The following is my attempt so far:  The question is obviously affine on the target, so without loss of generality we reduce to the case of a morphism $f: X \longrightarrow \text{Spec }A$. Then we have  $$ f^{-1}(\text{Spec }A) = \bigcup_{i \in I} \text{Spec }B_{i} $$ via morphisms $$ \phi_{i}: A \longrightarrow B_{i}. $$ We can then write, \begin{align*} f^{-1}(\text{Spec } A) \times_{\text{Spec } A}\text{Spec } \kappa(y) &amp;= \bigcup_{i \in I} \left( \text{Spec } B_{i} \times_{\text{Spec }A} \text{Spec }\kappa(y) \right) \\  &amp;= \bigcup_{i \in I} \text{Spec }  \left( B_{i} \otimes_{A} \kappa(y)  \right). \end{align*} Now let $\mathfrak{p}$ be the prime ideal of $A$ corresponding to the point $y \in \text{Spec } A$. Then $\kappa(y) = (A/ \mathfrak{p})_{\mathfrak{p}}$. Then for any of the $B$ (dropping the index for brevity), we have \begin{align*} B\otimes_{A} (A/ \mathfrak{p})_{\mathfrak{p}} &amp;\simeq B \otimes_{A} A / \mathfrak{p} \otimes_{A} A_{\mathfrak{p}} \\ &amp;\simeq B_{\mathfrak{p}} \otimes_{A} A / \mathfrak{p} \\ &amp; \simeq B_{\mathfrak{p}} / \mathfrak{p}B_{\mathfrak{p}} \end{align*}  Now the prime ideals in $B_{\mathfrak{p}} / \mathfrak{p}B_{\mathfrak{p}}$ correspond precisely to the prime ideals of $B_{\mathfrak{p}}$ containing $\mathfrak{p}B_{\mathfrak{p}}$. Further, the prime ideals of $B_{\mathfrak{p}}$ correspond precisely to the prime ideals of $B$ contained in $\phi(\mathfrak{p})B$. That is, we have \begin{align} \text{Spec }B_{\mathfrak{p}} &amp;= \{  \mathfrak{q} \subseteq B :  \phi^{-1}(\mathfrak{q})  \subseteq \mathfrak{p}  \} \\ &amp;=  \{ \mathfrak{q} \subseteq B : f(\mathfrak{\mathfrak{q}}) \subseteq \mathfrak{p}      \}. \end{align} Note that in the very last line we have abused notation slightly: There is not really any notion of being "inside" $\mathfrak{p}$ when it is being treated as a point in the scheme. So really we mean that $f(\mathfrak{q})$ is a point in the scheme whose corresponding prime ideal is a subset of $\mathfrak{p}$. Now as we said above, the prime ideals of $B_{\mathfrak{p}}/\mathfrak{p}B_{\mathfrak{p}}$ are the following $$ \text{Spec }(B_{\mathfrak{p}}/\mathfrak{p}B_{\mathfrak{p}}) = \{ \mathfrak{q} \subseteq B : f(\mathfrak{\mathfrak{q}}) \subseteq \mathfrak{p}      \text{ and } ???  \} $$ This is the point at which I get stuck. Ideally I would like to make some argument from the statement "Now the prime ideals in $B_{\mathfrak{p}}/\mathfrak{p}B_{\mathfrak{p}}$ correspond precisely to the prime ideals of $B_{\mathfrak{p}}$ containing $\mathfrak{p}B_{\mathfrak{p}}$" to conclude that the question marks are the condition $\mathfrak{p} \subseteq f(\mathfrak{q})$. Could someone point me in the right direction as to how to get this condition?   Is the proof up until this point correct? Different sources online seem to do this many different ways, so it's difficult for me to check. It is correct and formal to include "of" when writing dates?