... Home Contact

Krzysztof Koźmic's blog

Designed in Poland, assembled in Australia.


Show appreciation: My Amazon.com Wish List


Me@Twitter

    Currently reading

    Article Categories

    Archives

    Post Categories

    MyPersonal

    Syndication:

    August 2008 Entries

    Learning Wix (the hard way)

    I spent few last days at work, trying to create an installer for an application I’ve been working on. There aren’t many free tools to help you with that task: Wix, NSIS or Inno Setup as far as I know. I thought Wix was a reasonable choice. I don’t think that anymore. Wix’s documentation ranges from poor to nonexistent. Many things are done in a very awkward way. And the best (and in many cases only) way to get any help, is the discussion group wix-users. I’ve had my share of wrestling with Wix. Here’s what I learned....

    Subtext – ‘Item with the same key has already been added’ error fixed (hopefully)

    Many people visiting my site (myself included) have stumbled upon this error message: I took some time yesterday and, since Subtext is an open source project, I looked into the code trying to find what’s causing it, and fixed it. I don’t know Subtext’s architecture all that well, so I may have broken something on the way. My error log shows no exceptions (as compared to quite a few a day before the fix), so either people stopped visiting my site, or I fixed it without breaking anything else. If I’m wrong, and you...

    Testing collections with NUnit

    How do you test collections for equality of their elements? I often used to write my own custom assert for that, something like: public void AssertCollectionElementsAreEqual<T>(IEnumerable<T> expected, IEnumerable<T> actual) { var first = expected.GetEnumerator(); var second = actual.GetEnumerator(); int count = 0; while(first.MoveNext()) { if(second.MoveNext()) { ...