Sjmarf
spoiler
Hello world
- 496 Posts
- 249 Comments
https://en.wikipedia.org/wiki/Tragedy_of_the_commons
The tragedy of the commons is the idea that when a resource is shared and can benefit the individual at a cost to the community, it is rational for the individual to overuse the resource, even though this collectively leads to the depletion of the resource for everyone
I wouldn’t want to have the job of managing GitHub infrastructure right now. The sheer volume of AI slop being uploaded must be unimaginable
Sjmarf@sh.itjust.worksto
Lemmy@lemmy.ml•How do i discover federated Lemmy posts (from a dead/offline instance) location/addresses?English
6·2 months agoPaste the link in the search bar of another instance. If the post is cached, it’ll return it. Ideally, use the link to the post on the author’s instance, rather than the link to the post on another instance.
Technical answer:
Instances store posts from other instances. Every post on the fediverse has a unique ID called the “actor ID”. The actor ID of a post is the URL of the post on the instance of the user that authored the post. On the Lemmy web UI, you can retrieve this by right-clicking on the rainbow star icon below any post and copying the link.
To retrieve the details for a cached post, you can call
resolve_object?q=<actor-id>. For example:https://sh.itjust.works/api/v3/resolve_object?=https%3A%2F%2Flemmings.world%2Fpost%2F41938713
For convenience, the Lemmy UI calls this when you paste a URL in the search bar.
This can work for any URL that points to the post, but you should use the actor ID where possible. The Lemmy backend knows the actor ID of every post it has, but it may not know whichever URL you’re querying with, and you may get a null result when the post is cached.
I hope this helps.
Sjmarf@sh.itjust.worksto
Foxes@lemmy.world•Shelf foxes from JAB Canid Education and Conservation CenterEnglish
10·3 months ago
Sjmarf@sh.itjust.worksto
Lemmy Shitpost@lemmy.world•I mean does anybody really know how to play Chess?
61·4 months agoThe FIDE regulations dictate that a player who declines en passant must drop a brick on their pipi. A brick is kept nearby for such eventualities
r/MenAndFemales
There is no Lemmy equivalent
Not my OC. OOP was told about this and left the post up anyway :)
Oops, I had meant to crop it but messed it up somehow. Thanks for letting me know.
I got this from a Reddit comment, and unfortunately the official app doesn’t have a way to save images from comments anymore. They want people to share a link instead ;-;
The Lemmy UI doesn’t allow you to see others’ private messages, no, but you shouldn’t consider them to be private. It’s possible for instance admins to read them, and in the past there’s been exploits allowing anyone to read them. If you need more private messaging, use Matrix instead.
For your viewing pleasure:
for entry in entries: if entry['time'] + 1800 < time(): guild = self._bot.get_guild(int(entry['guild_id'])) member = guild.get_member(int(entry['user_id'])) if member is not None: if member.activity.name is not None: if member.activity.name.lower() == "league of legends": await member.send("The 30 minutes has elapsed and you are still playing league, get banned.") await member.ban(delete_message_days=0, reason='playing league')
Python does have a
switchstatement now, actually. And yes, they went out of their way to call it something different -match.https://docs.python.org/3/tutorial/controlflow.html#match-statements






















This is from Douglas Adams’ Dirk Gently’s Holistic Detective Agency, for those (like me) who haven’t read it.