Sam's notebook

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 more to do to it I’ve at least got the OAuth parts working (thanks to the lusitanian/oauth package). So now I’m going to add this to the Flickr2Piwigo.

There’s no support for Composer in Piwigo, so I’m not really sure how this is going to work. Probably some custom distribution-generation process; I’ll worry about that later. Hopefully we’ll not resort to committing vendor/.

Once this is working, I’ll go back to PhpFlickr and write some better documentation (probably Read The Docs) and fix up the caching system (it’s a bespoke oddity at the moment, that I think should be replaced with simple PSR-6 support).

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

Open Source hacking afternoon January 14th, 2018, 5PM

Programming

I went along today to my first open source hack afternoon,
a regular language/platform agnostic hack group that’s now meeting at the Artifactory.

It was a hot day today, with dark orange skies from the fires up near Mundaring,
and when I got to the Artifactory there was a bit of a delay in getting inside
and so we sheltered in half a metre of shade against a hot wall for a little while.

We had a pretty good room with an portable air conditioner that made it just about a bearable temperature (and provided white noise, in case that’s useful).
Stephen brought a projector, so we could share things more easily.

I’m looking forward to next month—and maybe more people will come! Maybe it’ll be nicer weather.

https://perthhackers.github.io/

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

Monday MediaWiki December 4th, 2017, 6AM

Miscellaneous

Monday morning, hot and humid, and the rain’s been falling all night (nearly 5 mm!). It’s one of those lovely days when you can look out to the ocean and stand on the limestone and feel this place.

I’m reading through the position statements that have been accepted for the Wikimedia Developer Summit in January. It’s great to read other people’s ideas in this form. I think there’s not really enough of that, in MediaWiki development: it’s hard to get an idea of other people’s ‘big picture’ thoughts of what the future should hold.

[No comments] [Permanent link]

PhpFlickr 4.1.0 November 27th, 2017, 7PM

Programming

I’ve just tagged version 4.1.0 of my new fork of the PhpFlickr package. It introduces oauth support, and hopefully improves the documentation of the user authentication process. This release deprecates some old behaviour, but I hope it doesn’t break any. Bug reports are welcome!

There are some parts that are still not converted to the new request flow, but I’ll get to them next.

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

CFB Folder 1 done November 26th, 2017, 9AM

Open content

The first folder of the C.F. Barker Archives’ material is done: finished scanning and initial entry into ArchivesWiki. This is my attempt to use MediaWiki as a digital archive platform for physical records (and digitally-created ones, although they don’t feature as much in the physical folders). It’s reasonably satisfactory so far, although there’s lots that’s a bit frustrating. I’m attempting to document what I’m doing (in a Wikibook), and there’s more to figure out.

There are a few key parts to it; two stand out as a bit weird. Firstly, the structure of access control is that completely separate wikis are created for each group of access required. This can make it tricky linking things together, but makes for much clearer separation of privacy, and almost removes the possibility of things being inadvertently made public when they shouldn’t be. The second is that the File namespace is not used at all for file descriptions. Files are considered more like ‘attachments’ and their metadata is contained on main-namespace pages, where the files are displayed. This means that files are not considered to be archival items (except of course when they are; i.e. digitally-created ones!), but just representations of them, and for example multiple file types or differently cropped photos can all appear on a single item’s record. The basic idea is to have a single page that encapsulates the entire item (it doesn’t matter if the item is just a single photograph, and the system also works when the ‘item’ is an aggregate item of, for example, a whole box of photos being accessioned into ArchivesWiki).

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