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

help-circle





  • Ephera@lemmy.mltomemes@lemmy.world"GenAI is so cool"
    link
    fedilink
    English
    arrow-up
    6
    ·
    6 hours ago

    I’m always amazed how badly companies understand the concept of human interaction. Showing appreciation requires putting in some amount of effort. If you just type some words into a box and an image comes out, that’s not anything. Might as well use the first clipart that comes up in image search…





  • Ephera@lemmy.mltoProgramming@programming.devnew Date("wtf")
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 hours ago

    I mean, for what it’s worth, I’m a seasoned dev and just did a run where I tried to answer everything as it makes sense to me (which is “throws an error” or “invalid date” for all of them) and I also got a score of 4/28.

    …and two of those points were given to me, because the quiz interpreted my answer differently than I meant it.

    In other words, this quiz exists to highlight that JavaScript’s Date functions make no sense.



  • Ephera@lemmy.mltoScience Memes@mander.xyzoops
    link
    fedilink
    English
    arrow-up
    6
    ·
    16 hours ago

    I feel like it’s just capitalism doing a capitalism. People are self-conscious about their skin, so you can sell them all kinds of crap.
    Even a basic washcloth does a decent job with exfoliating, if you use it regularly. Rub your face dry with a scruffy towel, if you need more than that.

    But of course, there’s hardly any money to be made with reasonably priced products, so you won’t see TV ads for them.




  • GUI libraries are unfortunately really not standardized at all. For low-level languages, you may want to consider alternatives, like a CLI or just a config file.

    One interesting option is also TUIs. Many of them are based on the ncurses library, which is by itself fairly simple, but you can find layouting libraries on top of it.
    For Rust, there’s a pretty cool higher-level library: https://ratatui.rs/

    To be honest, these choices are hardly more standardized than GUI libraries (well, except for config files maybe, where you’ve got TOML, YAML etc.), but they are much simpler, so more libraries will offer a complete package.


  • Well, the thing is, if you’ve got a whole bunch of biodiversity and you cut down a small patch in the middle of it, where you grow your monoculture and use your big machines and whatnot, that’s when this fuck-biodiversity approach is rather profitable.

    But if you scale that up, if a whole bunch of farmers kill biodiversity in the same region, this will obliterate profitability. You need biodiversity for:

    • pollination
    • enriching the soil (we have no industrial process for creating humus; it’s mostly just earthworms doing their thing)
    • pest control (birds and whatnot can eat your pests, if they settle nearby; they won’t settle nearby, if there’s no food for half the year because you’ve killed everything else)
    • resilience against pests and climate variations (if your harvest consists out of multiple different plants, then some of them failing from pests or droughts etc. is much less of a problem)

    I’m probably forgetting more aspects, and we probably don’t yet know all aspects either. But ultimately, plants have evolved to exist in rich biodiversity. It isn’t just some moral thing to do, to keep that intact. Plants will falter without biodiversity, no matter how much fertilizer and pesticide you pour onto them.




  • I am not sure, but in Nix I declare the desired state of installed packages and configurations in an obscure language and the package manger takes care of that, right?

    The package manager is only one (very important) component of the system that applies your configuration, but otherwise this is a good description, yeah.

    Now the module declare reasonable default configurations? Like http server starts on system start and serves on port 80?

    Obviously, it depends on each individual module, but so far, I’ve mostly been fine with the defaults. Typically, it doesn’t modify the configuration, unless you explicitly specify a configuration value, therefore using the defaults that the software normally uses.

    Now you lost me at the Home-Manger. I can declare stuff in my home folder. OK, so for user-wide configuration? For packages and configuration in the user space? Or what?

    It’s for user-wide configuration, so what would generally be stored in dotfiles. For example, you can configure the search engines in Firefox. Or the panel layout in KDE.

    Home-Manager can also install packages, which is useful, because it can also be used standalone on other distributions. And in particular, you usually want to declare that a package should be installed and what user configuration it should use, all in one place…