flamingos-cant (hopepunk arc)

Webp’s strongest soldier.

  • 33 Posts
  • 178 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle


  • A ‘mode’ in emacs is a set of bindings which associate specific keys with specific functions.

    Not quite, a mode is basically a lisp function defined with a different macro that integrates it into the various systems (like showing up in the modeline when active). It can do basically anything, including setting keybinds.

    ‘modes’ can be stacked on top of each other, with higher modes being able to intercept key presses before they reach lower modes, and changes / manipulate lower modes (I think?)

    No, a keybind can only run one function and what that function is is whatever last defined a binding for that key. Like, if one mode defines a key to be something and you activate another that also binds that key, the latter takes over.

    Emacs does have something like you describe, where functions can be ‘advised’.



























  • It’s less clear to me if static images get auto compressed on upload. Looks like pictrs implemented this a couple years ago, but I’m not sure if this is automatic behavior or has to be turned on by Lemmy admins.

    Non animated images, I’m guessing are automatically compressed on upload. Otherwise I suspect many more people would be complaining about failed uploads. But I’m working on verifying this

    There does seem to be options in pictrs to compress images by format, I’d assume that having these unset (default) would mean no compression happens. I think the reason there isn’t any complaining about image uploads happening is because, by default, they don’t have constraints applied to them. Only animation (256x256 dimension limit) and video (max 20 MiB file size) have constraints put on them in pictrs by default, though there is a 20 MiB upload limit set in nginx.

    Lemmy imposes it’s own rate limits on how many images you can upload/time period. I wanna say the default is roughly 6 images/hour, but I might be totally wrong there.
    I’m also curious how many sever admins leave the default settings, or change them.

    feddit.uk has its set to 2 every 5 minutes. I think a previous admin set that, but it seems sensible enough.