by simon baird

Thursday, April 30, 2009

php stupidity

~> cat ~/stupid.php 

$foo = "hello";

if (isset($foo['somekey'])) {
        echo "php is stupid\n";
~> php stupid.php 
php is stupid

Look, I know it's probably doing a $foo[(int)'somekey'] which becomes $foo[0] which does exist. And I now know I should have done is_array($foo) &&... But I don't care right now. This has caused me pain! Boo and :P!!

Beware, my php coding friends.

The Middle East to support Okkervil River

3rd of May at the Zoo.

Thursday, April 23, 2009


Ubuntu: For Desktops, Servers, Netbooks and in the cloud

soon as in later today

Wednesday, April 22, 2009

The Rise of Casual Gaming, An Essay

Casual gaming was a term invented or at least favoured by so called 'hard core' gamers to disparagingly describe Wii Sports. A "casual gamer" was your like your middle aged Aunty. She probably wore Mom Jeans and enjoyed the 4:30pm buffet special and certainly had no idea who Link or Gordon Freeman were. Casual gaming was touted as a dire threat the future of "proper" games, games with a long, steep learning curve or a 300 page walk-through. Nintendo were making shed loads of money selling Wii Bowling to pensioners, so why would they bother investing the large amounts required to create the next Zelda. The idea has some merit perhaps but lets draw some comparisons to YouTube and the movie industry. Cinema fans aren't afraid that the rising popularity of YouTube will threaten the movie industry (at least not that I know of), so lets be optimistic that casual gaming won't wipe out non-casual gaming. In other words don't panic my gamer friends. And be open to the joys of casual gaming. Casual games and gamers are worthy of respect. Play Flight Control if you aren't convinced. Enjoy the fact that it cost you a dollar. Cheaper than a can of coke. Or try your favourite tower defense game on any platform or kill some zombies in Boxhead 2. And what about games like Katamari Damacy, Crazy Taxi? Are they not casual games? Pacman? Tetris? Nobi Nobi Boy? Casual gaming is on the rise. It's coming via Xbox Arcade, Playstion Network, Steam, AppStore, and flash gaming sites. And it doesn't even know where to buy Mom Jeans.

Flight Control for iPhone

I fall to pieces once the jumbos start coming. My top score is 42. There are people scoring 800+. Respect! They say over 200 it doesn't get harder. And they say you can multi-touch to direct more than one plane at a time.

Awesome game. AU$1.19. And it wouldn't work without a touch interface.

Monday, April 20, 2009

rsync grr...

From man rsync:

In particular, when transferring to Windows FAT filesystems which cannot
represent times with a 1 second resolution --modify-window=1 is useful.

So in summary, rsync is pretty close to COMPLETELY USELESS when the destination is a FAT filesystem... UNLESS you find this little note hidden in the man page and do --modify-window=1.

Well at least it's working now. And I'm not copying 180G to my poor usb drive each time I run rsync. So anyway, here is my solution for backing up my Macbook with rsync...



rsync -av \
    --delete \
    --delete-excluded \
    --modify-window=1 \
    --exclude '.Trash/*' \
    --exclude 'Downloads/*' \
    --exclude 'Torrents/*' \
    --exclude 'Library/Caches/*' \


echo Started $START
echo Ended $END

Disclaimer: This is very basic and I don't know much about rsync or Mac OS X. Please Google rsync backup for more expert advice.

To the rsync developers, I get it, I'm a big fat luser for using FAT. But do you think just maybe rsync could just possibly notice this condition and deal with it automatically? Perhaps even with a big warning, "WARNING, destination filesystem is FAT, automatically enabling --modify-window=1, please see man page". Maybe then I would have been asleep two hours ago which would have been very, very nice.

Wednesday, April 15, 2009

shannon finds the problem in his javascript

it was those darn bunnies! pesky little critters...

Friday, April 10, 2009

One of the good things about my new job

It's not quite as good as coffee from the shop. But it's almost as
good, it's free and it's help yourself. One button grinds, packs,
gives you coffee. Milk is harder: push button, turn knob on side, wait
a few seconds for steamer to be ready, dip tube in a milk. It sucks it
up and steamed milk comes out. When you have enough, push the button
again and it flushes the milk straw with hot water to rinse it. And
you're done.

Thursday, April 09, 2009


if you're like me at all you might enjoy this

it's a photo blog. don't worry, it is sfw.

Tuesday, April 07, 2009

and I think he will play solo material too...

AHAHAH. Sorry. I am a little incoherent. Gibber. I am excited.

Event: Simon & Garfunkel
Date: Wed 17 Jun 2009 8:00PM
Venue: Brisbane Entertainment Centre
        Melaleuca Drive
        Boondall QLD 4034

it's all happening at the zoo

do believe it, I do believe it's true


well if they are even half as good as leonard cohen was then it will be amazing. and he is seventy something.

Monday, April 06, 2009

have you seen team america?

"satellite launch vewy successful. oh yes. satellite up there wight now. i can see it. listen... [beep... beep... beep...] ...see? that was satellite. a vewy clear signal. big splash in ocean was whale i think. maybe couple of sharks."