Sunday, June 28, 2009

LBJ Can Haz Pants?

A friend on Facebook posted a link to this classic recording of a phone call made by then-president Linden Johnson: Linden B. Johnson orders some new Haggar pants

In this telephone call, which has become one of the more famous exchanges LBJ
recorded, the President asked a leader of the Haggar clothing company for some
custom-made pants, providing specific (and sometimes graphic) instructions on
how they should be customized for him.


Never let it be said that I don't post educational information on this blog!

Chris Walker cameo in "Inked"

Chris Walker, of the Contemplative Programmer blog, recently was involved in the 48 Hour Film Project in Seattle, getting to act in one of the entries, titled "Inked". You can watch "Inked" here, and see prior films from various cities around the world here.

He has a single line in the film, a single word in fact, and it's very apt if you know him. In the security team at Microsoft, Chris had a knack for spotting bugs in code, and would often send out gems to the team with the email subject line "Code du jour". I miss those mails...

Wednesday, June 24, 2009

"Nothing up my sleeve" numbers

I just came across the term "nothing up my sleeve number" today, and it made me smile. Sometimes geeks chose pretty cute names for things :) See the Wikipedia entry here.

The related entries on differential cryptanalysis and S-boxes is interesting too. I am not a crypto geek, so the intricacies of this stuff is beyond me, but the higher-level descriptions and the history are fascinating.

Spam, spam, spam, bacon, egg and spam

One wonders what the advertising folks were smoking when they came up with this new TV advertisement for SPAM.

Monday, June 22, 2009

Attaching a VHD to a Windows 7/Server 2008 host from managed code

This past weekend I had "fun" working on a project to attach VHD files to a Windows 7/Server 2008 host machine. My aim was to have a C# app be able to do this and then read the files off the VHD...

It turns out the easiest part was opening and attaching the VHD file. The VHD APIs are pretty straight-forward, and a simple managed wrapper lets you call these from C#. (I chose a Managed C++ wrapper, but there is a C# wrapper here)

By default AttachVirtualDisk will mount all the volumes on the virtual disk, which is what I wanted. (You could also tell the VHD API to not mount them and do it yourself for the partitions you cared about, but that sounded like a lot of extra work to me...)

Now came the fun - which drive letters were assigned to the mounted partitions on the VHD? It turns out the VHD API doesn't provide this information - the most it will give you is the physical path for the drive device (see GetVirtualDiskPhysicalPath)

I looked around and found some examples of people using Powershell to mount VHDs and figure out the drive letters. Some folks were using the Virtual Disk Service (VDS), which has a managed wrapper in Server 2008 (Microsoft.Storage.Vds.dll) - Taylor Brown talks about this on his blog.

That wouldn't work on Windows 7 though, so I was left considering writing a managed wrapper for the VDS COM interface. My head was beginning to hurt... :)

Luckily I found some hints at using WMI to get the info - using WMI from .NET is not too complicated once you figure out which objects and queries to use. Here's the resulting code (Managed C++) which retrieves the logical drive for the first partition on the VHD:

// Return the logical disk for the VHD's first partition
property String^ LogicalDisk
{
String^ get()
{
String^ physicalPath = this->PhysicalPath; // Calls GetVirtualDiskPhysicalPath API wrapper
String^ logicalDisk = nullptr;

// Use WMI to get the logical drive for the first partition on the VHD disk
RelatedObjectQuery^ q = gcnew RelatedObjectQuery(String::Format("\\\\.\\root\\cimv2:Win32_DiskDrive.DeviceID='{0}'", physicalPath), "Win32_DiskPartition");
ManagementObjectSearcher^ searcher = gcnew ManagementObjectSearcher(q);
String^ firstPartition = nullptr;
for each (ManagementObject^ o in searcher->Get())
{
firstPartition = o->Path->ToString();
break;
}
if (firstPartition != nullptr)
{
// Now see which volumes are related to the partitions
q = gcnew RelatedObjectQuery(firstPartition, "Win32_LogicalDisk");
searcher->Query = q;
for each (ManagementObject^ o in searcher->Get())
{
logicalDisk = o->GetPropertyValue("Name")->ToString();
break;
}
}
return logicalDisk;
}
}

"Molecular biology for computer scientists"

I just saw this rather intriguing post on Bunnie's blog: On Influenza A

In it he muses about the similarities between the influenza virus and computer virii. Some really interesting stuff, and some links to other reading.

