Show more

I've completed my term as department chair with more colleagues and more hair than I started with.

Another gotcha:

1:2 produces integers, but c(1, 2) produces doubles. They're not equal, but they're printed the same.


Integer division in C/C++ and rounds toward 0, but in and it rounds toward negative infinity, giving different results if an operand is negative. This also affects the % ("modulo" or "remainder") operator.

A properly worn respirator is the most effective way to prevent infection and spread of COVID-19 disease.

An N95 filtering facepiece respirator is at least 95% efficient at filtering out the tiny particles that carry the virus.

The respirator should be NIOSH-approved and have straps that go all the way around your head. (Or the similar European standard FFP2)

Never ever wear a mask with earloops – they are not reliable.

The respirator should fit tightly to the face and not allow any air to flow around the mask.

You should probably also get vaccinated. The vaccine is about 44-50% effective at preventing infection at its peak effectiveness and it helps to prevent hospitalization and death, however, vaccinated people who become infected can still spread the virus.

An elastomeric respirator is even more effective.

(Image: Mediawiki Commons, Martin von Creytz, cc-by-sa-2.0, modified with PD image)

One of the ingredients in "Edge Shave Gel Ultra Sensitive, Fragrance Free" is "fragrance".

Please boost for reach. So, anyone that is working on FOSS projects like web apps, sites, Linux apps, desktop environments, or other user interfaces, please let me know if you want them tested for accessibility. I can do both CLI, web, and GUI testing, and app testing on Android. I'm running Debian (on a ChromeBook but that's not too important), so just give me the name of the package, or the URL of the site or app. I can also do Flatpak!

#a11y #foss #linux #flatpak #accessibility

Uspol, religion, humor 

Having spent decades ruining the word "Christian", the GOP has now besmirched the name "Dobbs".

Here's a puzzle for you: from within the language, how do you list the sizes of the built-in datasets in or ?
I'm new enough to R that I wasn't able to figure that one out.

Raw Python doesn't have built-in datasets, but sklearn does. (There are more in Seaborn and it's possible to load the R sets from Python.) Here's my first shot; the multiple special cases smell bad to me:

from sklearn import datasetsloaders = [f for f in dir(datasets) if f.startswith('load') and f != 'load_boston' and f != 'load_files' and not f.startswith('load_sample_image') and not f.startswith('load_svmlight_file')][(f[5:], len(eval('datasets.' + f + '().data'))) for f in loaders]


[('breast_cancer', 569), ('diabetes', 442), ('digits', 1797), ('iris', 150), ('linnerud', 20), ('wine', 178)]

My second pass is easier to read, but it squelches errors (gasp!) and still shows you the warning about the deprecated boston dataset:

from sklearn import datasets
names = []
sizes = []
for f in dir(datasets):
sizes.append(eval('len(datasets.' + f + '().data)'))
print(list(zip(names, sizes)))

This is something of a weird reflective programming task in both languages, so neither can be blamed for inelegance.


Lewis & Clark College in Portland, Oregon is hiring a tenure-track faculty member in the mathematical sciences.

Please boost.

Here's something weird: in the wake of Roe v Wade in the 1970s, the Southern Baptist Convention repeatedly passed resolutions affirming the right to abortion and rejecting government interference in the decision to bear a child to term:

Back then, white evangelicals were deeply suspicious of people who opposed abortion. Getting too worked up about the issue was a sign of crypto-papacy, and back then, white evangelicals *hated* Catholics:


Session 3 of my space campaign.

Our heroes fought off a tentacled abomination from the deep and rescued a neurally-enslaved platoon of battlesuited mermaids. Back on the surface of the ice planet, the mermechs attempted to hide by burrowing angel-style into the snow, but they were spotted by the rescue helicopter. This footage fell into the hands of a powerful member of the Charybdis crime family, who sounds exactly like Werner Herzog and made our disgraced scientist an offer he couldn't refuse. After a long night of adventuring, the party has five minutes to get to the starting line for the next leg of the rally race.

Some lines:

"Did the octopus just ingest a whole shipping container of xanax?"

"We could always bankrob at the end of the race."

"Killing people is just, like, rescheduling their deaths."

Show more

Peter Drake, he/him, LFHCfS 🔥's choices:

Qoto Mastodon

QOTO: Question Others to Teach Ourselves. A STEM-oriented instance.

An inclusive free speech instance.
All cultures and opinions welcome.
Explicit hate speech and harassment strictly forbidden.
We federate with all servers: we don't block any servers.