Posted in 2010/08/11 ¬ 12:52h.Peter
Lately I’ve been working on a site based on the Zend Framework. It’s been a good chance to get more intimate with ZF, learning the inner workings and quirks of the framework. Today I came across the question of how to do dependency injection for your controllers – I was looking for a way to [...]
Read the rest of this entry »
Posted in 2010/05/23 ¬ 16:09h.Peter
It’s been a while since I did the last post (merge sort) in my sorting algorithms in PHP series (new readers start with Sorting algorithms: bubblesort) so I thought it about time that I add the next part. This time I’m going for heap sort. This algorithm has some similarities with merge sort, mainly the [...]
Read the rest of this entry »
Posted in 2010/04/29 ¬ 11:10h.Peter
A good friend of mine mentioned that SSH supports escape sequences – something I had never thought of. Or rather, something I had wished for every time I’d been faced with a dead SSH connection. Turns out, you can easily close any SSH connection (dead or alive) by issuing the following sequence: <CR>~. The CR [...]
Read the rest of this entry »
Posted in 2010/04/08 ¬ 23:16h.Peter
Every once in a while I have to do some .htaccess rewriting and every time I end up deeply fascinated at the possibilities that it offers. This time round the situation was as follows: for a client we had done some advanced search functionality, which uses fairly detailed URLs to store the search (the search [...]
Read the rest of this entry »
Posted in 2010/03/22 ¬ 23:47h.Peter
A couple of days I was doing some work on BeWelcome, updating some code to fetch geo data from Geonames.org. Our old code had been using a mixture of a spaf maps class and php functions and trying to get it to work properly seemed to demand quite a bit of tinkering – plus, there [...]
Read the rest of this entry »