parallel foreach with yield statements
How to yield from parallel tasks in .NET 4.5
Integer solutions to the equation $a^3+b^3+c^3=30$ Should “two weeks vacation” be written “two weeks’ vacation” with a possessive apostrophe? I’ve always understood that the phrase two weeks usually turns into two weeks’ when used as a modifier as in   I’m giving my two weeks’ notice.  I get two weeks’ vacation. (“two weeks’ holiday” for Brits)   with an apostrophe on the word weeks’, indicating that the vacation “belongs” to the weeks.   One way to explain this is the phrase “two weeks of vacation” being contracted to “two weeks’ vacation” – the vacation is “of” the weeks; that is, it is possessed by them.  But I’ve seen a lot of people omit the apostrophe in casual writing, and thinking about it, it seems plausible that the noun vacation would be plainly modified by the adjectival phrase two weeks.  But on the other hand, shouldn’t adjectival phrases be hypenated, namely two-weeks vacation?  Yet that seems wrong, too: the hyphenate should be singular, two-week vacation (like two-tone shoes) because .   touches on this (and references a good ) but doesn’t explain why the plural must be possessive in this case.   suggests that two weeks might be adverbial rather than adjectival, and thus resists being used attributively. But that still doesn’t quite explain this particular muddle of pluralization, possession, and attribution.  Given all this, why should “two weeks vacation” be written “two weeks’ vacation” with a possessive apostrophe? enclosing a lstlisting environment inside my own environment using matlab-prettifier How can you use optional parameters in C#? Note: This question was asked at a time when C# did not yet support optional parameters (i.e. before C# 4).  We're building a web API that's programmatically generated from a C# class. The class has method GetFooBar(int a, int b) and the API has a method GetFooBar taking query params like &amp;a=foo &amp;b=bar.   The classes needs to support optional parameters, which isn't supported in C# the language. What's the best approach? Can't log in using Firefox in Stack Overflow Here's what is happening; everytime I go to Stack Overflow (stackoverflow.com, NOT meta) with Firefox, it gives me the "Welcome back" tab that pops up from the top. Whenever I click in the "click here to refresh the page" link, all it does is refresh the page without logging me back in.  Even if I try to log in using the "log in" button at the top, all it does is pop up the tab that says "Welcome name here, you're being redirected." The problem is I'm not being logged in, not to mention that it keeps refreshing the page over and over again without giving me a choice to log in with Facebook.  For some reason, I was capable of logging in to Meta Stack Overflow using Firefox. I am still unable to log in to Stack Overflow. Any ideas? Create line heatmap with QGIS I have loaded my bike tours as .gpx files into QGIS.    It already looks quite nice but I was wondering if it might be possible to create something similar to the strava heatmap with tools of QGIS.     I have tried to generate points along the lines and use kernel density but it just does not look nice as a raster layer.  Any suggestions? Prove that if $X$ and it's closure $\overline X$ are connected and if $X\subset Y \subset \overline X$, show that Y is also connected. Can anyone give me a proof of the statement that if $X$ and its closure $\overline X$ are connected and if $X\subset Y \subset \overline X$, show that Y is also connected?  Thank you. Can I change my flight dates after I get my Schengen visa? I am an Indian student in the UK. If I already had a single entry Schengen visa and I apply again to the French embassy, will I be issued with multiple-entry?  If I get the visa, but due to a problem, I cannot travel on the intended dates(ones I mentioned on visa form) and decide to travel a month later, will it cause a problem when I travel next. And if I dont exactly follow the itenary that I submitted with my visa application?  As far as dates are concerned. I mean this: Suppose my visa is valid for May-August. When I applied for this visa, my itenary and hotel bookings were for June. But now I decide to travel instead in July. Will there be a problem if I did not take the journey for which I initially applied the visa and take a different journey later instead Volume of an n-simplex It's rather tedious to show using Fubini's Theorem and induction on $n$ that the volume of the region $x_1+x_2+...+x_n \leq 1$ with $x_1,...,x_n$ nonnegative is $\frac{1}{n!}$.  Is there an easier way to see this? My terminal on osx 10.11.6 will not accept `[` character Every time I type it the terminal flashes but doesn't insert it. If I paste in a command that has a [ it will paste everything except the ['s  This has been happening before I updated to 10.11, but has become a massive issue, I can't use jq at all because of it.  I also have the same issue with iTerm2. Standard and/or common directories on Unix/Linux OSes Long sites break the layout on the front page The long name pushes the stats to a weird place. And what's with the "Stack Exchange" at the end anyway? Account "last activity time" is not always updated It would appear that the account's "Last activity time" is not updated for every hit.  I've been active on SO all morning, and in the last five minutes have voted on some posts as well as posted an answer.  However,  says:     "Last activity: 2 hours ago from &lt;IP address&gt;"   Is there a certain amount of time that needs to elapse between hits before the activity time is updated again?  This issue could result in Enthusiast badges not being awarded when they should. Prove that a set of connectives is inadequate Eigenvectors of real symmetric matrices are orthogonal Can someone point me to a paper, or show here, why symmetric matrices have orthogonal eigenvectors? In particular, I'd like to see proof that for a symmetric matrix $A$ there exists decomposition $A = Q\Lambda Q^{-1} = Q\Lambda Q^{T}$ where $\Lambda$ is diagonal. Proving $\frac{\sin x}{x} =\left(1-\frac{x^2}{\pi^2}\right)\left(1-\frac{x^2}{2^2\pi^2}\right) \left(1-\frac{x^2}{3^2\pi^2}\right)\cdots$ I have notifications in the OSX Notification Center, as for most of my apps I am using the setting, "Show in Notification Centre: 10 Recent Items" This is a good setting but rather than have a very full Notification Center, I would still like to clear it from time to time with 1 click.  I am using Yosemite 10.10.3 Planetary/Atmospheric volumetric clouds I created a planet in blender a while ago, and now i'm interested in adding volumetric clouds instead of using a 2D texture. I considered adding a bump node to my material, but then it would remove the realism in the image.  This is what I've created:    This is the effect I want to create:      Any thoughts? Explanation of finite correction factor How do I convert or upgrade roads? I'm trying to optimize my road system a bit, mostly converting regular small roads into one-way roads. But the only way I can see to do that is to remove the old road entirely and build a new one. I can't seem to just build over the old one.   I can understand that limitation in cases where the new road type is larger, but it should be possible to upgrade to roads with the same size without tearing down the old road manually.   Is there an easier way to convert or upgrade roads, or do I have to manually remove the existing road every time?