Category: Tech

Wikidata maxlag, via the ApiMaxLagInfo hook

Wikidata tinkers with the concept of maxlag that has existed in MediaWiki for some years in order to slow automated editing at times of lag in various systems. Here you will find a little introduction to MediaWiki maxlag, and the ways that Wikidata hooks into the value, altering it for its needs. As you can…

By addshore March 4, 2022 0

Altering a Gerrit change (git-review workflow)

I don’t use git-review for Gerrit interactions. This is primarily because back in 2012/2013 I couldn’t get git-review installed, and someone presented me with an alternative that worked. Years later I realized that this was actually the documented way of pushing changes to Gerrit. As a little introduction to what this workflow looks, and a…

By addshore February 25, 2022 1

Altering a Gerrit change (git workflow)

I don’t use git-review for Gerrit interactions. This is primarily because back in 2012/2013 I couldn’t get git-review installed, and someone presented me with an alternative that worked. Years later I realized that this was actually the documented way of pushing changes to Gerrit. As a little introduction to what this workflow looks, and a…

By addshore February 25, 2022 1

Small commits

There are many blog posts and articles out there about making small git commits. I’m sure most people (including me) bring up the same few topics around why small commits are good and why we should all probably be making smaller commits. In this post, I’ll look at some of the key topics from my…

By addshore February 24, 2022 0

cobra: unable to redefine ‘h’ shorthand

“Cobra is both a library for creating powerful modern CLI applications as well as a program to generate applications and command files” I’m currently using Cobra in the MediaWiki CLI project and recently came across an error while trying to auto-generate docs. I’m not actually trying to redefine this flag, but it looks like by…

By addshore January 15, 2022 0

Wikidata ontological tree of Trains

While looking working on my recent WikiCrowd project I ended up looking at the ontological tree of both Wikidata entities and Wikimedia Commons categories. In this post, I’ll look at some of the ontology mappings that happen between projects, some of the SPARQL that can help you use this ontology in tools, and also some…

By addshore January 7, 2022 0

A first look at WikiCrowd

I have quite enjoyed the odd contribution to an app by Google called Crowdsource. You can find it either on the web, or also as an app. Crowdsource allows people to throw data at Google in controlled ways to add to the massive pile of data that Google uses to improve its services and at…

By addshore January 6, 2022 5

Pushing patches to sr.ht git repos

I recently wrote a blog post using the taavi/laravel-socialite-mediawiki PHP library which is hosted on sr.ht. sr.ht, or sourcehut is “is a collection of tools useful for software development”, including git repository hosting. I had to make a change to the library, and this was my first time contributing to a sr.ht repository. The workflow…

By addshore January 6, 2022 0