Fallout 3: The Lone Wanderer Fights for Decency

May 11th, 2009

The Lone Wanderer killed everything in the Satellite Facility.  They deserved it, after all.  With Liberty Prime… well, let’s just say Broken Steel, the Enclave deserved every laser and plasma blast.

In fact, he was in such a zeal for death and destruction that many of the crates and shelves were simply skipped past.  Upon downloading the encrypted transmission, the Lone Wanderer back-tracked and hunted for any spare ammo and other goodies.

However, fate had something different in mind.

Lo!  As the Lone Wanderer imagined himself falling down the stairwell to his death (it felt like deja vu), the Enclave had him surrounded!  He turned on V.A.T.S. and noticed… they weren’t wearing… clothes.  Well, sure, t-shirts and shorts, but their armor was missing.

Now, in addition to killing just about every good person in sight, the Enclave had now declared a war on Decency.  This could not stand.

Dude, wear some pants

Never mind me...

Let's see what kind of loot these indecent mongrels have

They... have power armor... but they're not wearing it?

What Is Up With The Feet?

April 20th, 2009

Spotted at this Burger King at Northland Dr and Cannonsburg Rd on Sunday, April 19th:

What is up with the feet?

Also spotted at this Independent Bank the same day, but I didn’t take a picture.

Something strange is happening.

I Need To Do Dishes More Often

April 18th, 2009

The following pictures document what I found in my sink’s garbage disposal just minutes ago.  I am not kidding.

Ahh, a little leaf thing

I don't remember eating anything like this...

Whaaaaaaaat the!?


It's a freaking ecosystem!

As near as I can tell, this is what you get when you throw cantalope seeds down the drain, but you forget to turn the garbage disposal on.

Backup Adventures

April 12th, 2009

I’ve been having rather lucky tragedies with my hard drives lately.

1) Lost a hard drive last year (thankfully, it was RAID 1).

2) Two weeks ago, my computer decided to pretend that a hard drive no longer appeared.  I opened up the case, confirmed the cables were connected, and long-story-short my boot record on a secondary drive had vanished.  I was able to recover it, after some difficulty.

After last year’s near-miss, I had signed up for XDrive, but the upload speeds were atrocious, and it stopped working one day.  I didn’t really mind.

Now, though, I’ve signed up for an account with Mozy Home, and I’ve been pleased thus far.  It basically just runs in the background, and uploads any new documents or other files for you automatically.  And it’s fast.  You can also define which files to upload (say, ignore pdb files, but include cs files).  And its free for 2 GB, and only $5 a month for unlimited.

I expect that Mozy will stop working one day, and the cycle will repeat.

P.S. I learned some new googlefu:

<Tech Term> site:lifehacker.com

There’s so much absurd spam and crap in normal google searches, it can be really difficult to find things that actually work.  Thankfully, lifehacker seems to have documented at least some of the tools that work, and is a quick way to find gold.


March 30th, 2009



Amazon Kindle 2

March 29th, 2009


I pre-ordered a Kindle 2 last month, for two reasons:

1) I wanted to read more.
2) I wanted to have my own, personal Hitchhiker’s Guide to the Galaxy. (Amazon offers free access to wikipedia)

So, I’ve been playing around with it for about a month, trying to gauge how well it works. I’ve read several books with it, and I thought I’d offer my impressions.

Read the rest of this entry »

Free Watchmen Tickets

March 1st, 2009

Best Buy has a nice promotion going on this week: buy any XBOX Live product, and you can get a ‘Watchmen Movie Pack’ for free. This pack includes a code that entitles you to two free passes to the upcoming Watchmen movie.

I purchased 1600 MS Points this morning for $20, and now I have two free passes. Plus, you can use the coupon for ordering tickets online.

Presenter First: Simple Presenters

February 17th, 2009

While reading this article, please keep in mind that I am a novice in using Presenter First.  The following technique has not been fully tested in a production environment, and may have drawbacks that I have not anticipated.

In developing an obscenely large and complicated personal project, I have become a big fan of the Presenter First design pattern.  It ‘clicks’ with me in a way that standard Model-View-Controller and Model-View-Presenter patterns simply have not.

A quick explanation of what makes Presenter First a little different: A Presenter contains a reference to a Model interface and a View interface.  The Presenter subscribes to events on the Model and View.  The Model and View can only communicate with the Presenter by raising these events.  The Model and View do not have any direct reference to each other.  This allows you to test the Model and Presenter logic without creating a View.

