May I restrict caching to disk when memory runs low?
Aborting evaluation when the memory exceeds a certain limit
Does Auto White-Balance Really Work? How? I would like to either prevent or handle a StackOverflowException that I am getting from a call to the XslCompiledTransform.Transform method within an Xsl Editor I am writing. The problem seems to be that the user can write an Xsl script that is infinitely recursive, and it just blows up on the call to the Transform method.  (That is, the problem is not just the typical programmatic error, which is usually the cause of such an exception.)  Is there a way to detect and/or limit how many recursions are allowed?  Or any other ideas to keep this code from just blowing up on me? fontenc vs inputenc Definite article, repetition in lists Which would be correct?        The fridge, the shelves, the walls, the floor, and John himself, were all covered in foam.   The fridge, shelves, walls, floor, and John himself, were all covered in foam.      The the can be applied to all the nouns, so is there a need to repeat it? How to show $u \in R^{x} \implies u \in R[X]^{x}$ for integral domain $(R,+, \times)$ We currently have some indexes where ALLOW_PAGELOCKS is set to off. This presumably was done in order to reduce deadlocks. However I doubt that it would really had an effect back then.   Now I am trying to understand WHEN SQL Server actually chooses to start locking pages rather than keys in a clustered index. I asked Jonathan Keyhaisas recently and he told me that this could happen if I am touching rows on several subsequent pages. However I didn't manage to get any exclusive page locks by updating rows in a clustered index with a sample query.   Could you help me understand page locks better with a sample query and table? I am running SQL Server 2008 SP4.  Thanks in advance  Martin When is it appropriate to use the original pronunciation of a foreign word versus the English pronunciation? When reading to an audience, or speaking in conversation, when is it appropriate to use the original pronunciation of a foreign word versus the English pronunciation (assuming you know the appropriate pronunciation for it)? Is it considered rude, or condescending? Or is it considered a mark of being knowledgeable?  One of the things to consider are place names. When referring to Paris, France, should it be pronounced with the silent 'S' as the French would say it, or with the 'S'? Should Hiroshima be pronounced as a Japanese speaker would pronounce it slightly more emphasis on RO, rather than the SHI? Should Mount Pinatubo be pronounced as a Filipino speaker would pronounce it with shorter stronger vowels, or the longer vowels? (e.g. Pi as is 'pick' rather than 'pea'.) Should Wichita be pronounces as the original "shi" rather than the modern "chi"?  Pronounce pesos or sombrero as a Spanish speaker 'eh' or the English 'ay'?  (I can't think of other common words right now that aren't words taken from other languages like hurricane, boondocks, tornado, etc. which I think have (correctly) changed to English pronunciations.) Cannot make a static reference to the non-static method One of the joys of high-school mathematics is summing a complicated series to get a “closed-form” expression. And of course many of us have tried summing the harmonic series $H_n =\sum \limits_{k \leq n} \frac{1}{k}$, and failed. But should we necessarily fail?      More precisely, is it known that $H_n$ cannot be written in terms of the elementary functions, say, the rational functions, $\exp(x)$ and $\ln x$? If so, how is such a theorem proved?    Note. When I started writing the question, I was going to ask if it is known that the harmonic function cannot be represented simply as a rational function? But this is easy to see, since $H_n$ grows like $\ln n+O(1)$, whereas no rational function grows logarithmically.  Added note: This  asks a similar question for “elementary integration”. I guess I am asking if there is an analogous theory of “elementary summation”. Sum of the series $1+\frac{1\cdot 3}{6}+\frac{1\cdot3\cdot5}{6\cdot8}+\cdots$ Website logo text - best tag for SEO purposes? I'm trying to develop a new website in HTML5 adhering to SEO standards where possible and I'm having a little trouble trying to figure out what tag my site name and slogan should live in.  Originally I had my site name in a &lt;h1&gt; tag and my sloagan in a &lt;h2&gt;, but soon realised this wasn't fitting with the "each page is a separate document/article" approach.  The site name is the largest text on the page (sometimes the same as my article heading), but I've currently got the text in a &lt;p&gt; tag with CSS doing all the styling work.  My questions is, what should I do with the site name and slogan? Is the &lt;h1&gt; appropriate, then use another &lt;h1&gt; tag for each page title or should I continue using the styled &lt;p&gt; tag? Or should I convert this into an image and use that for the site name/slogan?  (Side note: on my index page I want the site name and slogan to be &lt;h1&gt; and &lt;h2&gt;respectively as this makes sense with the homepage...) Doom-style 2.5D Movement Animations I've started working on a demo for my 2.5D game. For a basic scene I figured I would just use the good old fashioned doom sprites textured to a double sided plane. Simple enough. But I've been scratching my head as to how to display the proper sprite animation relative to the player viewing the sprite...if that makes since.  For example suppose I have three players in the scene Players A, B, and C as such:    Player C should see player A as: Here's an example of what I think player A should look like from C's perspective:    While player B would see player A as follows:    My current idea is that for any given player, I will need to know the current direction of each other player, and where they are located/moving to relativly. From this, I could calculate which sprite image is required.  Is this correct? What improvements/optimizations could be made?  ** EDIT ** Total number of directions will be 8 as depicted below:    For each direction there are two sprites (to show walking movement, sprites for the right hand directions are mirrors of the left):    ** EDIT 2 ** Got this working and have a simple javascript/threejs example for anyone interested: What does an icon on the tag mean, for example the "rg" before the sql-server tag as pictured below? Dispatcher.BeginInvoke: Cannot convert lambda to System.Delegate Mysterious cord running from wall. Safe? My wife and I are preparing to sell our home and are discovering some weird things. Our home was built in 1958, so it is older. We found this in a corner that had some furniture in front of it.   We are wondering    What kind of wiring is this?  Is it safe to handle or remove? Why am I getting 50V at a light when the switch is off? I am trying to put in a switch and a light it controls in a storage building and  is how I wired it.   Click for larger view  When I checked the wiring it registered 120V when the switch was on, and right around 50V when the switch was off.  Why would power still be getting to the light (I'm guessing there is a problem with the switch) and why would it only be 50V?  Oh, and where everything branches off at the beginning I have a junction box there where all of the wires are joined there. Precise connection between complexification of $\mathfrak{su}(2)$, $\mathfrak{so}(1,3)$ and $\mathfrak{sl}(2, \mathbb{C})$ How many solutions $X^{10} - I=0$ has in $M_2(\mathbb{R})$? How many solutions $X^{10} - I=0$ has in $M_2(\mathbb{R})$? Where $M_2(\mathbb{R})$ denotes the set of $2 \times 2$ real matrices.  I absolutely have no idea of where I should start from. $I$ and $-I$ solve the equation, but are there any other non-trivial solutions? Are there infinitely many solutions? How do I find the caller of a method using stacktrace or reflection? I need to find the caller of a method. Is it possible using stacktrace or reflection? Slow leak on front cruiser tire I ride my cruiser to the supermarket and back, using either a trailer or a basket over the front wheel for carrying groceries. The bike has developed a persistent slow leak on the front wheel, and I've replaced the tube without it helping. I can't see anything puncturing the tire, and the spokes aren't poking through the rim tape that I can see.   These are 26" wheels with low pressure (around 40 - 50 psi). What else can I look for that might be causing this?