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
spoiler
Hello world
- 33 Posts
- 12 Comments
Sjmarf@sh.itjust.worksto Selfhosted@lemmy.world•Can you login to the mobile apps with selfhosted Lemmy?English2·4 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”
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·8 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·8 months agoOh hey, it’s the Minecraft guy
Swift’s extensions system has spoiled me, and I feel the pain of this whenever I have to write Java
Yeah, you would’ve thought it would work that way. Regrettably, the standard timezone code of
Etc/GMT+4
is actually GMT-4. Wikipedia