Posts By: jonny

Convert Irish Grid Coordinates to Latitude Longitude

On the OpenDataNI portal some of the data sources show X,Y co-ordinates for the Irish Grid reference system (EPSG:29902). I wanted to be able to convert these to latitude longitude values I could use with OpenStreetMap and the cs2cs tool from the Install Proj (Linux) Install Proj (Mac) Usage Run it with example co-ordinates: And… Read more »

MapTiler Swindle

TLDR; I suppose this is a warning to contributors to OpenStreetMap that while MapTiler make use of our contributions their sole purpose is maximum profiteering from the mapping community. As an active contributor to OpenStreetMap I had a use-case to create raster tiles of an existing map so that I can use that as a… Read more »

Fish Shell Escape Delay

Using the fish shell I needed to increase a timeout to allow me to use Esc-. keyboard sequence to print the last argument from the previous line: Add the following line to ~/.config/fish/fish_variables to fix the problem:

Run a Linux Mint Web App from the CLI

I wanted to run 4-5 applications based on a keyboard shortcut on Linux Mint. The shortcut key runs a shell script that launches the applications I want for that key press. Some of the applications Creating the keyboard shortcut is straight-forward in Mint and is shown below: Then the script I wanted to run could… Read more »

Number 1

I was number 1 most active mapper in the UK charts today due to my contributions in County Down and East Belfast over the last few months. I can’t see that continuing as another Irish mapper b-unicycling is sure to take top spot soon.

Python Threads Querying CouchDB

With a list of 500,000 CouchDB endpoints to hit for info I wanted to speed up the process. There are multiple ways to do that but queues and threads worked fine for me. The script reads in a list from the file input.txt , then uses that to retrieve a list of documents from an… Read more »

Removing template_file from terraform state

I’ve run into this issue a few times so recording here for future reference. template_file has been deprecated in terraform but I occasionally perform a terraform init before realising that there is a template_file command in the code. I get the error: So I need to remove the template_file resource from state to continue. Listing… Read more »

Add Auth to Prometheus Container

Using docker-compose to run a prometheus container that I wanted basic auth added to. My docker-compose file is shown below: Notice that I am mounting a directory from the host into /etc/prometheus on the container exposing the web.yml file (see below). Also I am specifying the web.yml file as a command line parameter when prometheus… Read more »