Articles in category: howto

How to analyse Garmin or Strava activities using Python

3 August 2022 - With the Python bikeride package, you can analyse rides, runs or other activities that you’ve recorded with tools like Garmin or Strava. For example, show activities on a map, analyse the effect of crosswinds, or find your worst-weather rides.

How to investigate assets: lessons from The Wire

15 February 2019 - I’m rewatching The Wire. It’s a great series anyhow, but for researchers, episode 9 of the first season (2002) is especially interesting. It features detective Lester Freamon instructing detectives Roland Pryzbylewski and Leander Sydnor how to investigate the assets of drug kingpin Avon Barksdale.

Converting Election Markup Language (EML) to csv

20 July 2018 - For recent Dutch elections, results are available per candidate, per polling station. The data is in the EML format. I wrote a script to convert that to dataframes.

How to use Python and Selenium for scraping election results

13 May 2018 - The Kiesraad website where election results are published is partly generated using javascript (I think) and therefore not easy to scrape. For this reason, this seemed like a perfect project to explore Selenium.

Embedding tweets in Leaflet popups

11 February 2018 - I just created a map showing where so-called Biro’s (small cars) are parked on the pavement and annoying people. Twitter has quite a few photos of the phenomenon. In some cases, finding their location took a bit of detective work.