Archive for the ‘Tips & tricks’ tag
The importance of the order of routes in ASP.NET MVC
Last week I had the pleasure of listening to a presentation from Scott Guthrie here in Stockholm, http://weblogs.asp.net/scottgu/archive/2009/12/06/my-presentations-in-europe-december-2009.aspx. One of the most interesting parts of the all day event was his talk about ASP.NET MVC 2. Yesterday I had some time off and started to try things out using Visual Studio 2010 Beta 2 and the ASP.NET MVC 2 template. It was running smoothly for a while until I bumped into a problem I recognized from earlier. I didn’t remember the solution right away, but soon I figured it out what was the key point in making the routes, registered in Global.asax, work properly.
The order when adding the routes using the MapRoute method on a RouteCollection object is important to avoid getting a 404 page when browsing to pages that are supposed to work. I will present the problem and the solution for it below.
SQL Server 2008 spatial data with BLToolkit (cont’d)
Right after I published the previous post on the spatial data and BLToolkit components I decided to write a follow-up on that post. I wasn’t happy about the way I described the implementation of the new property and field attribute to support the SQL Server UdtTypeName property and spatial data types. I hope I will make it more clear how I accomplished the support for this here. Please read the previous post about this on, .
Broken TinyMCE with WordPress 2.7
After upgrading my WordPress installation to version 2.7, the TinyMCE editor was broken. I “googled” around like a maniac trying to find a solution to this. After a while I found out that it wasn’t the TinyMCE itself causing the problem, but instead the RB Internal Links plug-in.
Time synchronization in Linux (Ubuntu Server)

As I have installed and administrated a bunch of Linux servers as virtual machines, I have had trouble keeping the time correctly. There is always a small drifting going on in virtual machines and a number of different ways to keep them synchronized with the host operating system.
Nowadays I have left that struggle behind letting the virtual guests keep themselves and their clocks correctly set.