Sjmarf
- 147 Posts
- 51 Comments
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 🤦♂️
We need to add
PR, DC and GuamCanada, Greenland and Gaza as states
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”
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,
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·1 year 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·1 year ago
Oh hey, it’s the Minecraft guy
Does he know the kings of England, does he quote the fights historical?
I don’t think a community for it is an unreasonable idea - at least for now, many AI images are easily identifiable by defects / lack of reasoning in the image. Though there isn’t a good computer program that can do this, I agree.











The database I use at work uses JavaScript for custom functions.