Tim Keller

Web, IT, Telecoms, Development, Networks, Photography, Life.

Archive for the ‘Uncategorized’ Category

Prince Forlan Charming

without comments

I knew I’d seen Forlan somewhere before!

Posted via email from Tim Keller’s Posterous

Written by Tim Keller

July 10th, 2010 at 9:09 pm

Posted in Uncategorized

PHP Variable variables

without comments

A seldom used, but incredibly useful, aspect of PHP is the ability to reference variables by name, based on the contents of a variable. Don’t worry if that sentence didn’t make sense to you. Let’s see an example:

$a = "hello";       // $a is "hello"
$$a = "world";    // Now $hello = "world"
echo "$a ${$a}"   // outputs "hello world"
echo "$a $hello" // also ouptuts "hello world"

This is useful in the situation that you need to access an object class variable at runtime. Let’s say we have three class variables:

$this->cycle_1_mark
$this->cycle_2_mark
$this->cycle_3_mark

At runtime, we have a variable $semester which holds the current semester. To it access it, we do something like:

$myObject = new Object();
echo $myObject->{"cycle_$semester_mark"};  // outputs the value for the substituted class variable

More on PHP.net:Variable Variables.

Written by Tim Keller

May 5th, 2010 at 6:57 pm

Posted in Uncategorized

The best summer ever!

without comments

This summer has got to be the very best ever! Here are links to some of my photos. Enjoy!

Amy and I get engaged

Christmas Celebration

Written by Tim Keller

January 7th, 2009 at 7:34 pm

Posted in Uncategorized

Stephen Fry on GNU

without comments

Written by Tim Keller

November 16th, 2008 at 6:08 pm

Posted in Uncategorized

Congratulations Barack Obama!

without comments



Congratulations Barack Obama!

Written by Tim Keller

November 6th, 2008 at 3:00 am

Posted in Uncategorized

President-elect, Barack Obama’s acceptance speech

without comments

Written by Tim Keller

November 5th, 2008 at 3:20 am

Posted in Uncategorized

Joe the Plumber and McCain’s daughter

without comments

What did Joe the Plumber just say to Meghan McCain?

Written by Tim Keller

November 5th, 2008 at 3:19 am

Posted in Uncategorized

Please vote for Obama posted to 12seconds.tv

without comments

Written by Tim Keller

November 4th, 2008 at 9:25 am

Posted in Uncategorized

Things I want to play with after exams

without comments

  • Firebird Database
  • OpenAFS (Andrew FileSystem)
  • eJabberd
  • Ruby
  • Mechanize
  • Rsync and RSnapshot
  • MySQL Replication

Written by Tim Keller

November 2nd, 2008 at 7:08 am

Posted in Uncategorized

Windows 7

without comments

For the first time in years I think I may be excited about Windows (in particular Windows 7). Until I get some time to do my own review of the M3 pre-beta, here are links to some of my favourite links.

Written by Tim Keller

October 29th, 2008 at 7:31 am

Posted in Uncategorized