• 5 Posts
  • 1.12K Comments
Joined 6 years ago
cake
Cake day: May 31st, 2020

help-circle





  • Ephera@lemmy.mltoComic Strips@lemmy.worldSome People
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    19 hours ago

    You can buy artificial diamonds for fairly cheap. Like, we’re talking so cheap that they’re put onto angle grinder discs.

    It’s just propaganda/stupidity that folks continue to pay insane prices for mined diamonds. Well, in part it is the point, to spend a lot of money. If we didn’t treat diamonds as expensive, we’d find something else to waste money on. It’s not like diamonds were so beautiful or useful, that they were worth the price to begin with.





  • What I always find frustrating about that, is that even a colleague with much more Bash experience than me, will ask me what those options are, if I slap a set -euo pipefail or similar into there.

    I guess, I could prepare a snippet like in the article with proper comments instead:

    set -e # exit on error
    set -u # exit on unset variable
    set -o pipefail # exit on errors in pipes
    

    Maybe with the whole trapping thing, too.

    But yeah, will have to remember to use that. Most Bash scripts start out as just quickly trying something out, so it’s easy to forget setting the proper options…


  • I don’t have the Bash experience to argue against that, but from a general programming experience, I want things to crash as loudly as possible when anything unexpected happens. Otherwise, you might never spot it failing.

    Well, and nevermind that it could genuinely break things, if an intermediate step fails, but it continues running.



  • Ephera@lemmy.mltoComic Strips@lemmy.worldXXX
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 days ago

    Well, there might be other reasons to need them. For example, I once got locked out of an account, because I had lost the 2FA credentials (which I did not have in KeePass, incidentally). The webpage let me back in with a recovery question.

    Well, technically, it was a recovery code which was just random symbols I had been provided upon account creation, but kind of the same thing in the end.




  • Man, I understand that it’s trying to give tips, but this really comes off as condescending. “Just create these three pieces of complex, non-obvious documentation and ensure you have highly automated specification and code quality checks.”

    I also have to say, if you expect maintainers to be experts in how to correctly prompt LLMs, and expect them to be hot for reviewing/rewriting generated code, then they might as well prompt the LLMs themselves.
    Sure, there may be extra effort involved by outside contributors – may, because they do attract folks who have no interest in putting in any effort – but is that really worth the overhead of having to communicate with the LLM through a middleman?


  • Ephera@lemmy.mltoScience Memes@mander.xyzit's a long distance relationship
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    4
    ·
    6 days ago

    I’m open for counterarguments, but I always felt this was a silly way of looking at things. You cannot measure stuff at the quantum level without significantly altering what you measured. (You can never measure without altering what you measured, since we typically blast stuff with photons from a light source to be able to look at it, but for stuff that’s significantly larger than photons, the photons are rather insignificant.)

    As such, you can look at measuring quanta in two ways:

    1. Either the quantum had the state that you end up measuring all along. It is only “undetermined”, because strictly nothing can measure it before you do that first measurement.
    2. Or you can declare it to have some magical “superposition”, from which it jumps into an actual state in the instant that you do the measurement.

    Well, and isn’t quantum entanglement evidence for 1.? You entangle these quanta, then you measure one of them. At this point, you already know what the other one will give as a result for its measurement, even though you have not measured/altered it yet.
    You can do the measurement quite a bit later and still get the result that you deduced from measuring the entangled quantum. (So long as nothing else altered the property you want to measure, of course…)


  • Ephera@lemmy.mltoScience Memes@mander.xyzit's a long distance relationship
    link
    fedilink
    English
    arrow-up
    40
    arrow-down
    1
    ·
    6 days ago

    The analogy that makes most sense to me so far, is this:
    You rip a photograph in half and put both halves into envelopes. Now you send one of the envelopes to your friend in Australia. You open the other envelope. Boom! Instantaneous knowledge of what’s in the envelope in Australia. Faster than light!!!

    In quantum terms, you “rip a photograph in half” by somehow producing two quanta, which are known to have correlated properties. For example, you can produce two quanta, where one has a positive spin and the other a negative spin, and you know those to be equally strong. If you now measure the spin of the first quantum, you know that the other has the opposite spin.