Archive for August, 2007

Do you smell gas?

I'm officially declaring war on the squirrels which dance around my property. I have an '83 Chevrolet K5 Blazer which I use to haul junk around in and pull the trailer for mulch.  Last year they managed to chew a bit of the wiring out from underneath the hood.  No big harm there, since they chewed up the wiring for the AC compressor which doesn't work anymore.  Now, they have officially crossed the line. 

They managed to chew a bit of the rubber fuel line that connect the hard line to the fuel pump in the engine compartment.  Hooray for me since I find this out about 35 miles from home at a friends house.  I had gone over to Brandon's house to help out with a deck project and managed to spill a huge wad of gasoline in the street in front of his house.  His deck project got delayed for a few hours while we went to get parts and fix the leak.  I'm sure the homeowner's association is thrilled with my gift to his neighborhood.

So, I owe a big apology to Brandon for the trouble I caused.  Also, the squirrels jumping around the yard had better watch out; I'm coming for you.  

jQuery Grid Plugin

I've released a very basic grid plugin for the jQuery library. I'd like to see a unified effort to create a grid widget, so I'm throwing this out there as a starting point. I'd love to hear your feedback on this. So, please go to the page I've set up on this site here and see the demo and look at the code. Once you've done all of that, please comment this blog post or just shoot me an email via the Contact page.

.NET Rubyisms

I'm still really intrigued by these extension methods + lambda expressions. Check out the following snippet.

public static void times(this int i, Action a)
{
   for (int j = 0; j < i; j++)
      a(j);
}

Now I can replace a standard for loop

for(int i=0;i<10;i++){
   doSomething();
}

With this

10.times(i=>doSomething());

I'm not entirely sure how useful it is, but I'm still exploring the new features.