A snippet to entice you to click on the link above:
If you thought of organisms as computers with IP addresses, each functional group of cells in the organism would be listening to the environment through its own active port. So, as port 25 maps specifically to SMTP services on a computer, port H1 maps specifically to the windpipe region on a human. Interestingly, the same port H1 maps to the intestinal tract on a bird. Thus, the same H1N1 virus will attack the respiratory system of a human, and the gut of a bird.

Tuesday, June 16, 2009

The non-sucky re-finance experience

After complaining about my experience with WaMu/Chase, I'm pleased to report we've closed on our re-finance with Quicken Loans.

I called them the afternoon that I realized WaMu/Chase were not going to work out, and within a day I had received spoken to a loan officer and received an estimate. The next morning I signed forms electornically locking in our rate and starting the credit reviews, etc. Within a week of applying the property valuation was done, and the loan was approved. During the whole process I was able to easily speak to my loan officer (email and phone calls answered within a day). Title search took about a week and a half, and we then signed the papers at our house. The whole process took under 4 weeks.

I was also really impressed that Quicken Loans sent us the full set of papers we would be signing the day before, so we could review them and ask questions if needed. No other lender I've worked with has done that, or offered to do signing at a location that's convenient for you instead of them.

Another nice thing: The property valuation report was very detailed and has some great info, such as comparable properties in the neighbourhood that have sold or are listed for sale now. More data than most estate agents give you when you are considering listing your home and trying to figure out a realistic price...

All in all I was really impressed with these guys and would recommend them to my friends. If you are thinking of re-financing or purchasing a home, give them a try.

Saturday, June 13, 2009

Abita Beer in Seattle

So, I have been a bad muppet and not posted anything about our trip to New Orleans. {A} has been much better and posted several entries already, so I recommend you read them in the meantime :)

One of the highlights of the trip for me was the discovery of a local brewery - Abita Beer.
Their Turbo Dog beer was quite nice and already had made an impression, but one night we had dinner at a cute cafe and I tried the seasonal Strawberry Beer from Abita. Wow.... Love at first taste?

This is one of the best summer beers ever - light, crisp and refreshing. The Strawberry refers to local, Louisiana strawberries. (The beer is a spring/early summer speciality, made in small amounts).

When the waiter suggested it, I thought "Ugh, it'll be too sweet". (I am not a huge fan of sweet beer or hefeweizen, although I do like some Belgian lambic beers like Kriek and Framboise).
I would say the Abita Strawberry beer captures the aroma and flavour of strawberries without picking up the sweetness - the beer is still nicely balanced and almost tart.

Now, on to Seattle. Not surprisingly, given the distance between Louisiana and Washington state, I have not seen Abita beer available here. Until I visited New Orleans, I had never heard of them. Looking at their website, though, it appears a few places in Seattle stock their stuff. On the eastside where I live, the only option seemed to be Larry's Market, which recently became a Top Food.

I can happily report that the Top Food in Redmond does sell Abita beer - only the Purple Haze was out when I was there, but there may be hope of getting Turbo Dog or some seasonal beers too... I will update this post if I find out more! :)

Update: 6/13
I spoke to the beer & wine buyer at Top Food in Redmond, and he said he'd be happy to order other kinds of Abita beer if I would be willing to buy a case. Sadly, though, the Washington State distributor, Columbia, only sells Purple Haze, Turbodog and Amber. No seasonal ales like the strawberry or satsuma.

