Thursday, October 23, 2008

I Kicked a Squirrel

Last week, I was jumping down some stairs and a squirrel darted across my path too fast for me to avoid giving it a nudge with my foot.  It was the softest cutest (and only) thing I've ever kicked in the ribs.  I was so excited I immediately called my wife who told me a squirrel once ran into her while she was standing still at a bus stop. 

Thursday, October 16, 2008

Adding thead to a Table Generated with ASP Datagrid using jQuery

Datagrid doesn't let you insert thead, tbody, or tfoot into your html. I wanted to scroll the table body and not the head using this plugin.

jQuery("document").ready( function() {

//Make the table scroll with the header/footer stuck in place
var mytable = jQuery("#myTableID"); var h = mytable.height();
//Add the thead that datagrid omits:
//Move the first row from tbody to thead:
jQuery("#myTableID thead").append(jQuery("#myTableID tbody tr:eq(0)"));
mytable.Scrollable(400 < h ? 400 : h, ct.width() + 30);

If you have multiple header rows, just rerun the append line unmodified as many times as you have rows.

Wednesday, October 01, 2008


I am slow and hurting.
Ran a 5 miler this past Sunday in 40:07, clock time 40:29.
Ran a half marathon A week before that in 2:07:58.
And I don't expect to do a whole lot better in the Army Ten Miler on Sunday since I'm sick with a crappy cold and haven't run much this week.  My coworkers didn't even manage to register on time so I don't have the motivation of competition going for me either.  At least I beat them all in the Navy 5 Miler.