Friday, February 26, 2010

Wing Chun

Found a place that teaches Wing Chun, first class free... anyone wana come?

Thursday, February 25, 2010

Beware of what you post

http://pleaserobme.com is a site which searches social networking sites for status' of people who leave their homes, thus informing thieves that their homes are available to be robbed.

Tuesday, February 23, 2010

Database Unit Testing in C#

Sometimes you need to write Unit Tests, where a test may alter the database.  But you don't want it to persist there after the test.  You also don't want to drop and re-create the database every time you run a test either, because you may have stuff in it for whatever reason.

#region Init and Cleanup

TransactionScope _trans;

[TestInitialize()]
public void Init()
{
     _trans = newTransactionScope();
}

[TestCleanup()]
public void Cleanup()
{
     _trans.Dispose();
}

This creates a transaction scope before each of your test methods and disposes of the transaction afterwards.  During the test, everything behaves as if you actually save in the database.  Afterwards, everything is as it was before!

Sunday, February 21, 2010

Friday, February 19, 2010

Looking for T-Shirt Printing

I'm organizing Round the Bays for my company, and hence looking for a good value T-Shirt printing company.  Anyone know of any?

Saturday, February 13, 2010

ECE Part 4 Dinner: ECE Wars

And following up from my previous blog, here is the video for the dinner...



Originally we wanted to air an epic 20 minute movie.  We had some good ideas too but project and laziness took over.  But I think this turned out quite well in the end.  What do you think?

Tuesday, February 9, 2010

ECE Part 4 Dinner Promo 2007

Back when I was in my 4th year of Engineering, I helped make a promo video to encourage people to attend the final year dinner.  I had a great deal of fun making it and it really did cap off a great year, and a great degree.  The following is the promo video used to advertise the dinner...




PS We prepared a movie which was screened on the evening.  That is also on YouTube and I'll post it here soon.

PPS This is actually quite old, but just though of sharing something old school :P