Learn more about the Schools App with our Weekly Wednesday Webinar!

Posts Tagged ‘ruby’

Google Maps Server-Side Clustering with Ruby on Rails (RoR)

Facebook in Higher Education: Screenshot of Server-Side Clustering

While working on google maps in the past I have always ran into the same problems time and time again. One of those problems is the issue of clustering. Maps with simple markers and GManagers work great until you start working with a lot more information (10′s of thousands of markers). One could wonder “How is it possible to accurately show thousands of points while maintaining a quick application?”.

Sax Mapper: SQL batch inserts from XML with SAX parsing in Ruby

Sax Mapper:  SQL batch inserts from XML with SAX parsing in Ruby

As part of my work with IMS Global on educational data specifications, I’ve been working on a REST binding of the Learner Information Services (LIS) protocol, that I call Simple LIS. I wrote the reference implementation with Hpricot DOM parsing and ActiveRecord, so it had speed and memory issues when run in production.

A Google Wave robot container in Sinatra

A Google Wave robot container in Sinatra

Since I got a Google Wave account at Google IO, I felt like I should try to do something Ruby-ish in it.  I got talking to Charles Nutter, and he suggested a Sinatra template for Wave Robots.  So here it is. I stole shamelessly from Tim Morgan (http://github.com/seven1m) and Sam Ruby (http://github.com/rubys) to make this [...]

Finding the Biggest Group

Finding the Biggest Group

An interesting undocumented piece of ActiveRecord I bumped into today is “count_all”. You can use this inside ActiveRecord count calls to do sorts and limits based on the count when you’re doing GROUP BY. I came across this because I was having a bit of trouble recently finding the Rails way to find the biggest [...]