• 0 Posts
  • 46 Comments
Joined 3 years ago
cake
Cake day: March 25th, 2022

help-circle

  • I’ve been wondering why not window.chrome == true or Boolean(window.chrome), but it turns out that the former doesn’t work and that == has essentially no use unless you remember some completely arbitrary rules, and that JS developers would complain that the latter is too long given the fact that I’ve seen javascript code using !0 for true and !1 for false, instead of just true and false because they can save 2 to 3 characters that way.




  • https://prisonjournalismproject.org/2024/03/31/popular-video-game-banned-federal-prisons/

    From my prison cell in Colorado, I conquered sites on alien planets, used conveyor belts to supply my factories, and organized weapons to defend against enemy attacks. I was playing Mindustry, a world-building game that relies heavily on logistics and strategy.

    For less than $2, I could lose myself in my Android tablet at night — then, when I slept, my dreams about the game replaced my usual nightmares. And I wasn’t alone: Inmates talked about the game over meals and at work.

    Then came an announcement from officials last July. Mindustry would no longer be on our prison-issued tablets.

    “I knew a lot of people would be upset when I read they were taking it away,” one inmate from Nebraska said. “I could walk around the chow hall, my work assignment and other areas — everyone was talking about it.”

    According to a statement from a Federal Bureau of Prisons spokesperson, Mindustry was removed because it was “found to jeopardize the safety, security, and orderly operation” of federal prisons.

    When Prison Journalism Project asked for specifics on how the game jeopardized safety, security and orderly operation, the spokesperson said the Federal Bureau of Prisons does not discuss specific security practices or internal procedures for security reasons.

    The game’s fans here in Federal Correctional Institution at Englewood, a federal prison in Colorado, included a retired colonel for the U.S. Army.

    “All they’ve left us with are stripped-down children’s games,” he said.

    Another player had one of the most elaborate mining and distribution centers I’ve ever seen, the fruit of many hours of thought — which, of course, is one key to fighting recidivism.

    “Whenever I’m feeling upset, I can pick up my tablet,” the player told me. “It calms me down and changes my whole mindset.”

    Users have come up with their own explanations for Mindustry’s fate. One theory goes that players had used the game’s drawing pad to sketch dirty pictures or leave secret messages.

    Whatever happened, people are disappointed.

    “I wanted to buy a tablet,” one person said, “but now that they’ve taken Mindustry I don’t want one.”

    Sentiments like that are understandable. We are still without many of the tablet features we were told to expect, including free e-books through Project Gutenberg, video messaging, and a life skills program through Khan Academy.

    In a statement, the prison bureau said that games are controlled by a vendor, and that the bureau has “the right to remove any game that it deems inappropriate.”

    I miss the game. When I played it, I could stop dwelling on my past or my unknown future. And it encouraged me to be more social with others, especially when we would discuss strategy. My tablet now lies neglected in my locker.

    The player who put together the elaborate mining center isn’t shocked that Mindustry is gone.

    “It’s not uncommon for the BOP to take away something we like,” he said.

    This sucks. :(







  • Faresh@lemmy.mltoProgrammer Humor@programming.devof=/dev/sda
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    6 months ago

    echo and alias are both shell commands. If the shell is running (which it obviously still is), those commands should still work, as it does not involve reading data from disk, but from memory.

    Edit: I just noticed the picture said cd was not found, which is also a shell built-in. So, I don’t know.







  • Faresh@lemmy.mltoProgrammer Humor@lemmy.mlOf course
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    11 months ago

    Is there any situation where you’d want to remember the opcodes? Disassemblers should give you user-friendly assembly code, without any need to look at the raw numbers. Maybe it’s useful to remember which instructions are pseudo instructions (so you know stuff like jz (jump if zero) being the same as je (jump if equal) making it easier to understand the disassembly), but I don’t think you need to remember the opcode numbers for that.

    Edit: Maybe with malware analysis where the malware in question may be obfuscated in interesting ways to make the job of binary analysis harder?




  • Something I’ve been for a while now is why this gender disparity is so strong in this specific area of engineering compared to all other engineering areas. People seem to claim it’s because of the “geek” stereotype, but that seems more like a symptom than a cause and I fail to see how it enforces this disparity, considering there’s nothing preventing a woman from being a geek too.