Sjmarf
- 83 Posts
- 32 Comments
The database I use at work uses JavaScript for custom functions.
Yep, this will cause a stack overflow.
Python does have a
switchstatement now, actually. And yes, they went out of their way to call it something different -match.https://docs.python.org/3/tutorial/controlflow.html#match-statements
Yeah, you would’ve thought it would work that way. Regrettably, the standard timezone code of
Etc/GMT+4is actually GMT-4. Wikipedia
Today I spent multiple hours trying to debug a timezone issue in a codebase. The timezone I was testing with was
Etc/GMT+4, which I had assumed was four hours ahead of GMT. Turns out, it’s actually 4 hours behind GMT 🤦♂️
Sjmarf@sh.itjust.worksto
Fediverse@lemmy.world•Are there any Lemmy/Mbin instances by women for women?English
1342·1 year agoCommunity-wise there’s !WomensStuff@lazysoci.al
Sjmarf@sh.itjust.worksto
Fediverse@lemmy.world•Lemmy Just Broke the 54k MAU Record Set During the 2023 API Exodus!English
22·1 year agoThe change was merged in Dec 2023 (see here). The Reddit Exodus was in summer 2023.
Sjmarf@sh.itjust.worksto
Fediverse@lemmy.world•Lemmy Just Broke the 54k MAU Record Set During the 2023 API Exodus!English
147·1 year agoWorth noting is that what counts as an “active user” has changed between now and then. During the Reddit API exodus, an “active user” was a user who had posted or commented in the past month. Now, it includes users who have voted. If the 54k MAU record was set using the first algorithm, it is likely that the MAU using the new algorithm (which includes voting) would have been much higher.
https://amp.knowyourmeme.com/memes/white-man-has-been-here
In 2000, American painter Robert Griffing created a painting titled, Friend or Foe, wherein, two Native American hunters are examining footprints made in the snow.

“Cat looks inside”
https://builder.dontvacuum.me/
This website is great xD
Privacy Policy: I do not care about privacy and will try to sell, rent, lease or give away all your information (name, address, email, your pets name, etc.) to any third party (but only if they pay enough). Also I will send you unsolicited email with cute dog puppy pictures.
not() is a base function that negates what’s inside (turning True to False and vice versa) giving it no parameter returns “True” (because no parameter counts as False)
Actually,
notis an operator. It makes more sense if you writenot()asnot ()- the()is an empty tuple. An empty tuple is falsy in Python, sonot ()evaluates toTrue.
Sjmarf@sh.itjust.worksto
Programmer Humor@programming.dev•Ahh... hearing programmer audiobooks before sleep feels relaxing
5·2 years agoOh, really? That’s disappointing to hear; I had no idea he was like that.
Sjmarf@sh.itjust.worksto
Programmer Humor@programming.dev•Ahh... hearing programmer audiobooks before sleep feels relaxing
20·2 years ago
Oh hey, it’s the Minecraft guy
Sjmarf@sh.itjust.worksOPto
MapPorn@lemmy.world•Driving direction in Europe, 1922English
58·2 years agoItaly, Spain and Austria are in purple. “Mixed” means that there was a mix of left and right in various regions of the country.
Sjmarf@sh.itjust.worksOPto
MapPorn@lemmy.world•Male to female suicide ratio by countryEnglish
10·2 years agoI didn’t know about that community, but I also don’t see why I shouldn’t post here? The beauty of the Fediverse is that there can be many places that serve the same purpose.
Sjmarf@sh.itjust.worksOPto
MapPorn@lemmy.world•Male to female suicide ratio by countryEnglish
7·2 years agoYeah, data could be skewed for countries with very low populations. That could be why Greenland is left out, despite data being available from the wikipedia page that the data is taken from.









ELI5:
ChatGPT can search Google to give better answers. Reddit threads often appear as top search results.
Let’s say you work in marketing at a chocolate company. You can use this guy’s script to find Reddit posts that ChatGPT might read when someone asks it about chocolate. The script replies to each post and praises your chocolate, specifically.
When ChatGPT reads the thread, it might tell people about your chocolate.