# Thursday, 27 May 2004

Now this is interesting, students at Danish business colleges have been given a case about the IT systems of Bolia.com. I have a special interest in this case as I am currently employed at the company which maintains and develops the systems running the Bolia.com business and spend part of my time writing code for the very systems the students are trying to pick apart.

There are some very interesting discussions around Danish fora where people are trying to find all sorts of weaknesses in the systems and business model.

I almost feel famous right now :)

posted on Thursday, 27 May 2004 13:56:26 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback
# Wednesday, 26 May 2004

I just have to point out this site I discovered this week: The Daily Cup of WTF. It's basically a place where all sort of weirds piece of coding related material get posted. The site is relatively new so there aren't all that many posts as of yet but you'll have a laugh or two from those that are there now that I gurantee :D

I especially like the last post here.

posted on Wednesday, 26 May 2004 22:27:32 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback

Some time ago Scott Hanselman reported a bug in dasBlog which involved the cache getting corrupted. A hotfix has been released which you should download right away. I have installed this update and as you can see the blog is still running without a hitch :)

posted on Wednesday, 26 May 2004 14:23:07 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback

Now that Microsoft has announced the successor to Visual Source Safe what will happen to other vendors like SourceGear? Eric Sink of SourceGear answers that question.

posted on Wednesday, 26 May 2004 13:30:44 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback

Version 0.9.27.68 has seen the light of day. Download it.

posted on Wednesday, 26 May 2004 09:55:40 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback
# Tuesday, 25 May 2004

If you have ever had to design anything in VS.NET you know that at some point when you change from code view to design view or vice versa you will loose the formatting you painstakingly put together with no real way to get it back.

It is something which has annoyed me to no end and know I know why. Read this post at Mikhail Arkhipov's blog if you want to know more. There's even something which looks like a fix although you need to put your coding skills to use in order to make it work.

posted on Tuesday, 25 May 2004 09:54:23 (Romance Daylight Time, UTC+02:00)  #    Comments [1] Trackback

We finally have light at the end of the tunnel. Microsoft will release a replacement for Visual Source Safe which has been sourly needed for a long time.

Tons of other stuff than source control is provided by the tool (codenamed Burton) and you can learn more at ActiveWin where there are links for some demo videos or by checking out the product site.

There's even a FAQ available if you have more questions :)

posted on Tuesday, 25 May 2004 09:31:06 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback
# Saturday, 22 May 2004

This blog is still relatively new so I am still experimenting with the features of the blogging engine. I have been having some trouble with adding images to my posts so here is a test post with an image of my dog Pepsi - I know the name is weird but he had that name when we got him so there really wasn't anything we could do about it.

posted on Saturday, 22 May 2004 15:03:22 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback

Just saw this post at SecretGeek.net. If you for some reason find yourself doubting your skills or your decisions take a peek at the post. It's really up lifting :)

posted on Saturday, 22 May 2004 14:37:30 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback
# Friday, 21 May 2004

It's confirmed, Internet users do have too much time on their hands. It really is amazing what a person with too much time and copy of Photoshop can accomplish :D

http://www.olympictrans.ru/fun/img/uglyZoo/

Now imagine that same person living in your building doing the same thing only with twigs... THE HORROR!

We do actually have a person just like that in our building - entertainment and freakyness all in the same package.

posted on Friday, 21 May 2004 15:29:35 (Romance Daylight Time, UTC+02:00)  #    Comments [1] Trackback

Here is a cool tool: A web-based Enterprise Manager. People coding PHP have had a tool like this for mySQL for ages in phpMyAdmin - a tool I used a lot back in the day when I was creating PHP based solutions like Telte.com.

Think I have to play around with the web Enterprise Manager this weekend :)

posted on Friday, 21 May 2004 13:27:51 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback
# Thursday, 20 May 2004

I have been trying various posting tools and also tried getting BlogJet to work. This is no easy task; for some reason it completely denies to start on my work computer and crashes with a friendly message which goes something along the lines, "exception occured error 9484747555", and then nothing.

I am writing this test post from my home computer where BlogJet works without a hitch, very weird but at least it works, right?

I've been searching for an easy to use tool for writing blog posts and I think I might have found it with BlogJet. Unfortunately it isn't free but hey I am all for paying for quality :)

Now all I need is an easy way to insert code snippets and get them highlighted :D

posted on Thursday, 20 May 2004 22:28:15 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback
# Wednesday, 19 May 2004

We all know and love the C# version of foreach where you specify the type in the loop like this

foreach ( object o in list )

In VB.NET 1.0 you had to do declare the variable outside of the loop which is pretty ugly as you might end up using it later in your code by accident. With VB.NET 1.1 you can do a foreach loop the C# way which probably is the new feature of .NET Framework 1.1 I use the most :)

So in the old way you would do this:

Dim o As Object
For Each
o In list
Next

The new way allows you to use this form instead:

For Each o As Object In list
Next

Most people probably know this but I think it's worth mentioning for the 5 people who haven't discovered it yet.

posted on Wednesday, 19 May 2004 13:11:13 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback

Are you using a hidden column in your DataGrids to store the ID of rows? I was until recently when I discovered that you can specify a field on the DataGrid which contains the keys. It goes a little something like this

<asp:DataGrid id="MyGrid" runat="server" DataKeyField="TheFieldInDataSourceWhichContainsTheUniqueKey">...

In code you can retrieve the key in a command event handler or something similar like this

private void MyGrid_EditCommand( object sender, DataGridCommandEventArgs e )
{
  int id = ( int ) MyGrid.DataKeys[ e.Item.ItemIndex ];
}

Neat little trick which keeps your DataGrids a little bit cleaner :)

You can of course use any data type as the data key, just change the cast to the appropriate type and you're all set :)

posted on Wednesday, 19 May 2004 12:48:59 (Romance Daylight Time, UTC+02:00)  #    Comments [2] Trackback
# Tuesday, 18 May 2004

Quite a few people in my referrer log use a Mozilla-based browser of some sort and I just wanted to apologize for the layout of this site when displaying it in those browsers.

Please be aware that I am working on modifying the template to be more friendly with Mozilla browsers.

posted on Tuesday, 18 May 2004 14:07:22 (Romance Daylight Time, UTC+02:00)  #    Comments [0] Trackback

My main focus for this blog is .NET which really isn't apparent when you look at the posts so I thought I'd add an entry about a nifty little language trick I picked up reading blogs last week :)

The @ is a really neat symbol which you use for making C# interpret a string literally. You probably written double \ more than once in a file path. Well with the @ symbol you don't have to do this simply write:

string s = @"c:\windows\Microsoft.NET";

Most C# developers know this but did you know that you can also do this:

string s = @"Line 1
Line2

Line4";

The text will appear just as you wrote it. Pretty neat :)

posted on Tuesday, 18 May 2004 13:02:11 (Romance Daylight Time, UTC+02:00)  #    Comments [15] Trackback