New location for Apache PHP config

Under PHP 5, I used to put custom PHP configuration in a file such as /etc/php5/apache2/conf.d/99-foobar.ini and it’d be automatically included by the main php.ini (after most others, thanks to the 99).

Now in PHP 7, it seems to be more normal to add a custom module in /etc/php/7.2/mods-available/foobar.ini and enable it with phpenmod foobar. I guess there’s no priority-setting with this system?

Embed Wikimedia 0.2.0

I’ve released another beta version of Embed Wikimedia, with support for three blocks for the WordPress block-editor (Commons, Wikipedia, and Wikidata). There’s still work to be done on their interfaces, but before tackling that I want to sort out support for captions from Structured Data on Commons. There’s a few other bugs too (and I’m sure I’ll write more before I’m done).

The annoying thing about blocks, I’m finding, is that I still write a fair bit with the Android WordPress editor, and so still do old-fashioned embeds where they’re just a bare URL on its own line. I feel like the blocks get away from that simplicity (although, internally, so far they’re exactly the same functionality).

A Tuesday morning

The internet seems to be full of bad news at the moment, so I’m ignoring it and focussing on some nice little code projects that are calming and friendly and only slightly maniacally frustrating.

SVG Translate tickets are petering out; version 0.10.3 is just out with some login fixes and language updates.

This morning I’m working on adding a ‘messages exist’ notification icon to the PageTriage toolbar.

And I think I’ve cracked the search-debouncing for my Embed Wikimedia plugin, so might be able to move on with the metadata- and appearance-improving stuff that I’ve been trying to do for weeks.

DDD Perth 2019

On Saturday I went to my second DDD Perth conference. This is an annual one-day event that seems to bill itself as being something different from the usual tech conference and to be more accessible to people who might not normally go to these things. Which, I reckon, is pretty great; it feels like a more friendly place (even though I am the sort of person who usually goes to these sorts of things). There is something of a corporate vibe, though, which sort of mars the ‘community’ aspect — although that’s where the low price of the tickets comes from, so I shouldn’t complain!

The welcome to country was done by Nick Abraham, who gave an interesting talk. I liked the lists that he rattled off the names of families he’s part of and places they’re from.

All of the presentations that I went to were interesting, but the two that have stuck with me were about CSS Grid (Amy Kapernick), and WebAuthn (Ben Lowry). I want to experiment with both in my personal projects. Don’t suppose I’ll do so, though. (Too many fun things to explore; not enough time.)

I’m very glad that the Perth developer community is able to support this sort of event these days.

MediaLoader extension

There’s a new MediaWiki extension that’s just been published: MediaLoader. It looks like it’s supposed to load media items such as images, videos, etc. on demand. I haven’t been able to get it to actually work (there’s some strange Composer loading stuff going on in its code) but I think it works by displaying a click-able bit of text such as ‘Load example.jpg’ (not actually a link) that, when clicked, turns into the image or whatever. All it’s doing for me right now is turning into the raw wikitext, but maybe there’s something I’m missing.

I guess the idea is to not download/display the image if its not wanted by the user?

Anyway, it’s new, and it’s always nice to see a new extension being made. Huzza!

Building WordPress assets

Today I was just finally getting around to (maybe) updating my WordPress theme, and couldn’t for the life of me remember what the deal was with the new Node-based build system. So I went looking, only to find this posted on the Core blog today:

In May 2018 we’ve introduced a build step to WordPress core development as preparation to WordPress 5.0. While these changes never ended up in 5.0, the idea was to reorganize the way the JavaScript in WordPress is managed and structured so that it would be easier to include Gutenberg.

Since then, it was no longer possible to run WordPress from the src folder. This gave some issues, especially with developing WordPress core PHP. Today, @atimmer committed a patch which allows developers to build into src again.

So I do still have to build the assets, but it seems that PHP development can once again happen from the normal directory.

Maybe it’s a good thing that I’ve neglected WP development this last year or so?

Checksums for Flickr photos

I’ve been working a bit on PhpFlickr CLI lately, which is my little tool for interacting with Flickr. So far, it only adds checksums to photos (as machine tags), as a precursor to making a duplicate-finder for Flickr. I also want to use the checksums for adding links to and from Wikimedia Commons (so that photos I’ve uploaded there are linked to their versions on Flickr, and on Flickr they’re linked to Commons).