suburbia

Premshree's (品速力) Personal Weblog

etc.

Rita Mapping
suburbia
[info]premshree

Clicky.

I got data from here in order to generate this XML file. They have a neat Google map too.

Update: Apart from being on the featured application list, McManus posted it to Lifehacker, which means my shared server is being hit a lot — so it is possible that you’ll get a timeout at times.

Update: Jeffrey demoed this at the Web 2.0 Conference.

Update: Mash-ups: Business Models and Trends.


Ruby API for Flickr - New Auth Mechanism Implemented
suburbia
[info]premshree

So I took some time out and implemented the new Flickr auth mechanism in the Ruby interface to Flickr.

Time for a bath now.


GeoURL Yahoo! Mapping
suburbia
[info]premshree

Quick Yahoo! Maps hack that maps sites close to a given URL using GeoURL data. I think I remember seeing something like this on some site, but the mapping there was for the owner’s site only, AFAIK.

Try it out here.

The image that you see, that’s Jeremy’s blog’s geomap. And that’s Marc’s blog highlighted there.

FWIW, I couldn’t use my blog URL because I’m in Bangalore.

Oh yeah, hi all! :-)


libyws
suburbia
[info]premshree

Now the we have MyWeb 2.0 (which by the way, is quite cool. I could imagine doing tons of things with it.), it’s time for an update to the Ruby interface to YWSyahoo-ruby 0.2.

Do cool stuff:

require 'yahoo-ruby.rb'
obj = RelatedTags.new('yahoo-ruby', 'ruby', '', '', '', 1)
obj.parse_results.each { |ele|
        ele.each { |k,v|
                print "#{k} => #{v}\n" if v!=nil
        }
}

# Output
Tag => rails
Frequency => 23
Date => 1120011775

The code’s been lying around for some time (observe the date—June 29), but I didn’t release it assuming there’d be an official release or something. Oh well.

I think I’m gonna make major changes to the code. It works well, mind you. However, I’m not satisfied with the design. Ideally I’d like to simply parse the XSD, and spit out a hash. That’d mean each time a new API comes out, I just have to add another schema location to the existing bunch. And I’m not terribly sure I can do that with REXML. Maybe I’m wrong, though, because, honestly, I haven’s dug into it very deep. Oh yeah, I’m gonna move the project to RubyForge.


What about REBOL?
suburbia
[info]premshree

Yahoo! Search Web Services demo using REBOL

Heh, REBOL is fun at times. Somebody asked me that question—“What about REBOL?”. Um, I don’t think I’m going to find time to write an API or anything. Basically I’m not in any mood to add parse handlers for the various search types.

Well, there you go, a Yahoo! Search Web Services demo for REBOL. That’s about REBOL.

Code... )

The screenshot was generated using REBOL itself: save/png %screenshot.png to-image out