sjmarf

joined 2 years ago
MODERATOR OF
473
submitted 1 day ago* (last edited 1 day ago) by sjmarf@sh.itjust.works to c/spacepics@lemmy.world
 

Captured by u/ajamesmccarthy on Reddit (post here) on Sunday.

[–] sjmarf@sh.itjust.works 53 points 5 days ago (3 children)
[–] sjmarf@sh.itjust.works 103 points 1 week ago (4 children)

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')
[–] sjmarf@sh.itjust.works 17 points 1 week ago (2 children)

Python does have a switch statement 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

 
 
 
[–] sjmarf@sh.itjust.works 28 points 3 weeks ago* (last edited 3 weeks ago)
[–] sjmarf@sh.itjust.works 2 points 3 weeks ago (1 children)

When you go out in public and the public is there

[–] sjmarf@sh.itjust.works 3 points 4 weeks ago (2 children)

Yes. This is the Armor 33 Pro by Ulefone. It’s got a 25500mAh battery.

[–] sjmarf@sh.itjust.works 27 points 1 month ago (1 children)

there was nothing preventing women from having bank accounts before 1974.

Depending on which banks were available in her area, she may still have been unable to open a credit card despite it being legal to do so. Prior to 1974, it was legal for banks to require a man’s signature for a woman to open a credit card, and many banks chose to require this. According to this article from the Smithsonian Magazine, some banks also applied a 50% reduction to womens’ wages when calculating the credit card limit for an applicant.

I agree that the facts are very frequently misrepresented.

[–] sjmarf@sh.itjust.works 51 points 1 month ago

He dined peacefully in his home with his family.

[–] sjmarf@sh.itjust.works 6 points 1 month ago* (last edited 1 month ago) (4 children)

Yeah, you would've thought it would work that way. Regrettably, the standard timezone code of Etc/GMT+4 is actually GMT-4. Wikipedia

[–] sjmarf@sh.itjust.works 21 points 1 month ago (7 children)

Today I spent multiple hours trying to debug a timezone issue in a codebase. The timezone I was testing with was Etc/GMT+4, which I had assumed was four hours ahead of GMT. Turns out, it’s actually 4 hours behind GMT 🤦‍♂️

[–] sjmarf@sh.itjust.works 2 points 1 month ago

There’s an empty community !retiredgif@lemm.ee

 
 
 
475
me_irl (sh.itjust.works)
 
 
 
547
Saitama, Japan (sh.itjust.works)
 
view more: next ›