ImageMagick’s convert command handles image-to-PDF just fine, but by default can spit out a very small image–almost as though it’s “zoomed in.” To get around that, set the density flag when invoking it: convert -density 100% foo.jpg foo.pdf. You may have to play with it a little to get a …

Running Moodle CI tests in GitLab

I maintain about a dozen plugins in the Moodle plugins repository. I use Moodlerooms’ moodle-plugin-ci project to test all of them on …

Measuring activity in Moodle

It’s a simple question with a complex answer: in a given academic term, what percentage of our Moodle courses are “active” (used …

Pick a date, any date

Moodle 3.2 introduced the concept of end dates for courses. Moodle 3.3 added a new Course Overview block which uses end dates …

WordPress and partial content

Eighteen months ago we had an anomalous problem where video playback didn’t work on some, but not all, of our WordPress multisites. …

Rolling rocks downhill

I’ve written about how we used Composer to overlay a dependency management system on our existing WordPress ecosystem. The final step was …

Overlaying dependency management

I’ve described how Lafayette’s deployment strategy involved pushing rocks uphill. A key change in our thinking came when we started treating each …

Don’t push rocks uphill

For three years Lafayette’s official WordPress deployment strategy was to push rocks uphill. This was a doubtful plan, but it represented an improvement …