• 0 Posts
  • 280 Comments
Joined 3 years ago
cake
Cake day: June 18th, 2023

help-circle






  • NaibofTabr@infosec.pubtoProgrammer Humor@programming.dev𝚒𝚏...
    link
    fedilink
    English
    arrow-up
    18
    ·
    edit-2
    3 days ago

    No no, the imperative “get six” overrides the previous “buy a gallon of milk” if the “they have eggs” condition is met.

    “get six” implies x === 6 not x = x + 6, that would be “get six more

    The real problem is that “buy” was only specified in the first case. Because the conditional was met, he should get six gallons of milk but not buy them.




  • You SHOULD NOT do software RAID with hard drives in separate external USB enclosures.

    There will be absolutely no practical benefit to this setup, and it will just create risk of transcription errors between the mirrored drives due to any kind of problems with the USB connections, plus traffic overhead as the drives constantly update their mirroring. You will kill your USB controller, and/or the IO boards in the enclosures. It will be needlessly slow and not very fault-tolerant.

    If this hardware setup is really your best option, what you should do is use 1 of the drives as the active primary for the server, and push backups to the other drive (with a properly configured backup application, not RAID mirroring). That way each drive is fully independent from the other, and the backup drive is not dependent on anything else. This will give you the best possible redundancy with this hardware.




  • Zeroth Robotics introduced the W1 at CES, a robot reminiscent of WALL-E.

    The W1 is a programmable companion designed for families. According to the company’s website, for $4,999, the robot offers round-the-clock AI-powered security, 360-degree mobile surveillance, and integrates with smart home devices for instant smoke and intrusion alerts. It’s also marketed as an adventure companion that can transport camping gear, follow you around the campsite taking photos as a family photographer, and supply portable power so you can enjoy entertainment on the go.

    We built a surveillance device that follows you around and uploads images, audio, video, and location data to our cloud servers, which we have absolutely made very secure! We care about your privacy, so your data will never be shared with anyone except our 372 advertising partners! Please bring it into your home today!







  • A modern OS running with low RAM (e.g. an RPi with 2G) is going to fill the RAM pretty quickly just in normal operation, so a larger swap space will allow it to run more efficiently as it regularly moves things in and out of swap. You still want to have some overhead to allow for storing the live RAM for hibernation, which with a small amount of RAM is likely to be near 100%. Therefore, running with 3x RAM for swap space is recommended.

    it only needs to be at least the size of RAM

    Yes, technically it only needs to be the size of the RAM, but no matter how much RAM you have some of the swap space will be used at any given time for the swap file during system operarion. If you only have exactly as much swap space as RAM, there won’t be enough available swap space to store the entire live RAM for hibernation.

    The size of the swap file and the size of the live RAM image at any point is unpredictable, therefore 1.5x RAM is the lowest recommended value that is probably safe for hibernation, assuming the swap file is not being used heavily enough to be 50% of the RAM. If you can’t provide at least that much disk space for swap, you should disable hibernation.