Displaying posts tagged: php

Google DNS Benchmarked

8 Comments
Today Google announced a public DNS service they are hosting. They claim that their DNS infrastructure is faster and more secure, because their servers do some clever things. I wanted to test their performance claims, so I wrote a little script to measure a lookup times for different domains across a number of DNS servers. Methodology ...

Ordnance Survey Easting/Northing to Lat/Long

No Comments
Recently I had the need to convert Ordnance Survey East/North coordinates to Latitude and Longitude. By using the resources available on the OS site I wrote the following piece of PHP code: <?php // Converts OS Easting/Northing to Lat/Long // by bramp function Marc($bf0, $n, $PHI0, $PHI) { /* Compute meridional arc. Input: - ellipsoid semi ...