Log in
Seblog.nl

Kort

Sometimes I see things and this: that's cool! And then I don't save it, and it takes me forever to find it again afterwards. But at least now I can put it on my weblog for future finding?

I found this interesting project called Fluent, which has it's own syntax to express translations. The traditional approach is to make a key-value mapping of translations: welcome_message: "Welkom op Seblog!", but that breaks down when things like plurals and cases come into play.

The example from their website expresses nicely how strong this is:

# Simple things are simple.
hello-user = Hello, {$userName}!

# Complex things are possible.
shared-photos =
    {$userName} {$photoCount ->
        [one] added a new photo
       *[other] added {$photoCount} new photos
    } to {$userGender ->
        [male] his stream
        [female] her stream
       *[other] their stream
    }.

I guess the downside to this approach is that all the AI tools nowadays are very used to translating a sentence, not necessarily translating all possible variants of a sentence. You really need someone or something with a deep understanding of how the language works. But it looks cool.

De afgelopen dagen luister ik veel klassieke piano-muziek tijdens werk, omdat het het eeuwige geboor van de buren afsluit, en omdat ik nu wel weer genoeg Japanse J-pop, J-rock en zelfs J-jazz heb geluisterd. Op een playlist kom ik net aan bij de elfde pianosonate van Mozart (K 331), en in de thema's daarvan herken ik opeens het lied De zusters Karamazov (Tante Constance en tante Mathilde) van Drs. P. Nadat ik dat feitje met een paar mensen gedeeld heb kom ik erachter: dit is de uitvoering van Noriko Ogawa. Ik ben gewoon weer aangekomen bij J-classical, zo blijkt.

Searching through my own blog to see if I made a note about this, but I didn't. Luckily I found it again.

If you want to ignore something in Git, the best known way is to put the filename in a file called .gitignore. This approach has the benefit that it can be committed, therefore shared with others. But sometimes you have files only you have, because you are using some obscure tool or editor – Vim, in my case. Those files are better ignored in your ~/.gitignore_global, so that Git ignores them in all your projects. I store mine in my dotfiles by adding the following to my ~/.gitconfig file:

[core]
    excludesfile = ~/dotfiles/git/gitignore_global

But then, sometimes you want to ignore something that's very specific to this project. In that case, you can open a file inside the .git folder of your project, and put it in there: .git/info/exclude. Usually it's already there with some comments in it on how to use it. Just be careful: the .git folder is your local git repository, so don't go messing around with the other files unless you know what you are doing or have good backups.

Voorstel voor het hernoemen van 'regenbroek' naar 'neerslagbroek'. Dan had ik 'm vanochtend misschien wel aangedaan tijdens mijn fietstocht door de sneeuw en had ik nu een droge broek gehad.

Stel, je koopt een maaltijdpakket, maar na een paar dagen blijkt de bloemkool beschimmeld. Je gaat opnieuw naar de supermarkt en koopt een verse bloemkool. De volgende dag blijken de tomaten niet helemaal goed meer, dus ook hiervoor haal je nieuwe. Je kan dit proces eindeloos herhalen, telkens oude groente weggooien en er betere exemplaren voor terugleggen. Vanaf welk punt is het maaltijdpakket nog hetzelfde maaltijdpakket?

PostNL: er is post naar je onderweg
PostNL: hier is een animatie met enveloppen met hartjes erop, als confettikanon over je scherm
PostNL: het is van de belastingdienst

Call me weird, but I already have this line in my ~/.zshrc file:

alias :q="exit"

This is because sometimes, by hands just type :q when I'm ragequitting Vim. It closes one Vim pane at a time, but since I run Vim inside of Tmux, some of the panes might not be a Vim pane but a Tmux pane. It's nice to just be able to ragequit all the panes in the same way.

(Yes, I could just nuke the Tmux session, but the point of ragequitting is that you bash your keyboard a lot to make a dramatic point to yourself and whatever project you were working on.)

I do a lot of Git stuff in the Fugitive Vim plugin, because it's a nice middle ground between a Git GUI and the command line. But this means my fingers type :G a lot now, including sometimes in the terminal, so I added the following:

