Batteries included

The imports of a current project at work: $ grep -h import *.py|sort -u from __future__ import with_statement from cStringIO import StringIO from ftplib import FTP from xml.etree import ElementTree import ConfigParser import csv import glob import logging, logging.handlers import os import sys import time import traceback import zipfile Small program (500 lines, w/o empty lines and comments), but a lot of things get done. You don't have to download and install a single additional library for this....

2008-03-28 18:58:00Z · Last edited: 2009-08-27 20:04:52Z

Userstyle to mark NSFW links on reddit.com's front-page

Since the big normalization on reddit.com, there are complaints about the links to posts from the NSFW subreddit. People don't want to click on such links when they are at work. Bare breasts can cost you your job at some places. NSFW = Not Safe For Work I posted a userstyle called "Mark NSFW links on reddit.com" to make those links a bit more visible. The code: @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("reddit....

2008-03-23 11:08:00Z · Last edited: 2009-08-27 20:04:52Z

Random password generator for pronounceable passwords

Can't think of any good password? Just generate a random one. Random Password Generator gives you a pronounceable password. Easy to remember.

2008-03-19 20:35:00Z · Last edited: 2009-08-27 20:04:52Z

Web Developer extension now supports Firefox 3

Good news everyone! Web Developer now supports Firefox 3. See the history and announcement.

2008-03-18 08:16:00Z · Last edited: 2009-08-27 20:04:52Z

"\'" in PHP

$ cat test.php <?php $string = "O\'Reilly"; echo $string, "\n"; ?> $ php test.php O\'Reilly That's documented but not expected. Languages like Perl, Python, Ruby, Common Lisp, C, Scheme, OCaml, Erlang, Haskell, Tcl, JavaScript, etc. print the expected "O'Reilly". One small stone you can stumble on.

2008-03-13 12:15:00Z · Last edited: 2009-08-27 20:04:52Z

Common Lisp gives Perl 6 wings

See Perl 6 to machine code via Common Lisp and sbcl: KindaPerl6 is a self-compiling compiler written in a subset of Perl 6 with support for multiple emitter backends. [...] now the Common Lisp backend is getting up to speed.

2007-09-23 20:08:00Z · Last edited: 2009-08-27 19:32:05Z

Migrating Python 2.4 to 2.5 isn't always fun

$ python Python 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import StringIO >>> x = StringIO.StringIO(u"m\xf6p") >>> import cStringIO >>> x = cStringIO.StringIO(u"m\xf6p") >>> $ python2.5 Python 2.5 (release25-maint, Dec 9 2006, 14:35:53) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import StringIO >>> x = StringIO....

2007-07-26 12:37:00Z · Last edited: 2009-08-27 20:04:52Z

How to install SBCL on MacOS X

$ sudo port install sbcl (You need MacPorts for this, of course.)

2007-06-03 14:12:00Z · Last edited: 2009-08-27 19:34:10Z

Everybody talks about Arc again

Arc walks the blogosphere again. The LtU article and comments on programming.reddit.com show that there's still some interest in the topic. Although we have all waited a very long time. Arc currently powers a spam-filter and Y Combinator's Startup News, some kind of reddit.com clone. John Wiseman says "I used to think people working on new Lisp-like languages were misguided, but after internalizing the idea that Common Lisp is static, and therefore dead, I'm a lot more sympathetic....

2007-04-26 20:03:00Z · Last edited: 2009-08-27 19:40:56Z

Hide my date

After a funny Gentoo update: $ date bash: /usr/bin/date: No such file or directory $ date bash: /usr/bin/date: No such file or directory $ hash -r $ date Mon Mar 26 00:21:33 CEST 2007 $ which date /bin/date

2007-03-26 01:24:00Z · Last edited: 2009-08-27 20:04:52Z