To quote @`luis_in_brief:
"Chatting with @brainwane and @joshsimmons today on Free as in Friday, 1pm Pacific, over at http://twitch.tv/tidelift. Back episodes with awesome folks like @`kirstie_j @`melissawm @baconandcoconut and others available at https://tidelift.com/subscription/podcast/free-as-in-friday/episode-1 "
The hidden performance overhead of Python C extensions https://pythonspeed.com/articles/python-extension-performance/
WTF ... Mozilla had always running JavaScript inside PDFs disabled by default.
But now with FF 88 this option is ENABLED by default. Which means, if a PDF file contains JS it will run without any user interaction. What can possibly go wrong?
To disable this:
about:config
pdfjs.enableScripting --> false
# FF 78.10 ESR doesn't include this option and still blocks JS in PDFs by default. Just tested.
@maltimore I think the second amendment gives me the right to keep and bear arms...
@brainwane Actually, you can skip that last step because when you tell it to show data labels, then right click on the chart and pick "Format Data Labels", there's an option for "Show Value as Percentages".
Here's what a rough version of this looks like:
@brainwane I don't know if there's a better way, but one way to do it is to calculate the frequencies yourself, so if RESOLVED is column A, you can have a "TRUE" and "FALSE" count like so:
=COUNTIF(A1:A1000,TRUE)
=COUNTIF(A1:A1000,FALSE)
If those are, say, C1 and C2, respectively, then if you want to turn them into percentages, you can add two more rows:
=100 * C1 / (C1 + C2)
=100 * C2 / (C1 + C2)
Then make a pie chart from THOSE two cells.
I have now spent like 20 minutes trying to figure out how to make a particular pie chart in LibreOffice (including web searches, trying a template, etc.) and am giving up; if any of y'all have ever successfully made a pie chart in LibreOffice and wish to help free me of this chartless ignominy, lemme know
@deesapoetra These are turkey vultures: https://en.wikipedia.org/wiki/Turkey_vulture
They are not endangered, they are very common in the northeastern US.
@FailForward @mazieres@mamot.fr @eumiro@fosstodon.org That is for given names. It's not terribly difficult to find lists of given names or lists of surnames, but I'd like more variety. Many people have multiple given names, multiple last names, no last name, no given name, patronymics, etc.
"
@codesections In Python default arguments are evaluated when the function is defined, so something like that would not actually be equivalent to calling it in the body.
@brainwane Time to try and get WMF on board in building some sort of open risk analysis database, as I also suggested here: https://twitter.com/pganssle/status/1380531656344399876?s=20
I feel like it would have to be a major undertaking and I can't think of anyone other than WMF/Wikipedia who has actually managed to scale something while maintaining a sense of collaboration and openness.
@brainwane Yep yep. Wife is getting hers today.
I'm looking forward to 6 weeks from now, when I can safely start licking strangers' faces again.
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.