Building a static website with Sveltekit and markdown is hard going at first. But just when I was about to give up I stumbled on some blog posts and boilerplates that helped me crack it. I may still switch to Astro later though
I copy audiobooks from CDs to USB sticks to play them in cars and random device like old radios. But often those devices play the files out of order. Reordering files in FAT USB sticks is harder than I thought. Luckily, a chap by the name of Boris Leidner has written a useful tool for that.
Prettier autoformatting screws up Django html templates in Visual Studio Code. For example, it puts tags on the same line when they shouldn't be. The fix is pretty simple and involves a couple of different formatting extension.
Apple Music / iTunes "helpfully" adds ratings to songs for you, based on the ratings of the other songs in the album. This messes some of my smart playlists up. Only Applescript will get rid of those ratings
If you try to use Google Chrome on a small window on a laptop, perhaps because you are comparing two web pages side by side, swiping left or right doesn't move the page around, but it jumps to the previous or next page. Here's how to prevent that on OS X.
You know the story. You try to do npm install hipster-package on OS X and you get a whole load of errors; the easy way out is to just use sudo npm install. Everyone, however, keep saying how that is bad idea. But how do you make npm work without sudo? It's quite simple actually
Extended attributes store extra information about files in OS X. They replaced resource forks. Sometimes those extra hidden files confuse peripherals (e.g. mp3 players) that were not setup to deal with them. Here are some terminal commands to handle them.
To make a quick voice recording with OS X: open Quick Time Player, under the File menu there is a "New. Audio Recording" entry. It automatically saves .mov files in your Movies folder, which you can then open in Audacity or the editor of your choice.
title some words will change the title of your cmd shell in Window The title will be `some words` instead of `C:\Windows\system32\cmd.exe`. Handy if you have a few of them open and can't tell them apart.
I used to do a lot of Google Apps Script (GAS) programming, but Google's never seemed to interested in that product so I gave up. Here I document a simple boilerplate project so that I don't forget how to do it.
Running the status command in the command line version of subversion returns a list of files with a one letter code in front of each file name. Here's a list of those one letter codes and what they mean.