Vim Suffering
, .Shower thought: when I first used Vim 17 years ago (or so), I did it because I wanted to suffer. Now I suffer whenever I can’t use it. I guess this is the nature of all changes, especially habits.
Hi! My name is Michał Góral, I am software developer (currently at Nokia) and this is my personal website. You can read more about me on a separate page if you’re curious.
This website is 100% AI-free (no content was generated by any kind of AI/LLM/you name it).
Shower thought: when I first used Vim 17 years ago (or so), I did it because I wanted to suffer. Now I suffer whenever I can’t use it. I guess this is the nature of all changes, especially habits.
I finally upgraded Python version on my Debian Trixie to 3.14.
(sidenote: Best number.)
Guess what. __annotations__ on dataclasses are
gone. Generally, annotations recommendations changed (again), which is mildly
infuriating. Now there’s a library to inspect annotations. But it’s not in
inspect module (because inspect.get_annotations() is sooo 3.13), it’s
annotationslib. No. Sorry. Typo. annotationlib. Without “s”.
(sidenote: Psikutas bez “s” na końcu. (Polish joke))
I’ll have to live with this abomination:
def get_annotations(obj) -> dict:
try:
import annotationlib
return annotationlib.get_annotations(obj)
except ImportError:
return obj.__annotations__
I’m writing todomd: terminal task manager for quick capturing of tasks into markdown files. One of main features is preservation of file formatting: it (hopefully) should keep whitespaces, blank lines, line endings, indentations, even when moving tasks between sections. My handmade markdown parser became so ridiculous that I seriously considered renaming the project to ELMM: Empty Line Management Machine. After 3 days of constant testing/fixing/refactoring of main parser, I want to just lie and cry.
But I just did a test run of todomd archive on my 6 year old, >1.5k lines of
horrible, scribble-quality quicknotes.md file and in 80 ms todomd made a
beautiful new archive section and didn’t break a single line. I almost cried,
but this time these were the tears of joy.
I’m sick of effortless AI-generated crap. Like t-shirt designs that all look exactly the same and repeat the same mistakes. Guitar that have 5-7 strings depending where on the fretboard you look? Check. Hands without thumbs? Check. Hilarious mistakes in text? Check.
Another one: plastic-looking images that replaced stock photos. I thought that stock photos were bad, but at least they were photos! Now they’re “plastic box which looks like PlayStation 5 + plastic controller which resembles Xbox pad”, or a “classroom with periodic table with elements that don’t exist”.
And don’t let me start about “AI-assisted” emotionless, one-size-fits-all prose. With forced suspense. By breaking sentences. In strangest. Places. (read with deep male voice in your head of course)
Monochrome colorschemes are good and pleasant for eyes. That's why I created one for Vim.
I synchronize a lot of things, each of them differently. Let's take a look how to write a simple Bash script which automates and parallels that.
DWM-like master-stack layout for i3 is possible by using i3's IPC mechanism.
Presentation of simple scripts and techniques allowing automatic generation of program's version.
Formatting is one of these parts of TWC which I disliked the most. This has finally changed with release of TWC 0.9 and complete rewrite of formatting strings syntax.
Presentation of my program for toggling file comments depending on a list of keywords in a language similar to preprocesor.
With markorapp, a script which I wrote, it's easy to create "singletons" in i3. Singletons are applications which should have only one instance, like a particular terminal.
Writing and using webhooks to automate deployment of web applications.
I released a new version of SubConvert, a program to convert between various video subtitle formats.
Using fields and templates in Home Assistant scripts
How to configure udev rules on Synology to create persistent device names in /dev/serial/by-id
Home Assistant is one of my most beloved selfhosted applications. Here's why.
How I replaced 2 types of wi-fi modules for Haier air conditioners with ESP8266
How to configure VPS and peers so they can talk to each other via Wireguard
How to mutate immutable Synology configuration and persist these changes
Operating System Controls as escape sequences which can be used to change the background of both terminal and programs running in it.
Description and example of vim.lsp.config() for configuring language servers in Neovim
Changelog is important, but we can simplify our lives and generate it, at least partially.
Every once in a while I learn something new about Vim. This time it's :keepalt command.
We can use user-level systemd services to run X sessions.
Xsession is a default way of starting X sessions in Debian, but for some reason it remains a mystery for many people. Here I try to shed some light on it.
Configuring one of the best SMTP clients on Debian and some caveats which we must remember.
Workaround for a problem with how Sway draws borders around floating windows
Git has capabilities of writing custom credential helpers, which can fill passwords for accessing HTTP repos for us.
I did it! I forced a buggy xrandr to toggle screens and not kill X session!
There is one const usage in C++ which is a little different than the others. Andrei Alexandrescu called it the most important const.
A short introduction to one of the most breakthrough features of C++11: rvalue references and move semantics.
The article about Return Value Optimization - one of the most important features of C++ compilers.
Structured Bindings is a new way to decompose values returned from functions. It's similar to some other programming languages and greatly simplifies the code.
How can we live with types which do not implement assignment operator?
How C++ handles dependant names and why we must use typename keyword everywhere.
Name hiding is a surprising feature of C++. Here we'll learn a little more about it.
A trick which allows us to easily convert from const_iterator to iterator. Please don't do that.
It's possible to create a functions in C, similar to printf and scanf, which accept infinite number of arguments.
Clever descriptor which automatically converts assigned values to the annotated type.
Graceful shutdown of PyQt applications might be harder than it looks like. This article presents the problem and a way to resolve it.
Process substitution in Bash is a powerful technique which allows us to redirect command's output to programs which only accept files.
Obstacles I encountered while testing accessibility of this blog's theme.
A video presenging Droste Effect which is a recursive image.
Even though I almost entirely stopped listening to it, I can't stay silent about recent events in Polish Radio Trójka.
Notes should be pretty too, because why not? Here I'll show you my method of rendering them to HTML.
It seems that we have a curse of abundance: so many to-do apps and methodologies that we can no longer choose one.
Trying something new for mail provider: a small company from Switzerland called Migadu.
It's a little late to make a New Year's resolution, but I'll make one nevertheless.
Simple Fix for a problem when you have one pen and too many inks.
Niesulice is a small village over Niesłysz lake.
Photos from our visit to Exotic Zoo in Kaszuby during our 2019 trip.