Sjmarf
spoiler
Hello world
- 81 Posts
- 23 Comments
Yeah, you would’ve thought it would work that way. Regrettably, the standard timezone code of
Etc/GMT+4
is 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 Lemmy@lemmy.ml•I read somewhere that lemmy is planning to edit links so that they point to your instance, how will this be handled?English11·3 months agoYou can read up on the conversation on the GitHub issue here.
TL;DR: the current system on the (unreleased) 1.0 codebase is that your Lemmy instance will replace all Lemmy URLs in posts/comments with the equivalent URLs on your own instance. In the issue I linked, some concerns are raised about this system and various other options are discussed. It’s possible that the way it works will change before Lemmy 1.0 is released.
Sjmarf@sh.itjust.worksto Lemmy@lemmy.ml•Is there a way on Lemmy to hide/filter posts with chosen keywords?English7·3 months agoLemmy doesn’t support this natively, but many clients do. Off the top of my head:
- Tesseract (desktop)
- Voyager (web frontend designed for mobile. I believe you need to install the app rather than using the website to use keyword filters)
- Mlem (iOS)
- Arctic (iOS)
- Thunder (Android & iOS)
- Sync (Android; I’ve heard Sync is unmaintained though)
Assuming you’re on desktop, Tesseract is probably your best bet. It might also be possible to get Voyager working. Some instances (like sh.itjust.works) run their own Tesseract instances (https://tesh.itjust.works/), but lemm.ee doesn’t. You’d have to use some other Tesseract instance, specifically one that allows connecting to any Lemmy instance (https://tesh.itjust.works/ is for sh.itjust.works accounts only). E.g. https://tesseract.dubvee.org/
Sjmarf@sh.itjust.worksto politics @lemmy.world•Russia and the US Begin to Divvy up Ukraine at Riyadh Confab24·4 months agoMunich Agreement vibes. History really does repeat itself, huh
Sjmarf@sh.itjust.worksto Selfhosted@lemmy.world•Can you login to the mobile apps with selfhosted Lemmy?English2·5 months agoMobile apps should allow you to log into any instance. My Lemmy client won’t connect to lemmy.rip either, and fails with the following error:
The certificate for this server is invalid. You might be connecting to a server that is pretending to be “lemmy.rip”, which could put your confidential information at risk.
This is also what I see when I try to connect to
lemmy.rip
in the browser:I am able to bypass this warning and see the site in the browser.
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”
Sjmarf@sh.itjust.worksto Lemmy@lemmy.ml•Should sort by "controversial" and "most comments" include a time range?English12·6 months agoHere’s the relevant issue on the GitHub repo: https://github.com/LemmyNet/lemmy/issues/4340
Or do think there’s something special about the person that makes them flip tails more often?
Yes, that’s the conclusion that the scientist has come to. The chance of getting 20 in a row is so extraordinarily unlikely that it’s reasonable to conclude that the chance is not 50/50 for that particular surgeon.
The normal person thinks that because the last 20 people survived, the next patient is very likely to die.
The mathematician considers that the probability of success for each surgery is independent, so in the mathematician’s eyes the next patient has a 50% chance of survival.
The scientist thinks that the statistic is probably gathered across a large number of different hospitals. They see that this particular surgeon has an unusually high success rate, so they conclude that their own surgery has a >50% chance of success.
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,
not
is 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 relaxing5·9 months 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 relaxing20·9 months agoOh hey, it’s the Minecraft guy
Let’s not forget Hitachi
Python does have a
switch
statement 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