Status
someone checked in 4.2GB of data files in my subversion repo. makes a global checkout "unfun"
Location
Alexandria, VA
Subscribe to GeoRSS Subscribe to KML


Ruby

RubyCocoa

Published in Apple, Applescript, Mac OS X, Programming, Ruby


RubyCocoa is a bridge between the Mac OS X Cocoa Framework API that makes it callable from Ruby code. You can create applications, objects, call Mac OS X Services. You can even call Applescript:


require 'osx/cocoa'
include OSX
def speak (str)
  str.gsub! (/"/, '\"')
  src = %(say "#{str}")
  NSAppleScript.alloc.initWithSource(src).executeAndReturnError(nil)
end
speak "Hello World!"
speak "Kon nich Wah. Ogan key desu ka?"

Ben Bleything submitted a talk to RubyConf, titled “Harmonize: Exploiting RubyCocoa and Sync Services for Fun and Profit” where he discusses making a wrapper around the SyncAPI in Ruby. (blog post introducing Harmonize)

RubyCocoa looks like it may have stagnated a little as the last release was November 2005, but perhaps with such a renewed interest in Ruby, and Mac OS X gaining popularity, perhaps new life with be breathed into it. Projects such as SyncBridge and Harmonize also obviously help.

Update: Check out the very good examples and information at RubyCocoa.com, including how to use your Apple Remote from RubyCocoa .


Making your Rails project setup easier

Published in Programming, Rails, Ruby


Luke Redpath has come up with a brilliant, and simple solution for having to install a large set of standard Rails plugins with each new Rails project. Rails Plugin Packs™ is a YAML file defined set of plugins that his Plugin will then go through and install.

Therefore, you can build up your set of Location based plugins, such as:

Plugin Packs


about:
  name: Mapping Pack
  description: A set of mapping and geocoding plugins
  author: Andrew Turner
  email: rails@highearthorbit.com
  website: http://www.highearthorbit.com
plugins:
  ym4r_mapstraction:
    source: svn://rubyforge.org/var/svn/ym4r/Plugins/Mapstraction/trunk/ym4r_mapstraction
  GeoRuby:
    source:
  metacarta-geoparser:
    source: http://opensource.agileevolved.com/svn/root/rails_plugins/unobtrusive_javascript/tags/rel-0.1
  yahoo-geocode:
    source: http://opensource.agileevolved.com/svn/root/rails_plugins/navigation_mappings/trunk

about:
  name: User site
  description: Plugins for a standard site with users for authentication and basic cms
  author: Andrew Turner
  email: rails@highearthorbit.com
  website: http://www.highearthorbit.com
plugins:
  acts_as_authenticated:
    source: http://svn.techno-weenie.net/projects/plugins/acts_as_authenticated
  comatose:
    source: http://mattmccray.com/svn/rails/plugins

Ruby and Mapstraction

Published in Javascript, Maps, Programming, Rails, Ruby


Wow, Guilhem has been busy. He recently announced YM4R for Mapstraction. Now you can embed Mapstraction maps into your Ruby on Rails projects.

In case you didn’t know, Mapstraction is a Javascript library that encapsulates the API’s for GoogleMaps, YahooMaps, and Microsoft Virtual Earth maps. You can write once, but switch between any of the map types.


YM4R - Rails mapping with GeoRSS support

Published in GeoRSS, Maps, Programming, Rails, Ruby


The newer, more full-featured kid on the embedding Maps-in-your-Rails-App-block has gotten an update. YM4R v0.5.1 was released a couple of days ago. It’s now mostly a plugin, instead of a gem, since it includes a lot of Rails specific stuff. There are Ruby libraries for creating GoogleMaps tiles, and geocoding that are still in the gem, which is great too.

And I’ve even done my part to contribute by submitting my GeoRSS Simple Parser.

Technorati Tags: , , , ,


Geographic support in Ruby gems

Published in Cartographer Plugin, Maps, Open-Source, Programming, Project, Rails, Ruby, Technology


I ran across GeoRuby, a Ruby gem for handling spatial data types in a database, awhile ago. However, I never sunk my teeth into how it worked and how to get it going.

In the meantime, I settled myself to using the adequate Cartographer Plugin to easily create Google Maps. I even went so far as to extend Cartographer to switch to Yahoo! maps and MapQuest Maps.

I just came across another mapping gem, YM4R (yellow maps for Ruby) which handles GoogleMaps v2 (there is a patch for Cartographer to do the same), and Yahoo! maps, local, and traffic. Wow!

Not only that, it’s by the same developer of GeoRuby, The Pochi Superstar Mega Show!.

Check out the very good, and complete Ym4r + GeoRuby + Spatial Adapter tutorial