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

help-circle
  • Ephera@lemmy.mlto196@lemmy.blahaj.zoneAroma rule
    link
    fedilink
    English
    arrow-up
    3
    ·
    30 minutes ago

    Lifehack for cooking spaghetti in a tiny pot like that:

    1. Take however much you want to cook out of the package and hold it in one bundle in your hand.
    2. Set it down vertically in the middle of the pot.
    3. Now, let it go with the tiniest amount of spin. With a bit of practice and luck, it should fall outwards in all directions, forming a spiral of spaghetti.
    4. Once the spaghetti become soft, you can start pushing them inwards into the water much sooner, because they’re not at such a harsh angle to the wall of the pot.

  • I mean, B does make some amount of sense, if you realize that it’s supposed to give you the maximum among the parameters (so you’d normally call it as Math.max(5, 3) === 5).

    Well, and you can call that with zero parameters, because you can spread an array into it, which might have zero length. And then given these conditions, and if you don’t want to throw an error, then -Infinity is kind of the least bad remaining option, as it’s likely to generally work with the rest of your logic.



  • I also have basically only my personal experience to go off of (from studying computer science), but I never had to plug hardware into my laptop. Printers were available over the network and the one time we worked with hardware, they had dedicated lab PCs there, which had the necessary software pre-installed.

    From what I’ve heard on the internet, that’s quite a common theme. Lots of hardware equipment is ridiculously expensive, so you don’t go buying new equipment when accompanying software doesn’t work on newer operating systems anymore. Instead, you keep a PC around with that old OS and the software, specifically for operating that hardware.





  • Ephera@lemmy.mltoich_iel@feddit.orgich📱🧮🧮iel
    link
    fedilink
    Deutsch
    arrow-up
    25
    ·
    1 day ago

    Weil die eingebaute Taschenrechner-App bei Android an’s Unbenutzbare grenzt. Wer ist auf die Idee gekommen, dass man in dem Textfeld nicht einfach seinen Cursor irgendwo reinsetzen und editieren kann? Da habe ich einen vollwertigen Computer in meiner Hosentasche, aber die App hat trotzdem die Limitierungen eines physikalischen Taschenrechners. (┛ಠ_ಠ)┛彡┻━┻






  • I guess, kinda? In my head, a Verein is definitely more of a hobby/socialising thing, but I do have to say that “club” certainly doesn’t feel impactful enough. Like, Germany as a whole would fall apart, if you took the Vereine away.

    For example, the Red Cross is an e.V. here. There’s e.V.s that support the local voluntary firefighters (although those are also organized by the municipality). We’ve got big-ass nature preservation e.V.s that do really important work in suing awful corporations. Local sports organizations and orchestras and whatnot are also organized as e.V.s. And perhaps the most relevant in this community is the KDE e.V., which helps organize/assist the wider KDE community.

    So, yeah, some of them definitely do work that one might expect from a charity…


  • It’s easy to set up a cache, but what’s hard is convincing your devs to use it.

    Mainly because, well, it generally works without configuring the cache in your build pipeline, as you’ll almost always need some solution for accessing the internet anyways.

    But there’s other reasons, too. You need authentication or a VPN for accessing a cache like that. Authentications means you have to deal with credentials, which is a pain. VPN means it’s likely slower than downloading directly from the internet, at least while you’re working from home.

    Well, and it’s also just yet another moving part in your build pipeline. If that cache is ever down or broken or inaccessible from certain build infrastructure, chances are it will get removed from affected build pipelines and those devs are unlikely to come back.


    Having said that, of course, GitHub is promoting caches quite heavily here. This might make it actually worth using for the individual devs.





  • I work on a relatively niche open-source project, where we hardly ever get outside contributions, so we’ve only gotten one AI-generated pull request so far, but that one was just incredible.

    It just failed immediately with a compile error, meaning the person who opened it, had never even tried to compile the code. Like, that’s the one unequivocal problem with AI-generated code, that folks will think they can contribute without understanding anything about the project setup or context or really even what they’re supposed to be doing.

    I’m pretty sure, they just copy-pasted the issue text we had written into a chatbot and hoped it would cough up the right solution. But the issue text didn’t describe all necessary steps. Anyone looking to actually solve that issue would have had to enter into a discussion with us to work out those details, like a human would’ve probably understood.

    Meanwhile, the LLM changed maybe ⅕ of the files, it should’ve changed, and that in ways that made it look plausible, but were far away from solving any of the real complexities or even solving the simple stuff consistently.
    It’s just genuinely not even a start to a solution, because the complexity isn’t in producing the code. The complexity lays in thinking through a solution, which is just not something an LLM can do.



  • Ephera@lemmy.mltoCyanide and Happiness@lemm.ee2025-05-14
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    But are there many scenarios where you don’t already need that anyways, just for writing out the digits of a number in the given base?

    I mean, I can imagine a scenario where you might talk about base 420 on a theoretical level, without explicitly counting up until 418, 419, 420 (as e.g. Ϡ, Ϣ, 10). But honestly, you could even still refer to that as “Base 419” and it would still be fairly obvious what you mean, since you are using multiple digits rather than just one. I guess, you could also write it as “Base 4199” (so with a subscript 9 to represent what we normally call “Base 10”), if you want to be precise about it.