Skip to content

Monthly Archives: March 2008

New York

I spent a few days in New York. Here are the pictures :

Sqlite with Python

Python 2.5 has a SQLite library. The documentation says it best what this can be used for :

SQLite is a C library that provides a lightweight disk-based database
that doesn’t require a separate server process and allows accessing
the database using a nonstandard variant of the SQL query language.
Some [...]

A one line webserver

Python has a built in webserver, that shows the contents of the directory it’s started in. Here’s how you run it :

python -c "from SimpleHTTPServer import test; test()"

This is invaluable if you have to copy some files across to another machine. It won’t work across the internet, but on a local network it [...]