Made pumpkin bread

Blog

Made pumpkin bread today. I used the whisk that works best for non-stick surfaces.

Unfortunately, it doesn't really wear well.

That whisk is about seven years old. It probably won't see eight.

Slightly related: happy dog!

Sad

Blog

There are moments when I sit here in Dad's kitchen, laptop in front of me, refrigerator humming along, clock ticking above my head, my back tired from sitting here for hours trying to finish a task, launch some site, finish something for a client or a my own project, something that was very important, so important, and I'm overwhelmed with the realization that, yeah, I'm going to die, and statistically speaking, I'm half way to that end.

I think of some of the things that I'm not going to do, and am sad at the thoughts of the activities I thought so important that I wasted my time on them, when they really weren't that important.

I think of some of the things that I just needed to have, and am sad that I thought that thing was so important that I wasted my money, which is just an exchange for my time, on them, when they really weren't that important.

I think of some of the things that really are worth my time, and am sad that I didn't realize how important they are to me, and that I was too scared to try when I had a chance.

I sit here, and cry at the loss of that time and the missed and dismissed opportunities.

I miss my friends. I miss the communal dinners. I miss the games nights. I miss the games nights when I could actually play the games. I miss the mountains. I miss the casual ease of friends walking into the house. I miss the ultimate games, the sidelines, the exhaustion, the car rides, the plane trips, the new places, the old places comfortable after annual tournaments.

I miss, well, I miss my old life.

And as much as I know that the new stuff is going to be awesome, during these moments, I mourn the loss of the old, and really hope that I haven't hit the half way point yet.

Hand update, day 5

Blog

Whelp, fifth day after I opened up my hand, and it seems to have healed over by at least a layer of skin. I'm a little weirded out by this, as I'd rather it heals from the inside out than the outside in, but, well, not bleeding is a good place to be.

What my dad REALLY thinks

Blog

Yep, this pretty much sums up what my dad thinks about my picture taking habits.

Prevent multiple form submits with jQuery in webkit/chrome

Blog

Okay, so, you don't want to submit a form twice. While there are server side ways to prevent a form from being accepted twice, it's nice to prevent the need with a little client-side prevention, too. Better user experience, as a bonus.

Using jQuery, you could do this:

  $(".class-on-my-submit-button").click(
    function(e) { 
        $(this).attr('disabled', 'disabled');
    }
    );

The problem with this is that the disabled attribute on the button prevents the form from submitting at all in webkit browsers: Chrome and Safari (ref: http://www.google.com/support/forum/p/Chrome/thread?tid=152f74d4890dc84f&hl=en)

Instead, add a class and check for the class' existence to determine if the form should submit or not.

$(".class-around-each-form form").submit(function(e) {
        if ($(this).hasClass('my-disabled-class')) { e.preventDefault(); return false; }
        $(this).addClass('my-disabled-class');
        return true;
        });

I have a div with a class named .class-around-each-form around each form on a particular page, a quirk specific to my set up. You could use $("form").submit(...) also.

Stupid simple and frustrating if you didn't realize its need, or didn't test on all the browsers.

Pages