I highly recommend reading the Presenter First white paper (PDF) for more details.

In my project, I’ve been trying to follow a test-driven development approach, where I write test cases (using NUnit and NMock2) before I write the actual code.

I immediately ran into issues testing event subscription and event firing.  It was difficult to test the presenter, because it required the test to fire an event owned by the mock Model.

For example, this was my presenter code for a simple History presenter. The goal is the History model fires the MessageLogged event when a new message has been added to the History log, which will prompt the Presenter to call the View’s UpdateHistory function.

public interface IHistoryModel
    event Action MessageLogged;
    string Message { get; }

public interface IHistoryView
    void UpdateHistory( string aMessage );

public class HistoryPresenter
    private readonly IHistoryModel mModel;
    private readonly IHistoryView mView;

    public HistoryPresenter( IHistoryModel aModel,
                             IHistoryView aView )
        mModel = aModel;
        mView = aView;

        aModel.MessageLogged += OnMessageLogged;

    private void OnMessageLogged()
        mView.UpdateHistory( mModel.Message );

To test this, I mocked up a Model and View with NMock2, but NMock2 does not have any direct provisions for firing events that are on mock objects. I googled around, found a way to create MockEvents, and I found myself with a terrible, complicated test case.

To be fair, the Presenter First white paper does recommend that events should not be specified in the interface itself; they should be hidden by a separate function, like ‘SubscribeMessageLogged’. I found this concept ridiculous, but I started to understand why.

After struggling with MockEvents for several days, I had a sudden epiphany that would greatly simplify everything. I changed the Model event to provide the associated data as a parameter (a behavior that was also discouraged by the white paper) and transform the Presenter into a brain-dead connector.

public interface IHistoryModel
    event Action<string> MessageLogged;

public interface IHistoryView
    void UpdateHistory( string aMessage );

public class HistoryPresenter
    public HistoryPresenter( IHistoryModel aModel,
                             IHistoryView aView )
        aModel.MessageLogged += aView.UpdateHistory;

And… that’s it. The Presenter doesn’t even need any additional methods outside of the constructor!

The test case is super simple as well:

public class HistoryPresenterTest
    public void Constructor()
        var lMockery = new Mockery();

        var lView = lMockery.NewMock<IHistoryView>();
        var lModel = lMockery.NewMock<IHistoryModel>();

        Expect.Once.On( lModel ).EventAdd(
            new Action(
                lView.UpdateHistory ) );

        new HistoryPresenter( lModel, lView );


The mock Model expects that it will be connected to the View’s UpdateHistory method, and that’s all of the testing that is required. There is no need to raise the MessageLogged event, because that would simply test the functionality of C# events.

The advantage of this simple presenter is even more profound as you add new events to the Model and View. Now, all that is needed is one event, one method, one line connecting the model and view in the Presenter, and one line in the test case.

As long as each event can be tied to a corresponding method, this makes writing presenters (and their tests) extremely simple.

Simple Presenter Example Source Code (26 KB, requires Visual Studio 2008 and Nunit 2.4.8)

Review: Gran Torino (Movie)

February 9th, 2009

Comedy of the year, until the third act.

Helen: The Blind Chicken

February 8th, 2009

Say hello to Helen.

Helen Introduction

She is perched outside of the chicken pen.  She is blind.

Last weekend, the Michigan weather had warmed up considerably (considerably for Michigan), and it was above freezing.

As the sun rose in the sky, my father opened the large door to the chicken pen.  The chickens gradually wandered out, and mingled about outside for the afternoon.  They enjoy wandering about the yard.  Surprisingly, the cats don’t bother them at all.

As afternoon darkened to evening, my father herded them back into the pen.  Alas, one of the chicken’s poked its head outside for another second, and was subsequently rewarded by having its head squished quite thoroughly as my father swung the large door shut.

For reasons that remain unclear, my mother took it upon herself to care for this chicken.  She set up a small box in the basement for it to stay in, and fed it milk.  As the days went by, she grew more attached to it, and even gave it a name: Helen.

Helen Being Pet

Alas, Helen cannot see, and is a rather daft.  She responds to sounds and touch, but primarily spends her time standing in one spot, turning around in circles.  She will not eat for herself, and my mother must feed her milk.

Helen Closeup

As you can see, Helen isn’t looking so well.  One of her eyes is missing, and one is very cloudy.  Her crown is blackened and flaccid.