I also found this discussion on Chowhound, which mentions that the Bellevue Whole Foods is an option. (I can report that the one in Redmond doesn't have any Abita beer...)

Thursday, June 11, 2009

New Iain M. Banks book, "Transition"!



Ooh, goodie! I enjoyed The Algebraist and Matter and can't wait to get started on this one!

It sounds like a bit of a departure from his Culture and far-future sci-fi, as this one is set on Earth in the (near?) future. It sounds like it may be more like some of Ken Macleod's books (or dare I say it, "The Diamond Age"). There's not really enough info on Amazon's page to know, though. So I guess I should be patient :)

It's available now for pre-order from Amazon (hardcover)... The softcover version will be out later in the year.

There is also an interesting article featuring Banks and other sci-fi authors on the BBC website here. The topic is "Can science fiction keep up with modern science?"

Tuesday, June 09, 2009

Meet the Contemplative Programmer

Chris, who until very recently worked in my team at Microsoft, started a great blog. The official description is "musing about programming, management and old computers". He has lots of interesting anecdotes, such as the current post concerning Guest accounts, and an earlier post on core memory.

You can read the blog here: http://contemplativeprogrammer.com/

Monday, June 08, 2009

Powell's Sci-fi Recommendation

The kind people at Powell's Books in Portland offer expert advice on science fiction books, as this sign shows.

I think I've seen this guy moonlighting where I work too...

Thursday, June 04, 2009

What's Sue McCown been up to?

It turns out Sue McCown of Coco La Ti Da and Earht & Ocean dessert fame has not been hiding under a rock for the past few months. This blog post describes her work with Seattle's Cupcake Royale to help them improve the texture and longevity of their cupcakes. (They noticed that many people bought them to eat the next day, and they tended to dry out overnight...)

For some reason when I read the description of Sue making batch after batch of cake mix, tweaking one variable each time, I picture a female Alton Brown doing a "food science is fun" routine. I'm not sure Sue would like to be labeled "the female Alton Brown", though :)

Sunday, May 31, 2009

On Sazeracs...

One of the things I did in New Orleans a few months ago was become acquainted with the Sazerac, an "old-fashioned" cocktail. The "official" website and recipe are here: http://www.sazerac.com/cocktail.aspx. Wiki has some good info too.

The traditional drink should be made with (good) rye whiskey, Peychaud's bitters and Herbsaint (a pastis, like Pernod). Absinthe can also be used, and there are a few now available in the USA, even some made near us in Seattle.

What is odd, though, is that ordering this drink outside New Orleans is a bit like trying to find Marmite outside the Commonwealth.

About 50% of the places I try ordering one have no clue how to make it. I guess this is not too surprising, since the cocktail is not "in vogue", and many other old-fashioned cocktails have fallen by the wayside. I've also had more than one person say that Absinthe is still banned/illegal in the USA... :)

There are a few places that know what a Sazerac is, and mix a good one. I was very pleased when the friendly barman at Pazzo in Portland sid he knew the recipe. He warned me that he did not have Peychaud's bitters, but they had some that were made in-house by the chef. The resulting drink was pretty close to the ones I had in New Orleans.

I'll update this with any other success stories...

San Diego

{A} and I are in San Diego for a few days for my cousin's wedding, and having a great time so far.

The wedding was yesterday, and was beautiful. Strangely, it's colder and greyer here than it was in Seattle when we left, butt luckily the rain held off, and the fog lifted in the evening so we could enjoy some of the view of the bay at the reception.

We're staying downtown in the Gaslamp district, which is bit like Seattle's downtown - lots of shops and restaurants, and a bustling nightlife. We explored a bit on foot on Saturday and discovered Nobu's within walking distance - I'll have to see if we can make it for lunch or dinner :)

We went to a really nice little cafe this morning for breakfast - Chocolat. (Their website is worth a look just to see the fun photo panning they have). They mainly focus on gelato, but also do some yummy paninis, bruschetta and pancakes (savoury and sweet). They have some seriously good coffee too - imported from Italy, I think, although it was not brand I had heard of... Well worth a visit if you come to SD.

Our hotel is nice, but I can't recommend the food at the hotel restaurant, J Six. Terrible room-service on Friday, and lacklustre breakfast on Saturday were enough to make us skip them for the remaining meals...

We had fun today exploring the Hotel Del Coronado and the surrounding beach, and then took a short drive north. Lunch at Rubios, a local chain of Mexican restaurants, was surprisingly good. I had great mahi mahi tacos (soft corn) with great fresh salsas.

Later today we are driving to the suburbs in the East to meet my aunt and uncle for dinner and to see their 8-month old ridgeback puppy :)

Sunday, May 24, 2009

Abita Purple Haze

I am happy to report that the Abita Purple Haze beer I bought at Top Foods in Redmond a few days ago lives up to the high expectations I described previously.

Purple Haze reminds me a bit of Belgian lambic beers and gueze's - not surprising, really, since this is a wheat beer with raspberry puree added after filtration. (I think they are going for a summer-friendly version of Framboise). Flavour-wise, it's lightly tart and fruity, but like the Strawberry, the fruit is more of a perfume than a strong flavouring. There is no real hoppiness, and the finish is clean and crisp.

This one is a nice summer beer, but I think I prefer the Strawberry.

Ladysmith Black Mambazo in Seattle

A quick add-on to the previous post about summer concerts:
Ladysmith Black Mambazo (from South Africa) will be playing at the Woodland Park Zoo. More info here.

Friday, May 22, 2009

