The Open Source Routing Machine (OSRM) is a C++ implementation of a high-performance routing engine for shortest paths in road networks. It combines sophisticated routing algorithms with the open and free road network data of the OpenStreetMap (OSM) project. OSRM is able to compute and output a shortest path between any origin and destination within …
Vemödalen
Vemödalen – n. the frustration of photographing something amazing when thousands of identical photos already exist —the same sunset, the same waterfall, the same curve of a hip, the same closeup of an eye — which can turn a unique subject into something hollow and pulpy and cheap, like a mass-produced piece of furniture you …
Large Brick Collider
Securing Sessions in PHP
I set out to combine all the best practice I could find into a single Session handler, to help protect against the common attack vectors. Since PHP 5.4, you are able to set the Session handler based on a class instance that extends the default SessionHandler class. Make the session cookie only available over HTTP, …
Lego Antikythera Mechanism
The Antikythera Mechanism is the oldest known scientific computer, built in Greece at around 100 BCE. Lost for 2000 years, it was recovered from a shipwreck in 1901. But not until a century later was its purpose understood: an astronomical clock that determines the positions of celestial bodies with extraordinary precision. In 2010, we built …
The Sound of Interstellar
grunt-php
Realtime Audio-Visualizations with JavaScript
window.onload = function() { var ctx = new AudioContext(); var audio = document.getElementById(‘myAudio’); var audioSrc = ctx.createMediaElementSource(audio); var analyser = ctx.createAnalyser(); // we have to connect the MediaElementSource with the analyser audioSrc.connect(analyser); // we could configure the analyser: e.g. analyser.fftSize (for further infos read the spec) // frequencyBinCount tells you how many values you’ll receive …
Continue reading “Realtime Audio-Visualizations with JavaScript”
Twemoji
twemoji.parse(‘I \u2764\uFE0F emoji!’); // will produce /* I <img class="emoji" draggable="false" alt="❤️" src="https://twemoji.maxcdn.com/36×36/2764.png"> emoji! */ Nugget of JavaScript to replace astral symbols (emoji) with images in browsers that don’t support them. Yes, looking at you Chrome on OS X. Images are included in the repo, or can be loaded from a CDN. Twitter Emoji for …