Blog posts page 13 of 45

May 2008 checkpoint

I am now settled into my new, albeit temporary, apartment here in Vancouver, BC working for Microsoft!

For those who haven’t been following my blog long I took a job at Microsoft Canada Development Center as a developer on LINQ to SQL. It turns out my H-1B Visa has been approved and I will be moving down to Redmond in October.

Localizing MVC for ASP.NET views and master pages

Microsoft’s MVC for ASP.NET is still under serious development but at the moment support for localization is a little weak. Here’s one approach that works with the 04/16 source-drop.

This class helps by trying to identify language-specific versions of views, user controls and master-pages where they exist, falling back to the generic one where necessary.

Boot Camp 2.1, VMware Fusion 1.1.2 and MacBook Pro firmware

  • πŸ“…
  • πŸ“ 240
  • πŸ•™ 2
  • πŸ“¦ Apple

Apple have released Boot Camp 2.1 which finally includes official 64-bit support on Vista and support for Windows XP Service Pack 3.

This update may mean that 3D games will play without locking up or installing Nvidia’s own drivers and that the track-pad functions correctly again (broken since Boot Camp 1.x)

Four Windows apps for home-sick Mac users

Delicious Library is a DVD, game and book organization tool I’ve been using since my PowerBook G4 and a 2.0 version has been dangling from Wil Shipley’s mouth longer than I care to remember.

Windows users however will find Libra a very interesting clone and it features some of the same great features such as bar-code scanning via a web cam, tracking loans, a rendered virtual shelf and fast queries.

Using LINQ to foreach over an enum in C#

  • πŸ“…
  • πŸ“ 188
  • πŸ•™ 1
  • πŸ“¦ .NET
  • πŸ’¬ 8

I later expanded this out into a full Enum<T> strongly typed helper.

I can’t be the only person in the world who wants to foreach over the values of an enum otherwise Enum.GetValues(Type enumType) wouldn’t exist in the framework. Alas it didn’t get any generics love in .NET 2.0 and unhelpfully returns an array.

Calendar spam, the next nuisance?

Tomorrow morning at 5am where I can enjoy an advanced fee scam! I’ve had these in email format before but never in my calendar…

Oddly there are no emails about this in my inbox and I sure didn’t tell it to add one to my calendar. As there is no β€˜Report Spam’ link for calendar entries I had to return to calendar view, delete it from there and hope nothing else shows up.

Windows 2008 Server on my MacBook Pro

A troublesome disk (a story for another time) has forced me to reinstall my MacBook Pro and review my Windows partition.

My Boot Camp partition was running Vista Ultimate x86 which felt sluggish, ignored the last 1GB and bugged me with UAC. One Windows update kept failing to install which also prevented SP1 from completing.