Music, comedy and other link clearances...

This will be a bit of a "grab bag" of links.

Some music news:


  • A new album from Eels is coming out on June 2nd, called "Hombre Lobo". Check out the video for the first single here, and pre-order the CD here.
  • Elvis Costello has a new album "Secret, Profane and Sugarcane", also coming out on June 2nd, and is on tour. He'll be at Ch. Ste Michelle this summer.
  • Amadou & Mariam will be opening for Coldplay at Washington's Gorge amphitheater on July 11th. I guess they have arrived :)
  • Marymoor have some fun concerts this summer, such as Duran Duran and The Decemberists.

Movie news:

Humour links:

One of the British folks in my team at work mentioned this comedian, whom I had not heard of before: Bill Bailey. Apparently his "Guide to the Orchestra" show is great, and is coming out on DVD in the UK, so I hope it ends up being released across the pond too.

Here are some Youtube links in the meantime:

Thursday, May 14, 2009

WaMu/Chase and the sucky re-finance experience

I've been waiting for weeks to hear back from WaMu ("Now part of Chase") about my mortgage re-finance (which was meant to close by tomorrow). I finally heard back today, and it turns out they are "running behind" (no sh*t!) and would only be able to close in another month's time.

This whole process started in early February, with me dealing with a really pleasant guy on the phone. (This was after WaMu sent me snail-mail saying I could refinance for "no cost" - turns out that means $700 in application fees.)

The pleasant guy on the phone soon made way for an incompetent local property valuator that called me to say WaMu had cancelled my application and she was therefore not doing the valuation... After spending a few days playing phone-tag with WaMu I managed to talk to someone only to find out the application was still active and they were waiting for the valuation... (WTF?) So, a week or two later and a new valuator came out to look at the house. All was well, my credit rating came back in the high 600's and it looked like all would be well.

Then my application went to underwriting for review. Dawn, my loan officer, said they were running about 3 weeks to do the review, so after waiting 3 weeks (plus a few days grace), I emailed Dawn to see what was up. Nothing for a week. So, I started calling Dawn and leaving voicemails asking her to contact me. Nothing for weeks. This week I tried calling her again and realized her voicemail message has changed: she's now "out of the office for an extended period", and requesting that no-one leave voicemails for her.

OK. Let's try the operator number she suggests I use.... It turns out that is equivalent to listening to gaping void of deep space - not even muzak to while away the time. Next I try callign the number for Dawn's manager, only to get voicemail and a message saying she has chanegd teams and I should not leave a message.

I spent some time hunting around for 800- numbers to call, and finally speak to someone that gives me the name and number of Dawn's new manager. I call and leave voicemail. Repeat for 3 days... Finally today I hear back from Juan, the manager, and while he is extremely appologetic, the gist of it is that I am up a proverbial creek with a proverbial paddle.

They will not be able to close until mid-June, and my rate-lock expires tomorrow. For $1000 I can extend the rate lock (or I guess I could let it float, but Juan didn't really seem interested in that option?) At least they offered to refun the $700 I've paid in application fees, so now I can start the whole process over again with another lender... Wish me luck!

PS: If this is how WaMu/Chase treat their customers, Heaven help them!

David Byrne's new EP

I just heard that David Byrne is selling a special live EP recorded during his current tour, with proceeds to benefit Amnesty International. Definitely a worthy cause, and a nice addition to the studio album ("Everything That Happens Will Happen Today").

For more info and to listen to the EP, go to David Byrne's site here.

Wednesday, May 13, 2009

Sushi Me

This is a quick recommendation for a new sushi place that opened a few months ago in Bellevue: Sushi Me. They are a kaiten sushi restaurant (a.k.a. conveyor-belt sushi).

Previously, the only kaiten sushi places I had been to were fairly unimpressive in terms of quality, and some took the no-frills theme a bit too far for my tastes.

Suhsi Me strikes a nice balance - they have a modern, clean feel, with a more inventive menu than traditional sushi places. They are definitely trying to appeal to both sushi newbies, and fans. They have lots of interesting rolls and some great veggie dishes: edamame, inari (tofu skin) and tamago (egg) sushi and basic veggie rolls. Something really unusual was their breaded and deep-fried tofu. They also have a few cooked dishes on the menu (like ramen soup).

I will still go to more old-fashioned places like Kiku Sushi when I am craving really good nigiri sushi (their aji is great), but for a mid-week lunch, Sushi Me is my new favourite sushi place.