August 2011
2 posts
Paypal on Rails, gotchas and tricks
With the help of Activemerchant, integrate Paypal into Rails is really easy, yet there are some gotchas you should be aware of. The original ‘_ext-enter’ for ‘cmd’ is deprecated If you are to submit multiple line items, the ‘cmd’ value must be ‘_cart’, then you can use item_name_x/quantity_x/amount_x as the line items details The built in helper...
Aug 11th
Aug 2nd
July 2011
3 posts
1 tag
Jul 24th
Test basic auth with Cucumber
The senario Scenario: admin dashboard Given I perform HTTP authentication as "admin/secret" And I am on "/admin" Then I should see "Dashboard" The step When /^I perform HTTP authentication as "([^\"]*)\/([^\"]*)"$/ do |name, password| if page.driver.respond_to?(:basic_auth) page.driver.basic_auth(name, password) elsif page.driver.respond_to?(:basic_authorize) ...
Jul 16th
iTerm2
  早上在twitter看到: “robinlu iTerm2 发布1.0了,最近一直在用。我比较喜欢的功能主要是可分割窗口,窗口内容可搜索。” 下载试了一下,非常惊喜,可分割窗口和搜索功能确实很实用,感谢robinlu的推荐。 more: http://www.iterm2.com/ Update(2011-07-16): iTem2 到行首和行尾的快捷键是 fn + 左右方向键,和terminal中默认的fn + shift + 左右方向键不同。
Jul 8th