Articles in category: howto

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.

How to make a d3js force layout stay within the chart area - even with multiple components

21 September 2017 - For a post on analysing networks of corporate control, I wanted to create some network graphs with d3.js. The new edition of Scott Murray’s great book on d3.js, which is updated to version 4, contains a good example to get you started. However, I was still struggling with some practical issues, as the chart below illustrates (reload the page to see the problem develop).

Articles 1-5 | Next