2 years of bugged screenshotting in Mint / Cinnamon

Open source tends to get into these sorts of situations… forums.linuxmint.com/viewtopic.php?t=202909 github.com/linuxmint/Cinnamon/issues/3981 bugs.launchpad.net/linuxmint/+bug/1620318 The workaround is to do this: Command: sh -c ‘sleep 0.1; gnome-screenshot -a’ I think what it does is force the computer to wait 0.1 second, and then activates the usual command. No idea why this works. man pages:

Continue Reading

Regression Modeling Strategies (2nd ed.) – Frank Harrell (review)

www.goodreads.com/book/show/10753824-regression-modeling-strategies I heard some good things about this book, and some of it is good. Surely, the general approach outlined in the introduction is pretty sound. He sets up the following principles: Satisfaction of model assumptions improves precision and increases statistical power. It is more productive to make a model fit step by step (e.g.,…

Continue Reading

Do music genres exist? An outline of an empirical approach

I don’t have time to do this project right now. However, since I gathered a bunch of relevant resources that I don’t want to have to re-find, I will write them down somewhere — here. My blog is my extended memory. Music genres are another fuzzy concept, like races. Lots of genres (and classification systems…

Continue Reading

Renaming functions in R packages using roxygen2

Naming things in programming is hard. I can see 2 reasons for this. 1) It is hard to pick a name you won’t want to change later. With large projects, where things are not designed in detail before beginning to write the code, I often find that the names I gave things initially were not…

Continue Reading

Installing the latest version of R on Ubuntu/Mint

I wrote about this before, but since this is a frequent problem and my last post wasn’t brief, here’s a shorter version. The primary way to install software in Linux is to rely on apt-get (apt in Mint) or some other package manager. The way this works is that there is a central server which…

Continue Reading

SQL server for population frequencies from 1000 genomes

Note: 2018 June 26 Server down right now, investigating. Note: August 16, 2017 server IP changed to 67.207.92.10. Original post We need dplyr for this: library(dplyr) First, use the anon user to log into the SQL server (user = “anon”, pass = “”, ip = “67.207.92.10”, port = 3306): sql = src_mysql(“population_freqs”, host = “67.207.92.10”,…

Continue Reading