Skip to content

{ Author Archives }

Haskell and VIM

I had to tinker quite a bit before finding a decent configuration for vim to edit Haskell files. Here are the packages and config files I use: Haskell mode: interaction with Haddock, compiler integration, and other general settings. Indentation: proper source code indentation. More configs to enforce good style (no tabs, tabstops, etc.):  You can [...]

Tagged , ,

they broke delicious

the new redesign of delicious.com broke so many things, that I thought I had to take notes: bookmarklet in Chrome can’t be drag-n-dropped to the toolbar. its javascript code is also hard to copy and paste to create the bookmarklet “manually”. install links for the chrome and firefox extensions redirect to empty pages. documentation for developer [...]

Tagged

http client in haskell

To try to make sense of this, I decided to write a “simple” http client in Haskell in as many styles as I could think of: it’s a long time since I found so many new concepts while studying a new programming language…

Tagged , , ,

pylint.vim

vim + python + pylint is a powerful combination, especially when using this vim plugin. unfortunately, the script stopped working after a pylint upgrade: you can download the fixed version here! if interested, the patch looks like this:

Tagged , ,

md5 vs sha1 in python

If you are interested to know if the myth about MD5 being faster than SHA1 holds for Python, here is the result I got on my box: Result is: MD5 is faster, but only just, in Python 2.7.2. Considering that MD5 is broken, I think I’ll use SHA1…

Tagged , , , ,

sleepsort

to honor the funniest thread in months, here is a lisp implementation of sleepsort!

Tagged ,

Scappatella con Ryanair

Dal sito Ryanair.

javascript templating benchmark

there are many popular libraries to do templating in javascript. the most popular are: JQuery Template Pure Template Resig Template Trimpath Template JQote2 Template I decided to benchmark them, so I created a simple “hello world” test. you can find it here. as usual, the results are interesting. here are, on my box: Firefox 3.6 [...]

time to go home!

better go before I break it…

case sensitive Google search

Google does not support “case sensitive” searches (and here and here). it does seem to return slightly different results depending on the case of the search query, but if you are only interested in the exact “case sensitive” matches you’re on your own. to solve this problem, I’ve written a small JS snippet that shades [...]

Tagged , , , , , ,