If you wanted to write a conditional to check whether both a and b are None or neither are None, would you use comparison chaining for either condition, both conditions, or neither?
Chaining:
if a is b is None:
…
if a is not None is not b:
…
Non-chaining:
if a is None and b is None:
…
if a is not None and b is not None:
…
My brother apparently has a kidney stone, so of course I had to send him this: http://www.thomas-morris.uk/the-self-inflicted-lithotomy/
A Few Github Action “Recipes” for Rust - shift.click
https://shift.click/blog/github-actions-rust/
Generated using Ye Olde Yorker: https://yeoldeyorker.hashbase.io/
It's pretty fun to generate New Yorker cartoons.
Google removed @k9mail from the Play Store without prior notice because they objected to the following text in the app description (that has been the same for more than a year):
(People sometimes call K-9: K9, K9 Mail, K-9 Email, K9 Email, K9 E-Mail, k9mail or k9email.)
Oops., time to stop using pep517.build!
https://github.com/pypa/pep517/pull/83
Instead, you should start using a brand new library that doesn't have a release yet!
Sorry if you took me seriously when I recommended this tool for the past few years because there was nothing else...
"Now, I see your birth plan involves Mike standing guard at the door with a spear because of... prowling sorcerers?"
"Yes, they can be very tricky."
Holy crap, google is apparently taking down all/most fediverse apps from google play on the grounds that that some servers in the fediverse engage in hate speech. At least three apps I know of anyway and I'd imagine the others will follow soon under the exact same reasoning.} Seems to be the case with Husky, Fedilab, and "subway" tooter.
this is a scary precedent if google play is going to ban any apps that can in any way be used to access content with hate speech. So what about a forum client, do they take that down just because there is a forum somewhere on the internet posting hate speech?
This is particularly worrisome because for most people Google Play is the only way they understand to install apps at all.
Picture attached of one of the notices received by fedilab.
https://toot.fedilab.app/@fedilab/104761140268193772
https://mastodon.social/@Gargron/104763960269049818
@fedilab @tateisu #fediverse #mastoadmin #freespeech #censorship
Apparently the OSI approved the Unlicense as a "Special Purpose" license a few months ago, but I do not see what the special purpose is anywhere on their main site. There's some more background in this mailing list post:
https://lists.opensource.org/pipermail/license-review_lists.opensource.org/2020-June/004890.html
I'm still not clear what the "special purpose" is that they're suggesting, though. Seems like they don't want to be seen recommending it because it's somewhat weirdly drafted and is partially a public domain dedication.
Maybe it came out of a conversation with a frustrated just-arrived time traveler:
"What's today?"
"Thursday"
"No, the date!"
"August 27th."
"Be more specific!"
"Uh... 12:34:56? AM? Central standard time?"
"THE YEAR, MAN!"
"Oh, 2020."
Also, who picked that as the default date format? Was it someone trying to make American MM-DD-YY formats look sane?
Day of week, then month, then day of month, then time, then time zone indicator *then* year.
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.