Roland's homepage

My random knot in the Web

Older articles (2/17)

  1. Install ntpsec on FreeBSD

    A short article on how to install ntpsec on FreeBSD. Tested with 0.9.7 and 1.0.0.

    Downloading

    You can find several download methods on the ntpsec website.

    Installation

    As of 2017-07-29, the is no port for ntpsec yet. So on FreeBSD you have to compile it yourself …

  2. Using sqlite3 for time management

    After some initial experiments with sqlite as a replacement for a json data file format (which I did not pursue in the end), I have now started using sqlite in earnest. And I must say that I quite like it.

    At $work, we still have to submit written time sheets …

  3. Convert RCS history to git

    Before the rise of git, I used rcs as my version control system. Because I want to standardize on git, I am slowly converting old repositories.

    In this article I’ll be converting my old perl scripts in ~/src/perl.

    Create a fast-import stream

    From the existing repo, we create …

  4. Doing calculations with Python

    As an engineer I do a lot of calculations. These can be done with pen and paper and a calculator, in an IPython notebook or in a throwaway spreadsheet. All of these methods have shortcomings, though.

    Pen and paper is hard to share and (in my case) hard for others …

  5. Structures in Python

    Sometimes I miss the C’s plain old struct in Python.

    Of course Python has dictionaries, but I prefer to write a.b over a['b'].

    Here are several ways of doing something akin to a struct in Python.

    Using a dict subclass

    This is the shortest and most general …

  6. State machines in Python

    State machines can be relatively easy defined as a data structure.

    It has been said that data structures are central to programming. So we should find a way to express a state machine into a data structure.

    The following dictionary of state transitions can be used to define a state …

  7. Fixing dependencies after mesa ports consolidation

    After the 2017-05-12 mesa port consolidation, there were packages left with missing dependencies. This is how to fix them

    Update

    The update from mesa 17.0.3 to 17.0.4 merged libGL, libEGL, libglesv2, libglapi, and gbm into mesa-libs, and moved dri to mesa-dri. I performed the update using …


←  Page 1 Page 2 / 17 Page 3 →