ラベル GAE の投稿を表示しています。 すべての投稿を表示
ラベル GAE の投稿を表示しています。 すべての投稿を表示

2009-07-09

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']

2009-07-06

2009-06-16

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:

BCM4321 on Latitude D430

At kernel 3 find wireless hardware lspci | grep -i wireless  check using current kernel module with PCI bus address lspci -vv -s 0c:...