Wikipedia forbidden

Wikipedia made some changes so that all my wikipedia scripts (wiki2geojson, wiki2image, wiki2table) did not work anymore. What happened and how did I fix it.

Tags: Python

Table of contents

A little python script to create a table of contents from extracting the headlines of a html file.

Tags: Python

The Pope

In April pope Francis died and a new pope was eleced in May, Leo XIV. Francis was the first that had choosen the name Francis, thus there is no ordinal number. With Leo that's different. He is the 14th that has choosen this name. What I wanted to have is a chart that shows the time and in bars when was a pope in power clustered by the choosen name.

Tags: Python, Javascript

Markdown

Markdown is a format that is widely accepted in many places to write text with simple formatting. The result that's published in the Internet is usually transfered from Markwon into HTML.

Tags: Javascript

Cheat sheet for Image Magick

Image Magick is a great tool to convert images. I like it because it allows automated tasks to be run for a lot of images at once. If there are repetitive tasks, Image Magick scales up your speed in getting results once you figured out how to tranform the images.

Tags: Bash

Unittest in Python

This is my first step towards unittesting in Python. I want my cli script to be tested to ensure that when expanding it, the original functionality gets not broken. Here I describe my naive approach.

Tags: Python

4000er summits in the Swiss Alps

The goal here is to get the 48 summits of the Alps that are located in Switzerland. The result should be an geo json to be used in a map to mark the summits in the outline map and see where they are gathered. Again. Wikipedia is a great source for the data. From former articles we reuse tools to complete the task.

Tags: Python, Quiz, Bash

Profile PHP files

This is an approach that I used on a real server to profile some code changes without having professional tools.

Tags: PHP, Bash

Countries of the world

Use map data from Natural Earth, download the shape file, transform it to a GeoJSON and use it with d3.js to create an SVG image.

Tags: Quiz