In the afternoon I fixed a few issues as reported
by Pylint online for the
tumblelog.py program. The slightly updated version, 1.0.3, is available on GitHub.
In the afternoon my mother and I walked into the town centre to have a
coffee. On the way back I took photos of some plants for sale,
including succulents planted in a metal bowl.
Succulents planted in a metal bowl.
Indentation in Emacs
In the evening I read
The Ultimate Guide To Indentation in Emacs (Tabs and Spaces). I
am interested in this because
in Perl source. And since the default tab width is 8 in my Emacs set up this
makes for very wide lines in the former case.
But I am going to study the suggested configuration in the article
mentioned above and most likely add it to my Emacs configuration.
Scotch rose flowering
On the way back from physiotherapy I took a few photos of a Scotch
rose flowering. I am getting physiotherapy for my knee because I broke
my knee cap during a bad fall back in November 2018.
Scotch Rose, Rosa spinosissima, flowering.
Minor update to tumblelog
In the evening I made a minor adjustment to both the Perl and Python
version of tumblelog, the program that creates this website. I had
noticed that when hovering over a week number in the archive section
of this blog that the week number and year where shown, separated by a
-; which is the title of the link.
Since there is a --label-format option which is already used to
create a label showing the week and year in a user configurable way, I
used this format to render a better title. For example for the 20th
week of 2019 instead of '20-2019' it now displays 'week 20, 2019' on
hovering for the default value of --label-format.
You can get the latest version of tumblelog via
my GitHub repository.
Today, my friend Simon visited me. We had a nice, long chat, as we
hadn't seen each other for about 15 years while I was living in Mexico.
Things you’re probably not using in Python 3 – but should
Many people started switching their Python versions from 2 to 3 as a
result of Python EOL. Unfortunately,
most Python 3 I find still looks like Python 2, but with parentheses
(even I am guilty of that in my code examples in previous posts
Introduction to web scraping with Python). Below,
I show some examples of exciting features you can only use in Python
3 in the hopes that it will make solving your problems with Python
How does Docker actually work? It’s a simple question that has a
surprisingly complex answer. You’ve probably heard the terms
“daemon” and “runtime” thrown around, but never really understood
what they meant and how they fit together.
In the evening I read
How does Docker work? by
Cameron Lonsdale, a (very) technical walk-through of how Docker works.
Blocking domains with Postfix
My experience is that top level domains like .icu, .win,
.trade, etc. are a source of spam. Because I don't expect actual
email from those domains I decided to blacklist those domains as
well as several countries in Postfix.