Javascript callbacks and the “this” object.

I spent hours and hours googling for this and the word “this” being a very common word made it impossible to find the answer.

The question was; how do I use the “this” context-object in my own callback function. It turns out it’s very simple, but the trick is, of course, to know the answer to know it’s simple.

Continue reading “Javascript callbacks and the “this” object.”

Sending mail from PHP with Mountain Lion

Mountain Lion killed – or rather: disabled – sendmail by default. Big deal? well, if you need to send mail from PHP in your local development environment, you’ll need to perform these few steps to get it working again.

Continue reading “Sending mail from PHP with Mountain Lion”