20 Jun '12, 3pm

みてる / Sinatra: README (Japanese)

# アプリケーションが http://example.com/example で動作している場合 get '/foo' do request.body # クライアントによって送信されたリクエストボディ(下記参照) request.scheme # "http" request.script_name # "/example" request.path_info # "/foo" request.port # 80 request.request_method # "GET" request.query_string # "" request.content_length # request.bodyの長さ request.media_type # request.bodyのメディアタイプ request.host # "example.com" request.get? # true (他の動詞についても同様のメソッドあり) request.form_data? # false request["SOME_HEADER"] # SOME_HEADERヘッダの値 request.referer # クライアントのリファラまたは'/' request.user_agent # ユーザエージェント (:agent 条件によって使用される) request.cookies # ブラウザクッキーのハッシュ request.xhr? # Ajaxリクエストかどうか request.url # "http://example.com/example/foo" request.path # "/example/foo" request.ip # クライアントのIPアドレス request.secure? # false request.env # Rackによって渡された生のenvハッシュ end

Full article: http://www.sinatrarb.com/intro-jp.html

Tweets

海外からのアクセスを制限するワードプレスのプラグイン発見。http://t.co/IhFpZEpV

lesterchan.net 01 Jul '12, 1pm

Ban users by IP, IP Range, host name and referer url from visiting your WordPress's blog. It will display a custom ban mes...

This week's review: modern Japanese restaurant ...

asiatatlerdining.com 20 Jun '12, 2am

Suzuike serves a nine-course set menu (priced at HK$880 per head), plus an a la carte menu of sashimi, sushi, teppanyaki a...

7-Course Japanese Menu at Sagano #Food

7-Course Japanese Menu at Sagano #Food

iamthewitch.com 16 Jun '12, 10pm

this October, I went to sample the Festival menu from Sagano Japanese restaurant this time, located at Renaissance Hotel. ...

Japanese physicists devise a formula to predict...

straitstimes.com 15 Jun '12, 3am

PARIS (AFP) - Unlikely candidates for box office stardom, a team of Japanese physicists may soon be in high demand with mo...

Hanami Bento at Iketeru Japanese Restaurant, KL Hilton | KYspeaks via @kyspeaks

Hanami Bento at Iketeru Japanese Restaurant, KL...

kyspeaks.com 15 Jun '12, 1pm

Hanami Bento at Iketeru Japanese Restaurant, KL Hilton Almost 4 years ago, I went to Tokyo as a stranger in strange land. ...