Just another Reddit refugee

  • 0 Posts
  • 15 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle

  • xavier666@lemm.eetoSelfhosted@lemmy.worldWhat is Docker?
    link
    fedilink
    English
    arrow-up
    7
    ·
    7 hours ago

    Learn Docker even if you have a single app. I do the same with a Minecraft server.

    • No dependency issues
    • All configuration (storage/network/application management) can be done via a single file (compose file)
    • Easy roll-backs possible
    • Maintain multiple versions of the app while keeping them separate
    • Recreate the server on a different server/machine using only the single configuration file
    • Config is standardized so easy to read

    You will save a huge amount of time managing your app.

    PS: I would like to give a shout out to podman as the rootless version of Docker











  • but I’ve accepted defeat in trying to understand it

    I may have shared the link but even I don’t know how it how it works.

    It’s like admiring the Eiffel Tower; you can understand that it’s a marvel of engineering without understanding the underlying engineering concepts. Such experiences are rare but they truly humble you.

    Regarding the square root, understand the following concepts

    1. Bit shifting simply shift the bits to a certain side (Left or right) => 0010 << 1 0100
    2. Mathematically, it multiplies or divides the input number with a factor of 2, depending upon the type of shift
    3. If you shift the number n with a nice shift amount x (I have greatly greatly over-simplified this), then you can calculate the inverse sq. root since inverse square root is 2^(-1/2)
    4. Calculating the inverse square root manually will take lots of clock cycles, which was not feasible for a FPS game with the limited h/w
    5. Bit shifting is a lot faster since we are not computing, but instead shifting

    The resultant shifting gives us an answer which is close enough to the answer, and that is good enough for FPS games for calculation of reflections.

    Source for bitshifting

    PS: Someone who is more experienced in this domain can correct me if I’m wrong.




  • They also want to doomscroll slop; it’s mindless and mildly entertaining. The same way tabloid newspapers were massively popular before the internet and gossip mags exist despite being utter horseshite. It’s what people want.

    The same analogy is applicable to food.

    People want to eat fastfood because it’s tasty, easily available and cheap. Healthy food is hard to come by, needs time to prepare and might not always be tasty. We have the concepts of nutrition taught at school and people still want to eat fast-food. We have to do the same thing about social/internet literacy at school and I’m not sure whether that will be enough.