1. A caveat for subparsers

    Argparse provides subparsers. They let you easily handle subcommands. What is a subcommand? A command that is specified as an argument for a command. A typical example is Git, where you have subcommands like git status, git commit and so on.

    One common and very convenient way to implement subcommands …

    read more
  2. Extract text from a MediaWiki SQL dump

    Published: Mi 29 April 2020
    By Nik

    In IT.

    Extract text from a MediaWiki SQL dump

    This was one of my heavier text processing tasks. One problem is to find out where the actual text that you had entered into the wiki can be found in the SQL dump. The SQL dump of MediaWiki is just a big pile …

    read more
  3. Spell-checking Asciidoc

    Spell-checking Asciidoc

    Can be done on the command line with aspell. Iff you arr Tschörmann, be sure to install your language pack. On Ubuntu, this is done with:

    sudo apt install aspell-de

    There are also plugins for Atom and VS Code, but I didn’t investigate further, as I am …

    read more

links

social