2017 May 29 ~ June 4【泰國 素叻他尼 Surat Thani Thailand 🌊⛵️✈️👭】Ratchaprapa Dam, Koh Samui, Khao Sok National Park

圖片
My first trip to Surat Thani Thailand!

Ratchaprapa Dam is located in South Thailand and I highly recommend it as a destination if you are nature-loving traveller and considering traveling in Thailand.
We had wonderful two night stay at Keree Warin Resort which was a raft house accommodation on the lake. This lake is big, as I think it took around 30 minutes of travel by long tail boat to reach our resort.
We spent our time enjoying the breath-takingly beautiful views, swimming and canoeing around the vicinity of the raft house.It's really a great place to relax and have some quiet time in beautiful surrounding.


















Extending Ruby on Rails Contacts Gem to invite Facebook friends

Contacts Gem 是一個能夠從Web Mail服務中匯入聯絡人列表的Rails插件,我們可以擴充它來支援匯入Facebook朋友列表,並發送邀請訊息給他們。

首先必須安裝Contacts plugin:
$script/plugin install git://github.com/cardmagic/contacts.git

另外我們還需要安裝Json Gem:
$sudo gem i jason

另外我們還需要安裝Mechanize Gem來使用其相依的Nokogiri:
$sudo gem i mechanize

現在我們可以打開Rails Console來檢查一下:

現在到#{RAILS_ROOT}/vendor/plugins/contacts/lib/contacts目錄下建立一個page_scraper.rb:

然後在同樣這個目錄下新增facebook.rb:

最後編輯#{RAILS_ROOT}/vendor/plugins/contacts/lib/contact.rb添加下面內容:

OK!完成了,現在可以打開Rails Console來測試一下:

ps.目前聯絡人列表中,分頁的問題尚待解決!

熱門文章

[轉載] 洛克菲勒寫給兒子的38封信(全文)

2012 アルプスの夏:飛騨・北阿爾卑斯山脈南部の焼岳/槍・穂高連峰/表銀座単独縦走記錄。Day1、Day2 台北~富山~高山~上高地~小梨平露營場~焼岳北峰

September, 2012 白姑大山二天一夜~其實沒那麼累,只是路途遙遠

日本の登山の歷史

2018 May 5~6【宜蘭】南方澳漁港~豆腐岬~朝陽國家步道~南澳觀音海岸~礁溪福哥石窯雞

[平成26年7月12日~13日]夏雲湧く北アルプスへ!白馬大雪渓から白馬三山テント泊縦走と鑓温泉~お花畑と雲上の温泉が待ってます!(白馬岳、杓子岳、白馬鑓ヶ岳)

2013.5.25~26【新阿溪縱走】眠月線鐵道線探勘。順登松山、萬歲山、小笠原山、對高岳

文章列表

聯絡我

名稱

以電子郵件傳送 *

訊息 *