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封信(全文)

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

【清邁之旅 Part 1|Exploring Doi Suthep-Pui National Park】The 6 Day Itinerary To Explore Chiang Mai And Northern Thailand's Mountains

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

2018, Sep 21【嘉義。阿里山】特富野古道健行。鐵道、迷霧、森林(Tefuye Historical Trail)

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

FbGraph + OmniAuth + Facebook Graph API on Rails application

文章列表

聯絡我

名稱

以電子郵件傳送 *

訊息 *