Monthly Archives: February 2008

MaintainScrollPositionOnPostBack

At work, I’m currently in the process of migrating a relatively large (~30,000 lines of code) ASP.NET 1.1 project over to 2.0. While doing this, I have picked up a few cool things in ASP.NET 2.0. One of these is the Page.MaintainScrollPositionOnPostBack property. Instead of trying to describe what it does, I’ll copy and paste [...]

reCAPTCHA and XHTML

I’ve been relying on reCAPTCHA using the official WordPress plugin to protect against spam on the blog for some time. All the while, I’ve just assumed whatever markup it spat out would be XHTML 1.0 Strict. Then yesterday, while tinkering with something unrelated, I decided to run the blog through the validator and noticed the [...]

TFOOT in the table header

Today was my first encounter with the HTML tag <tfoot>. It’s a tag that represents the footer of a table. There’s <thead> for the header and <tbody> for the, drum roll, body. I carefully constructed the markup for my PHP script that listed incoming orders in a e-commerce application. My plan was to sum up [...]

A decent torrent client for OS X

I hope the post heading didn’t deceive you. You see, there is no such thing. Lets see what our options are:
Azureus - the Windows Vista of torrent clients. This is what I use today. Every time I start it up, a piece of me dies. This thing has one thing going for it and a [...]

PHP eats my newline

Have a look at the PHP manual page on Instruction separation. In particular:
The closing tag for the block will include the immediately trailing newline if one is present.
What this means is that a newline character directly after the PHP end tag will be stripped out. Have a look at this code.
Line 1
<?php echo ‘Line 2′; [...]