Roland's homepage

My random knot in the Web

Older articles (4/26)

  1. Patching CalculiX Graphics to fix flipped screen hardcopy

    Since some time, I’ve had the problem that generating hardcopy images from cgx doesn’t work properly; the pictures are inverted vertically.

    At first, I thought this might have been a change in cgx. But comparing the source code for cgx.c for 2.16 up to and including 2.19, I don’t see anything that would explain it.

  2. Simple setup.py for python scripts

    Installing Python scripts (as opposed to modules) is a too involved using distutils/setuptools. Those do not take into account zipped archives and scripts using a GUI toolkit. The latter is a problem on ms-windows.

    So I wrote my own setup scripts to do things differently;

    • A simple setup script that works on single-file scripts.
    • A setup script that can wrap applications plus their custom module up in a zip-file and install it as a single self-contained file.
    • They should work on POSIX and ms-windows without root/administrator privileges.
    • And they should not require anything outside the python standard library.

    These scripts are now available on github as setup-py-script.

  3. Merging local git repositories

    For a long time, I’ve had a directory ~/templates to store template files for several programs.

    For historical reasons, my LaTeX templates have been stored under ~/latex/templates.

    Both have been under git revision control since 2006; before that I used rcs.

    I want to merge both local repositories under ~/templates. This articla documents how that was done.


←  Page 3 Page 4 / 26 Page 5 →