I just released a gem to help interactions with fusion tables.

It’s on github, or you can install with a straight:

gem install fusion_tables

The main rationale behind making this gem was to make it easy to upload geospatial data to make quick exploratory maps of large datasets. As an example, here are the results of sampling georeferenced tweets from the live twitter streaming API around several major cities (click the points!):

Tokyo

London

New York

Fusion Tables also lets you generate live visualisation from the same data you’re displaying in the map. Here’s a comparison of the counts in all the cities I sampled:

The Fusion Table that drives these maps is available here, & the code I used to generate these examples is also on github.

{ 1 comment }

UN flag for the fam fam fam flag icon set

UN flag for fam fam fam

Totally geeky way to spend a lunchtime, but what the hey. Here’s some takes on a 16×11 pixel UN flag paying homage to the FamFamFam style.

They should fit in well with the FamFamFam flag icons set available here: http://www.famfamfam.com/lab/icons/flags/

{ 0 comments }

Title says it all really. I finally got tired of importing the ipinfodb into postgreSQL via CSV (the SQL they provide on their site targets MySQL), and have made a dump available on S3. Knock yourself out.

http://stokumine.s3.amazonaws.com/ipinfodb_one_table_small_pgsql.sql.gz

to use:

psql -U[your_user] [your_db] < ipinfodb_one_table_small_pgsql.sql

creates a table called geo_ips

{ 2 comments }

I love DHH’s Tolk. For those that don’t know, it’s a rails engine that makes translating your base locale in your Rails app really easy . While I was translating, I was getting bored with doing simple things like translating the days of the week and so on, and sometimes needed help with more complex sentences. This is my fork of Tolk that autotranslates your translation string with google translate to give you a sensible starting point rather than a white box.

It’s on github: http://github.com/tokumine/tolk/

Tolk and Google Translate from Simon Tokumine on Vimeo.

{ 3 comments }

The vanilla method of storing view translations in an i18n’d Rails project is to maintain a huge locale yaml file. A step forwards is to maintain many yaml files split into folders mirroring your controller or view structure. Splitting is better for maintenance, however many tools and services, like DHH’s Tolk which can help with the actual translation of your site currently rely on your locale being in one place.

I wanted both. I’d like to maintain my base locale files in a nice split structure, whilst at the same time being able to use tools like Tolk to maintain my translations.

With your base locales arranged as described by the Rails Guides simply use the following rake task to generate an aggregated locale YAML file. To ensure no keys are overwritten, be sure to maintain your translations in their own namespaces.

{ 0 comments }

Linode sweet spot

May 15, 2010
Read the full article →

Protectedplanet.net now live!

March 4, 2010

Phew, this one took 5 years off my life, but finally the http://www.protectedplanet.net site is live!
Go check it out!

Read the full article →

Amazon EBS RAID-0 & PostGIS build

November 16, 2009

Just posted my EBS RAID-0 + PostGIS build script to Biodivertido.

Check it out.

Read the full article →

Ever needed to know how many working days are left this year?

September 25, 2009

Well now you know: http://www.working-days-left.com
edit: Now with a graph and twitter!

Read the full article →

GIS on Rails

September 20, 2009

There are times we want our Rails apps to have some sort of spatial capability. Recording lat long point locations and displaying them in a google map is fine, but increasingly we want to do more with our spatial data.
We want to be able to import data from a wide range of existing spatial [...]

Read the full article →