freddes.se

…because I'm a nerd

Archive for the ‘Tips & tricks’ tag

The importance of the order of routes in ASP.NET MVC

with 3 comments

mvc-logo-landing-pageLast 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.

Read the rest of this entry »

Written by Fredde

December 9th, 2009 at 1:49 pm

SQL Server 2008 spatial data with BLToolkit (cont’d)

with 2 comments

bltoolkitRight 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, .

Read the rest of this entry »

Written by Fredde

December 19th, 2008 at 6:24 pm

Broken TinyMCE with WordPress 2.7

with 14 comments

wp-20-buttonAfter 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.

Read the rest of this entry »

Written by Fredde

December 16th, 2008 at 9:30 am

Posted in Tips & tricks

Tagged with ,

Time synchronization in Linux (Ubuntu Server)

without comments

Ubuntu

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.

Read the rest of this entry »

Written by Fredde

October 20th, 2008 at 9:18 pm