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/)CZ
Posts 0
Comments 9
The dangers of single line regular expressions
  • Okay. I don't really want to keep arguing about this. Your negativity seems entirely unwarranted, so I'm not really sure what you're trying to achieve. Given the only thing I wanted to say is "this article is worth reading", I don't think there's a productive line for this conversation to go down.

  • The dangers of single line regular expressions
  • I think your summary is less useful than reading the whole article. Teaching well involves more than just stating a refined idea.

    I also think the ideas in the article are worth the 25 minutes.

  • The dangers of single line regular expressions
  • Another application of Parse, don't validate. The vulnerability isn't really about the single-line regex, it's that the validation doesn't match the use. If the regex extracted (read: parsed) the valid bit with a group, then passed that through, it would be fine.

  • How can I enable Elogind support when installing programs through Guix in Void Linux?
  • This is not true. In fact, Guix doesn't use systemd at all. When managing an operating system installation Guix uses its own init system called the Shepherd.

    Elogind is a project extracted from systemd originally for use in Guix systems.

  • Disabling 2FA on lemmy DB
  • If you wanted to do it in one query I think you could do something like

    UPDATE local_user AS u
      SET u.totp_2fa_url = null,
          u.totp_2fa_secret = null
     FROM person AS p
    WHERE p.id = u.person_id
      AND p.local
      AND p.name = 'guineapig';
    

    I assume the p.local is optional, too, because the id match against the local_user table will presumably limit it to only local users. 🤷