Mark S. Rasmussen improve.dk
Nov 19
2007

I often need to transfer data from my business layer to my presentation layers in a strongly typed way. In this example I’ll use the following very struct and corresponding DataTable to represent the data I need to transfer:

Oct 20
2007

I do a lot of backend programming for Flash frontends. That basically means a lot of ASPX pages that simply return some XML and accept some incoming XML for parameters. Most of the UI logic ends up getting cluttered with manual XML stringbuilding, so I saw this as an obvious opportunity to play around with a fluent interfaces.

Oct 08
2007

Reading and writing values to the DB has always been a bit cumbersome when you had to take care of nullable types and DBNull values. Here’s a way to make it easy. Based on this post by Peter Johnson and this post by Adam Anderson I gathered a couple of ideas and combined them to make a completely generic class that will handle DBNulls for both reads and writes, as well as handling nullable types. Let me present the code, I’ll go over it afterwards:

Sep 29
2007

I often see my fellow comp. sci. students writing their (relatively) simple Java code in applications like Emacs, Nano or Eclipse. I’m not fond of either application. I much prefer Visual Studios text handling, solution overview, output windows and so forth. What most people don’t know is that you can actually extend Visual Studio to a great extent. One way to extend Visual Studio is to write plugins using .NET, but there’s a way that is much simpler (albeit also more limited). I will now show how you can make Visual Studio compile and run your Java applications all within Visual Studio itself.

Jun 23
2007

I’ve had my Vista PC running for quite some months now without problems, as well as Adobe Acrobat Professional and Adobe Photoshop. But not anymore…

Jun 10
2007

If you have ever deployed .NET windows applications, you have without doubt tried the Visual Studio Install project type. The Install project will create .MSI install applications for you, they’re great for basic installations, but nothing more than that. The .NET bootstrapper is quite lacking, at times it won’t be able to find the framework download file as it’s changed it’s location, at other times it’s not able to download it. And finally, if it does determine that the user needs the framework, it’s shown in an ugly uncustomizable GUI.

Apr 14
2007

In Photoshop we often work with multiple windows open. They can be cascaded to more easily be able to view the different windows and tell them apart. There’s an API function that does the same to any windows you specify, you can even define the rectangle where they should be cascaded within.

Apr 13
2007

Let’s be a bit more graphic. This time I’ll show you how to use the Windows API to make your forms fade in/out, slide in from the side or do various other animations. For this example we’ll have to use a Windows Forms project as we have to utilize a Form object in the example.

Apr 07
2007

Last time I made an example of how to enumerate windows. This time I present to you a class that greatly simplifies the process of searching for specific windows, types of windows, windows belonging to a specific process, having a specific text. You can search for any number of these parameters at the same time, using regular expressions for all string matches to provide optimal flexibility.

Apr 06
2007

Until now we’ve seen how to retrieve basic properties of windows as well as how to interact with them by sending keypresses. Up until now we’ve had to find the handle by using Winspector or a similar program. This time I’ll present a way of finding the handles programmatically.

Apr 04
2007

This time we want to retrieve the text from a given window, represented by a handle. Like last time, open an Internet Explorer instance. Now open Winspector and select the address field, ensure that it is the address field itself (class = Edit) and not the ComboBox that you select.

Apr 03
2007

So we have a handle, what process does it belong to? Our goal is to obtain a .NET System.Diagnostics.Process object that corresponds to the owner process of the handle we input.

Apr 02
2007

First of all, to manipulate and use the Win32 API, we must know about the system itself, the windows, the controls and so forth. Visual Studio comes bundled with Spy++ which enables us to identity the various windows and controls of application, but honestly, it’s pretty bad. Instead you should download Winspector.

Mar 29
2007

Unfortunately it’s been quite silent around here for the last couple of months. I want to change that, so why not make a promise?

Mar 16
2007

Boy am I glad I’ve got my baby insured, guess I’ll need it now :(

Feb 25
2007

I was asked to make a graph of my most recent relationship, what other way is there to express oneself than UML?

Feb 14
2007

I’ve been asked quite a lot of times why I hadn’t put up any pictures of my new ride yet. There’s still a couple of things missing such as the Audi logos for the rims, at least I got the alarms installed yesterday, this is now officially the most secure car in Denmark, sporting a Viper 5000XL, Cobra CONNEX GPS/GSM tracker and a Credex VGS MK-III smoke machine :D

Feb 07
2007

First off, let me give you the good news. I just bought a new car. A ‘2000 Audi TT 1,8T to be precise. The bad news however is that I’m 21 years old, only got about one and a half years seniority and at last, I’m male. Those three properties make up for a worst case scenario for any insurance application form. Anyways, here’s a chronological list of the insurance companies I called and their reponses:

Jan 28
2007

A series of pictures I took at the 2007 CES show.

Microsoft didn’t exactly hide itself at the CES, you could see Vista icons, banners, stickers and posters everywhere!

Jan 12
2007

One of the few places left that I haven’t played at is Caesars Palace. Fortunately I can now cross Caesars off my list.

Jan 09
2007

Since I woke up at 6 AM this morning I decided to just stay in bed and watch The Prestige through the hotel movie system.

Jan 09
2007

I wanted to log a lot of poker playing hours today. At about 12 PM I went to the MGM Grand, a room that I’d never visited. After playing there for about 5-6 hours (please don’t ask how it went, I got butchered), I’ve got mixed feelings about the room.

Jan 09
2007

Honeeey, I’m home!

It’s good to be back. After all, it’s been about 4 months since I were here last, that’s simply too long time!