December 2005 Archives

This Site Crashed Cynthia Too

  • posted: 05 Dec 2005

Well, three strikes and you're out. The accessibility checker commonly referred to as Cynthia, I discovered, also caused my site to return the beguiling Server Error 500 message.

The Switch to application/xhtml+xml was an interesting experiment but enough is enough. IIS is just not liking some of the browser interactions so until I figure out what is going on with these Server 500 errors, I'm falling back to html/text.

more...

Attacking URL Cruft

  • posted: 07 Dec 2005

I think one of the things I want to do before releasing a v1 of Vine Type is to attack the cruft in URLs. Cruft, for Vine Type, are all of the %20s that appear in the address bar when spaces exist in section names.

Advantages of cruft reduction are

  • more readable
  • easier to type in
  • more useable
  • friendlier to search engine bots.
more...

Poor Man's Logger

  • posted: 09 Dec 2005

I saw a coworker use this technique the other day and thought it clever. I'm sure he's not the first to use it, but it can come in handy especially in static functions without a formal logger.

This C# code will generate null files in your "temp" directory. The filenames will be sequenced based on a timestamp at the front, then the information you're tracking behind.

The Regex.Replace is necessary to weed out the characters that Windows does not allow in filenames, and the length check keeps filenames under 255 characters.

more...

Comments

SubSections

Recently

Archives

2010

2008

2007

2006

2005