Skip to content

Instantly share code, notes, and snippets.

View oliverheilig's full-sized avatar
💾
Loading...

Oliver Heilig oliverheilig

💾
Loading...
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oliverheilig
oliverheilig / !LINK.md
Last active January 13, 2023 10:36
xServer-2 Data Integration Strategies
@oliverheilig
oliverheilig / !LINK.md
Last active January 13, 2023 10:35
In Defense of Mercator
@oliverheilig
oliverheilig / README.md
Last active February 6, 2016 07:34
Voronoi Territories

A visualization for the assignment of points to territories using voronoi cells.

This is done by visually merging the voronoi cells and clipping them with circluar buffers around the point. It's an alternative to the visualization with a convex hull around each particular point set, as it generates a partitioning without overlappings. You can view this sample on a map here.

I'm using Mike Bostock's wonderful D3 library to create the SVG. But rather than calculating the voronois with D3's function, i'm utilizing Raymond Hill's JavaScript implementation, as i couldn't find a way to get the corresponding regions for a cell edge. After finishing, i found that D3 allows the creation of TopoJson fom a vonoroi.topology, which may provide a more elegant way.

Grabbed the initia

Hiding your xServer internet token

The xServer internet token is an API-key used to authenticate and bill the requests.

If a client-application accesses xServer internet directly, the token can be sniffed by intercepting the traffic or looking into the code. However, the API-key cannot be used to access any security relevant customer data. If you don’t want to expose the token to the client, you can proxy the xServer internet access in your application server and inject your token here.

Here are two scenarios to create a proxy that injects an xServer internet token.

1. Use Apache as Proxy

You can add a virtual host to proxy your xServer-Requests, by configuring the httpd-vhosts.conf. The xServer can be acessesed with the authentication of your WebServer then, while the requests are relayed and the token is injected.

@oliverheilig
oliverheilig / lux_postcode.topo.json
Created August 19, 2015 14:19
Luxembourg postcodes as TopoJson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oliverheilig
oliverheilig / lux_communes.topo.json
Created August 19, 2015 13:32
Luxmenbourg municipalities as TopoJson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Calcluate airline distance for two mercator points.
// This approximation formula is sufficiently accurate for
// our needs for distances of up to 600 km and
// 80° latitude (the error is never more than 5% even for extreme values).
using System;
public class Program
{
public static void Main()
{
@oliverheilig
oliverheilig / TALux.geojson
Last active August 29, 2015 14:04
Truck Attributes as GeoJson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.