| 01/01/2010, 19:35 MVC

Welcome to the first live site to use the latest version of my own MVC (for use with Smarty) that is now successfully running on top of PHP 5.3.  Recent work on it has been a fun ride, driven mostly out of a desire to have controller classes whose names do not clash with those of auto-generated classes from PHP Doctrine. i.e. they would potentially still clash if it wasn't for namespaces :0]

Admittedly this wouldn't be such a large issue if the MVC supprorted internal URL re-routing but it doesn't.  This is due to a semi-conscious awareness that controllers should be thin, refactoring them never a big deal and because mod_rewrite is your friend. Anyway I'm hoping to finally get a release candidate for version 1 of the code up on GitHub over the next few weeks. Pretty nervous about any response I might get.

| 09/09/2009, 16:18 Perl 5 point 10 in layman terms

As a developer, one of the great things I love about Gentoo (Linux distribution with BSD 'ports-like' package management) is the feeling it gives you that eveything you do to your system has an undo button. (For the record, I have at least come to my senses about this need in a production situation.)  A great example of this is layman, which I think is fair to say is a slightly more intuitive version of managing an apt sources file.  Today I realised there is a portage overlay (for use with layman) that I have been missing out on and perhaps it's because it's a fairly recent addition but it comes just in time for me to try and get more serious about hacking in Perl.

With the perl-experimental overlay I anticipated the knock-on effect might be that I am no longer tempted to write a script for keeping my /etc/portage/package.keywords file sorted alphabetically automatically.  I was half-right (thanks to a useful awk command from the Gentoo wiki) but in the end this need paled in significance compared to the delights of coming across a more up-to-date utility for handling cpan builds and then ending up with a system for reliably predicting where generated ebuilds from this utility will land in the filesystem. Not that it matters that much, I suppose.

Read More...

| 04/09/2009, 9:47 Its pretty clear that soon everyone will be speaking XML

I'm going to be ordering 'XMPP: The Definitive Guide' today (ISBN 059652126X).  I have a project coming up which, fingers crossed, will be an ideal opportunity to become versed in this technology. I remember a few years ago, when I came across the Jabber project, I was really excited about it and started using the Exodus IM client all time. I even got my girlfriend (at the time) to register an account.  I also remember going to stpeter's website and taking pointers for creating a decent personal websites (which wasn't a blog).  I remember thinking this was eventually going to be *huge* and I'm kind of kicking myself now that it never occured to me, that like a lot exciting open source technology, people will eventually be adopting it without even know they're doing it, or at least not realising the significance of its openness.  Exciting times. Anyway enough with the jibber-jabber, apparently I have a 'decent read' to get through and this one isn't a Hermann Hesse novel.

| 02/09/2009, 13:28 Running a Symfony application from a directory

Step 1 - Install Symfony into your PHP library path:

# cd /usr/share/php
# wget http://www.symfony-project.org/get/symfony-stable.tgz
# gunzip symfony-stable.tgz ; tar -xvf symfony-stable.tar
# ln -s symfony-X/lib symfony
# mkdir data
# ln -s ../symfony-X/data data/symfony
# rm syfony-stable.tar

Step 2 - Within your Symfony app, edit the main 'settings.yml' file, create a symlink to 'sf' and ensure the cache directory is writable:

$ cd /var/www/localhost/htdocs/sf_app
$ echo "all:" >> config/settings.yml
$ echo " .settings" >> config/settings.yml
$ echo " relative_url_root: /sf_app/web" >> config/settings.yml
$ ln -s /usr/share/php/data/symfony/web/sf .
$ chmod -R 777 cache

And you're done.