Rediscovering closures and nested functions

When you’ve spent years coding pretty much everything in Java, it’s hard to break out of the Java way of doing things. It means that you tend to forget that other languages might have things called closures, for example. Here’s how a closure looks in Python: lambda x:dosomethingto(x,anothervariable) The neat thing is that this closure Read more about Rediscovering closures and nested functions[…]

Mod_python for the Mac

In case anyone’s interested, I’m making available a pre-built universal binary of mod_python 3.3.1 for Apache 2.2.8. I’m running Mac OS X Leopard 10.5.2 and Python 2.5.1. The DMG contains an installer package, and it will try to install mod_python to /usr/libexec/apache2, which is where the other apache modules are usually located. Use at your Read more about Mod_python for the Mac[…]

The Book Depository

Karen came across a fantastic online book store called The Book Depository. Its prices are highly competitive. But the best part is that they offer free shipping worldwide. We’ve already ordered five books from them: That’s Not My Puppy; That’s Not My Lion; Dear Zoo; The Art of the Start; and Programming Collective Intelligence. They Read more about The Book Depository[…]