Stump of a Muffin

Month: January 2010


I needed a way to trim the three left side characters.  I’ll save you the long boring story about why – here’s the how: SELECT LEFT( price , CHAR_LENGTH(  price ) -3  ) AS price FROM products This gave me 150 instead of 150000.

Alphabetize an Array

Reading a directory and putting the files found into an array shouldn’t be such a big deal, right?  How about alphabetizing that array? function read_a_directory( $DIR ) { if ( is_dir( $DIR ) ) { if ( $dh = opendir( $DIR ) ) { while ( ( $file = readdir( $dh ) ) !== false…

New Version Out

We launched the new version of Homeport today.  Thank goodness. Even as we launched it new ideas started coming in.  It is a fantastic experience when people actually use what you develop.  Then, along with that, they start sharing good ideas. A new version will probably be started on soon enough.  Before that I’d like…

Still Going

Well, I’m just as surprised as you are.  I’ve made it to the gym every business day this year.  I wont be entering the Mr Universe any time soon as I’ve simply been on the elliptical machine.  I’m up to 20 minutes each visit. The ‘crew’ have a new weigh-in day scheduled.  I’ll let you…

New Year Push

I made it to the gym four times last week. A fifth trip on Friday was just for a sauna. I also managed to Wii Fit each morning. Today I went as well. Hope I can keep it going! Note: I noticed they cleaned the hot tubs out. I’m still not going in. Ewww!