Tuesday, January 31, 2006 
posted on Tuesday, January 31, 2006 11:14:08 PM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]
Monday, January 30, 2006 

The Onion interviews Stephen Colbert on the Colbert Report, politics, and improv.

posted on Monday, January 30, 2006 10:00:08 PM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]
Sunday, January 22, 2006 

This application to join the Republican National Committee arrived in the mail the other day. Hell hasn't frozen over yet, so I won't be joining the Republican party.

I don't know how the RNC came up with my name, though I got another solicitation from them a few years ago. Usually, I get solicitations from the Dems and from a variety of progressive causes, but then I have a track record of supporting them.

The previous owner of our house, Harry Korrell, is a made man in local Republican circles. He was a member of Dino Rossi's legal team when Rossi was trying to overturn the last gubernatorial election in Washington state. Feh!

posted on Monday, January 23, 2006 6:16:40 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [1]

I've been trying to make Vim 7 compile with the Microsoft Visual C++ 2003 Toolkit, as a favor to Bram Moolenaar, the primary author of Vim. He wants to be able to use the free compiler as the primary build tool for the Win32 version of Vim.

Oh. My. God.

The VC2003 toolkit may include a full optimizing compiler, but it's certainly far from a complete system for building Windows binaries.

First, I discovered that it came only with the C library headers, but not the Windows headers. That was easily rectified. Download the Platform SDK. Just the Windows Core SDK subset. This also got me nmake.

At this point, I was able to compile Vim, but not to link it. The linker required cvtres.exe, to link some resources. Some googling showed me that this is included in the .NET Runtime.

The main Vim executable now linked, but the shell extension DLL didn't. I didn't have msvcrt.lib! It took me more detective work to learn that I'd have to install the .NET Framework SDK to get msvcrt.lib. There are several clever hacks out there that generate msvcrt.lib from msvcrt.dll, with the help of link -dump -exports and a sed script, but these do not include the all-important _DllMainCRTStartup@12, the real entrypoint for DLLs linked with msvcrt.

All the necessary steps for getting the downloads are summarized on the Code::Blocks wiki. Code::Blocks is an open-source IDE that can host the VC2003 toolkit, GCC, and a number of other compilers.

So why bother with the VC2003 toolkit, since Visual C++ 2005 Express Edition is freely downloadable?

The main reason is that it's free only for the first year, and Bram wants something that will still be available after November 2006, so that anyone can compile it.

I have also ported Vim 7 to compile with VC2005 Express. It was fairly straightforward, after I had added the following

 #if _MSC_VER >= 1400
# define _CRT_SECURE_NO_DEPRECATE
# define _CRT_NONSTDC_NO_DEPRECATE
#endif

to shut up the warnings about deprecated CRT functions. I also had to make it link with libcmt.lib (multithreaded) instead of libc.lib, as the single-threaded static library is gone.

I still need to make sure that everything continues to work with the retail compilers, VC6, VC7.1, and VC8, before passing my changes back to Bram. Sigh.

Update #1: I almost forgot. VC2005 Express also requires the Platform SDK to build Vim.

I'll send the diffs to Bram in about a week. I'm too busy to clean everything up this week.

Update #2 (2006/03/12): I sent updates to Bram a week ago and he's checked them into the Vim7 source tree. Be sure to read src/INSTALLpc.txt, section 1, for details on compiling Vim with VC5-VC8.

Update #3 (2006/04/22): VC2005 Express is now free forever. Vim7 is in beta and will be released soon, and Bram doesn't want to switch compilers at this point.

posted on Sunday, January 22, 2006 9:17:05 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]
Wednesday, January 18, 2006 

A useful compendium of health risks associated with excessive computer usage: Is Your Computer Killing You? RSI, eye strain, deep-vein thrombosis, insomnia, etc.

A little app that I find useful in reminding me to take occasional breaks is Workrave. Though I've gotten all too good at ignoring it.

Time for a break.

posted on Thursday, January 19, 2006 5:36:22 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]

Bill Shatner doing Elton John's Rocket Man: video. Be sure to watch the last 30 seconds or so.

posted on Wednesday, January 18, 2006 9:32:29 PM (Pacific Standard Time, UTC-08:00) 
#    Comments [1]
Sunday, January 15, 2006 

This morning, I sent the following letter to the Democratic members of the Senate Judiciary Committee:

Senator,

Your job last week was to show up Samuel Alito as the extremist that he is.

You failed. You were outmaneuvred by the Republicans and you did not make a compelling case when you had the spotlight on you. Instead many of you were, rightfully, pilloried as bloviating blowhards.

Do you really want your legacy to be that you swung the Supreme Court to the right for three decades? Do you want to remembered as one who lost Roe v. Wade? That you placed someone with a track record of privileging the executive branch on the Court under such an administration? To have confirmed, by default, another Justice in the mold of Scalia and Thomas?

Stand up and fight! If -- no, when! -- Alito gets out of committee, filibuster! What are you saving the filibuster for, if not to prevent the balance of power changing in the Supreme Court?

We, the freedom lovers of America, are counting on you to do your job, and lead!

George V. Reilly, Seattle, WA

Here's the contact information for the Judiciary Committee

Here's a very pissed off reaction to the ineptitude of the Democrats

posted on Monday, January 16, 2006 4:44:51 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]
Saturday, January 14, 2006 

I re-read Scott Hanselman's blog post on using Consolas as the Windows Console Font, and I decided to put together a registry file to make it a little simpler. (You'll have to rename the file to console-font.reg after downloading.)

The registry file includes entries for:

As Scott says:

(I'm afraid I can't distribute Consolas online or provide a download out of abject fear. That said, you can find it in any version of the Longhorn bits.)

Or Office 12, I believe.

Update, 2008/01/15. The Consolas Font Pack is the easiest way to get Consolas, if you don't have Office 2007 or Vista. Technically, you are supposed to have Visual Studio 2005. (I'm guessing that VS 2008 comes with Consolas.)

posted on Sunday, January 15, 2006 12:57:59 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]
Thursday, January 12, 2006 

On Tuesday night, I felt like Imelda Marcos. I conducted a long-overdue purge of my closet, leaving me with two large boxes of clothes, mostly shirts and t-shirts. I probably got rid of 80% of my collection of Microsoft shirts. All in all, I had 63 empty hangars in the closet when I was done. Yikes!

Lately, I've been dressing a little better. More button-down shirts, fewer t-shirts. Not that there's been any pressure to do so at work -- the geeks at Atlas are just as badly informally dressed as at any other software company that I've worked at.

posted on Thursday, January 12, 2006 5:10:30 PM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]
Tuesday, January 10, 2006 

Via DailyKos: some of the nation's leading libraries have books bound in human skin.

posted on Wednesday, January 11, 2006 5:22:06 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [1]
Thursday, January 05, 2006 

I made this recipe for Thanksgiving. It was a big hit.

Mustard-Mushroom Soup recipe from CDKitchen.com:

Ingredients

  • 1/2 cup butter

  • 2 pounds mushrooms, thinly sliced

  • 4 cups chicken stock (preferably homemade)

  • 1/2 cup dry Sherry

  • 1 tablespoon Dijon mustard

  • Salt and freshly ground pepper

  • 1 cup whipping cream

Directions

Melt butter in heavy large saucepan over medium-high heat and cook until lightly browned. Add mushrooms and cook until liquid evaporates, stirring frequently, about 10 minutes. Add stock, Sherry and mustard and simmer briskly 10 minutes. Season with salt and pepper. Add cream and warm through. Serve immediately.

posted on Friday, January 06, 2006 3:34:40 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [1]