Archive for March 2009

My Cubicle Desktop March 26th, 2009

Some of the highlights: Left 2 windows are a windows XP machine Middle computer is MacBook Pro, my main machine.  I control the windows XP machine from this using Synergy.  (a Great! tool) Right most monitor is just a spare connected to the laptop to give me some more monitor real estate. I often use [...]

Using is_numeric() instead of is_int() for request vars in PHP

So, I finished pulling my hair out trying to debug why is_int wasn’t correctly checking some request vars i was passing via a form.  The php code was checking if( is_int( $_REQUEST['var'] ) ) { //do something } And always failed even if the var was an actual integer.  Unfortunately it seems that PHP interprets [...]

How I Lost 20 Lbs. in 7 Months – in 3 Easy Steps.

Since I began tracking my weight at gyminee.com, I’ve lost 20 lbs.  Here’s what I believe to be the top most important changes I made to see this weight change. Tracking what I eat.  Something that really helped me when I started out was tracking everything I eat, and the caloric and nutritional value.  I use www.gyminee.com to [...]

Using Growl for Entourage Notifications

Download and install growl. Copy/Paste this Script into AppleScript: tell application “GrowlHelperApp” set the allNotificationsList to {“New Mail”} set the enabledNotificationsList to {“New Mail”} register as application ¬ “Entourage” all notifications allNotificationsList ¬ default notifications enabledNotificationsList ¬ icon of application “Microsoft Entourage” end tell tell application “Microsoft Entourage” set theMessages to the current messages end [...]

A Good Walk To Clear The Head

I’ve realized today that I need a good mid-day walk to really clear my head, and keep up my focus.  Today I went for a small walk around 3:30, which didn’t work too well, because by the time I got back to the office, it was almost time to go.  But, I had a renewed [...]