2021s
Making my own Nerd Font
Oct 5, 2021Well-structured status lines in vim and shell prompts with version control symbols are a nice quality-of-life improvement. Unfortunately, not all monospace fonts come with the necessary PowerLine glyphs. For example, my favourite font is Operator Mono, and it too doesn’t have PowerLine symbols built in.
Thanks to the NerdFonts font patcher, I was able to generate a font variant that has the necessary symbols. I simply ran the tool as a Docker container in my fonts directory:
$ mkdir HCo_OperatorMonoSSmNF
$ docker run --rm -v $PWD/HCo_OperatorMonoSSm/OpenType:/in \
-v $PWD/HCo_OperatorMonoSSmNF:/out \
nerdfonts/patcher --windows --powerline --powerlineextra
Now my spaceship shell prompt sparks even more joy.
Weeknote 37/2021
Sep 13, 2021A big chunk of my work time in recent weeks has been going into getting Netdata set up to monitor our server fleet. Where we already have it in place, it’s an amazing help in investigating resources issues and bottlenecks. I’m looking forward to getting alerts about issues that might occur soon. Well, I don’t look forward to getting alerts, but I’d rather be alerted about risks when they’re building up than when they already hit. And that’s what Netdata is going to make possible by extrapolating historic data.
I’ve finally managed to make the continuous integration process for our Chef cookbooks reliable by switching from Docker to VirtualBox. Before, we tried to run our tests in Docker, and that failed far too many times because of issues with iptables
, systemd
and similar system-level components. To be precise, we still use the Gitlab runner for Docker, but I’ve built a custom Docker image that allows test-kitchen
to use VirtualBox VMs just like our development machines.
The Windows laptop that replaced my iMac works beautifully for both work and gaming but is far too heavy to lug around except for longer vacations. That’s why I got myself a lightweight companion in the Schenker VISION 14. I wanted to run it with Linux but was disappointed that that’s only possible with firmware that TUXEDO Computers keeps for themselves. I installed the Windows 11 beta instead and was again pleasantly surprised.
Despite, or maybe because of, all these accomplishments, I felt quite drained from Wednesday on. That’s why I skipped my live streams on Wednesday and Friday. I was able to recover nicely over the weekend, so I’m going to do my work in the public later today again.
Weeknote 34/2021
Aug 20, 2021I’ve just returned from our summer vacation. I spent two weeks visiting friends and family in Germany; my wife and kids are staying for one week more. On one hand, it’s always nice to see people again. On the other hand, I spent even more time in between get-togethers alone in our guest room than I usually do to recharge my introvert batteries because of the ongoing pandemic and the dubious behaviour of so many people. I’m longing for a future in which I don’t have to fear for my health anymore while travelling.
Looks like the rest of this weeknote is going to be about new shiny things!
New types
I’ve been into mechanical keyboards for decades but I didn’t start really getting into custom keyboards until 2019. I started taking part in group buys where everyone chips in in advance to get a specific keyboard case or keycap set manufactured, but then COVID disrupted everything. To illustrate this point: Just recently, I received a keycap set that I ordered back in February 2020!
In the last few weeks, I got to build three new keyboards:
- The M0lly is a design replica of the classic Apple M0110A keyboard of the Macintosh Plus. It has a 60% layout plus a separate numpad. This keyboard is quite the chonker and weighs in just below 4 kg fully built!
- The Grid650 is a 65% keyboard that has a replaceable front module with many fun options. I built it plateless, which means that the key switches are only held by their solder joints in the PCB. I still managed to get all switches aligned properly except one that I’ll fix at a later time.
- The Corne is a split ergonomic keyboard in a 3x6+3 layout, meaning each half has 3 rows with 6 columns of keys plus 3 thumb keys at bottom. Its standout feature, apart from colourful RGB lighting, is the two tiny OLED screens that can be programmed in the keyboard’s firmware.
Even though they’re very different, I like all three keyboards. Not only do they all have pretty high quality, I also picked the right key switches for myself. M0lly and Corne have Zealio v2 switches with 68g springs, the Grid650 is built with Boba U4 with 62g springs. Looks like I like tactile switches over the linear ones I tried back when Novelkeys Cream switches became all the rage. And all three keyboards run on the open-source firmware QMK that allows me to customise their behaviour to my individual preferences.
For example, by programming a “leader key”, I can enter German umlauts easily. I press the leader key, followed quickly by the letter (a, o, u) whose umlaut I want; once for lower case, twice for upper case. (I’m probably going to write a separate article on this topic.)
(Almost) feels like paper
I’m clearly late to the game in that I recently applied a Paperlike screen protector to my iPad Pro. It definitely makes using the Apple Pencil a better haptic experience, but I don’t get to use it much. Still, the matte and slightly rough texture of the surface makes the iPad screen easier to view in different lighting.
A broader view
My company’s fiscal year ended in July and we had a bit of money left, so I got to purchase a new monitor. Up until now, I was using my 10 year-old Apple Cinema Display with my Windows laptop. The monitor still works okay, I don’t really mind that it isn’t a Retina screen. But it gives off a lot of heat and doesn’t have any manual controls for brightness and contrast, not even an On/Off switch. It was built to run with a Mac, after all. So I treated myself with an Alienware AW3820 34” ultrawide monitor. It floats above my desk on an Amazon Basics monitor arm. With its resolution of 3440x1440, I chose screen real estate over pixel density. And with all this space I have now, the Fancy Zones feature of Windows Power Toys (window management similar to macOS tools like Moom) can really shine. It’s great!
For live-coding on Twitch, I was able to segregate a 1920x1080 region on my screen that I share with my viewers, and there is still enough room left on the screen for my streaming applications. There are now very few occasions when I have to turn my head to the laptop screen on the side (also on a monitor arm). I feel like I’ve pretty much reached perfection in terms of an ergonomic and productive workplace.
dotenv and direnv for better developer QoL
Jun 23, 2021The latest RubyTapas tutorial taught me the difference between the dotenv
and direnv
tools. While they have significant overlap, they complement each other quite nicely. dotenv
simplifies both development and production ops by importing environments variables either from a .env
file or the application hosting platform. direnv
on the other hand augments the dev environment even further; not only can it add dev-only variables but also modify shell settings like extending $PATH
on a per-project basis.
System upgrade complete. ๐
Verify your assumptions
Jun 18, 2021That’s what I keep preaching to my team but still fail at myself every so often.
This week, I wasted a whole day implementing a fix for a bug that wasn’t there. My task was to add one line to a configuration file in a Chef cookbook. When I ran its test suite, it surprisingly failed and it was clear that my simple change couldn’t be the cause. I assumed it was due to recent changes in software packages installed by the cookbook. So I started adapting our old code to these changes, and one change led to another, and another, until I finally realised that over the course of multiple hours, my one-line bugfix had turned into a full code overhaul. How did I get here?
I decided to start from scratch. git reset --hard HEAD
. I quickly fixed my config file and ran the tests. When they failed again, closer inspection revealed that it was actually just the same test failing twice. The cause was a bug that had found its way into the main branch without breaking the CI pipeline (finding the reason for this will be interesting). It had been there all along! After another one-line fix, my change was ready for review. Round 2 had taken me less than half an hour.
The lesson: Don’t rush into battle blindly. Look closely. Identify assumptions and verify them. It might just be windmills!
Switching keyboard layouts easily on Windows 10
May 27, 2021It’s fun to follow in the footsteps of @isotopp getting acquainted with Windows 10. In a recent post, he explained how to set up multiple keyboard layouts, a necessary task when you’re switching between ANSI for coding and German for writing.
I’ll add a nifty shortcut for reconfiguring your keyboard with your keyboard: You can switch between layouts by holding the Windows key and pressing Space.
After all these years, it still doesn’t stop being fun when articles like “How I navigate tmux in 2021” teach me a few tiny bits to improve my setup.
Challenged by a blogging challenge
Mar 1, 2021Friend and colleague Markus inspired me to join him in the Daily Blogging Challenge. Since my wife got ill two weeks ago, I didn’t get to deliver a single substantial work result. The clear objective of publishing an article every day seemed like a good way to get a sense of achievement back.
Alas, this new ambition might end right where it started. The writing prompt for today, “routine”, got me thinking how my daily routine fell apart when I had to take over running our household.
Which, in hindsight, I did not. All I did was add a few household tasks to my existing, functioning home-office routine. Underestimating the effort required to run a family home left me in constant firefighting mode preparing meals, helping my kids in remote learning, keeping the fridge stocked, intervening in fights to the death, picking up medication from the pharmacy, and making sure the house didn’t drown in dirt.
The amount of distractions generated by four people confined to their own home made getting some decent length of focus time impossible. Far too many interruptions ranging from “Can I please have another cup of tea?” over “Did you bring X from the supermarket?” (narrator: “He didn’t.”) to “Dad, he keeps kicking me!” later, I resigned and gave up on planning my day altogether.
Unsurprisingly, abandoning my routine didn’t improve things. “I’ll be unproductive again today” became a self-fulfilling prophesy sponsored by Youtube and Netflix.
I should just have taken time off work. Even if you have a robust daily routine like mine, you can’t just dump another day job on top of it and expect it to survive. This week, I’m going to clear my day for a “family routine” in the hopes of both increasing my chances of achieving my new goals, and eliminating the frustration over not meeting my old ones.
It remains to be seen if there’s any space left for daily blogging, though…
It’s far too cold to even consider buying a barbecue set. But it’s a good time to think about reclaiming the web.
Automating my desktop with Hammerspoon
Feb 5, 2021After my unsuccessful attempt at adopting a tiling window manager, I was looking for a more flexible way to arrange my windows efficiently on macOS.
In the past, I had tried dedicated apps like Mosaic or more generic ones like Keyboard Maestro and BetterTouchTool to assign window movements to hotkeys. The problem with this approach is that you’re going to run out of key combinations quickly even if you set up a special Hyper key.
A good way to avoid this issue is a modal approach where a single key combo switches you to window management mode. In this context, you then have the full keyboard available for all kinds of stuff. I had forgotten that Moom actually works this way, so I decided to finally give Hammerspoon a try. Up until that point, I was afraid that coding your own desktop automation in LUA would be too deep of a rabbit hole. But it’s actually not too bad. You can find the results of only a few hours of procrastination in my dotfiles repository.
Another fear of mine was that an open-source tool that interacts with the macOS GUI as closely as Hammerspoon would be prone to be broken by Apple every other week. I’m positively surprised that this doesn’t seem to be the case. Its authors seem to handle even OS upgrades very well.
This makes window management pretty much a solved problem for me. Fortunately, Hammerspoon offers many more possibilities to spend my time not getting things done…
Weeknote W5 2021
Jan 30, 2021To tile or not to tile
Looking at Twitch streams and Youtube videos around Linux, it seemed to me that everyone was into tiling window managers. This week, I decided to finally try this approach of filling and subdividing the whole screen area. On macOS, I installed yabai, and on Linux (more on that below), I chose the popular i3.
After a few days of the tiling life, my conclusion is that I don’t see much benefit in forcing my application windows to fill up all the available screen real estate. Maybe it’s because I already have a habit of tiling my windows manually – when it makes sense. However, often it just doesn’t make sense. Some windows really don’t like to be squeezed into a tiny space, and even on a 13” screen, a full-size terminal window isn’t of much use to me. I’ll keep my windows floating. If I really want to tile them, there’s always BetterTouchTool.
Linux on Apple hardware
Another item of curiosity this week (is this some kind of lockdown syndrome?) was if 2021 could be the year of Linux on the Desktop for me. While I still enjoy the stability and user-friendliness of the macOS ecosystem, some of its constraints do annoy me from time to time. I have an unused Macbook Pro 13” from 2015, and it’s now running Ubuntu 20.04. My go-to applications like Brave, VS Code and Obsidian worked fine out of the box. But when it came to more specialised use cases, I quickly realised how much macOS spoils me with its choice of well-polished applications.
Maybe I will pursue a “best of both worlds” approach, where I do my management work on the Mac and my DevOps work on Linux. That is, if the hardware issues that drove me into Apple’s arms more than a decade ago don’t spoil it for me again. For example, there’s a 50:50 chance that after powering up the laptop, Bluetooth doesn’t work, preventing me from using a proper mouse and keyboard. Sigh.
Weeknote W2 2021
Jan 15, 2021Re-launching my live stream
This week, I started live coding on Twitch again. I had planned to get going on Tuesday but didn’t have the energy; more on this later. On Thursday, I was ready to launch. It took only a few minutes of being online until many familiar names started popping up in chat. It felt so good. This year, I’m trying a different strategy. I’m going to focus on an area in which I have lots of experience: IT training, starting with a Ruby course. In simple terms, it’ll work like a book club where the participants work through a chapter of the training material, and we’ll talk it through on a weekly basis. I’m excited to see how it goes!
VS Code dev containers
Until now, I didn’t need a dedicated website for my live coding stream. I simply referred people to my personal blog. But with the Ruby course coming up, I need to have a permanent space where people find information. As always, I’m going to use Jekyll to build the site for FullStackLive.
I’ve been using Docker to run test instances of my Ruby projects for a long time because it makes separating their resources (the app, its database, other services…) so much easier. However, I always used scripts to interact with the containers. This time, I wanted to try a closer integration with my coding tools and set up a VS Code dev container. Thanks to Microsoft providing a big library of pre-built language images, setting up a dev container for Ruby development was painless. However, I had to invest a bit more time to get my dotfiles installed automatically after I realised that I didn’t have any of my familiar commands and shell aliases available inside the dev container. I’m happy with the result and am looking forward to build a more complex setup for Rails development.
Over-hyper-scheduling
In weeknote W1, I explained how I’m using the Sorted app for time-boxing my daily work. It’s helping me a lot to keep my focus on what I want to get done. Its auto-scheduling feature also is a great reality check that prevents me from expecting too much from the time I have available in between calendar events.
Where I took a wrong turn was when I added time tracking to mix. I had discovered the Session app that comes with my Setapp subscription and thought that it would increase my focus even more, and on the other hand make sure that I took frequent breaks as well. What happened instead was that I started to feel burnt out. That’s why I didn’t start streaming on Tuesday. I think that there were multiple reasons for this energy drain:
- The Pomodoro periods in Session didn’t align well with my task slots in Sorted that are usually multiples of 30 minutes.
- Getting interrupted every 25 minutes kept me from getting into a flow state.
- I often ended up ignoring the timer completely, leaving me with frustratingly few tasks actually tracked.
This is not the first time that a new tool created more frustration instead of more productivity. Sorted stays, Session goes. I’m a slow learner sometimes.
Time to leave WhatsApp
Jan 9, 2021If you're using WhatsApp, you've probably received a notification that the messaging service is updating its terms of service, notably their privacy policy, effective February 8th and with no option to opt out. It has prompted me, like thousands of other WhatsApp users, to switch to a more privacy-oriented service.
Since WhatsApp was acquired by Facebook in 2014, it was to be expected that eventually, the internet behemoth known for its gluttony of personal information would extend its tendrils to WhatsApp user data. This point is now. I don't want Facebook to know more about me, my preferences and behaviours than I do myself. I will not support its practices of influencing its user base and deciding who gets to see what information. That's why I deleted my Facebook account months ago. And now I'm joining thousands of WhatsApp users in moving my messaging over to Signal.
Signal has a flawless reputation for data privacy and transparency. There are other alternatives, for example Apple Messages. Mike Butcher's thread on Twitter is a good read. He also posted a comparison of the amount of data these services track of their users; the difference is stark.
If you're concerned about which information about you corporate giants track and use to their advantage (and I think you should be concerned), then use this opportunity to make a difference and help make the internet a safer space for human communication! Here's how. Say hello to me over on Signal. ๐
Update 2021-01-11: I removed the mention of Telegram as a secure alternative because its app leaks unencrypted chat data to Telegram servers.
Weeknote W1 2021
Jan 8, 2021It's the new year, and look, already COVID-19 is not dominating the headlines anymore! ๐๐ญ
This week, I've started to use my home office for work again, not only for fighting bosses in Castle Nathria.
Getting myself Sorted
Back in October, I mentioned that I was using TickTick for time-boxing my work. Since I didn't like the apps's UI, I returned to using Things for tracking my tasks, and manually blocked time slots for each of them in my calendar. In his recent newsletter, David Sparks mentioned the app Sorted, and for me it hits the sweet spot in terms of design and functionality. What I enjoy the most is its auto-scheduling feature which allows me to quickly recover from unplanned work or getting distracted. It assigns new time slots to my remaining tasks and shows me the fallout of what needs to be pushed to another day.
My modifiers went home
Inspired by t00mietum's keyboard layout, I gave "home row mods" another try. The home row is the row of keys where the fingers rest on ASDF
and JKL;
. "Home row mods" is a keyboard layout hack that puts the modifier keys (e.g. Shift, Control) on the home row. This is made possible by using the "mod tap" feature available in firmware like QMK where quickly tapping a key will trigger its usual function, but holding it will turn it into a modifier. For example, holding "D" now functions as my Shift key, and for symmetry, holding "K" does the same. First, this improves ergonomics: Having to stretch out my fingers less, especially the pinkies, feels substantially more comfortable. I'm actually using my new right Shift key for a change! Second, it frees up all thumb keys of my Lily58 for layer switching. I even put numbers and symbols on their own layers. Having a virtual numpad on the right hand side makes entering numbers easier than reaching up with both hands. My next split keyboard will not even have a number row anymore.
Coming up
Due to the exploding infection numbers in Ireland, the kids will not return to school on Monday, so that's going to be interesting. I'm going to pick up live streaming again -- with a new strategy.
Why I chose Obsidian over Notion for my PKM
Jan 4, 2021After posting my recent weeknote mentioning that I use Obsidian for my personal knowledge management, my former teammate Andy asked why I didn’t use Notion like we do for our company wiki. I had to think for a minute and decided that I’d answer his question in another post.
Let me start by saying that these decisions are usually not clear-cut and a matter of preference. I could have used Notion for my PKM with ease and success. The reason I didn’t comes down to the different weights I subjectively give each product’s pros and cons.
Notion’s greatest strength is that it not only has a nested page structure like many other wiki-like systems. The feature it calls “databases” lets you build collections of pages with added custom metadata. You can use this metadata to filter and sort the collection, and you can save multiple filter and sorting combinations as “views”. Metadata can be aggregated to calculate counts, sums and averages. It even allows referencing other databases in a “foreign key” manner, which opens the way to complex multi-database data sets, with the single page still as its atomic building block.
Obsidian is much simpler. It’s a note editor for Markdown files. Its central feature is that it extends the Markdown standard to support the simple linking of files by surrounding the file title in double brackets. In file A, you can reference [[file B]]
, and when you view file B, Obsidian will display in a side pane that there’s an incoming link from file A. In other words, Obsidian automates bi-directional linking of Markdown documents. These “backlinks” are one of the core attributes of modern knowledge management. Notion recently added a feature that works similarly. (By the way, I don’t understand why it took us so long since the invention of Hypertext to realise the value backlinks have for PKM.)
You don’t need to know more about Obsidian to use it effectively. And that’s one of the reasons I prefer it for my managing my personal notes. I was able to import my existing Markdown notes with ease and didn’t have any learning curve to master.
Another important plus of Obsidian is that it’s an application running on my desktop machine. It’s fast. I don’t have to open a browser, click a bookmark and wait for the website to open, as is the case with Notion. I switch to Obsidian and start working.
The Notion team had an easier time to provide mobile apps for their web application. While it took them a while to make them work decently, the Obsidian team doesn’t even have any mobile application on offer yet. (It’s one of the major goals on their roadmap, though.) That doesn’t mean that I can’t access my notes from my iPhone or iPad. All I need is a cloud sync service (I’m using iCloud Drive) and a Markdown editor application. At the moment 1Writer seems to be the preferred iOS app because of its support for double-bracket links.
Since Obsidian data is just a bunch of Markdown files, I can use alternative tools even on my desktop machine. I could use another Markdown editor; I don’t because Obsidian is fine. I can use git to have versioned backups of my files. I can even use Ruby scripts to do maintenance or analysis tasks.
While Notion can also be used for taking, managing and interlinking notes, this is Obsidian’s core purpose. That’s why Obsidian offers features that probably didn’t have priority for the Notion developers. For example, on top of the backlinks feature, Obsidian offers a graph view that visualises the relationships between notes and allows for easy navigation across links.
What seals the deal for me is that Obsidian has a great user community where many people share their PKM practices and Obsidian experience. They also share CSS themes and plugins that extend Obsidian’s core functionality and personalise its look-and-feel.
TL;DR: I use Obsidian because it’s like an IDE for notes, a tool that allows me to do my daily knowledge management efficiently, without technology getting in the way.