This weekend I saw Good-Bye, Lenin!, a German movie about a young man who must pretend that East Germany still exists, for the sake of his mother who was in a coma during the fall of the Berlin Wall and therefore remains unaware of the earth-shattering changes the took place while she was unconscious.
There is, of course, the comedy of a yo...
Windows lets you hibernate the entire machine, but why can't
it hibernate just one process? Record the state of the process
and then resume it later.
Because there is state in the system that is not part of the process.
For example, suppose your program has taken a mutex, and then it
gets process-hibernated. Oops, now that mutex is abandoned...
Who knew that Beethoven wrote ambient music?
The people at NOTAM took Beethoven's 9th Symphony and slowed it down so that the entire performance takes 24 hours. It's actually quite nice to listen to. (I like 2.1 myself.)
[Rats, scooped by MetaFilter. Honest, it was in my queue! Nobody will believe me; they'll think I swiped it from Me...
The New York Times reported on two enormous construction projects of dubious merit:
[The first bridge] would connect [Ketchikan, population 7845] to an island that has about 50 residents and the area's airport, which offers six flights a day (a few more in summer). It could cost about $200 million. The other bridge would span an inl...
"I'll do my field validation when I get a WM_KILLFOCUS message."
This is wrong for multiple reasons.
First, you may not get your focus loss message until it's too late.
Consider a dialog box with an edit control and an OK button. The edit control validates its contents on receipt of the WM_KILLFOCUS message. Suppose the user fills in some ...
In an earlier article, I discussed how the Char.IsDigit() method and its Win32 counterpart, GetStringTypeEx report things to be digits that aren't just "0" through "9".
If you really care just about "0" through "9", then you can test for them explicitly. For example, as a regular expression, use [0-9] instead of \d. Alternatively, for a regular exp...
It seems that giving away ice cream has been illegal in Tennessee since 1957, when state legislators were trying to combat alleged unfair trade practices by the dairy industry. Upon its being alerted to the existence of this law, the state Senate and House unanimously passed a bill to repeal the law, sending it to the governor for signa...
Spain's Crown Prince and his fiancée are outraged that they had to go through airport security in Miami.
"The prince and his bodyguard felt they should not be subjected to the screening, but if they do not have an escort from the State Department or the Secret Service, it is required," she added. "It is the law."
Apparently, the...
A collection of limitations (both hardware and software) currently prevent Windows from booting and running off a USB drive. Some of them are described in this whitepaper from WinHEC 2003. Another reason not mentioned in this paper is that during any hot-plug operation, the USB bus is completely reinitialized. Windows really doesn't like it...
Competitive Scrabble® is another game entirely. For example, here's a game from the 2001 World Championship. You can follow it move-by-move, or you can read the game commentary. The name "Stefan" you see in the commentary is Wall Street Journal reporter Stefan Fatsis, author of Word Freak: Heartbreak, Triumph, Genius and...