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.
- 1 Post
- 150 Comments
Why the double negation?
It’s literally 3:43 AM for me now. And I also had the intention going to bed early today
Faresh@lemmy.mlto
World News@lemmy.world•Kim Jong-un bans hotdogs for North Koreans, cooking them an act of treasonEnglish
9·2 years agoI discovered this post from my All feed, not from hexbear, if that’s what you are implying.
Faresh@lemmy.mlto
World News@lemmy.world•Kim Jong-un bans hotdogs for North Koreans, cooking them an act of treasonEnglish
157·2 years agoWhy are you all believing this obvious piece of false information?
“We are raising prices because prices are being raised”
Faresh@lemmy.mlto
World News@lemmy.ml•'Israel' violates ceasefire, shells border towns in south LebanonEnglish
19·2 years agoIs this a new lemmy feature? (the embedding of the news article)

Faresh@lemmy.mlto
Memes@lemmy.ml•Google's official installation instructions for Chrome on WindowsEnglish
2·2 years agoDidn’t Microsoft just recently get a law suit for such practices or am I mixing it up with Google (who now can’t pay Mozilla anymore to ship their browser with google as the default search engine)?
Faresh@lemmy.mlto
Open Source@lemmy.ml•Mindustry: an extremely high quality (and difficulty) FOSS tower defense gameEnglish
1·2 years agoI’ve never played Factorio and had fun playing the game. I think there is supposed to be a tutorial when you first start the game? And I think the tech tree is a good guide for what to do next.
Faresh@lemmy.mlto
Open Source@lemmy.ml•Mindustry: an extremely high quality (and difficulty) FOSS tower defense gameEnglish
7·2 years agohttps://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.mlto
politics @lemmy.world•'Did Joe Biden Drop Out' Google Searches Spike on Election Night, Suggesting Many Americans Had No Idea He Wasn't RunningEnglish
1·2 years agoSo that’s why I had to vote for Biden as a write-in candidate!
Faresh@lemmy.mlto
World News@lemmy.world•Israel Escalates Attacks on Lebanese First Responders — Potentially a War CrimeEnglish
392·2 years agoPotentially?
Faresh@lemmy.mlto
Programmer Humor@programming.dev•Still relevant, just substitute for win 11English
9·2 years agoThe hover-over text says “Disclaimer: I have not actually tried the beta yet. I hear it’s quite pleasant and hardly Hitler-y at all.”
echoandaliasare 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
cdwas not found, which is also a shell built-in. So, I don’t know.
Faresh@lemmy.mlto
No Stupid Questions@lemmy.world•Is it me or is everyone in hexbear insane?English
3·2 years agolemmy.ml has non-unicode emojis?
I think a prime example of hexbear wholesomeness is their trans megathreads: https://hexbear.net/post/3363552
They even have a community to help each other out: [email protected]
I do see Lemmy.world running into issues in the future
I think lemmy.world is already pretty bad. To get away from their posts and comments I’ve considered joining hexbear, since you people honestly have the best content and most wholesome community and aren’t federated with .world, but I also don’t want to be completely isolated from the rest of the fediverse. However, I just noticed there are only 5 instances in hexbear’s blocked instance list and plenty in the linked list. Maybe I didn’t notice how all other instances started federating with hexbear again?
I don’t know what the “allowed” instance list means though.


Windows also uses linefeeds, they just also add carriage returns.