Blog
Fixing out of sequence timestamps
I maintain a small open source project that helps test log message . Part of this is that each log message has a sequence number and timestamp attached to it....
Markdown Test Page
A sample page with the most common elements of an article, including headings, paragraphs, lists, and images. Use it as a starting point for applying your own styles.
Express for node.js – View Engines
In the last post, Express Hello World , I talked about getting started with an Express application in Node.js. In it, the output was rendered by writing HTML...
A fantastic cartoon on SQL Injection Attacks
Just in time for the SQL Injection Attack micro presentation that I'm doing. From: xkcd.org Technorati Tags: SQL Injection Attack , cartoon , xkcd
Life Imitating Art
It looks like life imitates art. A few weeks ago the following comic was published on xkcd: And then shortly afterwards the following appeared on eBay:...
How do you return error conditions?
A recent poll on Code Project asked: How do you return error conditions? I was disappointed to find that in the event of a "critical error that leaves the app...
How to ask a question
You may have noticed the odd rant now and again when I get frustrated at people on forums who need help but seem incapable of doing even the tiniest thing to...
Incoming!
As you know, I help out on forums from time-to-time... Well, a lot actually. But sometimes people just don't seem to want to give up...
Unit Testing a Static Class
I've been trying to find a way to unit test a static class. That is, a class that has no instances. The problem has been that at the end of one test the...
Test Driven Development By Example
Introduction A lot has been written on the subject of test driven development, and especially on the idea that tests ought to be written first. This is an...
An introduction to mock objects
Sometimes when you are unit testing you might get to a point where you say “That's too difficult to unit test so I'm just going to leave it”. This is where...
How to get a list of all subdirectories
This is an example of how to obtain a list of all subdirectories using a recursive method with the .NET Framework. public static List...
Why Do I Do It?
...'
Wading Through Someone Else's Source Code
If I see a question on a forum with a "small sample project" attached I'd ignore it. It is difficult enough to help people as it is without wading through tonnes of source code...'
Help me to help you! Help me to help you! Help me to help you!
I'm a fan of the comedy-drama show Scrubs and Dr. Cox repeatedly tells young Dr. Dorian 'Help me to help you!...'
Why Does No One Reply to My Question?
If people cannot help then they tend not to reply. This is not because they are not listening, but because they don't know the answer...'
A Bad Workman Blames Their Tools
I wish that some people, when asking questions on a forum, would look inwards for a moment and reflect whether they really understand before making unfounded bold statments...'
SQL Injection Attacks and Some Tips on How to Prevent Them
Introduction Security in software applications is an ever more important topic. In this article, I discuss various aspects of SQL Injection attacks, what to...
Passing Values Between Forms in .NET
Introduction I wrote this article in response to an almost overwhelming number of requests on forums on how to pass a variable from a one Windows Form to...
