Tech and travel

Posts

Little Ruby script for generating passwords

2007-03-14

Ruby is a scripting language, in the same league as Perl and Python. It is fully object-oriented, and comes batteries includes like Python, which means it comes with a full library installed by default. It is receiving a lot of attention these days due to the Ruby on Rails web application framework, which is indeed a very capable and surprisingly easy to use framework (probably more on this in a later article).

Processing PDFs with Python, the easy way

2007-03-14

Sometimes you get some PDF files, from which you have to extract some data. A handy way of doing this is using the pdftotext utility. Here I’ll show you how to use it, using Python. The easiest way to do this, is to put the pdftotext program in the directory where your script is or in the path. You can then call it on your file. This is the Python code : import subprocess subprocess.

About

2007-03-05

Hello, this is my blog. It’s basically just used to store code snippets so I can find them later on. The focus is definitely on techie stuff, although some travel posts will make it on here as well.

Thailand and Cambodia

2006-11-22

Some pictures of a trip to Bangkok and Hua Hin in Thailand and Angkor Wat in Cambodia

Angkor Wat at dawn

Angkor Wat at dawn

Inserting the current filename in Vim

2006-11-02

To insert the current file name in Vim, go to insert mode. Then type Control-R % . With Control-R you can do more things : Control-R =5*4 This inserts 20 into the current cursor position. Some examples can be found here

Copyright (c) 2025 Michel Hollands