Roland's homepage

My random knot in the Web

Articles about howto

  1. Checking links with linklint

    This website contains lots of external links. A fact of life is that hyperlinks are subject to change, so they need checking every now and then.

    In this how-to article I’ll cover how I did that for this website.

  2. Making a subset of a git repository

    Since I am in the process of making most of my programs available on github, I have been re-shuffling the some git repositories. Especially my collection of scripts (small programs for different purposes). Because some of those scripts are private, I don’t want to publish that repository as a whole.

  3. Making saline solution

    The standard recipe for saline solution is 9 grams of salt per liter of water.

    Since most people don’t have an accurate scale, we need to convert the nine grams to a volume. For that we need the bulk density of table salt. For fine table salt, the listed ...

  4. Modifying a FreeBSD port

    Installing software on FreeBSD is made easier by the ports system; a collection of Makefiles and patches that contains instructions on how to build programs and libraries. E.g. building and installing the mpv media player is done in the following way:

    # cd /usr/ports/multimedia/mpv
    # make install clean ...
  5. Repairing a color laserjet 2550

    date: 2014-06-08
    modified: 2016-12-11 00:00:00+01:00
    category: howto
    tags: diy printer

    Some time ago, my trusty old color laserjet 2550L more or less stopped printing, or at least I thought so. It turned out that the printer only printed in yellow. Which is not particularly useful.

    At the time I bought this printer not because I print very much, but because ...

  6. Keyword expansion with git

    One of the things I liked about the old rcs revision control system was that it supported keyword expansion in files. Unlike systems like rcs, cvs and subversion, the git revision control system cannot provide keyword expansion. The cause for this is that you can’t modify a file with ...

  7. Initializing a new git repo for a project

    Create a directory for the new project:

    mkdir newproject
    cd newproject
    

    Initialize for git:

    git init
    

    Tell git which types of files to ignore, e.g. compiled Python files:

    printf '*.pyc\n*.pyo' >.gitignore
    

    Using filters we can change do keyword expansion during check-out. A filter named kw is defined ...


←  Page 1 Page 2 / 5 Page 3 →