C# 處理 facebook JSON Serialized Data

July 19th, 2011 Phanix

當透過 access token 去 facebook 抓取資料時,回傳的資料將以 JSON 的方式編碼,在 C# 裡頭可以用 JavaScriptSerializer 來處理,下面是個很懶惰的處理方式,不需要另外先去設計與宣告一個符合 facebook JSON 格式的 class object 來儲存資料,反正需要的時候再來針對 Key 另外處理即可。

Read the rest of this entry / 繼續閱讀 »

Yahoo! is closing Delicious… !!!

December 17th, 2010 Phanix

早上從布丁的 Facebook 跟 DK 大神那邊看到的消息…
Read the rest of this entry / 繼續閱讀 »

DOS batch ADSL dial and disconnect

November 26th, 2010 Phanix

把 ADSL 撥號跟斷線做成 Batch (.bat) 檔。
什麼時候可以用?當用浮動IP ADSL,想要跳IP掃網頁的時候。 :P

Read the rest of this entry / 繼續閱讀 »

Weird ASUS P5KR

August 11th, 2009 Phanix

太早起床不是一件好事….

Read the rest of this entry / 繼續閱讀 »

原來天空中有這麼多飛機!!

June 2nd, 2009 Phanix

從 Patrick 那邊看到的,全球 24 小時空中飛機飛行圖

下面這兩個 FedEx 在 Memphis 貨物交換中心的也很有趣,可以看到飛機為了躲不良天候時的飛行樣子,感覺好像是一堆螞蟻… XD

Abandoned World

April 10th, 2009 Phanix

Early this morning, a fiber optic cable from Santa Cruz to San Francisco area is severed.

Read the rest of this entry / 繼續閱讀 »

Completely Turn-off Revision in WordPress 2.6+

March 3rd, 2009 Phanix

從 WordPress 2.6 之後,就開始提供了 revision 的功能,雖然很貼心,可是每次的 autosave 都會建立一個 revision 版本,使得資料庫及文章編號成長的速度都變快許多,所以就有許多人想辦法來解決這個問題。

一開始我是參考廖大寫的方法,在 wp-config.php 中加上一行程式碼,或者安裝 Disable RevisionsNo Revisions

但是對我這種還是會去編輯過去已經發表的文章的人來說,這樣還是不夠的,因為如果去編輯「已經發表的文章」,我發現還是會建立一個 revision… 。原本已經打算手動改 wp-includes/post.php 了,幸好尋尋覓覓之後找到了 WP-CMS Post Control 這個 plug-in,一勞永逸把 autosave 跟 revision 通通關掉乾脆多了。

Ctrl-Tab — a great Firefox Add-on

February 7th, 2009 Phanix

If you are a “tab-holic” and usually open a mass of tabs, you will love this cutie. (L)

如果你是個tab(分頁)重度使用者,老是愛開一大堆 tab ,那一定會喜歡這玩意。

Read the rest of this entry / 繼續閱讀 »

Photo on Schmap

January 17th, 2009 Phanix

之前被 invite 的西雅圖照片在 Schmap 的 Seattle Guide (6th ed.) 上頭刊出了。

Read the rest of this entry / 繼續閱讀 »

[Note] Import Data in SQL Server 2005 (匯入資料)

January 9th, 2009 Phanix

Remeber to check the item “Integration Services” (SSIS) in the install process, or you will fail and get a error message like “product level is insufficient for components” while importing data from txt, excel, etc. files into a SQL server 2005 database.

Related: porduct level is insufficient for components