• 0 Posts
  • 51 Comments
Joined 1 year ago
cake
Cake day: June 27th, 2023

help-circle



  • There’s kind of a difference between “we scraped the internet and decided to use copyrighted content anyways because we decided to interpret copyright law as not being applicable to the content we generate using copyrighted content” (omegalul) and “we explicitly agreed to a legally-binding contract with Apple stating we won’t do that”.




  • In certain situations, it even disallows making assumptions about equality and ordering between floats.

    I’m guessing it does this when you define both floats in the same location with constant values.

    The correct way to compare floats whose values you don’t know ahead of time is to compare the absolute of their delta against a threshold.

    i.e.

    abs(a - b) <= 0.00001

    The idea being that you can’t really compare floats due to how they work. By subtracting them, you can make sure the values are “close enough” and avoid issues with precision not actually mattering all that much past the given threshold. If you define 2 constant values, though, the compiler can probably simplify it for you and just say “Yeah, these two should be the same value at runtime”.






  • micka190@lemmy.worldtoSelfhosted@lemmy.worldWhy docker
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 months ago

    I find it makes my life easier, personally, because I can set up and tear down environments I’m playing with easily.

    Same here. I self-host a bunch of dev tools for my personal toy projects, and I decided to migrate from Drone CI to Woodpecker CI this week. Didn’t have to worry about uninstalling anything, learning what commands I need to start/stop/restart Woodpecker properly, etc. I just commented-out my Drone CI/Runner services from my docker-compose file, added the Woodpecker stuff, pointed it to my Gitea variables and ran docker compose up -d.

    If my server ever crashes, I can just copy it over and start from scratch.




  • micka190@lemmy.worldtoMemes@lemmy.mlGoogle “search”
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    7 months ago

    C’mon now. “Laptop monitor turn off” has never generated a good result

    That’s not what they’re saying. They mean that if your search contains that or is somewhat adjacent (despite being more specific), your results will be drowned in it. For example, if you had something like “laptop monitor turn off when bla bla bla”, 90% of the results will completely ignore what you’ve added.

    I’ve got to deal with the same shit whenever I have to deal with complicated programming questions. Half the results will be related to some really basic mistake on the user’s side that I haven’t done, and I’ll need to spend a lot of time trying to find the magical word combination that doesn’t trigger those non-related issues and actually show me what I need.