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 .
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
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: ym4r, plugin, rubyonrails, rails, ruby
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