spoiler

Hello world

  • 99 Posts
  • 30 Comments
Joined 1 year ago
cake
Cake day: July 8th, 2023

help-circle






  • Sjmarf@sh.itjust.worksOPtoProgrammer Humor@programming.devSus
    link
    fedilink
    arrow-up
    102
    ·
    edit-2
    2 months ago

    not() is a base function that negates what’s inside (turning True to False and vice versa) giving it no parameter returns “True” (because no parameter counts as False)

    Actually, not is an operator. It makes more sense if you write not() as not () - the () is an empty tuple. An empty tuple is falsy in Python, so not () evaluates to True.
























  • I’m a developer of a Lemmy client. When you upload an image to a Lemmy instance, the instance returns a “delete token”. Later, you can ask the instance to delete the image attached to the delete token. So as long as you keep hold of the delete token for a specific image, you’re able to delete it later.

    Lemmy-ui (the official frontend) will give you the option to delete an image again shortly after uploading it. However, it’s not possible to remove the image after actually creating the post, as the delete token associated with that post isn’t remembered anywhere on the Lemmy backend.

    As for other Lemmy clients, YMMV. The client I work on (Mlem) deletes images if you remove them from a post before posting it, but has the same pitfall as Lemmy-ui in that it won’t delete the image if you’ve already created the post.

    It would be possible to locally save the delete tokens of every image you upload, so that you can request that they be removed later. I don’t know of any clients that can do this yet, though (if someone knows of one, feel free to mention it).

    Edit: clarity










  • Sjmarf@sh.itjust.worksOPtoMemes@lemmy.mlLol
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    1 year ago

    Some people rely on ‘screen readers’ (software that reads text on the screen out loud when you move your finger over it) to browse content on Lemmy. Some screen readers can read text on images (I know Apple’s does, not sure about Android), but obviously it can make mistakes and there’s missing context a lot of the time. Hence the transcriptions.

    There was a group of people on Reddit who added image transcriptions in the comments of posts but it was rarely seen in the post itself. I quite like that it’s been more popular on Lemmy. For inline images you can add hidden transcriptions using markdown, but for image posts it has to go in the body of the post.

    There are also a couple of other benefits. The post is more likely to appear in search results if someone searches for text included in the transcription. And if the image fails to load for whatever reason, or the image host deletes it, you can get the gist from the transcription.


  • Sjmarf@sh.itjust.worksOPtoMemes@lemmy.mlLol
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Not sure; I’ve wondered that before too. If I had to guess I’d say people just keep naming future kings after previously liked kings - the first few king Louis weren’t all that popular, but later on there were some popular ones (Louis IX was named a saint, for instance, which may have boosted it).

    16 is certainly a lot of kings to have the same name. I believe there’s 20-something Pope Johns, if I recall correctly