Archive for September, 2005

Massive update 10

New Phone
I got a new Nokia 6320i from Gordo. I broke my old one when I dropped it into a pint of beer at my mum's 50th. If I'm rude and don't call you it might be because I don't have your number.

Vodaphone
To coincide with the new handset, Adam and I are now on Vodaphone. We have a cap which allows us to spend up to $500 on calls, and even though the call costs are more than I paid with Telstra, it's still a huge saving.

PSP
A few weeks back I bought a Sony PSP. I got Need for Speed with it, and because I registered it online, Sony sent me a copy of Spiderman 2 on UMD. The screen on the PSP is seriously amazing though it can be hard to see it in sunlight. It's gonna be great on aeroplane trips.

Nissan 350Z
Two weeks after securing finance the paperwork was finally finished and I got my new car. It's a silver 2003 model that's done 23,000kms and had a single female owner before me. It has just over 200kW and a 6 speed gear box, so it's pretty quick ;) Adam's getting one soon too, then we'll have some nice photos together. We got the car at the end of Friday, so it was great having it over the weekend.

Weekend Past
This weekend just gone was mental. It was a long weekend in Perth, so we had Monday off too. Friday night we saw Infusion play at the Ambar. Though they're great, I don't think I'll ever see a performance as good as their Sydney gig. Steve chipped my tooth with a beer bottle but Emma says it's nothing to worry about.

Saturday we saw the Eagles get beaten in the AFL Grand Final at our place. I still have Peter's projector (from mum's birthday) so we had the game on the big screen. Dad came down and watched the game, which was good. Saturday night I went to a party at Tommy's place with Mark and Gordon, Steve, Maggie and ofcourse Tommy. We got belted and had no sleep.

Sunday I saw Cindy and Shen for a little while and then went to Pride Fair. I missed my brother and Niko at the fair, but saw Mark and Gordon, Mark and Emma, Aaron, Timbo and Brad, as well as a few other people, including Brad (from 2600). We had a few more hours sleep than we intended which meant that we missed Drummatic Twins, but made it for The Freestylers and the DJ on outside before them. The Freestylers played what I thought was their best set ever - there was classic 'Stylers tunes, a 20 minute foray into Drum 'n' Bass and then a wrap up. Stacks of Pendulum tunes made me happy.

Weekend Future
I fly into Sydney this Friday afternoon for the weekend with Adam and Brad (two mates from 2600). We're going for RUXCON and should have a good time.

Update: 28/09/2005 10:48PM
Dan was at Pride Fair and I forgot to list him. You know how these princesses get... ;)
A single owner of a car is good. A female owner in her fifties is not likely to thrash a car. I think it's a good thing.
Nu-Mark was on before the Freestylers, and he was friggin' awesome.

Finally, a relief effort we can all get behind 0

Boobs 4 Bourbon St. is a website designed to spur peoples charitable side. Much like the Boobs for Kerry concept of last year, the organisers have thought that the best way to entice people to get behind their cause is to show them lots of tittes.

Don't forget to donate, and girls, you can always send in photos of yourselves to further the cause. If you really cared you would.

28 hours in a day 1

This looks promising.

Printing to Duke 2

The URL I need to point my printer to is: http://duke:631/printers/PhotoSmart-7660

Simple mod_rewrite rules 1

I'm in the process of writing both a new CMS and the framework to deliver it. From the outset we've wanted to use "nice" URLs, meaning that you won't see "index.php?c=something&id=12" in the log files, because that's not much use to the client. What we want is "some_page.html" showing up in the logs, so that when they use a statistics package they get meaningful data. I also want to have something like "/module/action/id" in the CMS, and hence the underlying framework. Ruby on Rails does this and I quite like it.

I knew that mod_rewrite was going to be the key, but I didn't know how easy it would be.

First step was to tell Apache that it was OK for me to have run-time configuration information in the .htaccess file. Within the "Directory" construct of the apache2.conf file (or the config file that you're including) enter the following:

AllowOverride All

Then I edited the .htaccess file in that direcroty and set a rewrite rule:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*).html index.php?page=$1

This says "if you get a request for any page that ends in .html, send the request to index.php and pass the bit before the .html extension as a parameter called page". The bits above it say that it's OK to follow symbolic links on the filesystem, and turn the rewrite engine on (allowing me to set rules).

I then made an index.php that dumped the variables for me to test:

<?php

    echo "This has worked: here are the GET<br/>";
    print_r($_GET);

?>

Then hit some_page.html and you'll see that the URL doesn't change in the browser but index.php is clearly called, and the variable is passed through. The log files show an access for some_page.html. The next step would be to add some smarts that checks a database for the associated content page. You could make it even smarter by including a filename and an ID field in the page name, like some_page.3.html.

Next Page »