Monday, October 9, 2018
Hello babies…
“Hello babies. Welcome to Earth. It’s hot in the summer and cold in the winter. It’s round and wet and crowded. On the outside, babies, you’ve got a hundred years here. There’s only one rule that I know of, babies-“God damn it, you’ve got to be kind.”
Conservative statistics
I almost never agree with Bret Stephens, but this piece in the Times in one of his more Trumpian abuses of statistics. He argues that we should take false accusations of sexual misconduct seriously because "…false allegations of rape, while relatively rare, are at least five times as common as false accusations of other types of crime, according to academic literature." In the context of false accusation of rape, who cares about the rate of false allegation of arson, for example? The relevant statistic here is the difference between the true allegation of rape and the false allegation of rape. And given that rape and attempted rape is known to be under-reported^[Source U.S. Department of Justice data], an estimate of total true allegations has to be made. His statistical sleight of hand is sadly typical of conservatives.
Scripting thumbnail image file creation on macOS
_q suffix for the less than 500px image.] is used to signify classes of image size. I wrote the following script to automate the process of scanning a source folder and creating four thumbnail sizes to an output directory.
Sunday, October 7, 2018
- Republicans reprising their classic role of sore winners.
Friday, October 5, 2018
Thursday, October 4, 2018
Searching the Russian National Corpus
Monday, September 17, 2018
Sunday, September 16, 2018
Regex 101 is a great online regex tester.
Speaking of regular expressions, for the past year, I’ve used an automated process for building Anki flash cards. One of the steps in the process is to download Russian word pronunciations from Wiktionary. When Wiktionary began publishing transcoded mp3 files rather than just ogg files, they broke the URL scheme that I relied on to download content. The new regex for this scheme is: (?:src=.*:)?src=\"(\/\/.*\.mp3)