Addshore

It's a blog

Tag: Hackathon

Wikimedia Commons Android App Pre-Hackathon

Wikimedia Commons Logo

The Wikimedia Commons Android App allows users to upload photos to Commons directly from their phone.

The website for the app details some of the features and the code can be found on GitHub.

A hackathon was organized in Prague to work on the app in the run up to the yearly Wikimedia Hackathon which is in Vienna this year.

A group of 7 developers worked on the app over a few days and as well as meeting each other and learning from each other they also managed to work on various improvements which I have summarised below.

2 factor authentication (nearly)

Work has been done towards allowing 2fa logins to the app.

Lots of the login & authentication code has been refactored and the app now uses the clientlogin API module provided by Mediawiki instead of the older login module.

When building to debug the 2fa input box will appear if you have 2fa login enabled, however the current production build will not show this box and simply display a message saying that 2fa is not currently supported. This is due to a small amount of session handling work that the app still needs.

Better menu & Logout

As development on the app was fairly non existent between mid 2013 and 2016 the UI generally fell behind. This is visible in forms, buttons as well as app layout.

One significant push was made to drop the old style ‘burger’ menu from the top right of the app and replace it with a new slide out menu draw including a feature image and icons for menu items.

Uploaded images display limit

Some users have run into issues with the number of upload contributions that the app loads by default in the contributions activity. The default has always been 500 and this can cause memory exhaustion / OOM and a crash on some memory limited phones.

In an attempt to fix and generally speed up the app a recent upload limit has been added to the settings which will limit the number images and image details that are displayed, however the app will still fetch and store more than this on the device.

Nearby places enhancements

The nearby places enhancements probably account for the largest portion of development time at the pre hackathon. The app has always had a list of nearby places that don’t have images on commons but now the app also has a map!

The map is powered by the mapbox SDK and the current beta uses the mapbox tiles however part of the plan for the Vienna hackathon is to switch this to using the wikimedia hosted map tiles at https://maps.wikimedia.org.

The map also contains clickable pins that provide a small pop up pulling information from Wikidata including the label and description of the item as well as providing two buttons to get directions to the place or read the Wikipedia article.

Image info coordinates & image date

Extra information has also been added to the image details view and the image date and coordinates of the image can now be seen in the app.

Summary of hackathon activity

The contributions and authors that worked on the app during the pre hackathon can be found on Github at the following link.

Roughly 66 commits were made between the 11th and 19th of May 2017 by 9 contributors.

Screenshot Gallery

Wikidata Map May 2016 (Belarus & Uganda)

I originally posted about the Wikidata maps back in early 2015 and have followed up with a few posts since looking at interesting developments. This is another one of those posts covering the changes since the last post, so late 2015, to now, May 2016.

The new maps look very similar to the naked eye and the new ‘big’ map can be seen below.

So while at the 2016 Wikimedia Hackathon in Jerusalem I teamed up with @valhallasw to generate some diffs of these maps, in a slightly more programatic way to my posts following up the 2015 Wikimania!

Continue reading

Wikimedia Hackathon 2015 (Lyon)

By Jean-Philippe Kmiec & Sylvain Boissel (Own work) [CC BY-SA 4.0], via Wikimedia Commons

This years Wikimedia Hackathon was located in Lyon, France at Valpré-Lyon between the 23rd and 25th of May.

The hotel (Valpre-Lyon) was absolutely beautiful with large grass areas, great architecture and a place for you weather you wanted to have a large or small discussion, sit quietly or sit outside. As well as Pétanque, table tennis was also available as well as plenty of people to meet!

Valpré Castel

Some of the hackathon grounds. By Alex Cella (Own work) [CC BY-SA 4.0], via Wikimedia Commons

I planned on primarily hacking on my MassAction extension along with one of two others but as at any hackathon I got massively distracted talking to people and working on other projects. Continue reading

Wikimania

Wikimania 2014 was a 2000+ person conference, festival, meetup, workshop, hackathon, and celebration, spread over five days in August 2014, preceded and followed by fringe events. Wikimania is the official annual event of the Wikimedia movement, where one can discover all kinds of projects that people are making with wikis and open content, as well as meet the community that produced the most famous wiki of all, Wikipedia!

The core event was held in and around The Barbican Centre in London, UK.

Watch the videos on YouTubeCommons or LiveStream.

Read about it by following one of the following links:

Also you can find a blog post looking back at Wikimania from the Barbican Centre here.

