Posts
-
Setting up a Logitech Vertical MX mouse with a Mac
I got myself one of these ergonomic mice, connected it to my Mac and configured the extra buttons. I like it
-
Setting CSS values dynamically in Svelte
If you are used to React's Styled Components, assigning CSS values dynamically in Svelte can be baffling at first.
-
A countdown clock using requestAnimationFrame, a state machine, and vanilla JS
I wanted to play with state machines and requestAnimationFrame in vanilla JS, so I came up with the idea of a simple countdown clock.
-
Removing album ratings from Apple Music App
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
-
Backing up a hard disk to another in OS X
Time Machine does its own backup magic, but sometimes you just simply want two identical copies of the same hard disk. For that rsync is the way to go
-
Pretty printing XML
tidy is a command line tool for formatting XML and HTML. Also available as a Visual Studio Code Extension
-
OS X Software Update from the Command Line
Software updates can be quite tedious - you have to click a lot of buttons, then get into the Apple Store etc. But you can avoid all that by running it from the command line.
-
OS X DNS lookups too slow for local hosts
OS can sometimes take forever to resolve hosts setup on my local machine. Here is how I solved it.
-
Directory listings in Apache 2.4
Yosemite updates Apache to 2.4. A couple of things stopped working from my previous installation, including autogenerated directory listings. Here's how I got them back.