model view controller pattern

I’m still working away at a registration process using the MVC pattern. It’s coming along very nicely in fact! Here’s an article describing it in some depth.
I’ve hijacked the idea somewhat for my project. I have one controller, and multiple views/models. There’s one model and view for each page. The view is split between PHP code and Smarty templates. The PHP code doesn’t do much beyond assigning variables for the Smarty templates but I wouldn’t put those assign calls into the model, as then the model would have to know about Smarty. This makes it easy to figure out where something is going wrong, and where I need to _put_ code.
How many of you have “super” classes with thousands of lines of code? That sucks for maintainability.
While some of the Java examples I’ve seen redirect the browser to the new view, I simply unset the old model and view and create the new model and view. The single solitary display() call at the end of the controller takes care of displaying whatever view is active!
Must post some example PHP code later.

Max Payne – Hero

As featured on slashdot already, this movie is excellent. If you’ve ever played Max Payne you’ll really like this movie. If you haven’t, you’ll still like it!
On a side note, the fileshack registration process is quite nice, enter a username and email address, hit submit, then click on the link they send to enter your password. hmm… 🙂

SCO – modem configuration

I know a hell of a lot more now about SCO than I did 24 hours ago. I know all about “Modem Manager”, /usr/lib/uucp/Devices and /usr/lib/uucp/Dialers – Argh! It’s so archaic! For those of you in the Windows world, imagine having to debug or use a Windows 3.1 application. That’s what SCO looked and felt like compared to the modern Linux systems I use everyday. Even a 4 year old Linux box is friendlier to the developer/user.
Finally, thank you Google for finding most of the information I needed. A few hints from a SCO applications developer in Dublin helped too. (“Have you tried 9600? Our modems have trouble connecting at different speeds” *ding*)
It was funny to see a Netscape icon on the desktop and ridiculous to see ncsa-httpd in the output of “ps”. Of course the guys in the office had no idea there was a webserver on the machine…
(Topic is Linux, close enough to Unix to not matter :P)

SCO Unix and PPP

<donncha> question… how hard d’you think it’d be to get dialup networking working on a SCO Unix box?
<pron> donncha: how long is a piece of string ?
<Baud> donncha: are you mad?
<pron> donncha: Seriously though … internal or external modem ?
<Zoso> donncha: dialup to or from the SCO box ?
<Baud> donncha: take a long period of time, double it, and it’ll be about a quarter of the time required
<Zoso> donncha: Well I’ve had to (i.e. not my choice) config & troubleshoot uucp dialup connections on SCO boxes 3 or 4 years ago and that certainly wasn’t fun
* elrond shudders at the very idea of trying to get a sco box doing PPP.
<pron> donncha: install Linux ?

Saddam's mouthpiece 'seeks surrender'

It looks like the Americans Won’t arrest Comical Ali!

US President George W Bush has admitted that he enjoyed Mr Sahhaf’s briefings so much that he used to interrupt some of his meetings just to watch him.

His son is working in Beaumont Hospital, Dublin, where he’s earned the nickname “Surgical Ali”.

‘My father is a good guy. He is a very friendly guy,’ he said. ‘He knows he is responsible for his own decisions but, as a father, he is a very good man.’

b2++ 0.5

New release last night! This one fixes more install bugs, adds plugin support and with the plugins I’ve been talking about here over the last few days! It’s probably better if you download the src and data packages, as there’s been a few updates to the templates. Go download it!