A classic

(From CodeSOD: The Pyramid of Error)

if (error)
  if (fprintf(stderr,"An error occured while writing to the file")<0){
    if (fprintf(stderr,"An error occured while writing to stderr")<0){
      if (fprintf(stderr,"An error occured while writing to stderr")<0){
        if (fprintf(stderr,"An error occured while writing to stderr")<0){
          if (fprintf(stderr,"An error occured while writing to stderr")<0){
            return fprintf(stderr, "An error occured while writing to stderr");
            /* lets stop here, its enough */
          }
        }
      }
    }
  }

Death

My new bamboo shark died yesterday night. So too did my hawk fish that I sucked up when I siphoned my tank for the hypo treatment. This is very depressing. The whole reason I ordered the bigger tank was for the shark. To help keep the nitrates down. I guess we learn the hard way. Just because your aquarium is 6 months+ old does not mean you can add fish more quickly.

Holy crap!

http://www.dpreview.com/news/0703/07030805sigma200500mm.asp

And I thought my 70-200mm F2.8 Canon L lens was cool.... At least I can carry it ;)

Reef Aquarium Galleries

Check out my new Reef Aquarium Galleries. I will be regularly updating these galleries so be sure to visit regularly. Comment here if you have any opinions/suggestions. To access the galleries, you can always use the link at the top right of this blog.

.NET never ceases to amaze

http://support.microsoft.com/kb/810218

In essence - when you do a Server.Redirect("SomePage.aspx?SomeParam=SomeValue") .NET conveniently will make that SomeParam persisted over the subsequent requests - i.e. if SomePage.aspx contains a form to be submitted, that form's action will be rewritten to include this param. Neat? No! How do you clear a querystring parameter no longer used? You can't. At least not elegantly.

This is why I prefer J2EE - you have to work harder, but you almost never have to implement workarounds to work around unneeded high level features.