Roland's homepage

My random knot in the Web

Older articles (3/17)

  1. Building gphoto2-ffi on FreeBSD

    Download

    Clone the repository from https://github.com/jbaiter/gphoto2-cffi.

    > cd ~/github
    > git clone https://github.com/jbaiter/gphoto2-cffi
    

    Build

    I had to specify where to find the include files.

    > env C_INCLUDE_PATH=/usr/local/include python3 setup.py build
    

    Install and clean-up

    # python3 setup.py install
    # python3 setup.py clean …
  2. Evaluating Zstandard compression

    Recently I became aware of the zstd compression program. I wanted to see how it stacks up against gzip, bzip2 and xz.

    TL;DR

    Compression with zstd is blisteringly fast.

    But xz still yields the smallest files.

    Test setup

    The tests are done on an otherwise idle machine. The test …

  3. Removing big files from git history

    By accident I checked 60-odd full-size photographs into the git history of my website. I shrunk them in a next commit, but the history was still there leading to a bloated .git directory. This took a lot of time when making backups. This documents how I cleaned up this mess …

  4. Using gnuplot from Python

    According to my revision control systems (rcs in those days), I’ve been using gnuplot to make graphs since at least 2002. And I’ve got it set up via a custom gnuplotrc to match the style of the TeX documents I often use the graphs in.

    At work we …

  5. Comparing stock ffmpeg with optimized ffmpeg

    Recently FreeBSD changed the multimedia/ffmpeg port to drop the -ffast-math and -fno-finite-math-only from the CFLAGS when building an optimized binary. The following experiment was conducted to see how much of a difference this makes.

    First we look at ffmpeg binary compiled with the standard options.

    >du /usr/local/bin …
  6. PDF tricks

    This article contains several useful tricks for manipulating PDF files.

    The focus of this article is on Open Source and Free software, that are available for UNIX-like operating systems. These tools are made for use on the command-line of a shell.

    Adding password restrictions to a PDF file

    PDF …

  7. Updating python3 to 3.6

    This article document how I updated python3 from version 3.5 to 3.6 on FreeBSD.

    This article is written for FreeBSD 11-STABLE amd64. The procedure on other supported FreeBSD versions should be similar if not identical. Commands following a “>” can be run as an unprivileged user. Commands following …

  8. Chrome versus Firefox

    After trying google chrome (technicaly “chromium”) for about half a year, I switched back to mozilla firefox.

    After Firefox started requiring the rust language to build, I thought it might be a good idea to check out google’s Chrome browser, in the form of FreeBSD’s chromium port.

    I …

  9. Adding text or graphics to a PDF file

    Using Acrobat Reader’s ability to add text et cetera has proven unreliable for me. On multiple occasions I have lost all the text added to a PDF file. When your filling in 20-plus pages worth of permit forms this is a huge waste of time and extremely annoying.

    So …


←  Page 2 Page 3 / 17 Page 4 →