Thorsten Zöller - Articles 2026-04-30 Thorsten Zöller https://thorstenzoeller.com <p>Running Anki inside Xephyr</p> https://thorstenzoeller.com/anki-inside-xephyr 2023-02-26 2023-02-26 <h1 id="running-anki-inside-xephyr">Running Anki inside Xephyr</h1> <p>2023-02-26</p> <p><a href="https://apps.ankiweb.net/">Anki</a> is a great tool for memorizing things, like words in a foreign language you want to learn. I am using it for memorizing Vietnamese words in my endeavor to learn Vietnamese.</p> <p>I am currently running Anki 2.1.16 on OpenBSD 7.1. Unfortunately, quite often Anki freezes after using it for some time, without any advance notice. When this happens, I can no longer do anything except moving the mouse pointer. I cannot switch windows and not even switch to the console in order to forcefully quit Anki. Apparently, it crashes the whole system, and the only way out is a forceful reboot.</p> <p>I do not know what causes this behavior or if there is any fix for it. It seems that I am not the only one experiencing this, but I have not yet found a solution to this behavior.</p> <p>I did find a workaround, however: Running Anki inside of <a href="https://man.openbsd.org/Xephyr">Xephyr(1)</a> (a nested X server that runs as an X application and is part of OpenBSD base) seems to prevent it from freezing. The workaround involves three steps:</p> <ol> <li>Launch <code>Xephyr</code> on display <code>:1</code> (or any other display differing from your main display, which is usually <code>:0</code>).</li> <li>Launch <code>cwm</code> inside the <code>Xephyr</code> window just created (it is necessary to run a window manager since Anki employs multiple windows in general; of course, any other window manager can be used as well).</li> <li>Lauch Anki inside the <code>Xephyr</code> window.</li> </ol> <p>For convenience, I have created a small shell script for executing these steps:</p> <pre><code>Xephyr -br -ac -noreset -screen 1920x1080 :1 &amp; cwm -c .cwmrc_xephyr -d :1 &amp; DISPLAY=:1 anki &amp; </code></pre> <p>Of course, the value of the <code>screen</code> command line parameter of <code>Xephyr</code> needs to be adjusted to your screen size. Also, I run <code>cwm</code> in the <code>Xephyr</code> window with a specific configuration file.</p> <p>It works well, but strangely, after a while <code>cwm</code> seems to stop running inside <code>Xephyr</code>. This is inconvenient because it makes it impossible to switch between different Anki windows. The solution is to simply restart <code>cwm</code> by manually executing the second line of the script again.</p> <p>Obviously, this is not a real fix to the problem, but it works. Hopefully, Anki will get more stable in the future so that this workaround will no longer be needed.</p> <p>The Melancholy of the Day</p> https://thorstenzoeller.com/day 2023-02-11 2023-02-11 <h1 id="the-melancholy-of-the-day">The Melancholy of the Day</h1> <p>2023-02-11</p> <p>A new day begins, in the dark, in silence. Everything is still asleep; there is barely any activity, any motion. It is a state of peace and serenity. There is nothing to accomplish, no hustle and bustle; everything is immersed in stillness.</p> <p>Then, the sun begins to rise, and slowly the world awakens from its sleep. Not much is happening yet, but the new day is full of potential, full of opportunities. An atmosphere of departure prevails. Everything seems possible, nothing impossible. As the sun continues to rise, a tension develops, as the inactivity of the night wants to release itself into activity.</p> <p>Around noon, when the sun is highest in the sky, the day is most powerful. Glittering light falls from the outside into the rooms; light which is so strong that it blinds. The day is now bursting with energy. Everything is possible, and no end of this state is conceivable.</p> <p>But then comes the afternoon, and slowly, very slowly, the sun begins its descent. At first barely visible, it does not take long until it becomes clear that the day cannot maintain its power. First shades emerge, and the light is no longer as glittering as it was before; it is slightly dimmer now than just a short time ago. And it is constantly changing. It becomes ever softer and warmer the deeper the sun is in the sky. It still fills the rooms, but instead of dominating them, it becomes tender. The light immerses everything in dim, warm colors, and the shades become longer and longer. It is a mystical, almost magical atmosphere which now accrues.</p> <p>But this change of light, of the mood, is accompanied by a certain melancholy, and the melancholy grows the longer the day lasts and the fainter the light becomes. The steady change of light, proceeding faster and faster, leaves no doubt that the end of the day approaches. Some time still remains, but it seeps away quickly, second for second, minute for minute. The time when the day seemed invincible is now long gone; long gone is the time when it seemed that the day would prevail forever. It is absolutely clear now that it will be over soon. It had just brimmed over with power, with self-confidence, with energy–but now it becomes weaker and ever weaker, and very soon it will be history and forever, irretrievably gone.</p> <p>Michael W Lucas: “Ed Mastery”</p> https://thorstenzoeller.com/ed-mastery 2024-09-29 2024-09-29 <h1 id="michael-w-lucas-ed-mastery">Michael W Lucas: “Ed Mastery”</h1> <p>2024-09-29</p> <p>The average user may not think a lot about which text editor to use. For us, however, the choice of a text editor is a very serious matter.</p> <p>I’ll admit it: I have always felt a little proud to be a <a href="https://man.openbsd.org/vi">vi(1)</a> user (I even have a dedicated <a href="/vi/">vi page</a> on my website). After having read <a href="https://mwl.io/nonfiction/tools#ed">Ed Mastery</a> by <a href="https://mwl.io/">Michael W Lucas</a>, however, I feel somewhat wimpy about it.</p> <p>Only recently did I stumble across the book, and I was surprised that a book about <a href="https://man.openbsd.org/ed">ed(1)</a> – “the standard Unix text editor” – even exists. Yet, I knew immediately that I would have to read it. The mere existence of a book about <a href="https://man.openbsd.org/ed">ed(1)</a> was enough to convince me that it will be worth it.</p> <p>And I was not disappointed (not that I had expected that…). Michael W Lucas’ style of writing is hilarious, and first and foremost, it is simply a pleasure to read.</p> <p>Admittedly, I never really looked past <a href="https://man.openbsd.org/vi">vi(1)</a> in the history of Unix text editors. I roughly new that <a href="https://man.openbsd.org/ex">ex(1)</a> and <a href="https://man.openbsd.org/ed">ed(1)</a> are predecessors of <a href="https://man.openbsd.org/vi">vi(1)</a> and that they are line editors, but they always seemed a bit too peculiar and exotic to me to justify looking into them in more detail (mostly because they are line editors, stemming from a time when monitors were not yet common or even available – one cannot take a line editor seriously these days, can one?). While I always felt that no real progression has taken place in editor development since the advent of <a href="https://man.openbsd.org/vi">vi(1)</a> (which explicitly includes editors like <a href="https://www.vim.org/">Vim</a> or <a href="http://neovim.io/">Neovim</a>), I always implicitly assumed that <a href="https://man.openbsd.org/vi">vi(1)</a> <em>was</em> in fact a progression from <a href="https://man.openbsd.org/ed">ed(1)</a> and <a href="https://man.openbsd.org/ex">ex(1)</a> (reflecting the progression from line printers to monitors for displaying output). After reading <a href="https://mwl.io/nonfiction/tools#ed">Ed Mastery</a>, though, I am not so certain about it anymore. I thought <a href="https://man.openbsd.org/vi">vi(1)</a> was the pinnacle of simplicity, beauty and efficiency, but maybe I was wrong all along.</p> <p>A while ago, there was a great post titled <a href="https://stackoverflow.com/a/1220118">Your problem with Vim is that you don’t grok vi.</a> on Stack Overflow (read it if you haven’t yet!). It basically states that many of the features of <a href="https://www.vim.org/">Vim</a> that are generally considered improvements over <a href="https://man.openbsd.org/vi">vi(1)</a> (<em>Vi IMproved</em>, you know?), making it more “user friendly”, are in fact feature creep (visual mode? why?) and simply exist because users don’t want to take the time to get really familiar and acquainted with <a href="https://man.openbsd.org/vi">vi(1)</a>. It is the antidote to Antoine de Saint-Exupéry’s famous statement “Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.”<sup id="fnref:1"><a href="#fn:1" class="footnote" rel="footnote" role="doc-noteref">1</a></sup></p> <p>I am wondering if something similar could not be said about <a href="https://man.openbsd.org/ed">ed(1)</a> as well: “Your problem with vi is that you don’t grok ed.”</p> <p>In any event, after reading <em>Ed Mastery</em>, many known features from <a href="https://man.openbsd.org/vi">vi(1)</a> will make more sense. And even though it is rather unlikely that most users will ditch their editor of choice right away in favor of <a href="https://man.openbsd.org/ed">ed(1)</a> after reading the book, I am convinced that it will improve your editing skills (if you use an editor descending from <a href="https://man.openbsd.org/ed">ed(1)</a>, that is – otherwise, all hope is lost anyway).</p> <p>In summary: Experiencing joy while reading the book and learning profound things along the way: What more could you wish for from a book?</p> <p>Therefore my recommendation: <a href="https://mwl.io/nonfiction/tools#ed">Get the book</a>, read it and grok <a href="https://man.openbsd.org/ed">ed(1)</a>, now!</p> <p><em>Note:</em> Peter N. M. Hansteen has already written <a href="https://nxdomain.no/~peter/ed_mastery_is_a_must_for_real_unix_person.html">a great review</a> of the book several years ago, and actually I feel that there is not much I could add to it (apart from my casual ranting you spent the last couple of minutes reading). You should definitely read it as well if you haven’t!</p> <div class="footnotes" role="doc-endnotes"> <ol> <li id="fn:1"> <p>I’ll happily admit that I do use <a href="https://neovim.io/">Neovim</a>. Have I ever claimed that I live up to my own standards, after all? <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> </ol> </div> <p>How I Use Vim</p> https://thorstenzoeller.com/how-i-use-vim 2025-08-30 2025-08-30 <h1 id="how-i-use-vim">How I Use Vim</h1> <p>2025-08-30</p> <p>First things first: This is a contribution to the first ever <a href="https://lazybea.rs/carnivals/">Vim Carnival</a>, initiated by <a href="https://lazybea.rs/">Hyde</a>, and it is an honor to be part of it! A big “thank you” to Hyde for coming up with this great idea, organizing the carnival and hosting the <a href="https://lazybea.rs/vim-carnival-202509/">first one</a>!</p> <p><em>Note: In the whole article, I am mostly using “Vim” as a general term referring to any Vim-like editor (i.e. it encompasses in particular both <a href="https://www.vim.org/">Vim</a> and <a href="https://neovim.io/">Neovim</a>), unless otherwise stated.</em></p> <h2 id="my-history-of-using-vim----a-personal-account">My History of Using Vim – A Personal Account</h2> <p>When I first grappled with Linux in the mid-to-late 1990s, I was inevitably confronted with the question of which editor to use. There was a huge amount of editors to choose from, but I quickly learned that there were two editors which were mentioned much more than others, and those two editors obviously were vi and Emacs. I started playing around a little bit with Emacs, but soon I realized that it was not the right editor for me. I was looking for a tool which allowed me to edit text files, and nothing else. And Emacs definitely allows one to do <em>a lot more</em> than just editing text files.</p> <p>Now it is certainly not my intention to revive one of the most famous holy wars ever. I completely understand if people use Emacs if this is the right editor for them (or any other editor, for that matter). For me, however, vi (or rather Vim at that time) turned out to be the right editor.</p> <p>Its simplicity and minimalist appearance appealed a lot to me. I liked that the mouse played no role in using it. And I knew that there was no need for me to look any further.</p> <p>I guess I was drawn to vi for the same reasons I was – albeit many years later – drawn to the <a href="https://www.openbsd.org">OpenBSD</a> operating system: I like things to be minimal. In particular, tools should do one thing only and do it well (the core of the <a href="https://en.wikipedia.org/wiki/Unix_philosophy">Unix philosophy</a>, by the way).<sup id="fnref:1"><a href="#fn:1" class="footnote" rel="footnote" role="doc-noteref">1</a></sup></p> <p>Once I started using Vim, I never felt any desire to switch to another editor, and it is now my editor of choice since more than a quarter of a century (and I am so fond of it that I even maintain a dedicated <a href="/vi/">vi page</a>).</p> <h2 id="so-how-do-i-actually-use-vim">So, How Do I Actually Use Vim?</h2> <p>I do basically all my editing and writing in Vim, from e-mails to my PhD thesis (and, obviously, this very article as well). I also do all of my programming in Vim (no need for fancy IDEs). It is suitable for minor editing tasks just as well as for large writing or programming projects, and it has never failed me. It is fast – <em>really</em> fast –, and plain vi is available on basically every Unix installation out there – no matter what flavor of Unix or what age it is.</p> <p>I love that it is a modal editor. In contrast to most other editors, pressing a key does not automatically make the corresponding character appear on the screen – it only does if you happen to be in insert mode. Otherwise, it is interpreted as a command. This allows for pretty easy key combinations for most simple and elementary commands (in contrast to non-modal editors, where one always has to escape entering characters, which necessarily leads to more complex key combinations). I also love that commands are very logical in a specific way; one could argue that they form some sort of a language. I will not dive into the details here; that would make for an entire new article (or two or three…). It has been claimed that editing text in Vim is an almost Zen-like experience, and while I feel that this does not really do justice to Zen, I completely get what is meant by that statement.</p> <p>I do not use any plugins, although there is a huge ecosystem of plugins available for Vim (and Neovim even declares itself a “hyperextensible Vim-based text editor” on its <a href="https://neovim.io/">website</a>). I simply do not have any need for them. While there are certainly plugins which aim at improving the <em>editing</em> experience, my impression is that many plugins try to make Vim into something more than an editor. As mentioned earlier, though, that was one of the major reasons for me <em>not</em> to use Emacs. I do not want Vim to be more than an editor. I want to have an editor – no more and no less, period.</p> <p>Actually, I do not even care much about many of the <em>improvements</em> of Vim over plain vi (Vim is “Vi IMproved”, after all…). For instance, I never use visual mode. While it may be helpful when one is new to Vim<sup id="fnref:2"><a href="#fn:2" class="footnote" rel="footnote" role="doc-noteref">2</a></sup> – and in particular when one is used to GUI editors allowing one to mark text –, it is probably not the most efficient way to accomplish most of the things it is used for. In fact, I would argue that it would be a good idea to use plain vi for quite some time before (potentially) moving on to Vim. Many people probably do not even know how to accomplish things in vi without resorting to the <em>improvements</em> Vim offers. Yet, I am convinced that many of those <em>improvements</em> are improvements only in a superficial way. All this is elaborated extremely well in a reply on Stack Overflow, <a href="https://stackoverflow.com/a/1220118">Your problem with Vim is that you don’t grok vi</a>. I suggest reading it to everyone who is using Vim.</p> <p>So, in a perfect world, I would be using plain vi instead of Vim<sup id="fnref:3"><a href="#fn:3" class="footnote" rel="footnote" role="doc-noteref">3</a></sup>, and actually this is what I did for a couple of years.<sup id="fnref:4"><a href="#fn:4" class="footnote" rel="footnote" role="doc-noteref">4</a></sup> There are some reasons, though, why I switched to using Neovim for most things. One reason is that multiple levels of “undo” <em>is</em> in fact a real improvement over vi. Besides, I hail from one of those strange countries where people like to draw little dots above the letters, so Unicode support is practically non-negotiable for me. Also, I do use syntax highlighting, though I consider it by no means necessary (contrary to what I used to believe before using plain vi exclusively for a while).</p> <p>My <code>.vimrc</code> is very simple as well. While I am quite impressed by all the config files one can find on the Internet which are hundreds of lines long, and while I have a tendency myself to tweak config files way too much, I prefer to keep things simple here as well. Setting a few options fully suffices to make Vim behave the way I like.</p> <p>Now, while one might get that impression, it is certainly not my intention to argue against using Vim and in favor of vi. While I do think that Vim has become rather bloated over time, I use it on a daily basis and am most happy with it. My point is to direct the focus on the beautiful core of Vim – which is pretty close to plain vi in my opinion, yet extends it in certain ways. I sometimes like to compare vi and Vim to C and C++:<sup id="fnref:5"><a href="#fn:5" class="footnote" rel="footnote" role="doc-noteref">5</a></sup> There is this beautiful, rather small and well-defined, yet immensely powerful language C. And then there is C++, which extends C by far, adding feature over feature to it. Both are used heavily, and there are certainly reasons for both; but in most cases, I would rather use C instead of C++ (if I used them at all…).</p> <p>So, coming back to the subject of this article, the question of how I use Vim: I use it mostly the way I would use plain vi, but I also happily make use of those extensions I find useful – which are rather few, though. While I have used Vim for decades, I am sure I only employ a small fraction of the possibilities Vim – or even vi – offers. I might become more efficient by putting work into learning more subtle and intricate features, but I feel no real need for it. I know that, should I need a particular feature, I will most certainly find it – if not in vi, then in Vim. Most of the time, though, I am happy using a select set of commands in a more or less efficient way.</p> <p>There is so much more to say about Vim (maybe in the context of another Vim Carnival?), but for now, I will close my ramblings about Vim with one last observation: I do not just <em>use</em> Vim – I <em>enjoy</em> using it, a lot.</p> <h2 id="further-reading">Further Reading</h2> <p>There are a lot of great text about Vim out there (for a selection, see my <a href="/vi/">vi page</a>), so I would just like to mention two particular ones here:</p> <ul> <li><a href="https://moolenaar.net/habits.html">Seven habits of effective text editing</a> by Bram Moolenaar, author of <a href="https://www.vim.org/">Vim</a>.</li> <li><a href="http://www.viemu.com/a-why-vi-vim.html">Why, oh WHY, do those #?@! nutheads use vi?</a></li> </ul> <p>There once was another nice article called “Grokking the Zen of the Vim Wu-Wei”, but unfortunately the original link is broken, and I cannot find it anywhere else. If someone does manage to find it, I would be grateful for the link.</p> <p><strong>Update 2026-01-11</strong>: Thankfully, the author himself has provided the link to the article, so here it is:</p> <ul> <li><a href="https://jeetworks.org/grokking-the-zen-of-the-vi-wu-wei/">Grokking the Zen of the Vi Wu-Wei</a></li> </ul> <hr /> <div class="footnotes" role="doc-endnotes"> <ol> <li id="fn:1"> <p>Strangely, I recently found two articles which make the very same point with respect to coffee preparation: <a href="https://btxx.org/posts/one-thing/">My Coffee Maker Just Makes Coffee</a>, and <a href="https://www.fromjason.xyz/p/notebook/the-bliss-of-good-enough-an-ode-to-my-moka-pot/">The bliss of good enough— an ode to my moka pot</a>. <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:2"> <p>And I have used it myself for many years, I should add. <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:3"> <p>And in an even more perfect world, I would be using <a href="/ed-mastery/">ed</a>. <a href="#fnref:3" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:4"> <p>To be more precise, I was using nvi. <a href="#fnref:4" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:5"> <p>Though the comparison is admittedly far from perfect… <a href="#fnref:5" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> </ol> </div> <p>A Simple E-Mail Reminder System Based on cron and at</p> https://thorstenzoeller.com/mail-reminder 2023-02-10 2023-02-10 <h1 id="a-simple-e-mail-reminder-system-based-on-cron-and-at">A Simple E-Mail Reminder System Based on cron and at</h1> <p>2023-02-10</p> <p>Since I cannot keep everything I have to remember in my head, I need a reminder system. While I would prefer an analog system (ideally one that integrates with my system for keeping track of tasks), I have not found a satisfying analog solution so far.</p> <p>I am not looking for a full-fledged calendar system. If I were, I would be using <a href="https://www.roaringpenguin.com/products/remind">Remind</a> or <code>calendar</code>.<sup id="fnref:1"><a href="#fn:1" class="footnote" rel="footnote" role="doc-noteref">1</a></sup> But they offer way more features than I need.</p> <p>I basically have two requirements for my reminder system:</p> <ul> <li>It has to remind me reliably by e-mail about things a certain time in advance.</li> <li>It has to be simple and have as few external dependencies as possible.</li> </ul> <p>The solution I have come up with is almost too trivial to share: It employs <code>cron</code> and <code>at</code> to schedule reminders, which are sent as e-mails via a remote SMTP server when they are due.</p> <h2 id="the-setup">The Setup</h2> <p>The system depends on the following ingredients:</p> <ul> <li>A machine which is up 24/7 – for scheduling reminders for arbitrary times.<sup id="fnref:2"><a href="#fn:2" class="footnote" rel="footnote" role="doc-noteref">2</a></sup> I am using a server hosted on <a href="https://openbsd.amsterdam/">OpenBSD Amsterdam</a>.</li> <li><code>smtpd</code> – for <a href="/smtpd-relay/">relaying e-mails to a remote SMTP server</a>.</li> <li><code>cron</code> – for scheduling recurring reminders (like birthdays).</li> <li><code>at</code> – for scheduling nonrecurring reminders (like one-time events, or events which recur in irregular intervals).</li> <li><code>mail</code> – for sending e-mails non-interactively.</li> </ul> <p>On <a href="https://www.openbsd.org/">OpenBSD</a>, all the required software is part of the base system; see <a href="https://man.openbsd.org/smtpd.8">smtpd(8)</a>, <a href="https://man.openbsd.org/cron.8">cron(8)</a>, <a href="https://man.openbsd.org/at.1">at(1)</a>, <a href="https://man.openbsd.org/mail.1">mail(1)</a>.</p> <p>Both <code>cron</code> and <code>at</code> basically take two kinds of data as input: A timestamp which specifies <em>when</em> something is to be done, and an action which specifies <em>what</em> is to be done at the specified time.</p> <p>Regardless of whether a reminder is recurring or nonrecurring, I want an e-mail to be sent to me at the specified time. Therefore, the action in both cases is sending an e-mail to me reminding me of the given event. Since the e-mail needs to be sent non-interactively when the given time is reached, the <code>mail</code> utility is invoked, and the reminder text is passed to it as the mail subject (since they are usually short, I only specify a subject and leave the body empty; then I don’t even have to open the e-mail).</p> <p>In order not to have to specify the non-changing details (like the e-mail address) for sending the mail each time, I employ a small script called <code>mailrem</code> which is basically a wrapper around <code>mail</code> which takes the reminder text as its argument:</p> <pre><code>#!/bin/sh from="John Doe &lt;john.doe@email.com&gt;" subject="$1" echo | mail -r "$from" -s "$subject" "$from" </code></pre> <p>Finally, in order for <code>mail</code> to be able to send mails to a remote SMTP server, <code>smtpd</code> needs to be <a href="/smtpd-relay/">configured such that it relays outgoing mail to a remote server</a>.</p> <h2 id="usage">Usage</h2> <p>E-mail reminders are sent by calling <code>mailrem</code> with the specific reminder text as its argument, e.g.</p> <pre><code>$ mailrem "Prepare tax statement" </code></pre> <p>In order to schedule reminders for a specific time, <code>mailrem</code> is not invoked directly as above, but either by <code>cron</code> or by <code>at</code>, depending on whether the reminder is to be sent on a regular basis or just once.</p> <h3 id="recurring-reminders">Recurring reminders</h3> <p>Recurring reminders are scheduled by <code>cron</code> via corresponding crontab entries. Start editing the crontab file:</p> <pre><code>$ crontab -e </code></pre> <p>Then add an entry for each recurring reminder like this:</p> <pre><code>0 0 3 18 * $HOME/bin/mailrem "[Reminder] Paul's $(( $(/bin/date +\%Y) - 1976 )). birthday (1976)" </code></pre> <p>This entry would send an e-mail each year at midnight on March 18 with subject “[Reminder] Paul’s <em>n</em>. birthday (1976)”, where <em>n</em> is calculated each time the cron entry is triggered by subtracting Paul’s year of birth, 1976, from the current year obtained by the <code>date</code> utility.<sup id="fnref:3"><a href="#fn:3" class="footnote" rel="footnote" role="doc-noteref">3</a></sup></p> <h3 id="nonrecurring-reminders">Nonrecurring reminders</h3> <p>Nonrecurring reminders are scheduled by <code>at</code> via corresponding atjobs. For instance, to schedule an atjob for midnight in three days:</p> <pre><code>$ at midnight + 3 days </code></pre> <p>When prompted, enter the action to be executed at the specified time like this:</p> <pre><code>&gt; mailrem "[Reminder] Doctor's appointment at 9 am" </code></pre> <p>Then, press <code>&lt;Ctrl&gt; + D</code> to queue the atjob.</p> <p>That’s it. A very simple system which does its job and is easy to setup and maintain.</p> <h2 id="caveats">Caveats</h2> <ul> <li>The system is certainly not suitable for time-critical reminders. This is obvious, since by nature the reminders are sent in an asynchroneous way (i.e. via e-mail).</li> <li>There is no easy way to get a consolidated overview over all currently scheduled reminders. For recurring reminders, <code>crontab -l</code> could be used. Similarly, <code>atq</code> displays the queue of atjobs. However, the output of <code>atq</code> is pretty much unparseable (at least in the version which ships with OpenBSD). So one would have to manually extract the job ID from the output of <code>atq</code> and then do <code>$ at -c &lt;id&gt;</code> in order to see the content of the job.</li> <li>Failures cannot easily be discovered in general, and there is no recovery mechanism. If, e.g., for some reason the <code>cron</code> daemon is not running at the time a reminder is due, it will not be sent and will subsequently be lost forever.</li> </ul> <hr /> <div class="footnotes" role="doc-endnotes"> <ol> <li id="fn:1"> <p>Man page of the OpenBSD version: <a href="https://man.openbsd.org/calendar.1">calendar(1)</a> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:2"> <p>In principle, of course, it is also possible to run the system on a laptop. The severe drawback would be that reminders were lost if the laptop were not running at the scheduled time of a reminder. One could use tools like anacron instead of cron. This would mitigate the risk of losing reminders, but the time they are sent would then depend on when the laptop is running (which may differ greatly from the intended time of sending). <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:3"> <p>Man page of the OpenBSD version: <a href="https://man.openbsd.org/date.1">date(1)</a>. <a href="#fnref:3" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> </ol> </div> <p>My New Website</p> https://thorstenzoeller.com/new 2021-06-20 2021-06-20 <h1 id="my-new-website">My New Website</h1> <p>2021-06-20</p> <p>Not long ago, I created my first website. It was a static website, just like this one. I wrote the content in AsciiDoc and created a small script which rendered the pages to HTML.</p> <p>I was very proud of it.</p> <p>The content was basically plain text with a little bit of markup and some meta data – a beautifully clear separation of form and content.</p> <p>The script generating the site consisted of about 200 lines of Ruby code. It was simple, and it did its job.</p> <p>But it turned out that I would spend far more time tweaking the script to generate the site than to write content. After all, it was easier and more fun than to think about what to write.</p> <p>Also, the barrier to publish was too high: There were always a few steps to be done before any change could be published. Not many steps, really: Make some change, run the script, clone the respository for the site, delete its content, copy the output of the script to the repository, commit and publish it.</p> <p>Yet too many, as it turned out.</p> <p>So I ditched the script for generating the site and started anew.</p> <p>This time, it’s just plain HTML. Everything is created manually. Sounds like more work, but it’s not. It’s a profound simplification.</p> <p>This approach has its drawbacks, of course. The content is interspersed with markup – HTML is not really lightweight. It is not possible to make a change in the template which is immediately reflected in all pages using this template.</p> <p>But it’s definitely worth it.</p> <p>I thought my site was simple, but it wasn’t. Or at least not simple enough.</p> <p>Lesson learned.</p> <p>Pretended Intentionality</p> https://thorstenzoeller.com/pretended-intentionality 2021-10-21 2021-10-21 <h1 id="pretended-intentionality">Pretended Intentionality</h1> <p>2021-10-21</p> <p>I have recently become aware of an interesting – and somewhat concerning – behavior of mine in relation to my phone: In those spare moments when I am waiting for something, for instance, and the inevitable compulsion to check my phone arises, I often do manage to resist that urge. But after that first little victory over myself, something interesting happens: My mind, unable to accept that it is denied the diversion it so much craves, is trying to come up with suggestions for things that would be worth doing with my phone while waiting:<sup id="fnref:1"><a href="#fn:1" class="footnote" rel="footnote" role="doc-noteref">1</a></sup></p> <p><em>What was it again that makes Ridge A such a special place? Now would be a good time to head over to Wikipedia and check it out – after all, there is not much else you can do right now anyway!</em></p> <p><em>Which city in the world has the longest subway system, actually? Well, why not figure it out quickly?</em></p> <p><em>Let’s check openbsd.org to find out whether the new OpenBSD release is already available.</em></p> <p>My mind <em>knows</em> that I am trying to control myself in order not to compusively check my phone for no obvious reason whatsoever. And therefore, recognizing that just letting things run will not suffice this time, it becomes creative: Knowing that I am trying hard to act intentionally instead of compulsively and reflexive, it <em>makes me believe that I do in fact act intentionally</em> by rationalizing using my phone.</p> <p>And thus my mind gets hold of me. It’s the monkey mind at work. But just like a real monkey, it is not just jumping around like crazy; it is also very clever and inventive.</p> <p>What is so perfidious about it is that my mind is tricking me into the very behavior I am trying to avoid by <em>convincing me that I am in fact avoiding it</em>. Yet, this is all just another, albeit clever, strategy of my mind to run away from the slightest sign of boredom and instead indulge in distractions; that everlasting endeavor of the mind of not having to cope with the truly important things in life – or, at the least, of not having to <a href="https://zenhabits.net/alone/">sit alone in a quiet empty room</a>.</p> <p>The good thing is: Once you become aware of something you want to change, it becomes possible to actually change it.</p> <hr /> <div class="footnotes" role="doc-endnotes"> <ol> <li id="fn:1"> <p>I am mostly using the terms <em>me</em> and <em>my mind</em> here to refer to the conscious and subconscious parts of myself, respectively. <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> </ol> </div> <p>Installation and Setup of the RainLoop Webmail Client on OpenBSD</p> https://thorstenzoeller.com/rainloop-on-openbsd 2021-12-22 2021-12-22 <h1 id="installation-and-setup-of-the-rainloop-webmail-client-on-openbsd">Installation and Setup of the RainLoop Webmail Client on OpenBSD</h1> <p>2021-12-22</p> <p><a href="https://www.rainloop.net/">Rainloop</a> is a modern, simple and rather lightweight webmail client. This article describes its installation and setup on a local OpenBSD machine and the configuration necessary for accessing a <a href="https://posteo.de/en">Posteo</a> e-mail account.</p> <p>Tested with OpenBSD 6.9, PHP 8.0 and RainLoop 1.16.0.</p> <h2 id="prerequisites">Prerequisites</h2> <p>On a default OpenBSD installation, only a few things are required in order to get RainLoop set up and running:</p> <ul> <li><strong>Web server</strong>. Since we are on OpenBSD, we will be using <a href="https://man.openbsd.org/httpd.8">httpd(8)</a>.</li> <li><strong>PHP</strong>. In addition to the extensions contained in the base installation, only PHP-cURL is required, and optionally PHP-PDO for contacts.</li> </ul> <p>No database is required for the core functionality; it is only needed for storing contacts, which is optional.</p> <h2 id="installation-and-setup">Installation and Setup</h2> <h3 id="httpd">httpd</h3> <p>Create an entry in <code>/etc/httpd.conf</code> for a HTTP server listening on <code>localhost:8080</code> (of course, any other port can be specified):</p> <pre><code>server "default" { listen on "127.0.0.1" port 8080 log { access "default-access.log" error "default-error.log" } root "/rainloop" directory index index.php location "/data/*" { block } location "*.php" { fastcgi socket "/run/php-fpm.sock" } } </code></pre> <p>Here, it is assumed that RainLoop will be installed in <code>/var/www/rainloop</code>, which therefore needs to be set as the document root for the server. Also, web access to the <code>data</code> subdirectory must be blocked.</p> <p>Start <a href="https://man.openbsd.org/httpd.8">httpd(8)</a> unless it is already running:</p> <pre><code>$ doas rcctl enable httpd $ doas rcctl start httpd </code></pre> <p>Otherwise, simply restart it:</p> <pre><code>$ doas rcctl restart httpd </code></pre> <h3 id="php">PHP</h3> <p>Install <a href="https://man.openbsd.org/php.1">php(1)</a> unless already done:</p> <pre><code>$ doas pkg_add php </code></pre> <p>Start the PHP FastCGI Process Manager (PHP-FPM):</p> <pre><code>$ doas rcctl enable php80_fpm $ doas rcctl start php80_fpm </code></pre> <p>Install the PHP-cURL extension and make it known to PHP:</p> <pre><code>$ doas pkg_add php-curl $ doas ln -sf /etc/php-8.0.sample/curl.ini /etc/php-8.0/ </code></pre> <p>Optionally, install the corresponding PHP-PDO extension for the database to be used (in this case SQLite; other options are MySQL and PostgreSQL) and make it known to PHP:</p> <pre><code>$ doas pkg_add php-pdo_sqlite $ doas ln -sf /etc/php-8.0.sample/pdo_sqlite.ini /etc/php-8.0/ </code></pre> <h3 id="rainloop">RainLoop</h3> <p>Create a directory for RainLoop under <code>/var/www</code>:</p> <pre><code>$ doas mkdir /var/www/rainloop </code></pre> <p>Get the latest version of the <a href="https://www.rainloop.net/repository/webmail/rainloop-community-latest.zip">RainLoop Community edition</a> and unzip it in <code>/var/www/rainloop</code>:</p> <pre><code>$ doas mkdir /var/www/rainloop $ cd /var/www/rainloop $ doas ftp https://www.rainloop.net/repository/webmail/rainloop-community-latest.zip $ doas unzip rainloop-community-latest.zip $ doas rm rainloop-community-latest.zip </code></pre> <p>Set the owner of the <code>data</code> subdirectory to <code>www</code>:</p> <pre><code>$ doas chown -R www data </code></pre> <p>Finally, copy <code>/etc/resolv.conf</code> to <code>/var/www</code> (otherwise, the domain names of the mail servers may not get resolved to their corresponding IP addresses):</p> <pre><code>$ mkdir -p /var/www/etc $ doas cp /etc/resolv.conf /var/www/etc/resolv.conf </code></pre> <p>RainLoop can then be accessed via the URL <code>localhost:8080</code>, and it can be configured in the admin panel which can be accessed via <code>localhost:8080?admin</code>.</p> <h3 id="accessing-a-posteo-e-mail-account">Accessing a Posteo E-Mail Account</h3> <p>Access to a <a href="https://posteo.de/en">Posteo</a> e-mail account can be set up by creating the file <code>/var/www/rainloop/data/_data_/_default_/domains/posteo.de.ini</code> with the following contents:</p> <pre><code>imap_host = "posteo.de" imap_port = 993 imap_secure = "SSL" imap_short_login = Off sieve_use = Off sieve_allow_raw = Off sieve_host = "" sieve_port = 4190 sieve_secure = "None" smtp_host = "posteo.de" smtp_port = 587 smtp_secure = "TLS" smtp_short_login = Off smtp_auth = On smtp_php_mail = Off </code></pre> <p>Alternatively, the account can be set up via the admin panel.</p> <h2 id="references">References</h2> <ul> <li><a href="https://www.rainloop.net/docs/">Documentation on the RainLoop website</a></li> <li><a href="https://dev.to/nabbisen/rainloop-webmail-on-openbsd-installation-1hfg">Rainloop Webmail on OpenBSD: Installation</a></li> <li><a href="https://brank.me/rainloop-OpenBSD.html">Rainloop And OpenBSD</a></li> </ul> <p>Taking Screenshots on OpenBSD</p> https://thorstenzoeller.com/screenshots-on-openbsd 2022-01-30 2022-01-30 <h1 id="taking-screenshots-on-openbsd">Taking Screenshots on OpenBSD</h1> <p>2022-01-30</p> <p>I rarely need to take screenshots, but occasionally it is convenient to be able to do so. The method described here uses <a href="https://github.com/naelstrof/maim">maim</a>, <a href="https://man.openbsd.org/cwm.1">cwm(1)</a> and <a href="https://man.openbsd.org/ksh.1">ksh(1)</a>. I use it on OpenBSD, but it should work in a very similar way on all Unix-like operating systems.</p> <p>Here is how it works:</p> <h2 id="preparation">Preparation</h2> <p>Install <code>maim</code>:</p> <pre><code>$ doas pkg_add maim </code></pre> <p>Create a script with the following content and save it to <code>~/bin/screenshot</code> (assuming <code>~/bin</code> is in the user’s <code>PATH</code>):</p> <pre><code>#!/bin/sh maim -s | xclip -selection clipboard -t image/png </code></pre> <p>All this script does is invoking <code>maim</code> to prompt the user to select the region of the screen he wants to take a screenshot of, upon which <code>maim</code> will create a PNG image of the region, which is then copied to the clipboard.</p> <p>Make the script executable:</p> <pre><code>$ cd ~/bin $ chmod u+x screenshot </code></pre> <p>Define a keybinding in <code>~/.cwmrc</code> for invoking <code>screenshot</code> via the key combination <code>&lt;Alt&gt; + s</code> (of course, any other combination works as well):</p> <pre><code>bind-key M-s "bin/screenshot" </code></pre> <p>Define an alias in <code>~/.kshrc</code> for pasting the image from the clipboard to a file:</p> <pre><code>alias clip2file='xclip -selection clipboard -o &gt;' </code></pre> <p>That’s it.</p> <h2 id="taking-a-screenshot">Taking a Screenshot</h2> <p>Then, to take a screenshot, do the following:</p> <ol> <li> <p>Press <code>&lt;Alt&gt; + s</code>.</p> </li> <li> <p>Select the region of the screen you want to take a screenshot of.</p> </li> <li> <p>Go to a terminal and type:</p> <pre><code>$ clip2file &lt;file&gt;.png </code></pre> </li> </ol> <p>The resulting screenshot will be saved to <code>&lt;file&gt;.png</code>.</p> <h2 id="see-also">See Also</h2> <ul> <li><a href="https://romanzolotarev.com/bin/screenshot">Another script</a> for taking screenshots by <a href="https://romanzolotarev.com/">Roman Zolotarev</a>.</li> <li><a href="https://dataswamp.org/~solene/2021-07-19-simple-scripts.html#_Screenshot_of_a_region_and_upload">Another script</a> for taking screenshots by <a href="https://dataswamp.org/~solene/">Solène Rapenne</a>.</li> </ul> <p>Derek Sivers: “How to Live”</p> https://thorstenzoeller.com/sivers-how-to-live 2023-03-05 2023-03-05 <h1 id="derek-sivers-how-to-live">Derek Sivers: “How to Live”</h1> <p>2023-03-05</p> <p>To state it upfront: <a href="https://sive.rs/h">How to Live</a> is a book which can hardly be overrated. It is full of wisdom, packed even more densely with insights than Dereks’ previous writings.</p> <p>The title of the book asks one of the most important questions of life – maybe the single most important one –, and it implies that the book sets out to answer this question.</p> <p>Instead of answering the titles’ question, however, the book presents us with <em>twenty-one</em> ways how to live. Each of the 21 short chapters explains how to live a life according to a certain guiding principle. It describes how to live in complete accordance with that principle, to adhere to it with the utmost consequence.</p> <p>But: All of the 21 ways to live are completely incompatible with each other, due to their conflicting guiding principles.</p> <p>So does this book answer the question posed in its title? No. Instead, it presents possibilities. Every single chapter is convincing and persuading, yet every one is completely different than any other.</p> <p>To me, the core statement of this book is that there are no definite answers, at least not to the really important questions of life. We humans yearn for answers, for recipes, for certainty – yet at some point, everybody has to face the fact that there are no simple, universal answers to the truly important questions. Life is contradictory, often messy, rarely proceeding along a straight line. And, most important: Each life is absolutely individual, and everyone has to find his own answers.</p> <p>Just as remarkable as the books’ content is its form. It is incredibly dense. Derek somehow manages to picture the different ways to live in often not more than three or four pages. Most sentences are very short, often fitting on a single line, and new sentences always start on the next line. His writing is never pleasing, but always sharp and to the point, and with “How to Live” he has perfected his style. To me, it is supremely elegant.</p> <p>Two quotes come to my mind when thinking of “How to Live”:</p> <p>“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” by Antoine de Saint-Exupéry. It seems to me that this was Dereks’ personal guiding principle in writing this book.</p> <p>The second one is by Michelangelo: “The sculpture is already complete within the marble block, before I start my work. It is already there, I just have to chisel away the superfluous material.” I can imagine how Derek spent hours and hours chiseling away the superfluous words, finally achieving something which comes very close to the perfection as it is defined in the quote by Antoine de Saint-Exupéry above.</p> <p>Making a point using many words is easy; making a point using very few words is exceedingly difficult. Derek has succeeded in every aspect.</p> <p>If you have not read the book yet, buy it and read it, immediately. Then, after some time, read it again, and again.</p> <p>Derek Sivers: “Useful Not True”</p> https://thorstenzoeller.com/sivers-useful-not-true 2025-07-06 2025-07-06 <h1 id="derek-sivers-useful-not-true">Derek Sivers: “Useful Not True”</h1> <p>2025-07-06</p> <p><a href="https://sive.rs/u">Useful Not True</a> is another gem by Derek Sivers. Whenever he publishes a new book, I order it immediately, no matter what it is about. I know from experience that everything he writes is packed with wisdom and insights I don’t want to miss.</p> <p>Let me start with the form of the book (I am referring to its physical version here): It is short, as Derek’s books usually are. Most chapters are one or two pages at most, very few are longer. The font size is pretty large, as well as the distance between lines, and the lines are rather narrow, which makes the reading a very pleasant experience. This is in contrast to many other books which look as if they were laid out with the goal to pack as many words as possible on each page. With Derek’s books, it is the exact opposite, with respect to both form and content: They look as if the goal was to use as <em>few</em> words as possible (and it was!). They are a perfect example for James Altuchers’ maxim “<del>To</del> increase the value of <del>your</del> words, make them <del>as</del> few <del>as possible</del>.”</p> <p>The content of the book perfectly matches its form: It is distilled to the bare minimum of what is necessary to convey its point. Nothing is superfluous; every word serves a purpose. One could certainly easily inflate the books’ content to 1000 pages, but it would not be possible to reduce it to fewer pages without losing content.</p> <p><em>Useful Not True</em> is a book about perspective. Everything is relative; nothing is absolute. There is no “right” or “wrong”, just “useful” or “useless”. While reading it, so many associations popped up in my mind:</p> <p>To Zen Buddhism with its belief that everything is made up by the mind alone and its seeking for looking at things as how they are, without making up things about them in our mind.</p> <p>To phenomenology and its concept of <em>epoché</em> (and similar concepts in Stoicism and other philosophies), a method for refraining from subjective judgements of things or situations.</p> <p>And even to physics and mathematics, in different aspects: In gauge theories, there are intrinsic unphysical degrees of freedom. By fixing the gauge, those unphysical degrees of freedom can be removed. And this can be done in different ways, depending on what is most useful in the respective situation.</p> <p>Also, physical theories are formulated as models which describe (physical) reality. They never do it perfectly, though, because they cannot capture every aspect of reality. And yet, good models are extremely useful (and a good model is not necessarily one that describes reality most accurately; it may be perfectly sufficient to describe a very particular aspect of reality with a certain coarseness if it still captures the relevant physical mechanisms). As George E. P. Box put it: “Essentially, all models are wrong, but some are useful.”</p> <p>The importance of the book lies in the fact that, while its statement seems perfectly plausible, we very often tend to ignore it. Ask two people standing opposite each other where the river is. The one says: “On the left.” The other says: “On the right.” Who is right? It is remarkable how firm our belief is that there is “right” and “wrong”, while it is so obvious that this is usually not true, if we just looked at things as they are. While the consequences may be trivial as in the example above, they can be arbitrarily grave in other situations.</p> <p>So, on the one hand, recognizing there are no absolutes can prevent us from making mistakes in judging situations. But there is another aspect, which is hinted at in the title of the book: We can turn this realization to our advantage. You can face a wall, or you can turn around and look at a serene beach. Both perspectives are “right” or valid. Why not choose the one you like better? There lies power in not being confronted with the one “true” perspective, but instead being able to choose ones preferred perspective, and this power can be harnessed – provided we know that we can simply turn around.</p> <p>I will end with my usual recommendation of Derek’s books: Buy it, read it, and digest its content as fully as possible! It is worth every word.</p> <p>Relay Mail to a Remote SMTP Server With <code>smtpd</code></p> https://thorstenzoeller.com/smtpd-relay 2022-03-27 2022-03-27 <h1 id="relay-mail-to-a-remote-smtp-server-with-smtpd">Relay Mail to a Remote SMTP Server With <code>smtpd</code></h1> <p>2022-03-27</p> <p>Configure <a href="https://man.openbsd.org/smtpd.8">smtpd(8)</a> to relay outgoing mail to a remote SMTP server as follows:</p> <p>Create the file <code>/etc/mail/secrets</code>:</p> <pre><code>$ doas touch /etc/mail/secrets $ doas chmod 640 /etc/mail/secrets $ doas chown root:_smtpd /etc/mail/secrets $ doas echo "label username:password" &gt; /etc/mail/secrets </code></pre> <p><code>username</code> and <code>password</code> are the credentials for accessing the remote SMTP server, and <code>label</code> is an identifier for the username-password combination. It can be chosen arbitrarily and is used in <code>smtpd.conf</code> (see below). Since the credentials are stored in plain text, restrictive permissions are set for the <code>secrets</code> file.</p> <p>Replace the default content of <code>/etc/mail/smtpd.conf</code> with the following:</p> <pre><code>table aliases file:/etc/mail/aliases table secrets file:/etc/mail/secrets listen on lo0 action "local" mbox alias &lt;aliases&gt; action "relay" relay host smtp+tls://label@smtp-server:port auth &lt;secrets&gt; match for local action "local" match for any action "relay" </code></pre> <p><code>label</code> is the corresponding label from the <code>secrets</code> file, <code>smtp-server</code> is the URL of the remote SMTP server, and <code>port</code> is the mail submission port (default: 587).</p> <p>Verify that the configuration is syntactically correct:</p> <pre><code>$ doas smtpd -n </code></pre> <p><code>smtpd</code> will answer with:</p> <pre><code>configuration OK </code></pre> <p>Restart <code>smtpd</code>:</p> <pre><code>$ doas rcctl restart smtpd </code></pre> <p><code>smtpd</code> will answer with:</p> <pre><code>smtpd(ok) smtpd(ok) </code></pre> <p>Test the configuration by sending an e-mail using <a href="https://man.openbsd.org/mail">mail(1)</a>:</p> <pre><code>$ echo "This is a test" | mail -s "Test" mail@example.com </code></pre> <h2 id="references">References</h2> <ul> <li><a href="https://man.openbsd.org/smtpd.conf">smtpd.conf(5)</a></li> <li><a href="https://rgz.ee/openbsd/smtpd-forward.html">Forward outgoing mail to a remote SMTP server</a> by Roman Zolotarev.</li> </ul> <p>Multiple-Click Selections in xterm</p> https://thorstenzoeller.com/xterm-sel 2022-02-12 2022-02-12 <h1 id="multiple-click-selections-in-xterm">Multiple-Click Selections in xterm</h1> <p>2022-02-12</p> <p>It is possible to configure in detail which portion of the screen – a word, a line, etc. – is selected in <a href="https://man.openbsd.org/xterm.1">xterm(1)</a> on rapid successive mouse clicks.</p> <h2 id="what-is-a-word-in-xterm-after-all">What is a Word in xterm, After All?</h2> <p>In <code>xterm</code>, words can be selected by double-clicking on any character in the respective word. This will highlight the word, and it is then in the primary selection of the X Window System and can be pasted elsewhere.</p> <p>Characters are grouped into <em>character classes</em>. Words are defined in <code>xterm</code> as strings of characters belonging to the same character class. Therefore, what <code>xterm</code> interprets as a word depends on the mapping of characters to character classes.</p> <p>In the default mapping, alphanumeric characters and the underscore belong to one character class, space and tab belong to another character class, and all other characters have their own character class. This definition works well when dealing mostly with prosaic texts, since it more or less corresponds to the usual definition of a word (i.e. certain characters separated by whitespace). In other cases, it is less convenient though. For instance, it is not possible to select a path consisting of several directories by double-clicking on it, since directories are separated by a slash, which belongs to a different character class than alphanumeric characters and the underscore.</p> <p>Interestingly, the mapping can be changed via a certain <code>xterm</code> resource called <code>charClass</code>. Its value is a list of key-value pairs, where the key is either a single character code or a range of character codes, and the value is a character class. A given key-value pair then defines that the character(s) specified by the key belong to the character class specified by the value.</p> <p>Character classes are identified by numbers (which in turn correspond to the character code of a representative of that character class). The default mapping of characters to character classes is given in the <a href="https://man.openbsd.org/xterm.1#CHARACTER_CLASSES">respective section of the manpage</a>. In the default mapping, alphanumeric characters and the underscore belong to character class 48 (the character code of the character <code>0</code>), and space and tab belong to character class 32 (the character class of <code>space</code>).</p> <p>Therefore, in order to add e.g. the characters <code>!</code> (character code 33) and <code>:</code> (character code 58) to character class 48, add the following line to <code>~/.Xresources</code>:</p> <pre><code>xterm*charClass: 33:48,58:48 </code></pre> <p>To add all “regular” characters to character class 48, add the following line to <code>~/.Xresources</code>:</p> <pre><code>xterm*charClass: 33-126:48 </code></pre> <p>Activate the change:</p> <pre><code>$ xrdb -merge ~/.Xresources </code></pre> <h2 id="xterm-knows-more-than-just-words">xterm Knows More Than Just Words</h2> <p>Words are just one kind of character grouping in <code>xterm</code>. The full list is:</p> <dl> <dt><code>word</code></dt> <dd>As defined above.</dd> <dt><code>line</code></dt> <dd>The entire line to which the character under the pointer belongs to.</dd> <dt><code>group</code></dt> <dd>Basically the paragraph the character under the pointer belongs to, i.e. all lines above and below up to the next blank line. Does not extend outside the current page.</dd> <dt><code>page</code></dt> <dd>All visible lines on the current page.</dd> <dt><code>all</code></dt> <dd>All lines, including i.e. saved lines.</dd> </dl> <p>Even that is not all there is, though. On top of that, it is even possible to define custom groupings via regular expressions (basically, all other predefined groupings are just shortcuts; they could just as well be defined via a corresponding regular expression). Also, there is the pseudo-grouping <code>none</code> which specifies that no selection should occur in the respective case.</p> <p>So it is possible to specify in a very fine-grained way what will be in the primary selection when double-clicking on some character. But it can be specified just as well what happens when clicking multiple (i.e. more than two) times in rapid succession. This is useful since one may be interested in selecting different character groupings depending on the respective case. For instance, in the default configuration, triple-clicking usually selects the entire line. Which character grouping is selected when clicking 2, 3, 4 and 5 times in rapid succession is specified by assigning one of the character groupings defined above to the <code>xterm</code> resources <code>on2Clicks</code>, <code>on3Clicks</code>, <code>on4Clicks</code> and <code>on5Clicks</code>, respectively.</p> <p>As an example, in order to specify that double-clicking should select words defined as a string consisting of alphanumeric characters, the underscore, the exclamation mark and the colon, that triple-clicking should select words defined as a string consisting of all regular characters except whitespace (defined via a corresponding regular expression), and that clicking four times in rapid succession should select the entire line, add the following lines to <code>~/.Xresources</code>:</p> <pre><code>xterm*charClass: 33:48,58:48 xterm*on2Clicks: word xterm*on3Clicks: regex [^[:space:]]+ xterm*on4Clicks: line </code></pre> <p>Even when using the mouse sparingly, it is very convenient to be able to specify what gets selected on multiple clicks in <code>xterm</code>, and it certainly does save some time.</p> <p>Quake Discoveries</p> https://thorstenzoeller.com/quake-discoveries 2026-03-14 2026-03-14 <h1 id="quake-discoveries">Quake Discoveries</h1> <p>2026-03-14</p> <p>Here is a question I am sometimes pondering: Can there be discoveries which completely shatter our worldview and our understanding of ourselves and the universe we live in? For lack of a better term, I will call such discoveries “quake discoveries” in the following.<sup id="fnref:1"><a href="#fn:1" class="footnote" rel="footnote" role="doc-noteref">1</a></sup></p> <p>To be clear: I am not talking about discoveries which simply <em>question</em> or <em>change</em> our worldview. I am talking about experiences which <em>shatter</em> it altogether, which break it apart irreparably and leave behind nothing but debris.</p> <p>Take, for instance, the discovery of the theory of relativity, or of quantum theory: These were certainly discoveries which adjusted our worldview. Suddenly, it was clear that the universe was completely different than we thought – at least in certain aspects. Many people were probably confused, maybe even aghast when they first heard about these theories. Maybe they did not want to believe them and were thinking that they could not be true. Yet, most likely, this is what happend to most people after having digested the initial shock: At the end of the day, they went to bed. The next day, they got up and went to work. And that was it.<sup id="fnref:2"><a href="#fn:2" class="footnote" rel="footnote" role="doc-noteref">2</a></sup></p> <p>These are not the kinds of discoveries I am talking about here. I am talking about discoveries which will not allow one to just get up the next morning and go to work. I am talking about discoveries which throw us out of our world, of our universe; discoveries which render it impossible to get up as the same person as the day before. Discoveries which, from one moment to another, change <em>everything</em>. Discoveries after which nothing will ever be as it was.</p> <p>I am talking about discoveries which mankind has never made before, never in its entire history. Sure, most people were shocked and upset when they learned that the sun does not revolve around the earth, that the earth is not the center of the universe. But did that stop them from meeting friends, playing games, chatting with each other? Most likely not. Shortly after this discovery, they went on with their lives as usual.<sup id="fnref:3"><a href="#fn:3" class="footnote" rel="footnote" role="doc-noteref">3</a></sup></p> <p>So, I am talking about discoveries of a whole different kind. But what could such discoveries look like? I do not know; after all, there are no examples to be found in history. What I usually imagine is something like the discovery in the film “The Matrix” that what people believed to be their real life was actually nothing but a simulation. I guess that would be a discovery which would not allow you to simply get up and go to work the next day. But then, who knows?</p> <p>Possible future discoveries with respect to the nature of time or the mind might also be candidates for discoveries of this kind. Then again, discoveries cannot be predicted, and their <em>kind</em> or nature can be predicted even less.</p> <p>The point is this: So far, all discoveries mankind has ever made in its history have at most <em>shaken</em> our worldview, leaving us back confused, but still <em>within</em> our universe. They may have thrown us on the floor, but they left us in our familiar environment. Our perspective has changed, but only momentarily.</p> <p>Quake discoveries, on the other hand, would kick us out of our universe and destroy every bridge which might enable us to ever return to it. It would throw us into another universe altogether, into a distant and foreign place. It would leave us completely disoriented.</p> <p>Will we ever make such discoveries? Is that even possible, given that our direct <em>experience</em> and <em>perception</em> of the world can probably never be changed by any discovery whatsoever? After all, even if we found out that we live in a gigantic simulation, we would still <em>feel</em> the warmth of the sun on our skin; we would still get hungry and tired, and we would still have wishes and desires. And even if we <em>knew</em> that we live in a gigantic simulation, it would still <em>feel</em> like the real world. So, can mere <em>knowledge</em> ever have these effects I am talking about?</p> <p>I do not know the answer, but I find this a fascinating question.</p> <hr /> <div class="footnotes" role="doc-endnotes"> <ol> <li id="fn:1"> <p>The term “disruptive discoveries” would probably sound more serious, but does not really seem appropriate for what I am talking about here. <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:2"> <p>Of course, many people – in particular those dealing professionally with these theories – continued to deal with them and their consequences for a long time and in many cases even fought hard fights within themselves before they were able to accept them. I doubt, however, that any of those people perceived these discoveries as existential threats to their worldviews. <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:3"> <p>With the exception of those who felt threatened by those discoveries and tried to forcefully hide or miscredit them, of course. <a href="#fnref:3" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> </ol> </div> <p>Vim and PKM</p> https://thorstenzoeller.com/vim-and-pkm 2026-04-30 2026-04-30 <h1 id="vim-and-pkm">Vim and PKM</h1> <p>2026-04-30</p> <p>First things first: It is a pleasure to once again participate in a <a href="https://lazybea.rs/carnivals/">Vim Carnival</a>, created and hosted by the fabulous <a href="https://lazybea.rs">Hyde</a>.</p> <p>Though the topic of the <a href="https://lazybea.rs/vim-carnival-202604/">Vim Carnival - April 2026</a> is: “How do you use Neovim/Vim to build your knowledge management?”, let me state upfront: This article is going to be more about personal knowledge management (PKM) than about Vim. After all, Vim is “just” an editor, which is <em>per se</em> agnostic to what it is employed for – be it writing todo lists, emails, books, doing PKM or whatever. So honestly, I am somewhat stretching the idea of the <em>Vim Carnival</em> with this contribution. For the short (and maybe a bit disappointing) answer to the above prompt, you can jump directly to the section <a href="#and-what-about-vim">And what about Vim?</a> at the very end.</p> <p>A short note regarding terminology: In this article I will use “Vim” as a placeholder for vi-like editors in general. In particular, it includes both <a href="https://www.vim.org/">Vim</a> and <a href="https://neovim.io/">Neovim</a>, but even plain vi<sup id="fnref:1"><a href="#fn:1" class="footnote" rel="footnote" role="doc-noteref">1</a></sup>.</p> <h2 id="a-short-preface">A short preface</h2> <p>Actually, this Vim carnival is a welcome prompt for a subject I intended to write about since a long time, but never came around to doing: That is, how I do PKM.</p> <p>I won’t delve into the “theory” of PKM in any detail here. There is a lot to say about PKM, and a lot has already been said about it in the past and will be said about it in the future (and I am no expert at all in this matter). The risk in writing an article like this one is to completely get lost in the many aspects and facets of PKM. So I deliberately try <em>not</em> to let that happen and will focus on very few aspects – mostly on the technical implementation of my PKM system – in the hope of not ending up with a complete mess of an article.</p> <p>So, here we go…</p> <h2 id="pkm-on-a-computer">PKM on a computer</h2> <p>I have long dabbled with the challenge of PKM (long before I even knew a term existed for it and a large and active community has developed around it) – that is the challenge of how to manage knowledge (i.e. not just to store it, but to actively use it and engange with it in a meaningful way): Be it storing ideas for later reference, short notes, how-tos, trivia, inspirational quotes or whatever one considers worth remembering or needs to remember.</p> <p>While implementing an analog PKM system (i.e. a system not relying on a computer) is very well possible – after all, people have been doing it for hundreds if not thousands of years –, the advent of computers has certainly opened up new possibilites, like organizing documents in different fashions, searching in them and filtering them according to certain criteria. I will not discuss the advantages and disadvantages of analog and digital forms of PKM here and instead, without further explanation, focus on digital PKM systems from here on.<sup id="fnref:2"><a href="#fn:2" class="footnote" rel="footnote" role="doc-noteref">2</a></sup></p> <p>The question then is: How to implement a PKM system on a computer? While dedicated tools – from simple to highly sophisticated and complex – abound, I have always had a certain aversion to them. I guess it stems from the fact that I have always thought that there must be a really simple way to implement such a system, a way that is efficient and so robust that it can stand the test of time (and the coming and going of software tools…).</p> <p>This does not mean that there are no good tools around for implementing a PKM system. Even when taking into account some of my basic requirements, like</p> <ul> <li>notes must be stored as plain text,</li> <li>the tool must be open source (to prevent vendor lock-in, among others),</li> <li>it should be simple and not suffer from feature creep,</li> </ul> <p>there is still a respectable number of tools which satisfy these. Yet, I have never come to really like them. Even <a href="https://obsidian.md/">Obsidian</a>, a tool which has many dedicated fans and which I really appreciate, is not for me, mostly for two reasons (which are directly connected to the requirements above): It is too complex for my taste and offers way more features than I would ever need, and – no matter how successful and widely used it is today –, it will most likely be gone someday.<sup id="fnref:3"><a href="#fn:3" class="footnote" rel="footnote" role="doc-noteref">3</a></sup></p> <p>Therefore, I have always preferred to build my own PKM systems, tailored to my specific needs (which sounds more grandiose than it actually is; hold on).</p> <h2 id="the-simplest-pkm-system">The simplest PKM system</h2> <p>But first, let us take a step back. The simplest system for storing notes – the one most people have used decades ago, and in particular before the advent of graphical user interfaces – is storing them in plain text files, one per note, in some directory (or directory structure). There is basically just one ingredient necessary for setting up such a system on a computer (apart from rather obvious things like a file system): A text editor for creating and editing notes.</p> <p>With nothing more than this, working with the system is somewhat limited. But as soon as basic tools available (and usually preinstalled) on essentially all Unix-like operating systems are taken into account, we already gain quite a bit:</p> <ul> <li>A pager like <code>less</code> lets us view notes.</li> <li><code>grep</code> lets us search notes.</li> <li><code>ln</code> lets us link notes (for creating aliases, for instance).</li> </ul> <p>and so on.</p> <p>And honestly, I still feel that not much more is needed for implementing a PKM system on a computer. While I tend to spend much time thinking about how to best implement things, sooner or later I usually feel myself drawn to very simple solutions with few dependencies. Here, as in many other cases, the danger lies in spending so much time setting up and administrating the system that one does not really <em>use</em> it at all.</p> <p>There are basically just two things I would really miss with a pure plain text approach like this one: The ability to tag and to link notes. While tagging would be possible by, for instance, prepending tags with a certain prefix like “#” and then using <code>grep</code> to find notes containing them, that would be a little cumbersome. But I have not been able to find a good solution for linking notes (in particular linking from a specific point in a note) with this approach.</p> <p>Here HTML comes to the rescue – or rather leightweight markup languages like <a href="https://daringfireball.net/projects/markdown/">Markdown</a> or <a href="https://asciidoc.org/">AsciiDoc</a> which translate to HTML.</p> <h2 id="a-little-bit-of-personal-history">A little bit of (personal) history</h2> <p>Before explaining the system I am currently using, however, let me briefly mention three of the many self-built systems I have used over the years. I have chosen these because of the different ideas and concepts they were based on.</p> <ul> <li> <p>A self-written simple static site generator where notes were written in AsciiDoc and included front-matter for metadata like tags etc. (actually, it was a derivate of a static site generator I built for my website). Since the output format was HTML, linking between notes was easy. Since the output was static, though, it was only possible to filter for single tags; dynamical filtering was simply not possible. This may be fine for a personal website, for instance, but it is definitely a drawback for a PKM system.</p> </li> <li> <p>A pure plain-text system where notes were stored as plain-text files without any structured markup (like Markdown or AsciiDoc) at all. Tags were implemented via symbolic links to (empty) directories named like the given tag, and links between notes were implemented via symbolic links between these notes (I got the idea of using symbolic links for implementing tags by the great article “The Case Against Everything Buckets” by <a href="https://al3x.net/">Alex Payne</a>, which unfortunately is no longer available online to my knowledge). What I really liked about this system was that it depended only on tools which are already available on any Unix-like system (an editor, a pager, symbolic linking etc.). All the linking was somewhat cumbersome, however, and in particular error-prone. Therefore, I wrote a simple shell script which provided convenience functions for viewing, editing, tagging and linking of notes (and in particular for carrying out all the linking). A major disadvantage of this system was that linking was only possible on the level of the notes themselves (i.e. you could link note A to note B, but you could not link from <em>a specific point in note A</em> to note B).</p> </li> <li> <p>Another pure plain-text system with unstructured plain-text notes where tags of notes, links between notes and other metadata was stored in a JSON file (thereby separating metadata of notes from the notes themselves). This was meant to solve the problem that I did not want to have metadata directly in my notes, as well as the problem of having to create all those symbolic links in the system mentioned above. A Ruby script provided convenience functions similar to the ones mentioned above (and in particular for managing the JSON file, which would have been rather impractical and error-prone to do manually). In addition, notes were stored in a Git repository, and the script automatically committed changes to the repository when creating or editing notes. The main disadvantage of this system probably was that, while it was designed with the idea in mind that everything should be doable without special tools like my Ruby script, editing the JSON file and committing to the Git repository was cumbersome and error-prone and could easily be forgotten when done manually. So, while having a separate file for storing metadata information for my notes was more robust than employing symbolic links, I felt that the problems were only shifted to different areas.</p> </li> </ul> <p>While all these systems worked and did what they were meant to do, I was never really satisfied with them. The main problem was that I never really <em>worked</em> with them. They were based on certain ideas and principles I had in mind, but it turned out that the theory of conceiving them and the practice of using them diverged.</p> <h2 id="my-current-system">My current system</h2> <p>The system I am currently using is the one I am most happy with so far. It does not solve all problems, but it is the one which currently works best for me.</p> <p>The main design goals of my system are (and have pretty much always been):</p> <ul> <li>It should be usable as a pure plain-text system without any kind of dedicated software processing the notes or operating on them (i.e. using only standard tools like text editor, pager, grep etc.).<sup id="fnref:4"><a href="#fn:4" class="footnote" rel="footnote" role="doc-noteref">4</a></sup></li> <li>It should be simple and have very few dependencies.</li> <li>It should be platform-independent and future-proof.</li> </ul> <p>All my notes are stored in a single directory called, well, <code>notes</code> (this is not different from practically all the other systems I have used in the past, like the ones mentioned above). Notes are Markdown-formatted plain text files.<sup id="fnref:5"><a href="#fn:5" class="footnote" rel="footnote" role="doc-noteref">5</a></sup> There is (almost) no metadata contained in my notes. In particular, there is no front-matter (i.e. structured metadata) at the top of a note. While front-matter makes it easy to parse metadata programmatically, it somewhat clutters the notes and is not so easy to parse without specific tools (which contradicts the first of my design goals).</p> <p>There are only two special syntactical constructs which extend Markdown and have a special interpretation in my system:</p> <ul> <li>Words prefixed with <code>#</code> at the beginning of a note are interpreted as tags.</li> <li>Strings matching the pattern <code>[[&lt;note&gt;]]</code> or <code>[[&lt;title&gt;|&lt;note&gt;]]</code> are interpreted as internal links, i.e. links to other notes.</li> </ul> <p>The system is perfectly usable with nothing more than this (note in particular that the syntax for the two special constructs for tags and internal links mentioned above is so unobtrusive yet self-explanatory that they would even work without rendering the notes). In particular, it satisfies my first design goal; for instance, some basic operations could be done like this:</p> <ul> <li>Viewing a note: <code>less &lt;note&gt;</code></li> <li>Editing a note: <code>vim &lt;note&gt;</code></li> <li>Searching for a given string in all notes: <code>grep &lt;string&gt; *</code></li> <li>Filtering notes on given tags: <code>grep -l -e "#&lt;tag1&gt;" -e "#&lt;tag2&gt;"</code></li> <li>Finding all notes which link to a given note: <code>grep -l "\[\[&lt;note&gt;\]\]" *</code></li> <li>Finding all notes which are linked to from a given note: <code>grep -o "\[\[.*\]\]" &lt;note&gt;</code></li> </ul> <p>Note the small number of tools needed to achieve these operations.</p> <p>However, to be able to efficiently use tags and links (which are integral ingredients in a PKM system), it is convenient render notes as HTML and view them in a browser. In my system, the preprocessing and rendering of the notes is facilitated by a small Ruby program I wrote.<sup id="fnref:6"><a href="#fn:6" class="footnote" rel="footnote" role="doc-noteref">6</a></sup> Since the notes are written in Markdown, it is easy to convert them to HTML by employing standard libraries or APIs available in most programming languages. The tool provides a simple web application employing the <a href="https://sinatrarb.com/">Sinatra</a> web framework. This in particular facilitates serving content <em>dynamically</em> (in contrast to the static site generator I used as a PKM system in the past; see above). This makes it possible, for instance, to filter for several tags, since the code determines the matching notes dynamially before they are getting rendered and served.</p> <p>While the notes are mostly simply translated from Markdown to HTML, marks and links are preprocessed as follows:</p> <ul> <li>Tags are extracted from the note so that they can be laid out separately in the rendered note (to make them appear below the note title instead of above it, for instance, or to make them link to a page which lists all other notes with that tag).</li> <li>Internal links are converted to a link to the given note, which is displayed with the respective title if given. This is a Wiki-style shortcut for internal links (i.e. links to other notes).</li> </ul> <p>A note can then be reached via the path <code>/note/&lt;note&gt;</code> and viewed in the browser by entering the corresponding URL (i.e. the host – localhost if run locally – plus this path). <a href="/public/note.html">This</a> is what a rendered note might look like in the browser.</p> <p>There is also an index page listing all the notes available (and also one for listing all the tags defined), so it is easy to directly navigate to them instead of having to enter the URL manually.</p> <p>Note that, according to my second design goal above, things should be simple. Therefore, there is basically no explicit user interface for doing things like filtering (after all, I am the only one using the system…). Instead, the filtering can be done by appending query parameters to the corresponding path. For instance, the path for filtering notes on tags “tag1” and “tag2” would be: <code>/?tag=tag1,tag2</code></p> <p>In addition, there are a few endpoints for doing certain consistency checks, like whether there exist links to non-existing notes, which is then reported so that it can be fixed.</p> <p>Note that it is not possible to create, modify or delete notes in any way using the web interface (it works in a purely functional way, one might say). This is a deliberate choice: Deleting and renaming can easily be done using <code>rm</code> and <code>mv</code> on the command line, and editing is exclusively done using my editor of choice – that is, of course, Vim (so, I have finally turned things around and arrived at the <em>actual</em> subject of this article - yay!).</p> <p>So much about the technical implementation of the system. Regarding its organization: It is more or less based on the Zettelkasten approach<sup id="fnref:7"><a href="#fn:7" class="footnote" rel="footnote" role="doc-noteref">7</a></sup>, but I will not go into any detail about it here. I am trying to write notes which are <em>atomic</em>, i.e. which entail a single idea or concept, and to link them to create semantic connections to similar of related ideas or concepts (though I often fail at doing this in a good fashion, I think). As mentioned in the beginning, though, this is not the focus of this article, so I will just refer to the many good resources about the organizational aspects of PKM in general, and the Zettelkasten method in particular, available out there.</p> <h2 id="and-what-about-vim">And what about Vim?</h2> <p>So, I have written a lot already, but rarely mentioned Vim at all. Considering that this is a contribution to a <em>Vim Carnival</em>, the question “Where does Vim come into play?” imposes itself.</p> <p>The – somewhat trivial – answer to this question is: Where it <em>always</em> comes into play when I work with plain text files. I use it, obviously, to edit my notes – just as I use it to edit any other kind of text file.</p> <p>So, I hope Hyde will forgive me for somewhat abusing this Vim Carnival for my ramblings about PKM. Let me close this article, however, by emphasizing that, while there is nothing special in my using of Vim for PKM, it <em>does</em> play an extremely important role in it. It’s a simple syllogism:</p> <ol> <li>I edit plain text files in Vim.</li> <li>My notes are plain text files.</li> <li>Therefore, I edit my notes in Vim.</li> </ol> <p>I want to be able to edit text files as smoothly and efficiently as possible: That is why I use Vim – for PKM and everything else that comes as plain text.</p> <hr /> <div class="footnotes" role="doc-endnotes"> <ol> <li id="fn:1"> <p>I know it sounds somewhat strange to call plain vi “Vim”. Then again, this is an article for a Vim Carnival, so what… <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:2"> <p>Examples of analog PKM systems are commonplace books, which have been around for centuries, and the Zettelkasten method, probably most famously employed by Niklas Luhmann, which is often used in an analog way (though it can also be implemented on a computer). <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:3"> <p>I know: Since notes are stored in Markdown-formatted plain text, they can even be used if Obsidian (or whatever other tool) is gone someday. Yet, I prefer to depend as little as possible on external software. It is a rather mild case of vendor lock-in – much less so than with many other applications –, but I like to not only own my data, but also the software which operates on it (which, of course, is only possible in rather few cases). <a href="#fnref:3" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:4"> <p>This basically means that my system would fall back to the basic plain text approach I sketched earlier. My notes would still contain markup in the form of Markdown, but one of the nice properties of Markdown (even more so than with other markup languages like AsciiDoc) is that Markdown does not distract much from the text; it integrates rather seamlessly into it. So even if Markdown would cease to exist, along with every tool to generate HTML from it, it would still be viable as some kind of self-explanatory plain-text markup. <a href="#fnref:4" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:5"> <p>In the past, I have mostly used AsciiDoc. I switched to Markdown because I do not need all the power of AsciiDoc, and the markup of Markdown is less intrusive than that of AsciiDoc (which is more intrusive precisely because it is more powerful), thereby making it even more readable. <a href="#fnref:5" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:6"> <p>The tool can be found here: <a href="https://codeberg.org/thorstenzoeller/noted">https://codeberg.org/thorstenzoeller/noted</a>. Note, however, that it is not quite up-to-date; in particular, this version only works with AsciiDoc-formatted notes (not with Markdown-formatted notes). An updated version will (hopefully) be provided soon. <a href="#fnref:6" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> <li id="fn:7"> <p>Some good ressources for starters are:</p> <ul> <li><a href="https://zettelkasten.de/">Zettelkasten knowledge and info management • Zettelkasten Method</a></li> <li><a href="https://lazybea.rs/tags/zettelkasten/">Hyde’s Zettelkasten posts</a></li> <li><a href="https://ryanholiday.net/the-notecard-system-the-key-for-remembering-organizing-and-using-everything-you-read/">The Notecard System: The Key For Remembering, Organizing And Using Everything You Read</a></li> </ul> <p>And no, I actually do not like footnotes that much, even though it very much seems to be exactly so. I just usually fail <em>not</em> to extensively make use of them. Fortunately, you have now made it to the last footnote of this article… <a href="#fnref:7" class="reversefootnote" role="doc-backlink">&#8617;</a></p> </li> </ol> </div>