Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PH
Posts
6
Comments
270
Joined
2 yr. ago

  • In general, given a Turing machine which outputs the result of a procedure to its memory tape, you can equivalently construct a recognizer of valid input/output pairs. Say P is the procedure, then the recognizer R is let (i, o) = input in P(i) = o

    The reverse is also possible. Give a recognizer R, you can construct a procedure P that given part of the input (can be empty), computes the rest of the input that makes R accept the whole. It can be defined as for o in all-strings, if R(i, o) then output o and halt, else continue.

    It might feel contrived at first, but both views can be useful depending on the situation. You'll get used to it soon with some exercises.

  • For all possible input, only recognize the one input that's (under certain encoding scheme) equal to the sum of the given list. That's for a given list.

    Another more general approach is that, only recognize the input if (under certain encoding), it's a pair of a list and a number, where the number is the sum of the list.

  • Being a jerk in Obsidian games is fun. I used to do every small errand to please everyone, mainly for the rewards, but then found out as long as you can figure out the main mechanism, most tasks are optional.

    Being more assertive really amps up the role playing aspect. Sadly not every RPG is this open and well-written.

  • If you execute a binary without specifying the path to it, it will be searched from the $PATH environment variable, which is a list of places to look for the binary. From left to right, the first found one is returned.

    You can use which cat to see what it resolves to and whereis cat to get all possible results.

    If you intentionally wants to use a different binary with the same name, you can either directly use its path, or prepend its path to $PATH.

  • What? That's literally a feature I got with a plugin. YouTube feels so much better without the algorithmic reinforced "hype" videos with no content and it's good for your mental health too.

  • IMHO the reality is more complicated than what's described here.

    1. Open source is sustainable (in the sense that people will continue to do it), even without the maintainers getting paid, for better or worse. This is evidenced by the history and the majority of open source projects now.
    2. The bait-and-switch problem, which gets the maintainers paid, hurts the ecosystem in the long run, which relies heavily on the good faith.
  • There's indeed a cake called Napoleon, which is not invented by Napoleon. I know at least in Russia and China, this cake is known by the name of Napoleon cake.

    Legend has it that the name originates from the Napoleonic war with Russia and since people have to throw the cake to the ground (table?) to break the sugar layer on top of it and thus the Russian people call it Napoleon so that they are breaking Napoleon.

    I see no mention of this etymology elsewhere, so take this with a grain of salt.