Showing archive results for 2008

Aug 5, 2008
Post comments count0
Post likes count2

Microspeak: The long pole

Raymond Chen

The long pole is the part of the project that is on the critical path due to its length. For example, if you have a project that consists of three independent sub-projects, then the sub-project with the longest completion date is the long pole. The etymology of this term is simultaneously obvious yet hard to pin down. Intuitively, the long pole i...

OtherMicrospeak
Aug 4, 2008
Post comments count0
Post likes count1

Why, when you sort by name, doesn’t it actually sort by name?

Raymond Chen

When you right-click on the desktop or in an Explorer window and select "Sort by... Name", why doesn't it actually sort by name? Because "Sort according to the default sort order for the column whose title is... Name" is too long. The default sort order for the first column (whose name is "Name") is to sort by name, mostly. The actual sort or...

Tips/Support
Aug 1, 2008
Post comments count0
Post likes count1

I warned you: The dangers of attaching input queues

Raymond Chen

Some people didn't take to heart my cautions on the subject of attached input queues, item number five on the list of five things every Win32 programmer should know. And then they find that their application stops responding. // Code in italics is wrong void TryToStealFocus(HWND hwnd) { // First try plain SetForegroundWindow SetForegroundWi...

Code
Jul 31, 2008
Post comments count0
Post likes count1

Don’t be helpless: You can put things together, it doesn’t have to be a single command

Raymond Chen

Humans are distinguished among all animal species by their advanced development of and heavy reliance on tools. Don't betray your ancestors. Use those tools you have. For example, during the debugging of a thread pool problem, it looked like somebody did a PostThreadMessage to a thread pool thread and left the message unprocessed after the threa...

Other
Jul 30, 2008
Post comments count0
Post likes count0

What does each country claim for its own?

Raymond Chen

One of the things that fascinates me is how each country's view of history is clouded by its own chauvinism. I was reminded of this when researchers were able to reconstruct the original recording from a phonautograph which predated Edison's phonograph, thereby adding another claim to the mix of who invented sound recording. I think the most con...

Non-Computer
Jul 30, 2008
Post comments count0
Post likes count1

When I double-click an Excel spreadsheet, Excel opens but the document doesn’t

Raymond Chen

Sometime last year, we got a report from a customer that whenever he double-clicks an Excel spreadsheet, Excel starts up, but the document isn't loaded. Instead, he gets an error message saying that document could not be found. He has to go to the Open dialog and open the spreadsheet manually. This report was routed to the shell team, since it appe...

Tips/Support
Jul 29, 2008
Post comments count0
Post likes count0

The sign that a trend is over: It shows up in a movie

Raymond Chen

George Mannes talks with Mike Pesca on his observation that once a financial trend shows up in a movie or television show, it's over.

Non-Computer
Jul 29, 2008
Post comments count0
Post likes count1

Be careful what you name your mailing list

Raymond Chen

Some time ago, I recommended exercising caution when choosing the name for your product group. The same caution applies to the name of your mailing list. Thanks to the large number of spammers out there, creating a mailling list whose account name is a word from the dictionary is just asking for trouble. When you create a new mailing list at Mic...

Other
Jul 28, 2008
Post comments count0
Post likes count1

How can SIGINT be safely delivered on the main thread?

Raymond Chen

Commenter AnotherMatt wonders why Win32 console programs deliver console notifications on a different thread. Why doesn't it deliver them on the main thread? Actually, my question is the reverse. Why does unix deliver it on the main thread? It makes it nearly impossible to do anything of consequence inside the signal handler. The main thread m...

Other