Category: Technical

  • Closing tag in XML

    I always wondered why they didn’t allow an optional closing tag of “</>” that would close the corresponding open tag. For example: <p>This is a string with something <b>bold</> in it.</p> where “</>” is closing the <b> tag. Or: <blah><bleh><blih><bloh>bluh</></></></> which is shorter than: <blah><bleh><blih><bloh>bluh</bloh></blih></bleh></blah> I fell it is a shortcut like the stand-alone tag…

  • How to create a Clojure application

    Update: this is not my preferred way to create a Clojure application and shouldn’t be yours either, check out Leiningen This is one of those posts that I publish partly for myself. And partly so people can criticize my way, which is also for myself, and only incidentally for others to learn from it. It…

  • Printing emails in Django

    When developing applications in Django, it may be nice to print emails instead of sending them. If you send them you have to be careful which addresses you use. Just being on the safe side and always using @example.{com,org,net} is not enough, you have to use an address you can actually retrieve emails for. And…

  • The single most important feature of Git

    My favorite versioning system was Darcs for a long time, but it didn’t really took off and a new competitor is taking off amazingly fast: Git. I believe the single most important feature of Git is to be able to clone (checkout in Subversion jargon) repositories from other systems, particularly SVN. That means that your…

  • Playing with Ruby

    This is a remake of Installing Rails 2 on Ubuntu but targeting Ruby in general and with some improvements. Essentially the same, actually, but more usable, at least for myself. Ubuntu, like many other free operating systems, have a beautiful package management system that will track what depends on what, what is installed, what is…

  • Pylons or Django?

    I am trying to decide whether to use Pylons or Django. Both are frameworks for building Python web applications, but with opposing philosophies. Django tries to be everything. It comes with its own ORM, its own template engine, its own everything. That gives you a nice developing experience because everything fits together and because very…

  • Io syntax highlighting in Kate

    After reading Io’s manual, I was really impressed. So I coded a Kate syntax highlighting for it. Of course it took me less than an hour (and I’ve had to relearn the syntax for Kate’s SH files). Here’s how it looks:

  • “Programming Languages: Application and Interpretation” now in paperback

    Programming Languages: Application and Interpretation, the best book I’ve found on creating your own programming language is now available in paperback. You can still get a free-of-cost copy of Programming Languages: Application and Interpretation at its original site. Actually, the book is now released under a Creative Common license, thank you Shriram! This is, actually,…

  • If you fancy Zope, on Ubuntu

    If you fancy Zope getting up and running on Ubuntu takes no time. Install in the usual simple and lovely way: sudo aptitude install zope3 and you’ll get Zope 3.3.1, and of course, all the dependencies. To create an instance run:

  • Installing Rails 2 on Ubuntu

    Ubuntu, like many other free operating systems, have a beautiful package management system that will track what depends on what, what is installed, what is not, what is not longer needed, which versions of each. If you tamper with it, you are asking for trouble. If you do a manual upgrade, from sources, eventually a…