aliquote.org

Latest micro-posts

You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.

2025-09-01 14:29 #

If someone’s subscribed to your blog with RSS they can read the full text of your article in their RSS reader of choice. RSS readers are good at rendering articles. When you publish a summary with a link to the full article on your website, you’re making them come out of the RSS reader’s window or app into another. It’s annoying. Doubly so if you still have unread articles to return to. — Please publish the full article in your RSS feed

2025-08-29 21:05 #

While preparing a short tutorial on using Stack to manage Haskell projects, I noticed that my screenshots include drop shadow from macOS screenshot builtin app. I was reminded that the key is to ⇧⌘4, then press the Space bar as usual, but before clicking hold down the option () key. #apple

2025-08-28 12:23 #

A Flexible Minimalist Neovim for 2024. I wish people favor builtin stuff more often, as does the author here, rather than installing every single plugin available on GitHub. #vim

2025-08-27 10:22 #

I don’t use Cabal that often, and I manage almost everything with Stack. I accidently installed a package (bhoogle) that adds nothing to Hoogle, but there’s no cabal delete or cabal uninstall, you know. So I simply nuked the whole $HOME/.cabal directory that GHCup installed for me with an older version of Cabal. And now I can’t get it back. Instead, Cabal now follows the XDG Base Directory Specification, which means compiled stuff will end up in $HOME/.local/state. Let’s go for another env variable (CABAL_DIR) then. #haskell

2025-08-27 09:19 #
2025-08-27 09:07 #

Now playing from Apple Music right into Tmux status line!

img

Put this script somewhere in your $PATH:

#!/bin/sh
unset title

title=$(osascript -e 'if application "Music" is running then' -e 'tell application "Music" to get name of current track' -e 'end if')
artist=$(osascript -e 'if application "Music" is running then' -e 'tell application "Music" to get artist of current track' -e 'end if')

if ${title+"true"}; then echo "$artist$title"; fi

If you don’t mind using the -e switch as your line separator; otherwise just write a .scpt file and load it directly.

See this gist for a more elaborated solution that accounts for both Cmus and Apple Music.

2025-08-25 11:32 #

Tonight I updated my default colorscheme (quiet) in Neovim when I noticed there was a monochrome version. Since we cannot set t_Co in Neovim, I create a user colorscheme named morequiet using these specs only. I added a few tweaks for diff mode (I like the look’n feel of the quiet colors in this case) and TODO-like @comment.* identified by Treesitter. So far so good. #vim

2025-08-25 11:30 #

Everything Is Correlated. Great article, as always, full of historical references.

2025-08-21 21:23 #

Recently I settled on glow and doxx. See also Terminal Trove.