Sam's notebook

MediaWiki with two database servers April 18th, 2018, 5PM

Programming

I’ve been trying to replicate locally a bug with MediaWiki’s GlobalPreferences extension. The bug is about the increased number of database reads that happen when the extension is loaded, and the increase happens not on the database table that stores the global preferences (as might be expected) but rather on the ‘local’ tables. However, locally […]

[No comments] [Keywords: , , , , , , ] [Permanent link]

New MediaWiki extension: AutoCategoriseUploads April 6th, 2018, 7AM

Open content Programming

New MediaWiki extension: AutoCategoriseUploads. It “automatically adds categories to new file uploads based on keyword metadata found in the file. The following metadata types are supported: XMP (many file types, including JPG, PNG, PDF, etc.); ITCP (JPG); ID3 (MP3)”. Unfortunately there’s no code yet in the repository, so there’s nothing to test. Sounds interesting though.

[No comments] [Keywords: , , , ] [Permanent link]

Why do socialists only drink herbal tea? February 25th, 2018, 8AM

Programming

Because they’re sick of non-semantic CSS class names, and of not having sensible default formatting for the main, header, article, section, aside, footer, and nav tags. No, it’s actually because property is theft! A few years ago I came across Marx CSS reset, which is a simple and small (7.92 KB) stylesheet that provides decent […]

[No comments] [Keywords: , , , , ] [Permanent link]

Updating Flickr2Piwigo February 18th, 2018, 8AM

Programming

I’ve decided to try to bring the Flickr2Piwigo plugin up to date in order to support OAuth (Flickr’s old system of authentication was turned off in the middle of last year). I’ve been tinkering with getting the PhpFlickr library working properly lately (which is what Flickr2Piwigo uses to talk to Flickr), and although there’s lots […]

[No comments] [Keywords: , , , , , ] [Permanent link]

Tabulate updated to not require REST API plugin November 25th, 2017, 9AM

Programming

I’ve removed Tabulate’s dependency on the REST API plugin, because that’s now been moved in to core WordPress. (Actually, that happened rather a while ago, but I’m slack and haven’t been paying enough attention to Tabulate this year; other things going on!) I hope to get back to adding file-field support to Tabulate sometime soon. […]

[No comments] [Keywords: , , , , , ] [Permanent link]

WikiCite 2017 May 23rd, 2017, 1PM

Open content Programming

(Firefox asked me to rate it this morning, with a little picture of a broken heart and five stars to select from. I gave it five (’cause it’s brilliant) and then it sent me to a survey on mozilla.com titled “Heavy User V2”, which sounds like the name of an confused interplanetary supply ship.) Today […]

[No comments] [Keywords: , , , , , , , ] [Permanent link]