Sunday, September 06, 2009

Vasa Band and Saturday night success

This weekend the band I play in, the Vasa Band, had an opportunity to play at the Salvation Army regional congress in Örebro. We were invited to play in the musical festival at Saturday.

When we learned about this a few of us started to think in how we could make something new and different. And so we borrowed ideas from some great bands and put together a short program with music from our latest CD – Priority.

It was very well received and we really made a big impact. But what felt very good was many people felt the presence of God and his message to them as we played. This is always our greatest hope and longing. And this Saturday it was very obvious.

Feels really good to continue on that road with my fellow bandsmen/women.

I’ll try to upload some photos from the evening later

Friday, September 04, 2009

Dos-script to delete all Visual Studio Intermediate files

I have a USB-stick which acts as my backup. As I program a lot compilation and unit testing produces a lot of trash (.pdb, Test Results, obj-files etc). I don’t want or need a backup of those.

Today I found a short script that removes those file. Since I have folders named “bin” I want to keep I tweaked it a bit into this:

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S Debug') DO RMDIR /S /Q "%%G"

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S _Resharper*') DO RMDIR /S /Q "%%G"


FOR /F "tokens=*" %%G IN ('DIR /B /AD /S TestResults') DO RMDIR /S /Q "%%G"


FOR /F "tokens=*" %%G IN ('dir /b /A /S *.vsmdi') DO RMDIR /S /Q "%%G"




I don’t know if you are like me and don’t know the first things of DOS. Well this script deletes the following:




  • All Debug-folders (both obj/Debug and bin/Debug)


  • All folders that Resharper generates for you


  • All TestResults folder (they can be massive!!)


  • All the crazy vsmdi-files that hold testlist for you

Thursday, September 03, 2009

Test NHibnernate mappings with Fluent NHibnernate

After a couple of days in the Fluent-world I am taking to it as a fish to water.

One of the features that I am tried out and really think will be helpful is the ability to test your mappings. Especially nice is that you in your tests can switch to a in-memory database (with SQLite) so that your test run faster, and without having to setup a database.

I found a good introduction to NHibernate and Fluent NHibernate by the Hibernating Rhino Gabriel Schenker that also introduces mapping testing. Read it here (part 1, 2 and 3).

Love this quote by the way: “if you continue to implement your own data access code you are stealing (money) from your customer