Ben and Justine Rugers (of XSight) have uploaded their slideshow of some of their photos from our big day :-)

The photos are amazing and that song is amazing!



Dec 13

In PHP there are two kinds of `for` loops: `for` and `foreach`. Something that has bothered me for a while is that whenever I wanted to iterate over an array while modifying the array items I had to use the ugly form of the for loop. This meant that I was introducing another variable to the mix just for the sake of accessing array items by index.

I discovered recently though, that you don't have to do it this way. All you have to do is get the reference to the array item:

$array = array('   test   ', '  items', '  with spaces ');

// this won't do anything
foreach ($array as $value) {
    $value = trim($value);
}

// note the '&' for reference
foreach ($array as &$value) {
    $value = trim($value);
}

// array items will now be trimmed
// array = ['test', 'items', 'with spaces']



As obvious as it seems now, I am amazed at how many people didn't know that it could be done and still use the messy form of `for`.

Dec 7

Married!

0 comments 

published 4:00pm in general

My recent lack of posts has been for a good reason. In the past month Kristen and I had been finalising everything for our wedding :-D. I am thrilled to say that, as of yesterday at around 3:15pm, I can now call Kristen my wife.

Everything went precisely to plan - even the weather held off until we were safely inside of the reception venue. Thanks to the awesome talents of Ben and Justine Rugers we have some pretty sexy professional photos from the day.

Nov 6

The world has lost one of the greatest writers of all time. Michael Crichton sadly passed away on Tuesday after a difficult battle with cancer. Crichton's books were enjoyed by everyone and will continue to entertain countless generations to come.

He is easily my favourite author, as can be seen from my list of top books of all time (taken from my Facebook profile):

  • Jurassic Park (and The Lost World too)
  • Timeline
  • Prey
  • Next


He will be missed :-(.

Isn't he cute?



He was drawn using Inkscape for the purpose of my iPhone having a new wallpaper :-P. Visit my Deviant Art profile for the full version.

I find the little chat application that sits in the Facebook status bar pretty handy for sending quick messages to buddies who are online when I am. If you're a user of Pidgin like me you might like the idea of being able to use the Facebook chat service from within Pidgin (keeping all your IM accounts in one place :-D). Awesomely enough, you can do just that. All you have to do is grab the Facebook Chat for Pidgin plugin:

wget http://pidgin-facebookchat.googlecode.com/files/pidgin-facebookchat-1.38.deb

Once that has finished downloading you can then do:

sudo dpkg -i pidgin-facebookchat-1.38.deb

Now a bit of tidying up:

rm pidgin-facebookchat-1.38.deb

After you restart Pidgin you will have a Facebook option in your Add Account dialog.



Done and done ;-).

After having a look around the Internet at some of the reviews for various iPhone applications available I began wondering how they managed to snap screenshots of the apps. I knew it had to be part of the iPhone Operating System because it would need to be available to any application.

After a quick hunt around I discovered that pressing the Home button and the Standby button at the same time you get a screenshot taken (including a flash of white and the camera shutter noise). Your new image can then be found in the Camera Roll in the Photos application.

Here is an example screenshot that I took of my home screen:

Oct 23

Our Engagement Shoot

1 comment 

published 10:00pm in general, photos

It's about 43 days until Kristen and I get married. Time is flying. We had our engagement shoot back on the 12th with Ben Rugers and have just got some of them back. Ben did an awesome job. The photos came out great :-D.


Photo by Ben Rugers

I seem to be getting photographed a lot recently...


Photo by Keith Rowell

Who's that stranger riding his bike along that artistic looking street?

A few days ago I managed to get into one of the photos for Project 365. The collection is being photographed by the legendary Keith Rowell. For the project Keith must take a new photo every day for a whole year. I might be a little biased but I think this is the best photo yet :-P.

Oct 11

Still loving the iPhone

3 comments 

published 8:30pm in iphone



It has almost been a week since I got my iPhone and the novelty still hasn't worn off; the device is just too useful :-P.

Just the other night I was getting coffee with Kristen and some friends when we were wondering where the term Spider (as in the drink) came from. Out came the iPhone and Wikipedia with it. Curiosity quenched.

Few things compare in everyday utility to having the Internet in your pocket.