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.

2023-11-13 11:30 #

pytest supports running Python unittest-based tests out of the box. — How to use unittest-based tests with pytest

This is great since it allows me to use the same compiler (pytest) in Neovim, independent of the testing framework.

img

2023-11-13 09:28 #

During the Internet’s adolescence, words (and thus blogs) were easier to come by, because for the most part, almost all of the interaction we had online was using devices designed for interaction via text. With the shift to phones as a more popular interaction device, the ease of pouring thoughts into a textual medium has decreased. — Blogging Shift

2023-11-10 21:14 #

♪ Marianne Faithfull · Broken English (12" Remix)

2023-11-09 12:47 #
2023-11-09 09:11 #
2023-11-08 19:15 #

img

2023-11-08 19:06 #

Editing Lisp dialect in Neovim like a pro: beside Vim’s builtin (e.g., vib to select inside brackets), paredit.vim (e.g., [[ go to top-level form), treesitter and nvim-treesitter-textobjects lets you navigate around your code easily, and incremental selection is a breeze. I originally used vv (init the selection), va (aka increase or <C-a>) and vx (aka decrease or <C-x>), but now I just use <tab> that other folks often use as an alias for %. #vim

  incremental_selection = {
    enable = true,
    keymaps = {
      init_selection = "<tab>",
      node_incremental = "<tab>",
      node_decremental = "<S-tab>",
    },
  }

img

2023-11-08 12:46 #
2023-11-07 11:52 #

If you get such a garbage when launching Firefox (official deb package, not the crappy snap one) from the command line or as an external browser for Newsboat, try force disabling accessibility as suggested here.

» firefox

~
» [Parent 25471, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-LOPdVD/firefox-119.0+build2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:25471): GLib-GObject-WARNING **: 11:46:47.027: invalid (NULL) pointer instance
[Parent 25471, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /build/firefox-LOPdVD/firefox-119.0+build2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:25471): GLib-GObject-CRITICAL **: 11:46:47.027: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 25471, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-LOPdVD/firefox-119.0+build2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:25471): GLib-GObject-WARNING **: 11:46:47.027: invalid (NULL) pointer instance
[Parent 25471, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /build/firefox-LOPdVD/firefox-119.0+build2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:25471): GLib-GObject-CRITICAL **: 11:46:47.027: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
2023-11-07 09:31 #

Scheme from Scratch by Peter Michaux: intro, and full list of posts. #scheme