- download the Natural Earth 1:10m Time Zone Data (GeoJSON available from CartoDB)
- run
topojson --post-quantization 1e3 --simplify 1e-5 --out timezones.json -- ne_10m_time_zones.geojson
The result is this 181 KB timezones.json (36 KB with gzip)
| // | |
| // ImageCaptureManager.swift | |
| // ImageCapture | |
| // | |
| // Created by Jeroen Wesbeek on 29/07/16. | |
| // Copyright © 2016 Jeroen Wesbeek. All rights reserved. | |
| // | |
| import Foundation | |
| import AVFoundation |
topojson --post-quantization 1e3 --simplify 1e-5 --out timezones.json -- ne_10m_time_zones.geojsonThe result is this 181 KB timezones.json (36 KB with gzip)
###The Issue With Forever Forever is great for running node services, with a minor setback: the word "forever" doesn't apply to system reboots.
###The solution, run node apps as a system service logged in as root
vim /etc/init/node-app.confContents for node-app.conf
| [{ "Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup", "Country": "Afghanistan", "ISO": "AF", "Format": "NNNN", "Regex": "^\\d{4}$"}, { "Note": "With Finland, first two numbers are 22.", "Country": "Åland Islands", "ISO": "AX", "Format": "NNNNN", "Regex": "^\\d{5}$"}, { "Note": "Introduced in 2006, gradually implemented throughout 2007.", "Country": "Albania", "ISO": "AL", "Format": "NNNN", "Regex": "^\\d{4}$"}, { "Note": "First two as in ISO 3166-2:DZ", "Country": "Algeria", "ISO": "DZ", "Format": "NNNNN", "Regex": "^\\d{5}$"}, { "Note": "U.S. ZIP codes (range 96799)", "Country": "American Samoa", "ISO": "AS", "Format": "NNNNN (optionally NNNNN-NNNN or NNNNN-NNNNNN)", "Regex": "^\\d{5}(-{1}\\d{4,6})$"}, { "Note": |
| Country | Alpha-2 code | Alpha-3 code | Numeric code | Latitude (average) | Longitude (average) | |
|---|---|---|---|---|---|---|
| Afghanistan | AF | AFG | 4 | 33 | 65 | |
| Åland Islands | AX | ALA | 248 | 60.116667 | 19.9 | |
| Albania | AL | ALB | 8 | 41 | 20 | |
| Algeria | DZ | DZA | 12 | 28 | 3 | |
| American Samoa | AS | ASM | 16 | -14.3333 | -170 | |
| Andorra | AD | AND | 20 | 42.5 | 1.6 | |
| Angola | AO | AGO | 24 | -12.5 | 18.5 | |
| Anguilla | AI | AIA | 660 | 18.25 | -63.1667 | |
| Antarctica | AQ | ATA | 10 | -90 | 0 |
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=filessudo python setup.py installTo convert DBF file to CSV:
./dbf2csv database.dbf

Author: Josef Jezek
# Install Inkscape on Ubuntu
sudo apt-get install inkscape| function reopenTransportOnHupSignal(fileTransport) { | |
| process.on('SIGHUP', function() { | |
| var fullname = path.join(fileTransport.dirname, fileTransport._getFile(false)); | |
| function reopen() { | |
| if (fileTransport._stream) { | |
| fileTransport._stream.end(); | |
| fileTransport._stream.destroySoon(); | |
| } |
| //First make placeholders for results as globals | |
| results = {} | |
| processes = {} | |
| //Now Spawn Processes within code you need, where index is an identifier | |
| spawn_list[index] = spawn(/*file here*/) | |
| processes[index] = spawn_list[index].pid | |
| results[processes[index]] = {} | |
| results[processes[index]]['index'] = index //funny looking but important | |
| results[processes[index]]['stdout'] = "" |