This morning, on the way to work, I witnessed a cyclist getting hit by a car. I have my doubts as to whether the cyclist will survive. There are more and more cyclists on our roads, and this trend will continue in the future because of rising petrol prices, and environmental concern. This requires both … Continue reading New Year Safety Plea
Portable C++ on Windows: Part 2 – Libraries
In the previous post in my series on Portable C++ on Windows, Compilers and Command Lines, we walked through the steps required to set yourself up with a windows-based C++ development environment which doesn't rely on the Microsoft platform. We walked through getting set up with MinGW (GCC for Windows), MinGW-MSYS (BASH for Windows) and … Continue reading Portable C++ on Windows: Part 2 – Libraries
Top Three Rules for XML
Aside from standard things like using well-formed XML, I have three rules which I think will smooth your use of XML in your applications. 1. Use an XML Schema Always define a schema for your XML document, using XSD and make sure your code is validating against it. Most (half)decent XML libraries will validate against … Continue reading Top Three Rules for XML
Using XPath with a default namespace in .NET 2.0
I have recently been writing an assembly which facilitates automatic deployment of K2.Net 2003 workflows. The assembly reads in a configuration file and deploys the workflows as specified in the configuration file. Also, rather than writing any custom code to validate the XML, I decided to use an XML Schema Definition, mainly because it saves … Continue reading Using XPath with a default namespace in .NET 2.0
C# Developers: Comment your code!
I was just thinking how easy it is to tag all of your code with the essential metadata it needs: What does it do? What are the inputs? What are the outputs? Now we can, of course, put in plenty more metadata, such as general remarks, what exceptions are thrown, examples of how to use … Continue reading C# Developers: Comment your code!
Portable C++ on Windows: Part 1 – Compilers and Command Lines
Danushka and I decided to start a new game engine, and this time portability and simplicity are our two major concerns. The portability is mainly because Danu wants to use linux, and I don't. Even if we were't going for portability, we would probably still try to use open tools like Eclipse CDT because the Eclipse … Continue reading Portable C++ on Windows: Part 1 – Compilers and Command Lines
John Resig Micro-Template script
I have been doing a bit of AJAX-enabled web development today and was directed to a blog post by John Resig (the creator of jQuery) detailing a very simple piece of javascript he uses for templating. It is very, very cool, and oh so simple to use. I will probably begin to use this more … Continue reading John Resig Micro-Template script
Blog theme fixed
Having found that my theme rendered differently (and somewhat horribly) on each different browser I have updated it so that it now renders exactly the same on the following platforms and browsers: Windows: Explorer 7 Firefox 3 Safari 3 Chrome Mac OS Leopard: Firefox 3 Safari 3 This is mostly thanks to Eric Meyer's CSS … Continue reading Blog theme fixed
Fun and Games 72 Feet Up
Yesterday evening we put a new halyard into the mast, after having to do a 'Samurai Drop' during the Coastal Classic , and it proved to be slightly more challenging than we thought it would be. We had a metre of chain, followed by a thin rope to thread through the mast, which we then inteded … Continue reading Fun and Games 72 Feet Up
ADODB.Command error ‘800a0cc1’
I recently got this error message in an application at work: ADODB.Command error '800a0cc1' Item cannot be found in the collection corresponding to the requested name or ordinal. The explanation you will often receive about this error is that you are trying to access a data item that does not exist - typically, they'll say, … Continue reading ADODB.Command error ‘800a0cc1’