2006-07-27

New blog layout

I created a whole new layout for my blog, while still keeping the existing colors (and some of the fonts). The previous layout was mostly inherited from the standard Blogger template, with some modifications.

But it had some problems. The right column sometimes interfered with the main column, especially on small screens. And it was sometimes too crowded (too much content packed together).

The new layout has only 1 column, pretty large fonts, and a text-width and line-height that are comfortable to read. I moved the right column all the way to the bottom, which gives me the extra advantage that the actual content is loaded BEFORE the less important sidebar.

I would appreciate some feedback on this. Do you like it? Hate it? Know a way to improve it? Just leave a comment on this post.

2006-07-25

Creating a hybrid Class Library

This post explains how to create a hybrid Class Library: a Class Library that is used by both a desktop application (regular .NET Framework) and a mobile application (Compact Framework).

I'm currently working on a mobile version of my Calctor application. To make it easier to maintain, I decided to refactor the base functionality into a class library that I could reference in both the desktop version and the mobile version. The refactoring part was easy, but when I tried to add a reference from the device project to the class library, I got an error message that you can't do that. Which actually makes sense: the device project uses the Compact Framework, which contains only a subset of the BCL. So I asked how to solve this on Channel 9. As I expected, I soon got a useful answer from Sven Groot. After trying out several options, I ended up with the following solution.

This works out great, you can compile and debug just fine. One disadvantage is that you can only use the subset of BCL functionality that is in the Compact Framework, but that is only logical. Another disadvantage: if you have all projects (desktop and mobile) in 1 solution, and you're trying to debug the desktop application, the mobile project(s) will also be built and deployed, which slows down the building considerably. So if you're debugging only one of the application projects, I suggest you unload the other application project(s) that are not referenced. Just right-click the project, and choose Unload project. Later, you can just reload it by right-clicking the disabled project and choosing Reload project.

2006-07-09

Once upon a time in America

On my previous post, about the movie Scarface, I got a comment from Peter Himschoot, who said I would also like Once upon a time in America. So last week I bought the DVD on eBay, and this morning I got up early to watch it. It's a long movie (almost 4 hours), but it never feels long. It's a story that needs a long time to tell properly. It features a great cast (Robert De Niro, James Woods, William Forsythe, ...) and some of the most beautiful music I ever heard in a movie (from the hand of Ennio Morricone). Truely a masterpiece.