Post photo from https://wikimania2014.wikimedia.org/wiki/File:Wikimania_2014_group_photo.jpeg

At future events these posts will likely be much better, as I’ll be writing them while I am there! This post was actually written in April 2015 :/

Zürich Wikimedia Hackathon

This year the Wikimedia Hackathon was held in Zürich, Switzerland from the 9th to 11th May 2014. The organization of the event was great, from lanyards and badges that included a USB memory stick to a city map and a ticket for public transport, Wikimedia Switzerland had prepared fantastic hackathon.

More than 150 developers, engineers, sysadmins, and technology enthusiasts gathered coming from more than 30 countries aiming to share knowledge about new and existing technologies, fix bugs, come up with new ideas and work together on tools and systems relating to the Wikimedia movement.

As the name suggests a lot of time at a hackathon is spent ‘hacking’ (coding and such) there are also workshops available on all days. This year these workshops and talks included multiple sessions on ‘Vagrant’ working toward a production like development system, ‘Open data’ looking at Wikidata and government open data as well as sessions of ‘Phabricator’ and ‘Jenkins’.

Hackathons are not just a place to hack, but they provide people with a crucial time to allow people with different specialisms and interests to meet each other in person, put faces to names and names to pseudonyms, to build relationships and in turn build the movement.

Until next time!

Image Credits:

  • Logo: By Original: Trevor Parscal Modification: Lokal_Profil [CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons
  • Photo: By Christian Meixner (Own work) [CC BY 3.0 (http://creativecommons.org/licenses/by/3.0)], via Wikimedia Commons

Media Hack Day 2014

the Media Hack Day logoThe Media Hack Day is an annual event held at Axel Springer | Plug & Play Accelerator in Berlin. The event for March 2014 can be found on hackerleague.org.

I attended representing the Wikidata API. Also in attendance were Axel Springer, storyful, Der Spiegel, sanoma, watchmi, Getty Images and embed.ly. It was in a great location, the food and rinks were great and it was generally well planned by the organizes and a pretty competitive crowd turned up.

At noon on the following day all hacks were presented to the API partners and all other attendees. The ‘News sightseeing’ hack was awarded a swag pack from Wikidata for making the best use of the API. They were also awarded the Axel Springer iPool and Getty Images prizes.

Details of the project can be found on hackerleague and the code can be found on GitHub and the teams blog post summary can be found on their own blog.

How ‘News sightseeing’ used the Wikidata API

Firstly it is important to say that at the time of the hackathon Wikidata didn’t really provide any good way to query the data it help, simply retrieve it, but luckily there was a query tool available that is currently located at https://wdq.wmflabs.org.

The code that interacts with the Wikidata API can be found in Aggregator/wikidata.rb.

Initially the code uses the 3rd party query tool to find a list of items matching the criteria in the query, the current query in an editor can be seen here(Service now offline, text link included below) or in the image below. The criteria basically look for items in Munich that are NOT roads but do have images and coordinate locations.

a Screenshot of query used at Media Hack Day 2014

The data for each item is then retrieved from the Wikidata API using the wbegtentities module.

Various parts are then stripped from the whole entity for use within the application:

  • The German label is used as a title
  • The German Wikipedia sitelink is used as a URL
  • The German description is used for content body
  • A statement with property P18 is used as an image
  • A statement with property P571 is used as the initial date
  • A statement with property P625 is used for the precise location

As a result the app has access to information (including images) of possible locations to go sightseeing around the user.

Read more about News Sightseeing

Or watch their demo video

Mediawiki Hackathon Amsterdam

The Mediawiki Hackathon in Amsterdam was my first ever Mediawiki or Wikimedia hackathon, and it was great!

Unfortunately I am actually writing this post in 2015, so I don’t remember many of the details and will instead link to other places!

Wikimedia blog post reflecting on the hackathon

Wikimedia Netherlands, Wikimedia Germany, and the Wikimedia Foundation subsidized travel and accommodation for dozens of participants, enabling the highest participation in this event’s history.

Wikipedia Signpost report

Though it is difficult to pin down a central theme for a conference with 140 attendees, the choice of workshops suggest consolidation: Wikidata, Lua (slides), and Wikimedia Labs (slides) are hardly new projects and were all demo’ed at last year’s hackathon. Nevertheless, there was plenty to talk about, with upbeat developers leaving sessions excited at the progress the Foundation has made with each.

More links

© 2017 Addshore

Theme by Anders NorenUp ↑