Tech and travel

Posts

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

Firenze

2006-09-30

Some pictures of a trip to Firenze, Siena and Pisa.

The Duomo, hard to get on a picture, very narrow streets all around it

The Duomo, hard to get on a picture, very narrow streets all around it

Copyright (c) 2025 Michel Hollands