Roland's homepage

My random knot in the Web

Older articles (4/10)

  1. foto4lb

    Update: The script now allows you to set the target width of the
    pictures using the -w command-line argument. The script is now compatible with both python2 and python3.

    Photos from modern digital cameras are generally so large these days that you have to shrink them to use them in ...

  2. make-mp3

    Update: This script is now compatible with both python 2 and python3.

    After writing the make-flac python script, I adapted a copy to use LAME to generate variable bitrate MP3 files instead.

    source:make-mp3.py
    GPG signature:
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.22 (FreeBSD)

    iQIcBAABAgAGBQJTEzgKAAoJEED21dyjijPgkgwP/iza9lYbFpKhL1Uwqm+OneMx
    W01A2z2 ...
  3. gitdates

    Update: This script should now work with both python2 and python3.

    In answer to this question on stackechange, I wrote gitdates.py. If it is called from a directory that is under git resivion control, it lists all the files there with the short hashtag and the date from when ...

  4. Recipe for "hutspot" (Dutch carrot and onion stew)

    This is a traditional Dutch winter dish, although it has evolved over the centuries. The ingredients of the current version weren't even available in the Netherlands when it was first named. This is my vegeratian version.

    Start with 1 kg of peeled potatos. Cut them into slices around 3 ...

  5. dicom2png

    This simple script uses ImageMagick to convert DICOM images from a Philips digital X-ray machine to PNG format. It crops the images from 2048x2048 pixels to 1574x2048 pixels, the actual size of the detector.

    To speed up the processing of multiple pictures, this script runs the conversions in parallel on ...

  6. git-check-all

    Update: This script should now be compatible with both python2 and python3.

    This scripts looks for all directories in the users' home directory that are managed by the git revision control system (i.e. that have a .git subdirectory).

    For each of those directories it checks wether there are uncommitted ...

  7. make-flac

    Update: The script is now compatible with both python2 and python3.

    In this day and age I want to have my music collection available on my computer. Lugging around all my CDs is unpractical and storage is relatively cheap. So I've used FLAC to convert them all to high-quality ...

  8. markphotos

    Update: The script is now compatible with both python2 and python3.

    Update: use the platform-neutral os.devnull instead of the /dev/null device that is generally only found on UNIX-like platforms.

    The markphotos.py script adds a copyright notice to pictures. It uses exiftool. This is not a visible notice ...

  9. tifftopdf

    Update: This script has been changed to work with both python2 and python3.

    It is not uncommon for legacy 2D drawings to be scanned and then distributed as black/white TIFF files. While these files are relatively compact, viewing them can be a PITA. The previewer on windows XP (which ...

  10. Sandwich floor panel for a bus

    For the same bus that we made the rear floor panel for, we also made a composite floor panel.

    Again we used vacuum infusion to make the prototype. The picture below was taken appoxtimately halfway through the infusion process. In the rear half of the product the resin has infused ...


« Page 4 / 10 »