Skip Navigation
Posts
5
Comments
783
Joined
2 yr. ago
  • Good lord some of those are spot on.

    There's a lot of men telling on themselves in this thread. And everywhere else too.

  • ...but no one is making this racist except those trying to cause arguments, and those who don't understand what women are saying.

    Yes, if someone said something racist and meant it, they'd be a racist. Women are not doing that.

  • No, no, no. Don't you realize? Men are the real victims here! Eyeroll to end all eyerolls

  • if you're trolling, I think you're leaning too far into the stereotype.

  • Wind feels so much stronger than 20 years ago, at least in Michigan USA.

    I don't suppose anyone knows of a site that has wind speed plotted over time? I found a NASA site, but it's difficult to compare years.

  • You both present sick arguments!

  • Reference: The Dollop, a comedy history podcast with Dave Anthony and Gareth Reynolds. The episode is "Action Park".

  • IM THE FUCKING HIPPO GUY

  • Just being able to exclude certain sites, and reduce the ranking of others, makes search so much better in Kagi.

    I hope they eat Google's lunch.

  • First they came for the...

    And if there is anyone left in 100 years, they might ask "why did people let this happen?"

  • Well, you see, first off you need a microservice to distinguish between those 2 types of step, then you need separate microservices to handle storing those values. Then you need a GraphQL database in a multi zone Kubernetes cluster as a backend...

    Ugh I feel dirty saying all that.

  • Damnit, I was going to post "yeah it's called Cunnington's Law" and see who fell for it.

  • Let the poor old thing rest for goodness sake!

  • You gotta have a naked woman hold them in a house fire first.

  • Autism @lemmy.world
    bloopernova @programming.dev

    Help needed with volume sensitivity

    My wife and I are both autistic. She has difficulty moderating the volume of her voice, and I'm volume sensitive. So far she's been unable to recognize when I'm having trouble, and I've been unable to stop being so sensitive. :/

    I've tried wearing earplugs but I have trouble remembering to keep them in.

    Does anyone have any suggestions on how to reduce volume from someone when you're sensitive and they're loud without realizing it?

    Alternative Nation: The Fediverse's Alternative and Indie Music Community @lemmy.world
    bloopernova @programming.dev

    Moog Cookbook - Hotel California

    Utterly wild and hilarious, today is a Moog kind of day.

    Programming @programming.dev
    bloopernova @programming.dev

    How to decide what to do with command line parameters?

    This is solved, I was being dumb. Please see second EDIT below

    This isn't really language specific, but if it helps I'm using Python. I can get the parameters just fine with the Traitlets module, but I'm still a novice really and figuring out which patterns to use is challenging.

    Say you have a bunch of command line parameters. Some are booleans, where their presence means True, absence means False. Other parameters must accept one text string, and others can be used multiple times to build a list of strings.

    It feels inefficient/wrong to use a bunch of IF/THEN/ELSE statements to decide what to do with the parameters, and prone to edge case errors. Is there a pattern that would invoke the correct method based on the combination of input parameters?

    Examples:

     undefined
        
    app thing --dry-run --create --name=newname01 --name=newname02 --verbose
    
    app thing --create --name=newname01 --name=newname02 --name=newname03
    
    app job --cancel -i 01 -i 02 -i 03
    
      

    EDIT: Via the Traitlets module,

    Connect for Lemmy App @lemmy.ca
    bloopernova @programming.dev

    After submitting a comment, edit window stats open

    When I submit a comment, the edit window stays open. I then get prompted to Stay or Leave the comment, even though it's already been submitted. Is there a way to disable that behaviour?

    Python @programming.dev
    bloopernova @programming.dev

    How do you make config data available to all classes?

    I am writing an object-oriented app to help our developers manage some cloud systems. I'd like to make the configuration information available to all the classes, but I'm not sure of a good way to do that. Everything I can think of seems to fall under the category of "global variables" which as far as I know is a Very Bad Thing.

    I already have a logging Mixin class that enables logging for every class that inherits it, and I was wondering if that's the right way to approach the configuration data:

     python
        
    class LoggingMixin:
        @classmethod
        @property
        def log(cls):
            return logging.getLogger(cls.__name__)
    
    class TestClassA(LoggingMixin):
        def testmethod1(self):
            self.log.debug("debug message from test class A")
    
    if __name__ == "__main__":
        logging.basicConfig(
            format="{created:<f} {levelname:>5s} {name}.{funcName:>8s} |{message}|",
            level=logging.DEBUG,
            style="{",
        )
    
        a = TestClassA()
        a.testmethod1()
    
    
      

    Outputs (in case y