Showing results for March 2010 - The Old New Thing

Mar 30, 2010
0
0

Non-Microspeak: Boiling the ocean

Raymond Chen
Raymond Chen

Some time ago, MSN Careers listed Boil the ocean as a workplace phrase you should learn. Thankfully, the phrase (meaning "to attempt something impossibly ambitious") is not currently in wide use in Microspeak. However, a friend of mine who works in another industry tells me that it is not only very much alive in his line of work, it became corrupt...

Non-Computer
Mar 29, 2010
0
0

Ruth Bader Ginsburg, the yardstick for Wikipedia entries

Raymond Chen
Raymond Chen

I use Ruth Bader Ginsburg's Wikipedia entry as a yardstick for other Wikipedia entries. At the time I'm writing this blog entry, her Wikipedia article is 1600 words long. So 1600 words is how many words Wikipedia assigns to the 20th most powerful woman (and the most powerful female lawyer) in the world. By comparison, Wikipedia has collectively d...

Non-Computer
Mar 29, 2010
0
0

What happens to the control names in the IDE when my program is running?

Raymond Chen
Raymond Chen

nick_journals demonstrates some confusion about names in source code and their relationship to runtime behavior. A topic I am particularly interested in is the naming of controls, how it works... Every control gets a name from a developer...via the IDE (e.g btnOK) When using this function: GetWindowLong(handle,GWL_ID) it doesn't return the n...

Code
Mar 26, 2010
0
0

WaitForInputIdle waits for any thread, which might not be the thread you care about

Raymond Chen
Raymond Chen

We saw last time that the function waits only once for a process to go input idle. Even if the process later stops processing messages, will return immediately and say, "Yeah, he's idle." The way a process is determined to be input idle is that it is waiting for user input when there is none. This translates into the process sitting in a functi...

Code
Mar 25, 2010
0
0

WaitForInputIdle should really be called WaitForProcessStartupComplete

Raymond Chen
Raymond Chen

The function waits for a process to finish its initialization, which is determined when it reaches a state where it is just sitting around waiting for messages. The documentation for doesn't even get around to the initialization part until the Remarks section. If all you read is the one-sentence summary, Waits until the specified process is wait...

Code
Mar 23, 2010
0
0

Why does it take longer to reject an invalid password than to accept a valid one?

Raymond Chen
Raymond Chen

You may have noticed that it takes longer to reject an invalid password than to accept a valid one. There are a few reasons for this. First of all, it simply takes longer to confirm that a password is invalid. Your local computer retains a password cache. This password cache improves performance of local authentication operations, such as unloc...

Other
Mar 22, 2010
0
0

Germans are falling for the same trap as the Japanese: Importing words from English and changing the meaning, but the Germans do it even though the words didn't need to be imported at all

Raymond Chen
Raymond Chen

Languages borrow from each other all the time. English has historically been a happy perpetrator of word-theft, but in recent decades, it has been serving as the source for a lot of theft, too. What I find particularly interesting, though, is when a word is borrowed and given a meaning in its new language different from its meaning in the source la...

Non-Computer