1:19, Monday July 14th, 2003 • feeling relaxed • no comments
Been doing a load more Hype hacking. I've now got the new user signup process finished. This verifies you via email and is a bit more involved and sensible that the last version. It's good. It required more in the way of framework. I slightly reshaped the Controller object to allow an arbitrary set of parameters to be passed slash delimited on the request path. The argument parts are then separated from the URL part and passed into the view class as an array. This means the view doesn't need to know how deep it is into the "folder" hierarchy for it to access it's arguments.
It's getting a touch slow though so I decided to look into profiling. I found this article at OnLamp.com which describes the very useful Benchmark_Timer class, which is part of PEAR. I quickly got the output from Benchmark_Timer into CSV format and I'm now graphing it in Excel. Job's a good 'un.
It looks like too much time is being spent on the getLinks() function from DataObjects. Whilst DO is a great framework, I did have a suspicion it wouldn't be the fastest thing ever. I suspect each getLinks() call results in a DB query. As getLinks() is run once per message displayed, ouch! There are ways to optimise though, even if it means going back to using a join for the core loops.
2:46, Friday July 11th, 2003 • feeling enthusiastic • no comments
Been doing some work on the new new Hype codebase tonight. As of this afternoon we had messages coming from the DB. Now we have posting, logging in and out, setting permanent logins and a bunch more background support framework. Only another 25 years until release!
I made Toad in the hole! This is the first time I've made batter. Hell, it's the first time I've used flour as an ingredient. I started late so it didn't really have time to cook all the way through. It was a bit eggy still at the bottom, but it was perfectly edible. More the batter equivalent of al dente than undercooked.
The batter had Thyme, the sausages Rosemary. It was quite a herby number. It was fit and most filling. Mmmm, good.
Mat shipped me his mixer. It's a Vestax PMC-05 Pro II and it beats the pants out of my old one. The crossfader was so shagged on it as to be useless (leaky on both sides) even if you could muster the strength to push it across. Still them days is gone and now I can chop to my heart's content. Thanks Mat!
Louise and I went shopping yesterday. We don't shop really. I buy stuff compulsively night and day but online mostly. Louise doesn't shop because she has very little spending money. As I've been bringing in a fair amount recently I gave her an allowance and demanded she buy clothes. She bought a nice cream linen suit and a lovely pink top and some other bits. Job well done. I also wanted to buy some clothes, but no where has trousers baggy enough for me any more, :-(.
I'm going to get some new glasses soon as well. I went into a store to try some frames and a sales guy asked me what I was looking for. "Something a bit more up to date" I replied. He turned to Louise and joked "I'm glad he said that and not me!" I took it in good humour, but it confirmed my hunch that it's seriously time to upgrade. I went into Vision Express on Oxford Street expecting usual high street opticians fare. No, it's designer boutique central. I'm going to get some superfly George Clooney sunglasses I reckon. I'm sick of the fashion dark ages, where's my wallet..?
I got a Bluetooth dongle today. It's neat, installation was a case of sticking it in the USB port. My new phone (Sony Ericsson T610) has Bluetooth. It and the Mac totally love each other:
iSync merged my calendars and contacts seemlessly
System Prefs picked up on the phone for use as a network interface
With the Salling Clicker, I can remote control Mac apps through Applescript. It can detect when I go out of range and perform any action then
I can transfer sounds, themes and wallpapers on to the phone easily. I haven't opened Photoshop yet, but I will.
Ahh, life is good.
I'm currently listening to all my MP3's that have the word fuck in the title. About two and a half hours worth, heavily beefed up by two Chris LIberator mixes, one called Clusterfuck and the other called It's Fuckin' 'Avin It.