• 0 Posts
  • 39 Comments
Joined 1 year ago
cake
Cake day: July 5th, 2023

help-circle


  • It’s not quite as point-and-click, but I’m using Docker for that because Yunohost kept messing up updates. Most server apps will have some instructions on how to run them in docker, especially a docker-compose.yml file, so you don’t have to rely on the Yunohost team to package said app.

    The way I do it is that I put each suggested compose file in their own file, and import them in my main docker-compose.yml file like this:

    version:  '3'
    include:
        - syncthing.yml
    

    Then just run docker compose pull && docker compose up -d every time you change something or want to update your apps, and you’re good to go.

    Software updates in particular are waaaaaayyy easier on Docker than Yunohost.






  • shove some text into stdout

    That’s not what this operator does normally, and if you try to “shove” something into anything else (an int into a variable? a function into an object?) you’ll get surprises… Basically it’s “special” and nothing else in the language behaves like it. Learning hello world in C++ teaches you absolutely nothing useful about the language, because it doesn’t generalize.

    C, in contrast, has many instances of complex functions like printf (another commenter mentioned variable arguments), and learning to call a function is something very useful that generalizes well to the rest of the language. You also learn early enough that each different function has its own “user manual” of how to use it, but it’s still just a function call.


  • this std::cout << "hello world" bullshit is in no way intuitive. You’re using the bit-shift operator to output stuff to the console? WTF? Why 2 colons? What is cout? And then these guys go on to complain about JS being weird…

    No, C is where it’s at: printf("hello world"); is just a function call, like all the other things you do in C.









  • I got a “manual” Breville espresso machine (Barista Express), and honestly it’s not that many steps compared to a full auto like my mom’s Jura. I just have to move the portafilter to the grinder, tamp, and put it back into the showerhead. Meanwhile, my mom has to fill up the tank, the coffee hopper and empty the grounds bin every ~5 cups… Not convinced it’s worth 2x the price, and I can actually make better espresso on my machine.