(no return as last line is returned implicitly, no semicolon)
EDIT: As pointed out in the comments, this is not strictly equivalent, as it will return b if a is false as well as if it’s nil (these are the only two falsy values in Ruby).
Yeah, you’re quite correct, it’s not exactly equivalent, I just went on auto-pilot because it’s used so much for that purpose 🤖
It’s much closer to being a true null-coalescing operator than ‘OR’ operators in other languages though, because there’s only two values that are falsy in Ruby: nil and false. Some other languages treat 0 and “” (and no doubt other things), as falsy. So this is probably the reason Ruby has never added a true null-coalescing operator, there’s just much fewer cases where there’s a difference.
It’s going to drive me mad now I’ve seen it, though 😆 That’s usually the case with language features, though, you don’t know what you’re missing until you see it in some other language!
It seems like it’s being grown in a lot of places now. Many people in this thread have mentioned Oregon (USA), and I know it’s also being grown in Tasmania (Australia).
You would still have the same age, gender, personality, skin color, etc. and you would be able to speak at least one local language and would know basic information of the era and place. Your family, social standing, and such would be randomly picked.
Yeah, antibiotics is a big one. Plus, some of my skills might actually still be useful in the 40s.
But life did suck in a lot of places for a lot of people in the 40s. WW2, the devastation left behind by WW2, and horrible social attitudes. Good luck in ‘the west’ if you’re not a straight white cis man.
Financial assets known as bona vacantia, owned by people who died without a will or known next of kin, are collected by the duchy. Over the last 10 years, it has collected more than £60m in the funds. It has long claimed that, after deducting costs, bona vacantia revenues are donated to charities....
ive just heard of an incident where students redirected their books codes to p**n. can i make sure that doesnt happen? also, im using google to generate them, is there a foss alternative as im scared of tracking. lastly, can i make the qr code redirect to a specific page of a pdf as i want people to be able to scan them and...
ive just heard of an incident where students redirected their books codes to p**n. can i make sure that doesnt happen?
This is kind of confusing, or at least leaves a lot of detail out 😆 Did the domain lapse? Did their short-URL account get hacked? In any case, your QR code will just be encoding a URL. Ultimately, any URL can be redirected by someone out there; so it’s just a matter of trusting that whoever has that access won’t act maliciously, and that malicious actors can’t gain access.
also, im using google to generate them, is there a foss alternative as im scared of tracking.
There absolutely are, just search and you should find plenty. Again, though, the QR code is just encoding a URL. Does Google use their own short-URL service for their generated QR codes? Just scan the QR code and look at the URL it encodes. If it’s only the URL you want - not some Google short-URL that then redirects to the URL you entered - then there can’t be any tracking done on it by Google.
lastly, can i make the qr code redirect to a specific page of a pdf
Other creative toys/products that come to mind would be, say, Play-Doh as a sort of children’s intro to…Clay, I suppose? But in this vein without being exclusively directed towards children (albeit I imagine many may be)....
The type of thing where someone in a general school chat promotes something like the nft collection they are minting and you want to passively aggresivelly respond
Out of curiosity, wat were the biggest changes you implemented?
My changes were basically three stages:
Cut out sugary drinks (both soft drinks and juice)
Keto
Intermittent fasting (this is much easier when you’re already doing keto)
But even just cutting out sugary drinks made a big difference.
Would you do anything differently given hindsight?
I’d do it sooner. I’d also not get so caught up in trying to make keto food that mimics carby food (though maybe it actually is worthwhile doing it in the early days if you have cravings for certain things).
It’s worth noting that the correlation held for total red meat consumption along with considering just processed red meats and unprocessed red meat separately...
Discovered recently that Electric Wizard were kinda dicks back in the day. “At the time, we were pretty bad people. I got arrested for arson of a car, outside a police station. Tim [Bagshaw] went to nick a crucifix off a church roof so we could use it onstage…”...
According to prosecutors, Chail sent “thousands” of sexual messages to the chatbot, which was called Sarai on the Replika platform. Replika is a popular AI companion app that advertised itself as primarily being for erotic roleplay before eventually removing that feature and launching a separate app called Blush for that...
Title is somewhat misleading. It’s not for anything video-related. It’s for using a (probably free) photo of actress Cuca Escribano without permission.
Here is how platforms die: first, they are good to their users; then they abuse their users to make things better for their business customers; finally, they abuse those business customers to claw back all the value for themselves. Then, they die.
I call this enshittification, and it is a seemingly inevitable consequence arising from the combination of the ease of changing how a platform allocates value, combined with the nature of a “two sided market,” where a platform sits between buyers and sellers, holding each hostage to the other, raking off an ever-larger share of the value that passes between them.
From pluralistic.net/2023/01/21/potemkin-ai/#hey-guys
I think that the FOSS Fediverse platforms are significantly resistant to enshittification.
That same article explores what enables enshittification and what precludes it:
The Netheads wanted to build diverse networks with lots of offers, lots of competition, and easy, low-cost switching between competitors (thanks to interoperability).
Fediverse platforms:
are highly interoperable - e.g. you can use Lemmy or Kbin and still see the same posts
mostly FOSS, so anyone can fork them whenever they want if they don’t like some particular change
most instances currently aren’t operated for profit - certainly if your instance started displaying ads you could switch to another instance (or set one up) and still access all the same content as you did previously
Whether someone will somehow find a way to extract profit from this system is remain to be seen.
I think it’s inevitable that someone will find a way to profit, even if it’s just scraping the data for training LLMs, or for something like those shitty sites that just duplicate GitHub issues.
The question of enshittification isn’t whether someone can find a way to profit, it’s whether someone can find a way to change the platform to increase their profit.
How can I link a post such that everybody would open it via their home instance (and therefore could interact with it)? Or is there at least any way how to open specific post (from another instance via my instance) manually?
Not supported yet, last I checked (within the last two weeks). There’s a feature request open on the Github.
I’ve mainly just been navigating to it manually by opening the community, it’s usually a post near the top when I’ve had cause to do it. You can also use the search functionality.
know the features of your language (lemmy.world)
Wasabi, beloved on sushi, linked to "really substantial" boost in memory, Japanese study finds (www.cbsnews.com)
You must pick a point in human history before the 1950s to be spend the rest of your life in. What era and place would you choose?
You would still have the same age, gender, personality, skin color, etc. and you would be able to speak at least one local language and would know basic information of the era and place. Your family, social standing, and such would be randomly picked.
Special detection dog Henry is on the trail of Chinese violet, sniffing out the invasive weed (www.abc.net.au)
Key points:...
In case of fire (lemmy.world)
Revealed: King Charles secretly profiting from the assets of dead citizens (www.theguardian.com)
Financial assets known as bona vacantia, owned by people who died without a will or known next of kin, are collected by the duchy. Over the last 10 years, it has collected more than £60m in the funds. It has long claimed that, after deducting costs, bona vacantia revenues are donated to charities....
if i make static qr codes, no one can redirect them later right?
ive just heard of an incident where students redirected their books codes to p**n. can i make sure that doesnt happen? also, im using google to generate them, is there a foss alternative as im scared of tracking. lastly, can i make the qr code redirect to a specific page of a pdf as i want people to be able to scan them and...
Windows PCs can't sleep properly, and Microsoft wants it that way (www.spacebar.news)
Besides Lego, what other creative toys/products do you dabble with, if ya do?
Other creative toys/products that come to mind would be, say, Play-Doh as a sort of children’s intro to…Clay, I suppose? But in this vein without being exclusively directed towards children (albeit I imagine many may be)....
Who remembers the Armenians and Palestinians?
Najwan Darwish: Who Remembers the Armenians?...
How far can Lemmy support nested comments? Let's find out
Comment on the top level thing and someonw will hopefully comment on yours. Just say like “Test”
I'm loving rule (lemmy.zip)
deleted_by_author
New South Wales Labor looks into whether children should be allowed to be strip searched (www.greenleft.org.au)
Redfern Legal Centre (RLC) released new figures on October 17 revealing how many children have been strip searched by NSW Police....
Neo-Nazis walk free from court, spared further jail time over attack on Victorian hikers (www.abc.net.au)
"Good luck with the future, gentlemen," County Court Judge Kellie Blair said to the pair, as she stepped off the bench at the end of hearing.
Halloween event live now (ends Nov 9) (store.steampowered.com)
What is your favorite passive agressive insult to send in chat?
The type of thing where someone in a general school chat promotes something like the nft collection they are minting and you want to passively aggresivelly respond
Can your feet get ... smaller??
Over the last 4 years i’ve barely worn shoes like 30 days in total. Today I noticed my previously best fitting shoes are like a size too big....
Michigan State University 'deeply sorry' for Hitler image displayed on video boards before football game (www.nbcnews.com)
Biden and Aides Advise Israel to Avoid Widening War With Hezbollah Strike (www.nytimes.com)
Halloween 2023 Preview - Steam News (store.steampowered.com)
Halloween 2023 Preview...
Red meat consumption associated with increased type 2 diabetes risk (www.hsph.harvard.edu)
It’s worth noting that the correlation held for total red meat consumption along with considering just processed red meats and unprocessed red meat separately...
What shitty things have your favourite bands/artists done?
Discovered recently that Electric Wizard were kinda dicks back in the day. “At the time, we were pretty bad people. I got arrested for arson of a car, outside a police station. Tim [Bagshaw] went to nick a crucifix off a church roof so we could use it onstage…”...
Man Jailed In UK’s First Treason Conviction In 40 Years Was Encouraged by Erotic AI Chatbot (www.vice.com)
According to prosecutors, Chail sent “thousands” of sexual messages to the chatbot, which was called Sarai on the Replika platform. Replika is a popular AI companion app that advertised itself as primarily being for erotic roleplay before eventually removing that feature and launching a separate app called Blush for that...
Plex Sued for Copyright Infringement by Press Agency (torrentfreak.com)
Title is somewhat misleading. It’s not for anything video-related. It’s for using a (probably free) photo of actress Cuca Escribano without permission.
LF cheesy oneliners for my Halloween costume
Hi guys, I know this is kind of an odd request, but I need your help....
Saudi Arabia predicts budget deficit as it funnels money into gigaprojects (www.ft.com)
Reddit is removing ability to opt out of ad personalization based on your activity on the platform (techcrunch.com)
deleted_by_author
Does anyone know of a trustworthy and curated list of qanon sites that I can use for my pihole(s)?
So, until recently, I have been using github.com/rimu/no-qanon/blob/master/hosts.txt...
How to link post federation-wide?
How can I link a post such that everybody would open it via their home instance (and therefore could interact with it)? Or is there at least any way how to open specific post (from another instance via my instance) manually?
What's the biggest plot hole in real life?
Since the latest season hasn’t concluded yet, let’s only look at plot holes from 1990 and before.
What's a great but uncommon comedy movie we should watch?
Oktoberfest 2023 - LIVE NOW (store.steampowered.com)
Ends Tue, October 3, 2023 11:00 AM UTC
Below Decks at Ghost Ship: Sausage Troubleshooting - Steam News (store.steampowered.com)