Stump of a Muffin

Month: December 2009

Alternating

There are dozens of ways to alternate.  The most common and visible is the background colour of your tabular data.  I use PHP to generate my HTML and the following are my two favourites: foreach( (array)$results AS $K => $V ) {$alt = ( $alt == ‘odd’ ) ? ‘even’ : ‘odd’ ;} This works…

TRIM and MySQL

Working on a wireless iPhone application right now.  With such limited ‘real estate’ for viewing on wireless devices I’ve decided to trim off the 3 zeros. I want $575,000 to show as 575.  At first I didn’t think this would be a big deal.  PHP has the nifty little substr() function and I was pretty…

More About Exercise

So, I only made it to the gym once last week.  But!  We did go out for a skate three times.  The last outing was for a game of shinny.  Seven guys showed up.  What a blast.  I have the bruises to prove. This week I made it four times.  Only twice did I work…

Last Week

I’m not really sure why I feel compelled to report this kind of activity.  Maybe it has to do with my hope to finally come through and lose some weight – get healthy again. Made it to the gym twice last week.  Once so far this week. We went for a skate yesterday on the…

Ice

I have a friend is who passionate about ice.  Living in Victoria ice on a pond or otherwise is a rare occurrence. His love for hockey in the outdoors is best shared with the following observation: Someone has smashed big rocks through the ice.  Why would they do that?  Think they’re doing it ’cause they…