zero_gravitas

@[email protected]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

zero_gravitas, (edited )

Ruby:

a || b

(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).

zero_gravitas,

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!

zero_gravitas,

There’s a nice list of this feature by language on the Wikipedia page for anyone interested: en.wikipedia.org/wiki/Null_coalescing_operator#Ex…

zero_gravitas,

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 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.

zero_gravitas,

You could probably memorise how to identify the right fungus and isolate penicillin, right?

zero_gravitas, (edited )

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.

zero_gravitas,

Where, the U.S.? Seems like there’s gotta be other times and places that were more woman- and queer-friendly, right?

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...

zero_gravitas,
zero_gravitas,

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

Covered by another commenter already, but for completeness: yes, you just add #page={n) at the end of the URL, e.g. dagrs.berkeley.edu/sites/default/…/sample.pdf#pag…

zero_gravitas,

Ain’t nothin’ but a heartache

zero_gravitas,

Two spaces at the end of a line ought to do it.

Like
so.

zero_gravitas,

Hmm, looks good to me on the default web interface 🤷 You using an app? https://aussie.zone/pictrs/image/229a1e86-62c5-47bb-941c-d69153a1a918.png

zero_gravitas, (edited )

It’s open source, so you could just go find that answer in the code, right?

Also, now I think of it, couldn’t you just do this with one account?

I don’t mean to ruin the fun or anything 😆

zero_gravitas,

Test

(figured I may as well, while I’m here, haha)

zero_gravitas,

Btw, you can edit the text of your post to say ‘current bottom-level’ (instead of ‘top level’) which is what you mean.

zero_gravitas,

I already did a ‘Test’ in reply to your ‘Test’.

EDIT: Oh, I see I was beaten to it and hadn’t refreshed. In any case, I’m just replying to your post with my comment above, not doing the test.

zero_gravitas,

Not AI, but there’s a crowd-sourced extension for skipping sponsored sections called ‘SponsorBlock’: sponsor.ajay.app

zero_gravitas,

The NSW Police commissioner has backed his officers’ use of strip searches, saying there should be “a little bit of fear” of law enforcement.

Source: www.sbs.com.au/news/article/…/xh4yhd2qg

zero_gravitas, (edited )

As Hyperreality says, the article is a source.

But if you would like more sources, you should check out Wikipedia: https://en.wikipedia.org/wiki/

EDIT: You can also have a scroll through these image search results: https://duckduckgo.com/?q=

zero_gravitas,

“Cool! What are they for?”

zero_gravitas,

You can definitely lose weight off your feet, same thing happened to me.

zero_gravitas,

Out of curiosity, wat were the biggest changes you implemented?

My changes were basically three stages:

  1. Cut out sugary drinks (both soft drinks and juice)
  2. Keto
  3. 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).

zero_gravitas,

I’m guessing the Duckett Brothers would be less than thrilled about this.

zero_gravitas,

You can usually remove the paywalls using archive.is .

Here’s the archive link for this article: archive.is/ol745

zero_gravitas,

You can just put the entire URL after the archive.is/, e.g. archive.is/…/biden-israel-hezbollah-war.html

Or you can just go to archive.is and paste the URL into the search box or the save box and hit the button.

zero_gravitas,

Per-capita beef consumption has fallen by ~40% since 1976 (source) and rates of diabetes have nearly tripled since then (source).

So it doesn’t seem like telling people ‘eat less red meat’ moves the needle on diabetes rates.

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...

zero_gravitas,

They ingested it, but only as a joke.

zero_gravitas,

Go as the Blue Screen of Death: en.m.wikipedia.org/wiki/Blue_screen_of_death

Now that’s spooky! 🟦😱

Wear all blue clothes, and get a copy of the screen printed (not on your home printer) to wear on your chest.

zero_gravitas,

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/-guys

zero_gravitas,

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
zero_gravitas,

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.

zero_gravitas,

FYI, from the rules:

  • The entire showerthought must be in the title
zero_gravitas,

if this is to protect kids on your network

Sadly, I suspect this is to protect adults on the network…

zero_gravitas,

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.

zero_gravitas,

Just to emphasise:

from 1990 and before

zero_gravitas,

tucker and dale vs evil

I came looking for this in the comments. So unexpectedly good!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines