This week on my screen #9

May 28th, 2009

May is nearing a close and I haven’t blogged much. So let’s do another list of interesting things. I admit that the title of these posts isn’t fitting, but who cares.

Taking babysteps into Ruby on Rails land

May 14th, 2009

It’s been real quiet here because I’ve been rather busy at work and the re-enactment season kicked off. I’ve also started a little project for my own which will be based on Ruby on Rails. I have no experience with it what so ever.

I followed the steps on the offical site, please note that you need super user privileges so begin each command with sudo. While everything was installing I stumbled upon this article on the Apple site, which I’m now following to understand and learn the language and the framework. It’s a year old but seems up to date so far. They also specify the sudo command so you’re ok with my first tip ;) .

This week on my screen #8

May 2nd, 2009

MacBook powering two external displays

April 19th, 2009

I tend to hook up my MacBook on one of my external displays when I sit at my desk. I have two 22″ screens, one which I use for the MacBook the other I used for my desktop PC. A while ago I gave that one away and so the other screen was only gathering dust.

The MacBook only has one external display port so in order to hook up two displays you need to do some research. One possible solution is the DualHead2Go from Matrox. You hook this up on your display port and it basically directs half of the signal to one screen and half to the other. So you need to set your resolution to a rather big one, the MacBook is not powerfull to power two displays at 1680 * 1050. It wil also set you back around 300$/€.

Then there’s ViDock, a very powerfull solution but it comes with a powerful price, almost a new laptop (700$/€).

And then there’s DisplayLink‘s technology, which enables displays to connect via USB. They’ve been around for some time and now have drivers supports Mac OS X. I went for this solution from EVGA, compared to the others it’s relativly cheap at around 70$/€ for their best model (UV-16 +). Which can power displays up to 1680 * 1050, just the resolution I wanted. While it can’t play HD content smoothly, normal usage is just fine.

This week on my screen #7

April 18th, 2009

Updated to BE 1.5

April 14th, 2009

Just a small post to see if everything is still up and running, only the lightbox extenstion is having a small design issue. Apart from that everything went smooth. For those using MS SQL 2000 as backend, you can just use the upgrade script that comes with the 1.5 release.

Mono 2.4 and MonoDevelop 2.0 on OSX

April 12th, 2009

I installed Mono and MonoDevelop again this week but found out rather quickly that not much has changed in MonoDevelop since the last time I used it. MD went 2.0 recently while Mono is now 2.4.

I probably should have guessed that all the problems I ran into using MD were still not resolved because of the red letters on their site discouraging using MonoDevelop on the Mac. On the forums however I found out that in the next version a lot of improvements should make it into the Mac distribution.

Mono is closing in on .Net, it was good to see that a lot of the c# language enhancements as well as new .NET features have made it into the platform. Including automatic properties, lambdas, etc. Linq is said to be supported as well but I was unable to write even a simple query. I never got the select statement to work. Could be me though.

What I did find interesting was how you can create native looking applications for almost every platform while using the same Mono core of your application. I really want to try that out! On the Mono site you get linked to Cocoa# for OSX but that project seems to be rather silent though a user made a recent contribution. I did like the way on how you could use the existing development tools available, xCode and Interface builder so you would not need to learn another application. There’s a video demonstrating the approach.

A more active project, with the latest version released in March, is Monobjc which seems to have the same goal as Cocoa#. I’ll probably try this one out first. Anyone with some Objective-C and Cocoa experience will recognize the way it works in this tutorial. Though at first glance you can’t use xCode to write your c#.

Oh yeah last time I checked you can use Spring.Net with Mono too.

This week on my screen #6

March 29th, 2009
  • Roy Osherove continues to review tests, ASP.NET MVC and Unity.
  • Found this info on MSDN, helpful while looking into WCF channel states.
  • Custom basic authentication for REST services.
  • Ayende on SOLID.
  • I always say at work ‘Copy Paste is van den duvel’ and it seems I’m not alone.

Cuyahoga Patch for ContactUs 1.6.0

March 29th, 2009

Attached to this post is a small patch that needs to be applied to the ContactUs (Contact.cs and Contact.hbm.xml) module in Cuyahoga so that it works with the latest version.

ContactUs.patch (1.74 kb)

Changing your connection string at runtime with Spring.Net

March 24th, 2009

Something that pops up every once in a while on the Spring.Net user forum is how to change your connection string at runtime. You need this behaviour for instance when you have a multi tenant application.

Out of the box Spring.Net comes with two DbProviders to change information about your connection string at runtime. One provider to change the credentials at runtime named UserCredentialsDbProvider, and one that can choose a connectionstring from a predefined list called MultiDelegatingDbProvider.

If you want to change the connection string at runtime, for instance based on the current logged in user, what works best is to either subclass DelegatingDbProvider or UserCredentialsDbProvider (which actually is a subclass of DelegatingDbProvider).

Attached you can find a quick and dirty sample which shows what you need to hook up.

RuntimeConnectionString.zip (8.29 kb)