• 18 Posts
  • 874 Comments
Joined 6 years ago
cake
Cake day: May 31st, 2020

help-circle
  • Ephera@lemmy.mltolinuxmemes@lemmy.worldFeels more polite for sure.
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    11 hours ago

    It’s kind of bad for scripts, where it can be either annoying or genuinely problematic, when your script hangs on a password prompt. You typically do want it to just fail right away, because if you have monitoring, then you’ll be able to spot it failing.

    These days, it is (largely reliably) possible to detect whether a command is being run interactively or as part of an unattended script, so you do see some commands that trigger a sudo password prompt only for interactive use, for example systemctl does this. But this adds quite a bit of complexity to each individual program, so it isn’t really something that’s going to be implemented universally.

    I also have to say that systemctl kind of gets on my tits when it does that, because it throws up a GUI dialog for grabbing the password, which is quite jarring.


  • Most developers I’ve looked at would happily just paste the curl|bash thing into the terminal.

    I mean, I typically see it used for installing applications, and so long as TLS is used for the download, I’m still not aware of a good reason why you should check the Bash script in particular in that case, since the application itself could just as well be malware.

    Of course, it’s better to check the Bash script than to not check it, but at that point we should also advise to download the source code for the application, review it and then compile it yourself.
    At some point, you just have to bite the bullet and I have not yet seen a good argument why the Bash script deserves special treatment here…

    Having said that, for cases where you’re not installing an application, yeah, reviewing the script allows you to use it, without having to trust the source to the same degree as you do for installing an application.


  • Man, I do love when Wikipedia is Just Stating Facts™ and yet reads like the sassiest gossip, because reality is just so dumb[1].

    Ivanka Trump [Trump’s daughter with his first wife] has been described as the inspiration of Mar-a-Lago face.

    Kristi Noem, Melania Trump [Trump’s third wife], and Kimberly Guilfoyle have been described as having Mar-a-Lago face.

    He does like to talk about wanting sex with Ivanka, so I guess, that tracks.

    Melissa Rein Lively, a MAGA political worker, was reported […] to reject “any idea of submission or constraint” associated with Mar-a-Lago face, and that “no one forces me to do two hours of sport a day, to go to the hairdresser every three and a half weeks, to get my nails and eyebrows done, to get Botox.”

    Blink twice, if you’re being forced to say this…? Seriously, why would you list a bunch of unpleasant aspects, if you’re trying to make the point that you don’t mind it?


    1. By the way, we do have a great word for this in German: Realsatire – when reality is so ridiculous that merely recounting it sounds like satire. ↩︎


  • One thing that will become important pretty quick if you continue making these scripts is that it’s almost always better to wrap your variables in quotes - so it becomes yt-dlp -x “$a.

    Oh man, this reminds me of the joke that any program that’s more complex than Hello World has bugs – and folks still don’t even agree how to spell “Hello, World!”.

    Of course, Bash is a particular minefield in this regard…






  • Ephera@lemmy.mltoComic Strips@lemmy.worldArtist
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 days ago

    Yeah, always found that interesting, how a talent can play out in two ways:

    1. You get feedback from the outside that your talent is exceptional and you show it to everyone.
    2. Or you don’t get that feedback, you kind of just assume that everyone is as good as you are, and that your talent is not worth showing. By not showing it, you continue to not get feedback on it and may not realize for quite some time.

  • Ephera@lemmy.mltoMemes@lemmy.mlAI advice
    link
    fedilink
    English
    arrow-up
    42
    ·
    3 days ago

    Man, I really hate how much they waffle. The only valid response is “You have to drive, because you need your car at the car wash in order to wash it”.

    I don’t need an explanation what kind of problem it is, nor a breakdown of the options. I don’t need a bulletpoint list of arguments. I don’t need pros and cons. And I definitely don’t need a verdict.





  • It’s just really oversimplifying memory usage. OS designers had that same thought decades ago already, so they introduced disk caching. If data gets loaded from disk, then it won’t be erased from memory as soon as it isn’t needed anymore. It’s only erased, if something else requests memory and this happens to be the piece of “free” memory that the kernel thinks is the most expendable.

    For example, this is what the situation on my system looks like:

    free -h
                   total        used        free      shared  buff/cache   available
    Mem:            25Gi       9,8Gi       6,0Gi       586Mi       9,3Gi        15Gi
    

    Out of my 32 GiB physical RAM, 25 GiB happens to be usable by my applications, of which:

    • 9.8 GiB is actually reserved (used),
    • 9.2 GiB is currently in use for disk caching and buffers (buff/cache), and
    • only 6.1 GiB is actually unused (free).

    If you run cat /proc/meminfo, you can get an even more fine-grained listing.

    I’m sure, I could get the number for actually unused memory even lower, if I had started more applications since booting my laptop. Or as the Wikipedia article I linked above puts it:

    Usually, all physical memory not directly allocated to applications is used by the operating system for the page[/disk] cache.

    So, if you launch a memory-heavy application, it will generally cause memory used for disk caching to be cleared, which will slow the rest of your system down somewhat.

    Having said all that, I am on KDE myself. I do not believe, it’s worth optimizing for the speed of the system, if you’re sacrificing features that would speed up your usage of it. Hell, it ultimately comes down to how happy you are with your computer, so if it makes you happy, then even gaudy eye-candy can be the right investment.
    I just do not like these “unused RAM is wasted RAM” calls, because it is absolutely possible to implement few features while using lots of memory, and that does slow your system down unnecessarily.



  • Well, you don’t really need to announce anything, if the AI-generated submissions were super helpful anyways.

    But yeah, I guess, all I can say is that I really don’t believe your theory. Especially Widelands could’ve done so many other things in the past, if they cared so much for attention.

    But I have also been in the maintainer role, having to deal with generated submissions, and it really isn’t fun. I’m talking specifically about fun, because these are community-driven projects, so you need volunteers to have fun for anything to happen.
    In theory, a generated code submission could bring useful changes to the project, but it still isn’t fun to review, because there isn’t a human on the other side that you can teach. Even worse, you’re effectively just talking to an LLM through a middleman. If I wanted to use an LLM, I’d use it directly.