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

help-circle

  • To give a quick highlight, because this case is often politicized and misrepresented:

    The plaintiff, Stella Liebeck (1912–2004), a 79-year-old woman, purchased hot coffee from a McDonald’s restaurant, accidentally spilled it in her lap, and suffered third-degree burns in her pelvic region. She was hospitalized for eight days while undergoing skin grafting, followed by two years of medical treatment. […]

    Liebeck’s attorneys argued that, at 180–190 °F (82–88 °C), McDonald’s coffee was defective, and more likely to cause serious injury than coffee served at any other establishment.

    So, the lawsuit never demanded McDonald’s to put a warning that you’re not supposed to spill hot coffee on yourself. It argued that it’s an unnecessary safety hazard, because the coffee was served at hazardous temperatures.
    No matter how many warnings you put down, it can happen that someone spills coffee on themselves and they shouldn’t need to be hospitalized from that.




  • I find it annoying, because the hype means that if you’re not building a solution that involves AI in some way, you practically can’t get funding. Many vital projects are being cancelled due to a lack of funding and tons of bullshit projects get spun up, where they just slap AI onto a problem for which the current generation of AI is entirely ill-suited.

    Basically, if you don’t care for building useful stuff, if you’re an opportunistic scammer, then the hype is fucking excellent. If you do care, then prepare for pain.


  • Ephera@lemmy.mltoich_iel@feddit.orgich🌡️iel
    link
    fedilink
    Deutsch
    arrow-up
    2
    ·
    1 day ago

    In dem Fall hatte ich Mais-Tortillas, wo ich so einen Auberginen-Knoblauch-Aufstrich draufgemacht habe. Dann vegane Cevapcici in der Pfanne erhitzt und die Gurkenscheiben gegen Ende dazu geworfen, damit sie nur so lauwarm werden. Und dann eben Cevapcici + Gurken in die Tortillas gefüllt.

    Also Ziel war so ein bisschen, in die Tzatziki-Ecke zu kommen, wo ja auch Gurken und Knoblauch drin ist. Anscheinend isst man Tzatziki auch tatsächlich mit Cevapcici, also war der Gedanke wohl gar nicht so schlecht. 😅


  • That is definitely not right. That sounds like you don’t have a shebang or it isn’t defined correctly. The shebang has to be the very first thing in the script, with no whitespace before it. It gets read out by the kernel, which very dumbly checks the first few bytes.

    And well, such a shebang should also work for Python or the like. If you copy the first script in this link into a file script.py, then run chmod +x script.py and finally run ./script.py, does that print Hello, World! ?









  • I mean, yeah, I studied computer science. Presumably, I’ve been taught the majority of these at some point. I just absolutely fucking hate mathematical notation.

    Due to your comment, I’m guessing, top-left is multiplication then, even though I was also taught in school to use × for multiplication.
    Top-center might be logical AND? Top-right might be function composition? Center-left and center-right might be ranges, unless those dots indicate multiplication, then no fucking clue. Bottom left is set intersection. And one of these circles or crosses is probably the Cartesian product.

    So, I mean, I do know some of this shit. In truth, I was just deriding mathematical notation with that meme, because well, “Set” is the only actual word in all that mathematical notation… 😵‍💫





  • Lots of “modern” languages don’t interop terribly well with other languages, because they need a runtime environment to be executed.
    So, if you want to call a Python function from Java, you need to start a Python runtime and somehow pass the arguments and the result back and forth (e.g. via CLI or network communication).

    C, C++, Rust and a few other languages don’t need a runtime environment, because they get compiled down to machine code directly.
    As such, you can call functions written in them directly, from virtually any programming language. You just need to agree how the data is laid out in memory. Well, and the general agreement for that memory layout is the C ABI. Basically, C has stayed the same for long enough that everyone just uses its native memory layout for interoperability.

    And yeah, the Rust designers weren’t dumb, so they made sure that Rust can also use this C ABI pretty seamlessly. As such, you can call Rust-functions from C and C-functions from Rust, with just a bit of boilerplate in between.
    This has also been battle-tested quite well already, as Mozilla used this to rewrite larger chunks of Firefox, where you have C++ using its C capabilities to talk to Rust and vice versa.


  • Yeah, I’ve considered setting up a scrappy rsync solution, because Syncthing felt like overkill for that use-case and like it might stop working one day.

    There’s the Syncopoli app on F-Droid, which hasn’t been updated in three years, but it seems to just be a thin wrapper around rsync, which has been stable for decades, so I still kind of trust it more to continue working. Or at the very least, if I need to fix something or update the app myself, I feel like I’ll be able to do it.