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/)CA
Posts
1
Comments
40
Joined
2 yr. ago

  • Perspective matters. There's a couple things you can do to majorly reduce your carbon footprint. Beyond those it gets increasingly difficult to have smaller and smaller effects. At some point the next most effective things to do with your time and effort become

    • do activism
    • earn more money
      • to buy offsets
      • to donate to activist charities

    The time and effort you spend living like a weirdo has an opportunity cost that you could be doing those things. Furthermore it looks bad. There was a study that found that when you tell people that tackling climate change requires major sacrifice, they became more likely to deny climate change is even real.

  • I worked with chatgpt since I'm not a python dev, and this is what I came up with

     
        
    from time import time
    
    class PlaySession:
        def __init__(self, data: dict):
            self.guild_id = int(data['guild_id'])
            self.user_id = int(data['user_id'])
            self.timestamp = data['time']
    
        def is_longer_than_half_hour(self) -> bool:
            return self.timestamp + 1800 < time()
    
        async def resolve_member(self, bot) -> "discord.Member | None":
            guild = bot.get_guild(self.guild_id)
            return guild.get_member(self.user_id) if guild else None
    
        @staticmethod
        def is_playing_league(member) -> bool:
            activity = getattr(member, 'activity', None)
            name = getattr(activity, 'name', None)
            return name and name.lower() == "league of legends"
    
    async def ban_for_league(member):
        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")
    
    async def process_entries(bot, entry_dicts):
        sessions = [PlaySession(d) for d in entry_dicts if PlaySession(d).is_longer_than_half_hour()]
        for session in sessions:
            member = await session.resolve_member(bot)
            if member and PlaySession.is_playing_league(member):
                await ban_for_league(member)
    
      
  • I'd create a new city from scratch, sort of kick-starter style with like-minded residents and businesses. It would be built up with good public transit from the beginning and solid anti-NIMBY policies. Something radical like not being able to own your property. Instead the city would be owned collectively and you could have shares. But you would never have an incentive to deny development to increase your own home's value.

    There'd be participatory planning and cutting edge democracy: participatory, deliberative, representative.

  • A lot of the programming that I do for fun is programming challenges like Advent of Code. They're more like games or puzzles than projects. You don't have to wrestle with build tools or old libraries or other people's crappy code or learn complicated frameworks.

    I like the art of programming. I like to find elegant ways to express ideas. I like to learn new paradigms and language features that allow me to think differently about problems. It's nice to find a way to make the code readable by matching the code to the problem statement.

    Or there's the challenge of fluent style, where instead of the code reading in the typical programming style with caveman grammar, you go out of your way to make read like English.

  • [VINCENT]

    And you know what they call a Quarter Pounder with Cheese in Paris?

    [JULES]

    They don't call it a Quarter Pounder with Cheese?

    [VINCENT]

    No, they don't have fractions, they wouldn't know what the fuck a Quarter is.

    [JULES]

    Then what do they call it?

    [VINCENT]

    They call it Royale with Cheese.

  • simpsonsshitposting @sh.itjust.works

    That was a scary couple of hours