June 2007 Entries

Can't stream flash video in IIS

I've got more than one gray hair from this one. The symptom is simple: Cassini (the development web server) hosts streaming flash videos just fine. IIS shows a white box. The answer is annoyingly simple: 1. Open IIS Manager, choose the website. 2. In IIS 7, choose "Mime Types". In IIS6, right-click, choose properties, choose the HTTP Headers tab, and choose File Types. 3. Click Add. Extension is ".flv" (no quotes), mime type is "video/x-flv" (no quotes) Not sure if you need to restart the website for changes to take effect. Now hopefully, I'll remember that next time I'm ready...

"My VM disk is too small"

I've loaded up a Vista VMware session with all sorts of fun gizmos, and came to a perplexing dilema: "My VM disk is too small".  Yeah, I could've just created a new virtual disk, called it D: and been done with it, but I wanted more space for Documents, Program Files, Windows Updates, etc, etc.  I didn't want a D: drive, I wanted a bigger C: drive. Here's what I did: 1. vmware-vdiskmanager -x 32GB myDisk.vmdk  That was easy ... kinda.  vmware-vdiskmanager expands the disk, not the partition.  C: is still the original 16 gigs.  vmware-vdiskmanager is in the VMware Workstation directory,...

Outlook 2007, the RSS Reader

I finally sat down to load up all my RSS feeds from Google Desktop to Outlook 2007.  Um, oops. My RSS needs are simple: - I want to group feeds and aggregate their results - I want multiple groups of these aggregated results so I don't lose infrequently posted sources Group 1: I download my daily 'newspaper' by aggregating cnn, slashdot, abcnews, engadget, the register, wired, etc.  I consider this for the most part disposable knowledge: if I miss a post or a day's worth of posts, so what.  I want to read my news as an aggregated list: newest first, combine all the...

Curly Braces -- the holy war

I sense I'm spurring a holy war discussion when I raise the issue, but some have asked why I code with curly braces on the same line rather than a new line.  My answer is simple: readability. The goal with any code is not solely to accomplish the problem at hand, but to make the code legible for the casual reader who will come by it later on.  Maintainable code is written legibly. As an example, consider the Visual Basic type "variant".  It defines a variable as "something".  Um, gee, thanks. Dim myvar as Variant myvar = "1" myvar = 1 myvar = 1.0 myvar = Workbook.Worksheets[0] What is...