試驗在 Heroku 中使用 Amazon SimpleDB

, , , , , at September 13th, 2009 by 小影

最近幾個 project 也使用 Heroku,對它的方便和效能也很滿意。只是它的免費帳戶只有 5M 的容量,它的收費帳戶分別為:$15 (美元,下同) 50M ,$50 500M,$200 500G (!),$1600 2T。對於那些沒賺錢又超過 5M 的計劃,這樣的費用也太高了。 看到 Amazon SimpleDB 推出了免費 Tier (每月首 1 G 的 data transfer 和 storage 也免費,之後的收費為 $0.1/G 傳送, $0.25/G 儲存),就想到將 Database 轉到 Amazon 上使用了。 在 Ruby 可以用 gem aws_sdb 去存取 SimpleDB ,也可以自行使用 RestClient 或 Typhoeus 存取 Restful API 。但對於現有使用 ...

Pushr with Twitter Notification

, , , at July 10th, 2009 by 小影

Today morning i discussed using Pushr to send notification in applications. While sending email or growl is cool, how about sending twitter notifications? First add the twitter account @pushrhk. Then create your node (replace "tweet-siuying" with any secret name you like): The message received: Of course if you can send POST to Pushr, ...

Pushr – sending notification with ease

, at July 10th, 2009 by 小影

Quite often I found my self need to send notification in code ... maybe some program crashed, a new user joined, or I want to keep track of stock price. Sometimes I want SMS, email, twitter, growl notifications... etc. If we are going to add these in every apps, they ...

Sinatra – 簡易 Web Framework

, , , , at June 21st, 2009 by 小影

Sinatra 是一個輕量級 Ruby Web Framework。 有了 Rails 為甚麼還要其他的 framework?因為這世上沒有 Golden Hammer ,使用適當的工具可以節省很多時間。

RSS 轉 PDF 的小工具

, , at June 14th, 2009 by 小影

因為電子書上沒有適合的 RSS Reader ,我寫了一個小程式把 RSS 轉為 PDF。 跟前幾篇一樣假設裝了 Ruby 和 Rubygems ,輸入以下指令: gem sources -a http://gems.github.com gem install siuying-rssbook 接著就可以把 RSS 檔案轉為 PDF: rssbook engadgetchinese.rss engadget.pdf 也可以指定 URL: rssbook "http://feeds2.feedburner.com/engadgetchinese?format=xml" engadget.pdf 也可使用自定的字型: rssbook "http://feeds2.feedburner.com/engadgetchinese?format=xml" engadget.pdf "Arial Unicode.ttf"