Archive for the ‘Programming / Technology’ Category

It’s been quiet here for so long… When I look back at the posts, the fact that just the first page covers as much as 7 years is truly… humbling.

I was thinking about writing a post about the events of the past 7 years, but seriously who really wants to read about that? :) Better to look ahead.

I’ve just built a new gaming rig for the family, my first PC build in over 8 years. This woke again in me the desire to code more, and I’ve been dipping my toes back in .net over the past month or so. With that, I’ve decided to get serious (within hobby limits) about building out a tool to help S monitor her sickness and flares. Who knows, maybe it will turn into something I can release to a wider audience in the future…

For now, that’s it.

Getting the following error when you deploy your first asp.net 4.0 website:

Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive.

is most likely because of either of 2 reasons:

1. You installed the .net 4.0 bits after IIS was set up, resulting in the wrong version of the .NET framework beeing registered with IIS.

Most often the above results in conflicting versions of the framework, and so the easiest way of solving this is to re-register the .NET extensions with IIS using the aspnet_regiss tool. Make sure you run it from an elevated command prompt and that you use the correct version (in the v4.xx folder that is, not the v2.xx one). On my dev machine this tool is located in:


and you run it with the -iru flags like so:

aspnet_regiis.exe -iru

2. You haven’t set the framework of the IIS application to the correct version of .NET (4.0 that is)

Change this using either the IIS Manager or the command line. In IIS Manager you select ‘Application Pools’, click the Application you’ve pointed you site to use, select ‘Basic Settings’ in the ‘Actions’ pane and change the ‘.NET framework version’.

This post over at MSDN should also be of great help. Gotta love Microsoft’s documentation!


Installing Ruby / Gems (/ Rails) from the Debian packages is very convenient and nice, but the versions are old. If you want to stay on top of things, naturally you will want to install from source, but many who do run into the error below, when trying to install / update gems after a fresh install.

$ gem update --system
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:1:in \
        `require': no such file to load -- zlib (LoadError)

The cause for this and a remedy has been suggested in the following thread (Bug#1090):


Not sure if I agree with the thread that this is a bug because ruby doesn’t complain loud enough about the missing zlibs, but here’s the concise solution anyway:

Essentially, unless you first install the zlib packages ruby will build without them, so this is the first step:

apt-get install zlib1g zlib1g-dev zlibc libzlib-ruby

next, when you ./configure ruby, add the –prefix =/usr/local

$ cd 'your ruby source dir'
$ ./configure --prefix=/usr/local

next make, make test, make install and you should be able to

$ gem update --system

without problems.






Posted on: November 25, 2009





Posted on: November 24, 2009




From the BBC:

Mr Gonzales used a complicated technique known as an “SQL injection attack” to penetrate networks’ firewalls and steal information, the US Department of Justice said.

oo those evil haxx0rsz with their complicated techniques!! for +++ sake people sanitize your SQL!!!


Reminds me of this excellent xkcd:



This blog has no clear focus. It has a focus though, it's just not very clear at the moment...

Dev Env.

Visual Studio 2008 Prof / NUnit / Gallio / csUnit / STools (ExactMagic) / doxygen / dxCore / TypeMock / TestDriven.net / SequenceViz / CLRProfiler / Snoop / Reflector / Mole / FxCop / Subversion / TortoiseSVN / SlikSVN / CruiseControl.net / msbuild / nant

Blog Stats

  • 81,261 hits