Friday, June 12, 2009

Default values skew data

In Raymond Chen's brilliantly diverse blog The Old New Thing, he asks:

Why are so many fake LiveJournal blogs written by 29-year-olds?

The answer probably lies in default values for datetime variables: January 1, 1980 is the "year zero" for DOS date/time values, and - lo and behold - anyone born on that date is 29 years old in 2009.

Wednesday, June 10, 2009

LightWindow - an excellent LightBox implementation

LightWindow is perhaps one of the best of the LightBox-type implementations around, supporting almost every media type currently in use.

screenshot

I found a few gotchas, but these were very minor:

  1. needs XHTML pages with correct DOCTYPE for it work in IE
  2. Might need to edit lightwindow.js to correct the hardcoded paths to the skin elements
  3. Replace the first line with the second in the HTML HEAD:
    1. <script type="text/javascript" src="javascript/scriptaculous.js?load=effects"></script>
    2. <script type="text/javascript" src="javascript/effects.js"></script>

You can grab the files here: http://www.stickmanlabs.com/lightwindow/lightwindow.zip