a tumblelog
week 14, 2019

Deleting .DS_Store files

find ~ -name '.DS_Store' -delete

Stop command echoing with GNU make

Normally GNU make shows each line of the recipe that's executed on stdout. Putting an @ in front of a command prevents this; see Recipe echoing.

Clearing the terminal in macOS

I use ⌃L to clear the terminal. This has the same effect as pressing enter n times with n the number of lines in the terminal. So scrolling back is possible. If I want to prevent scroll back or don't care I use ⌘K (Clear to Start).

Python version of tumblelog II

I just finished the Python version of tumblelog. It will be available as part of the tumblelog repository tomorrow. It took less time than expected. It feels good to code in Python once more.

Cable guy

My brother Marco is laying some cable so I can get a faster wired connection in my office.

House sparrow eggs

House sparrow eggs When my brother worked on the roof he encountered the nest of a house sparrow, Passer domesticus. He took the above photo with his cell phone (cropped).

Beauty bush

Beauty bush Flowers of a bush identified by the iOS PlantSnap app as beauty bush, Kolkwitzia amabilis. Taken when my mother and I went to the town center.

Less 404

After midnight I used Inkscape to draw a 64x64 icon and saved it as PNG. Next, I used an online service, ICO Convert, to convert the PNG to a favicon.ico. I also made an empty robots.txt and uploaded both to this site. Now there are less 404 messages in the access log of this site.

Python version of tumblelog

I started on a Python 3.7 version of tumblelog. As I haven't been programming Python for quite some time it's a slow start. I hope to release the Python version of my static microblog generator sometime next week.

Python 3.7 on Ubuntu 16.04

I kept bumping into the Python version on my Ubuntu virtual machine being old; Python 3.5.2. So I updated to Python 3.7.3 as follows:

sudo add-apt-repository \
sudo apt update
sudo apt install -y python3.7

Hello, f-strings.

Free Linux Journal issue

Yesterday I entered my e-mail address in order to receive the Free 25th Anniversary Issue of Linux Journal. But the issue never arrived. Then I recalled that I have set a limit on the size of emails for that account. So I tried my gmail address, but no luck. I reached out to @linuxjournal on Twitter and today I got the free issue by email, thanks Carlie!

Multiple microblogs

Directory structure multiple sites I made a quick sketch for Paul of how to organize directories when you have multiple microblogs with tumblelog. Don't put tumblelog in each site directory but keep it in a separate directory.

Dutch licorice

Dutch licorice close up When I woke up a package had arrived containing two plastic bags with Dutch licorice. Thanks Paul!


Pepijn Janssen commented on my "An update of my resume is available" post on Linked In:

I can highly recommend him! Very good programmer who also writes perfect documentation.

CSS position

Reading up on CSS position. I might want to use fixed on this blog to keep the topmost header in view at all times.

DISTINCT with multipe columns

I wanted to count the number of two columns using DISTINCT in MariaDB but it seems that this is not supported directly. A solution:

    SELECT DISTINCT id, session_id
    FROM some_table
) AS rows

Key Trouble Part II

That's still an old-style keypair (brute-forceable password protection). Use either the "-o" option to ssh-keygen or use a more modern algorithm for the type which implies that option. See Upgrade your SSH keys!

Thank you Gert van Dijk for pointing this out to me on Twitter. Fixed my GitHub keypair using

ssh-keygen -o -a 100 -t ed25519 \
  -C "" \
  -f ~/.ssh/john-bokma-github

And I also updated my blog article Fixing Skipping ssh-dss key ... not in PubkeyAcceptedKeyTypes.

Gert also wrote:

Default is weak because…

Excellent information, thanks.

The JSON feed is live

This evening I added a JSON feed to Plurrrr. I verified in Reeder on OS X the feed and so far so good. Tomorrow I'll update the tumblelog repository and blog about the new feature on my main blog.

Draw Freely

Just installed Inkscape in Ubuntu running on a virtual machine. I want to design a simple favicon for this site.

Code font stack

After reading Nick Galbreath's CSS System Font Stack Monospace v2 I changed the code element font stack for both this blog and my main blog to:

    "Liberation Mono",
    "Courier New",

Which according to the article is what Bootstrap v4 uses, and Nick as well.

Simple HTTP server using Python 3

Change to the directory you want to serve your HTML pages from and type:

python3 -m http.server

This outputs the log on the command line.