function :G { nvim "+:G $@" }

This makes :G in the terminal open (Neo)Vim, directly executing the :G command (a neat little trick in itself). I considered aliasing it to just git, but that would still not have the same effect, as :G without arguments is more like git status. Making it a function and using the $@ makes sure I can also pass it arguments, but I'm doubting my fingers will ever go that far on autopilot.

(Come on, judge me.)

Ik stond net gewoon een beetje te grasduinen in mijn eigen boekenkast, alsof het een boekwinkel was, en ik weet niet wat me ouder deed voelen: de op 17 pagina's na ongelezen pocket van On the road, waarvan ik nog weet dat ik hem nieuw gekocht heb, die nu vergeeld is en ruikt als al die tweedehands boeken in de winkeltjes; of het feit dat ik Spel van Stephan Enter uit de kast haal, denk dat ik dit echt eens moet lezen – maar nee wacht, ik héb ik gewoon al gelezen, en niet eens zo heel lang geleden – of nee, dat is toch inmiddels alweer minstens vijf jaar terug.

Some people think the phrase "the most wonderful time of the year" refers to Christmas, but in reality it refers to both the last and the first week of the year. In this period, you will discover all your code and flaky tests that make assumptions about the beginning and/or ending of the week being in the same year as today.

The subtitle of The Bullet Journal Method is "Track Your Past, Order Your Present, Plan Your Future", and I can't help but think of "to order" in it's other meaning, so it becomes a how to guide on dictatorship: "Plan Your Past, Track Your Present, Order Your Future".

Ik schreef van de week een stukje over thuiskomen en hoe Nederland eruit ziet ten opzichte van het buitenland. Ergens daarin benoem ik mijn inmiddels jaren oude plan om nog eens een fotoserie te maken. En kijk, daar is NRC:

In mijn hoofd was mijn serie anders, maar door juist op de individuele straatmeubels te focussen pak je wel gelijk de essentie. En ik denk dat de nummer 1 inderdaad de grootste bepaler is in ons straatbeeld – spoiler alert – de 30-bij-30-tegel.

Nu ik meer blog ben ik ook beter mijn RSS-reader bij aan het houden. Of ja, was, want ik ben nu op vakantie en dan gaat het minder.

Sowieso lukt het me wel om de korte posts of de minder interessante dingen te lezen of op gelezen te zetten. Het probleem zijn de net iets grotere blogposts, waar ik echt even tijd voor wil nemen om te lezen. Die blijven dus liggen.

En zo staat de teller van de RSS-reader nu boven de honderd. Want hoe meer vakantie, hoe korter te posts die ik wel lees, en dus hoe meer blijft liggen wat interessant lijkt voor later.

Ik ben trouwens wel best ver in mijn boek. Dat is ook wat waard.

Ik vind reclame voor vlees altijd al wel lastig, maar een vrachtwagen van een kippenslachter met ‘too tasty to fly’ erop vind ik wel problematisch.

Last year I shared a Vim keybinding that I use quite frequently: I mapped gy to "+y, meaning that with the gy I yank text into the system clipboard (without the awkwardness of typing double quote and plus).

I recently added another mapping to it: if I do gY, it will actually yank the full content of the open file into my system clipboard. This saves me the awkwardness of typing gggyG. See my mapping below though: by using the command style yank, I actually don't let the cursor jump, which is much nicer.

nmap gy "+y
vmap gy "+y
nmap gY :%y+<cr>

Ik haal zojuist een haar van mijn scherm, en opeens verschuift de pagina die ik aan het lezen was. Enorm wtf-momentje: mijn nieuwe laptop heeft een touchscreen.

'Sure I will take a 7 hour train to Nürnberg, I will work on stuff' quickly derailed into compulsive sudoku solving. Now for the last hour, finally got my laptop out again.

Mijn schijf was vol, dus ik ben weer lekker even met du -sh * 2> /dev/null op pad geweest door mijn computer. En ja hoor: weer een logfile waarin PHP me elke seconde vertelt dat het niet lukt om op te starten ter waarde van 340 GB. En gewoon wéér rond Pasen.

Meer laden