Roland's homepage

My random knot in the Web

Older articles (3/26)

  1. On Python speed

    As an engineer, I write a lot of small python programs as tools for specific tasks. Generally, these are not large programs. Most of them are below 100 lines of code (“LOC”, as measured by cloc), although there are a few in the 300−400 LOC range.

    In this article, I will present some observations about these, and draw some conclusion from them.

  2. Python 3.11 speed comparison with 3.9

    Since Python 3.11.0 came out recently, I wanted to compare its speed with 3.9.15 on some of my own “benchmark” programs.

    Both versions are in the default configuration as built by the FreeBSD ports system.

    TL;DR Python 3.11 yielded speed improvements in the order of 25% in my tests.

  3. FreeBSD 13.1 install on a Lenovo IdeaPad 5

    When I originally got this machine, I needed it for $WORK. That is no longer the case, so I wanted to install FreeBSD 13.1 in combination with ZFS to gain experience with the latter.

    TL;DR Nice and quiet. Slightly faster than my i7-7700 workstation. Except for wifi, everything works.

  4. Resonance frequency of a composite tube

    Based on a question I ran into at work, I wanted to explore the influence of parameters like cross-section, wall thickness and laminate lay-up on the resonance frequency of a carbon fiber composite tube.

    The goal of this exercise is to determine which of the parameters are dominant.

  5. Using sed

    As I’ve written about before (see engineering), I often use CalculiX for structural mechanics calculations of products made from composites. These often involve calculating lots of different combinations of materials, lay-ups and load cases. For convenience and for them being self-contained, each variant is usually in a different directory.

    So when I find an improvement to e.g. a pre.fbd, Makefile or job.inp, I want modify all of the other instances as well. This is where sed (which stands for “stream editor”) comes into play.

    date: 2022-05-22
    modified: 2022-08-31
    reading time: 5 min.
    category: howto
    tags: sed
  6. Zero DSR power consumption

    Based on the data from the dashboard I’ve created a graph of the power consumption for a 2020 Zero DSR.

    As far as possible, this was measured on a level road at constant speed, on a good road surface and without much wind. The power is the product of the speed in km/h and the energy usage in Wh/km.


←  Page 2 Page 3 / 26 Page 4 →