Roland's homepage

My random knot in the Web

Articles about software

  1. foto4lb

    Photos from modern digital cameras are generally so large these days that you have to shrink them to use them in a document. I do this a lot, so I automated it.

    The foto4lb.py script shrinks the files it is given to a width of 886 pixels, and shrinks ...

  2. make-mp3

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

    You can find make-mp3.py on github. Apart from python (version 3) it requires LAME.

    Note

    The script is now compatible with both Python 2 and Python 3. But is ...

  3. gitdates

    In answer to this question on stackechange, I wrote gitdates.py (available from github). 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 they were last committed. The current version is ...

  4. dicom2png

    This simple python 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 ...

  5. git-check-all

    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 whether there are uncommitted changes by running git status. If there aren’t any, it runs ...

  6. make-flac

    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 music files.

    The make-flac python script is what I use to ...

  7. tifftopdf

    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 is what we use at work) is slow. PDF files are much easier ...

  8. Formatting git changelogs for LaTeX

    Most of the things I write, be it software or something else, are under revision control with git. Mostly because it makes undoing mistakes easy. My LaTeX documents are no exception. With software it is customary to have a change-log (like the one generated by the git log command). I ...

  9. csv2tbl

    The csv2tbl.py script takes a comma-separated values (“csv”) file, and converts it to a LaTeX table. It handles a couple of different possible seperators; semicolon, comma and tab. Of those it automatically pics the one that occurs most.

    N.B.: it does not try to interpret quotation marks!

    It ...


←  Page 1 Page 2 / 3 Page 3 →