Deleting .DS_Store files
find ~ -type f -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
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
My brother Marco is laying some cable so I can get a faster wired connection in my office.
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).
When my mother and I went to the town center I took a photo of flowers of a bush which the iOS app PlantSnap identified as beauty bush, Kolkwitzia amabilis.
Stop using so many divs!
I just read Stop using so many divs! An intro to semantic HTML by Ken Bellows. A good read, and the design of this blog follows quite close the advice given in his post.
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 \ ppa:deadsnakes/ppa sudo apt update sudo apt install -y python3.7
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!
I made a quick sketch for Paul of how to organize directories when you have
multiple microblogs with
tumblelog in each site directory but keep it in a separate directory.
var, let, or const?
When I woke up a package had arrived containing two plastic bags with Dutch licorice. Thanks Paul!
JSON feed is available
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.
Reading up on
CSS position. I
might want to use
fixed on this blog to keep the topmost header in view at
DISTINCT with multipe columns
I wanted to count the number of two columns using
MariaDB but it seems that this is not supported directly. A solution:
SELECT COUNT(*) FROM ( 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 "email@example.com" \ -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 latacora.singles/2018/08/03/the…
Excellent information, thanks.
Edit: the above Latacora link is no longer correct. The article has been moved to a new location: The default OpenSSH key encryption is worse than plaintext.
SSH DSA key trouble
Yesterday, while switching repository access to SSH I ran into an issue. Today I fixed it by generating an RSA key, replacing the weak DSA one and wrote a blog post about it: Fixing Skipping ssh-dss key ... not in PubkeyAcceptedKeyTypes.
Better code styling
The JSON feed is live
Just installed Inkscape in Ubuntu running on a virtual machine. I want to design a simple favicon for this site.
for loops are often useless and make the code hard to read
A very nice read; recommended.
Code font stack
$code-font-stack: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
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 starts a webserver on port 8000 and outputs the log on the command line.