This aged relatively well.
I've completed my term as department chair with more colleagues and more hair than I started with.
Another #rstats gotcha:
1:2 produces integers, but c(1, 2) produces doubles. They're not equal, but they're printed the same.
"We need to go deeper"
submitted by gsoto
https://reddit.com/r/ProgrammerHumor/comments/vm3ksz/we_need_to_go_deeper/
Integer division in C/C++ and #Java rounds toward 0, but in #Python and #Rstats it rounds toward negative infinity, giving different results if an operand is negative. This also affects the % ("modulo" or "remainder") operator.
http://python-history.blogspot.com/2010/08/why-pythons-integer-division-floors.html
#covid19 #mask #respirator #vax #vaccine #masks #respirators #covid #pandemic #prep
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!
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 #Rstats or #Python?
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]
Output:
[('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):
try:
sizes.append(eval('len(datasets.' + f + '().data)'))
names.append(f[5:])
except:
pass
print(list(zip(names, sizes)))
This is something of a weird reflective programming task in both languages, so neither can be blamed for inelegance.
"My Cosmic Ray Detector function, just 7 lines."
submitted by TripplerX
https://reddit.com/r/ProgrammerHumor/comments/vj656b/my_cosmic_ray_detector_function_just_7_lines/
Lewis & Clark College in Portland, Oregon is hiring a tenure-track faculty member in the mathematical sciences.
https://apply.interfolio.com/108483
Please boost.
Need to get your mind off things with some absolutely brilliant physical comedy? The Goes Wrong Show has you covered.
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:
https://text.npr.org/734303135
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:
https://doctorow.medium.com/schizmogenesis-755bbb6a8515
1/
Session 3 of my #FateCore 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."
CS professor, game designer, and fire dancer ordinaire.