Log in
Seblog.nl

Kort

Het is gek hoe de route naar mijn werk en een reis naar Berlijn voor het eerste stuk zo gelijk zijn. Het voelt heel vrij, dat ik in principe op elk moment naar een verre bestemming zou kunnen vertrekken: het begint altijd hetzelfde.

Spent a good evening reading up on Reader-discussions and -ideas, then on refactoring the Microsub endpoint in Leesmap into separate Controllers. Very curious how Aaron this does in Aperture (which is also PHP/Laravel), but still not looking at his code until I'm done with it.

Do you know that feeling when you just get out of a rollercoaster and want more, more, more, but when you are being hoisted up in the cart, you're certainly unsure about why again? That's what I feel with IndieWebCamp Berlin right now. But I'm sure it will be fine once I'm there :)

Zo’n jongetje op weg naar school, volledig in niet-matchende camouflageprints, op een elektrische fiets. ‘Je moet het maar kunnen,’ zegt de sleutelhanger van Defensie naast de kogel aan het ringetje op zijn tas.

iOS 12 is best bizar, Siri Shortcuts is gewoon de oude Workflow-app. Ik heb dus nu een gloednieuwe native app die out-of-the-box naar mijn weblog kan posten.

Het stiekeme genoegen in een Intertoys te staan, een meisje verlekkerd naar een Switch zien kijken, een vader bij de kassa zien informeren, horen dat hij uitverkocht is, en weten dat ik er gewoon een in mijn rugtas bij me heb. Zo erg.

Ik zag vandaag wasmiddel in verschillende varianten, waaronder een ‘alpine’. Ik dacht: ha, dat is vast naturel, zonder overbodige shit. Maar nee, hij rook heel sterk naar ‘fresh’, ik moest de original hebben. #docker

Ik geloof dat ik mijn Apple Watch vaker gebruik om te kijken hoe warm het is dan om te kijken hoe laat het is.

Mijn boeken gingen scrambled-alfabetisch de verhuisdozen in, en komen daar dus nu ook scrambled-alfabetisch uit. Voorlopig staat mijn boekenkast dus scrambled-alfabetisch op auteursnaam.

Quick Vim thing that was useful to me: I was editing a .env file and added a comment for other readers, to point out that they should look at config/filesystems.php for more information. Then I thought, is that the right file? So I put my cursor on it and pressed gf, which opened the file, confirmed that it was the right file, and pressed Ctrl-O to get back.

Hoe tof zou het zijn om je eigen slimme gloeilamp te hacken en er dan met ssh en Vim een geheim dagboek op bij te houden.

Net herinnerde ik me een moment, jaren geleden, waarop ik me afvroeg hoe mijn leven er uit zou zien als ik 29 was. 'Ja,' dacht ik zo hard als ik kon, 'geen zorgen, je zit op een kantoor en je hebt het naar je zin.' Maar in mijn herinnering bleef mijn 23-jarige het zich afvragen.

So at one point I proudly admitted to a co-worker that I knew how to search and replace in Vim: I did /foo, then ciw, bar, and escape (changing the inner word to 'bar', or whatever the right replacement motion would be) and then press n and . for the number of times I needed to (first one goes to the next occurrence of 'foo', and the period key repeats the last edit, which is magic and very powerful in itself).

He replied with a less interesting, but in some cases more appropriate way of doing it: :%s/foo/bar/gc. This command takes the current file (%), and substitutes 'foo' for 'bar', with a flag for global (more than once) and choice. Vim will then stop at each 'foo' and gives you choices for 'y' or 'n' (and others), so you can interactively pick your replacements.

Today I leaned about the gn text object. Where iw stands for 'inner word', gn stands for 'go next'. So one can type /foo, then cgn, bar, and escape, which is almost the same. But then you can just keep hitting ., and it will perform the last action on the next occurrence of 'foo'. No need for n anymore!

I mean if you want to be presented with a choice for each replacement, go use :%s, but this gn thing is darn cool.

Nog steeds ben ik verbaasd als mensen die jonger zijn dan ik een auto hebben. Gaat dat ooit over?

Meer laden