Announcing Cartagen 0.5

July 10th, 2009

Today we’d like to announce the 0.5 release of the dynamic mapping framework Cartagen. In this release, we’ve taken a shot at rendering any location on the planet (drawing, of course, on data from OpenStreetMap), and at rendering a much greater density of map features with richer styles. The has come a long way, and we hope it makes designing your own map easier while allowing even greater possibilities for unique and compelling designs.

Download Cartagen 0.5

This is the first release we consider to be useable by the general public; as such we are releasing a video to demonstrate how to download Cartagen, get a data set, and write your own GSS stylesheet in just a few minutes:

More information and setup instructions are on Cartagen’s wiki, and our live demonstration site at cartagen.org has been updated.

Cartagen is still incomplete: it needs more optimization for slower browsers and devices like the iPhone and Android phones, it can make better use of HTML5 features such as Web Workers for multi-threaded JavaScript for a more responsive UI, and we hope to continue our early efforts to combine it usefully with OpenLayers and other mapping platforms.

Special thanks to Ben Weissmann who’s joined the Cartagen team and has been instrumental in bringing it this far.

Open Data Kit – ODK

June 13th, 2009

A mobile data collection kit that’s been deployed in quite a few places. See code here: Open Data Kit

polygonal labs » Goodbye, TextField!

June 11th, 2009

Polygonal labs has done something very clever with EPS postscript exports of font sets:

TextField vs. Graphics

...
graphics.beginFill(0, 1);
new Arial(10.0).print("Hello World", 100, 100);
graphics.endFill();
...

TextField vs. Graphics

via polygonal labs » Goodbye, TextField!.

Rails schema for FrontlineSMS

June 11th, 2009

FrontlineSMS

For those of you trying to write Rails applications around a FrontlineSMS database in MySQL:

rails-frontlinesms.txt

Installing the mysql ruby gem on Leopard Server on a g5 xServe

May 3rd, 2009

sudo env ARCHFLAGS="-arch ppc" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

God, that took forever.

Parsing out key:value pairs from text messages and geocoding them

April 5th, 2009

In this third tutorial, we scrape the incoming text messages for pairings of strings in the format “key:value value …”, which we parse out with a regular expression and store in a separate Keyvalue table. This allows us to intelligently search and manipulate the data, as well as to geocode addresses submitted along with data. This yields latitude & longitude data for a given text message.


WHOOZ Tutorial: Parsing out key:value pairs from text messages and geocoding them.

Download the code for this tutorial here: whooz-keyvalue-tutorial.zip (LGPL 3.0)

This builds on the code written in the last tutorial, Batch importing text messages from Twitter in Rails

Batch importing text messages from Twitter in Rails

March 10th, 2009

Here we actually batch import the messages, saving them in a local model. I also demonstrate a script to perform the imports, and set up a table to store key:value pairs for more advanced usage – I’ll finish that feature up in a subsequent tutorial.

Saving the messages locally is important for not exceeding the Twitter rate limit, as well as for performing more complex searches and manipulations with the data. It also provides a common message storage if you’re importing from multiple sources, say, FrontlineSMS, Clickatell, and Twitter.


WHOOZ Tutorial: Importing text messages from Twitter to Ruby on Rails.

Download the code for this tutorial here: whooz-messages-table-batch-importing.zip (LGPL 3.0) or on Google Code

This builds on the code written in the last tutorial, Sending and receiving text messages in Rails with Twitter

I know this is pretty low resolution, but I’ll upload an HD version next week; Vimeo allows only one HD clip per week.

Sending and receiving text messages in Rails with Twitter

March 9th, 2009

In this tutorial I cover how to set up a basic Ruby on Rails 2.2.2 application and how to connect it to the Twitter API. Then I demonstrate receiving and sending Tweets, i.e. text messages through Twitter. I’ve also shared the code in Google Code.


WHOOZ Tutorial: Sending and receiving text messages in Rails with Twitter

Download the code for this tutorial here: whooz-twittter-integration.zip (LGPL 3.0)

This code requires Rails 2 – if you have OS X 10.5, it ships with 1.2; you can upgrade with the commands sudo gem update --system and sudo gem install rails

Ruby/C bit tones

February 12th, 2009

Ruby/C bit tones

“The Graticule Ruby gem makes it super easy to geocode addresses using multiple services. One thing…”

February 1st, 2009

“The Graticule Ruby gem makes it super easy to geocode addresses using multiple services. One thing I’ve found in developing Unthirsty is that sometimes a geocoding service either fails to be reached or the address couldn’t be found. So as a precaution, I’ve set up a way for Graticule to failover to another service if a lookup fails. Here’s how.”

via mattking.org