• 1 Post
  • 49 Comments
Joined 1 year ago
cake
Cake day: September 7th, 2024

help-circle






  • I talked about continuing to make money , after they sell the device. It’s usually just more profitable for a company to not respect their users.

    Most companies, if not all, can probably sustain one time payments, but investors prefer growth.

    I wonder whether mobile device manufacturers get a cut from Google’s spyware revenue.




  • A kernel update didn’t generate the initramfs

    This sounds like a bug on Nix configuration, or the kernel build process.

    If NixOS had caught the error, you wouldn’t have gotten a faulty generation at all. This is different from pacman/apt/dnf, which will happily continue the upgrade, resulting in a broken system with no easy way to fix it.



  • jim3692@discuss.onlinetomemes@lemmy.worldLet's update...
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    2 months ago
    nix flake update
    nixos-rebuild --switch --flake .
    
    # Just to keep an update history
    git add flake.lock
    git commit -m "update"
    

    This may seem like too much work, but it guarantees an all-or-nothing procedure. If some package is broken, the entire upgrade process is canceled, and the system remains in the state that it was.

    I have had a couple of partial upgrade cases on Arch. It was not fun live booting to repair it, every time this happened.





  • jim3692@discuss.onlinetomemes@lemmy.world(freely) crossposted from mastodon
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    3 months ago

    An important detail that is missing here is how deallocation works.

    When an application tells the system that it no longer needs a chunk of memory, the system does not erase the data from that region. It instead allows other applications to take control of that chunk.

    Imagine it like renting a room, but you keep a copy of the key before checking out. You have supposedly left the room, but you still have access to it.

    In the software world, this is unintentional behavior. In the real world, it would look like you accidentally return to that room.

    Or, like you checkout, but your friend still has a key. Without knowing that you checked out, they return to take a bath. If a 3rd person knows about this miscommunication, they can rent that room, and steal your friend’s money during the bath.





  • jim3692@discuss.onlinetomemes@lemmy.worldNo arguments here
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 months ago

    Take this shape as an example. The “square” in question consists of AC, BD, the outer AB, and the inner CD.

    Point (5) means that, since the lines AC and BD are radii of the concentric circles, the arcs AB and CD should have the same inner angle. That’s because the angle COD is equal to AOB.

    Since, the inner angle is the same, then the outer AOB should, by definition, be 2π - (the inner AOB), because that’s how radiants work; a circle is 2π rads.