Tuesday, 8 January 2008

2008 Summer Road Trip - Auckland

This is going to be great - really looking forward to it!

http://aucklandroadtrip08.events.live.com/default.aspx

iTextSharp PDF toolkit/library ...

... is an absolutely brilliant set of tools for working with PDF documents (among other things). Wish I had found this toolkit eariler!

It's an open source port of a Java library:

http://sourceforge.net/projects/itextsharp/

Things I have found particularly useful are on-the-fly PDF watermarking and merging.


Friday, 4 January 2008

SQL 2005/2008 TRANSACTION in TRY/CATCH BLOCK

BEGIN TRY
BEGIN TRANSACTION

... your code here ...

COMMIT TRANSACTION
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION
DECLARE @ErrorMessage as varchar(max)
SET @ErrorMessage = 'The error message is:' + (SELECT ERROR_MESSAGE())
RAISERROR(@ErrorMessage, 16, 1)
END CATCH

Migrating (and Open-Sourcing) an Historical Codebase: SVN-to-Git

I have a SVN repo on my local machine that I have been shoving stuff into since before I knew how to use revision control systems properly (...