John Hunt's web log | Open source, Linux, Developer tips, Beer, Whatever

Archive for July 2006

I’ve recently started using CakePHP, I don’t really understand it too well, but the first thing I noticed was that any static pages you have normally would go under www.site.com/pages. I thought ‘this sucks’, so I’ve made a very simple work-around, which isn’t great, but it seems to work.

The idea is that someone will go to www.site.com/something and then cake will look for the something controller, if it can’t find it, it will normally throw up an error. By altering this error page, we can get cake to do the pages controller action instead of the error one.

So what I did was add the file: views/errors/missing_controller.thtml which contains:

$this->requestAction('pages'.stripslashes($_SERVER['REQUEST_URI']));

That seemed to do it. Not elegant at all, I know, so if you find a nicer way of doing it, or write some nicer code, please give it to me and I’ll post it on here.

No tags

Jul/06

25

Server downtime

john-hunt.com has been down for the last 24 hours or so due to me messing around with it’s kernel when I shouldn’t have. Fortunately, I keep backups of everything so we’re back online!

I’ll be moving john-hunt.com to a server which I don’t tinker with soon, so it should never happen again with any luck!

No tags

Jul/06

11

Skype 1.3 Beta for Linux

Amazingly, the skype people have finally released a version of skype for linux that actually works. I thought I’d never see the day, but here it is. Yes, it’s still a beta, but a massive improvement on earlier versions which wern’t even worth bothering with!

Download Skype 1.3 Beta for Linux.

Finally, something we can use. Also, bear in mind skype is evil and shouldn’t be used regardless. Use a proper SIP phone and VOIP network.

No tags

Jul/06

3

eBay items for sale

Check out my new ebay items for sale section, it works via RSS so is always up to date. Bag yourself a bargain!!

No tags

Find it!

Theme Design by devolux.nh2.me