Showing posts with label GAE. Show all posts
Showing posts with label GAE. Show all posts

Thursday, July 9, 2009

Get BLogger Labels



$label_url = "http://www.blogger.com/feeds/#{$userID}/blogs/#{$blogID}?alt=json-in-script&callback=listLabels"

class BlogLabels

def get_labels
result = URLFetch.get($label_url)
result_headless = result.gsub("listLabels(",'')
pure_result = result_headless.gsub(");",'')
JSON.parse(pure_result)['entry']['category']
end

end

@labels = BlogLabels.new
@labels.get_labels.each do |cont|
puts cont['term']
end

JSON was not works.
Change to use YAML.

response = URLFetch.get($label_url)
result = response.to_s
result_headless = result.gsub("listLabels(",'')
pure_result = result_headless.gsub(");",'')
json_to_yaml = YAML::load(pure_result)['entry']['category']

Monday, July 6, 2009

iblogspot

To watch blogspot site on iphone by Google App Engine.
But I asked check it by iphone to co. person.
He said

"Slow and Why don't you use WordPress ?".


sad...

Tuesday, June 16, 2009

run Jruby on Google App Engine from windows

Basically follow this lecture OK.
http://blog.bigcurl.de/2009/04/running-sinatra-apps-on-google.html
jruby-rack
Get a fresh version from http://github.com/nicksieger/jruby-rack/tree/master

cd jruby-rack
PATH-TO-JRUBY/bin/jruby -S rake SKIP_SPECS=true

1.You should check directory.
ex.)C:\jruby-rack
should not path include "space" etc.
I could not rake in Document~ directory.
2.use Jruby from "git clone git://kenai.com/jruby~main"
I stuck use other dist.

that all,no problems
p.s. better has Cygwin for use split-jruby.sh
and when running on local by C:\appengine-java-sdk-1.2.0\bin\dev_appserver.cmd,error.
But in Google App Engine,no error.
this is my TODO: