Archive for the ‘Code’ Category

New learning series

I’ve decided to pick up Scala and in order to learn the language I’m going to do the good old exercise: create a blog. As always with these things: no, I have absolutely no interest in adding blog app to this world, nor do I want to create my own blog app that I’ll need [...]

Read the rest of this entry »

IE9 blues

Today I had to deal with a weird bug in a site I was updating. As it mimicked a bug I had fixed earlier for IE6 I assumed it would be the same thing, but no – something quite different was wrong. In essence the problem was that I had created a button with some [...]

Read the rest of this entry »

Dependency injection and Zend Framework

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 »

Sorting algorithms: Heap sort

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 »

Awesome Command-fu

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 »