Wednesday, May 3, 2006

Coding too much and sleeping too little is a setting I'm not too unfamiliar with. You know you should sleep a bit more and code a bit less when you have nightmares about debugging and are wondering what method of which class to call to shut off the wakeup alarm in the morning. I'm coding on a project with a few friends these days and came over some interesting code, probably caused by the setting above:

public string MyProp
   set {value = value; }

Hmm... useful property...

if (valueQueues[queueId].Count != null)
   return valueQueues[queueId].Dequeue();
   return null;

Hmmm.. Nullable types is an interesting thing, but I don't think this is the right setting to use them...

posted on Wednesday, May 3, 2006 2:16:04 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [1]
 Friday, April 28, 2006

Microsoft Student Community NTNU, where I'm a member, will arrange a NUNit and NDoc Workshop soon. The exact date hasn't been decided yet, but it will probably be next week. I will be leading the workshop and we are going to focus on how to write good unit tests with NUnit, and actually write them. We are also going to take a look at code documentation with NDoc.

The agenda will probably be something like this:

  • Presentation about unit testing in general, how to write good tests, and how to use NUnit
  • Workshop where you will be given code to test
  • Short presentation on code documentation with NDoc
  • Workshop on NDoc

So look for the date announcement here and on Hope to see you there!

By the way, I became a Microsoft Certified Database Administrator (MCDBA) after taking exam 70-290 today!

Update: It looks like week 18 (1/5 - 7/5) is too busy for us. We will try to hold it next week (week 19).

posted on Friday, April 28, 2006 2:56:07 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [3]
 Tuesday, April 25, 2006

All kinds of IRC bots has existed for quite some time, everything from quiz bots to channel admin bots. You can't connect to IRC without seeing them. In the later years MSN Messenger has become increasingly popular, and now bots are beginning to appear here too.

I friend of mine, Frank Robert Kvam, has written one such bot, MSN-Hjelper (MSN Helper in English). MSN Helper can help you with some different things:

  • Searching with google
  • Looking up a number in the Norwegian telephone catalog
  • Remind you of TV programs
  • Calculator
  • Wikipedia lookup

His wrote his bot using the free open-source class library DotMSN (, which is a .NET wrapper around the MSN Messenger protocol. It is quite straight-forward to use, and only your own fantasy sets limitations for what kinds of messenger robots you can create :-)

Add his bot to your contact list: 
Below is a screen shot of a conversation with it.


posted on Tuesday, April 25, 2006 6:38:12 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [2]
 Friday, April 21, 2006

I went to "The Gathering" this Easter, as I have done the last 5 years. "The Gathering" is one of the world's largest computer parties with around 5000 attendees, held in the Olympic arena "The Vikingship" in Hamar, Norway every Easter. There are a lot of things going on there these 5 days from Wednesday to Sunday; scene shows, lectures, gaming competitions and other cool things.

This year things seem to have gone quite smoothly for the organizers. There were almost no queue to get in when we got there, and the network worked perfectly. In fact the Tech:Net-crew stated that they were bored and that we weren't even close to max out the internal network capacity. The internet line, though, was easily maxed out, with it's 1,5 GBit.

I have attached some pictures so you can see how big this party really is...

By the way, those of you who thinks that all big Microsoft projects are written i C/C++, check out Jonas' line count trivia.

DSC00611.JPG DSC00627.jpg

posted on Friday, April 21, 2006 2:04:51 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]
 Tuesday, March 28, 2006

We are doing a development project in C# in school now, and in we are (of course ;-)) using a build server with CruiseControl .NET for continuous integration of the project. While we (the developers) and the build server are located on the university network, the test server is located in a local company's intranet. To make the build process really nifty, I decided to make it deploy the finished build right onto the test server. To do that I had to set up a VPN connection from the build server and into the company network. And this is were the fun starts.

So I went straight for it to test it - created a new VPN connection, typed in the user name and password and clicked connect. Without clearing out the "Use default gateway on remote network" checkbox. Through remote desktop. Guess what happened? Yup, the server disappeared from the internet and my RDP-connection froze. Did I mention that the server is located in a locked room, to which I don't have the key?

Then the fun started - trying to get hold of the key. After about an hour I got hold of the key and disconnected the VPN-connection.

Please clear this box before connecting to VPN from a remote server.
Please clear this box before connecting to VPN from a remote server.

Later I configured the VPN connection using Routing and Remote Access (RRAS), which is a much better way of doing it...

posted on Monday, March 27, 2006 11:34:33 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [1]
 Sunday, March 12, 2006

Yesterday seven students from high school were competing in the NIO finals. The competition got a little bit delayed because of technical problems with the online judging system, but anyway the competition was a success. You can view the results here.

Congratulations to all contestants and to Jørgen Vold Rennemo for the highest score in NIO's history!

posted on Sunday, March 12, 2006 11:52:33 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]
 Saturday, March 11, 2006

The Norwegian Informatics Olympiad (NIO) finals are being held this weekend. 7 contestants from high school will be competing for a trip to the International Olympiad in Informatics (IOI), held in Mérida, Yucatán, Mexico this year.

The contestants will be solving four algorithmic tasks in five hours. I'm a co-organizer, and I'm looking forward to seeing the contestants and the results.

posted on Saturday, March 11, 2006 1:12:02 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

Hi, I'm Hans Olav Norheim, I'm 20 years old, and I'm studying Informatics at the Norwegian University of Science and Technology in Trondheim, Norway.

I'm interested in technology in general, and especially in computer science and software development using Microsoft Technologies. I'm a MCSD, and I've done a bit of .NET development using both C# and Visual Basic.

Now I thought it was about time to start blogging to share some my experiences. Expect to find blog posts about:

  • .NET development
  • Unit testing
  • Continuous Integration
  • Cool projects
  • Misc. technical stuff
posted on Saturday, March 11, 2006 1:06:37 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]