2009年5月11日星期一

Facebook for your Windows Mobile 6 phone

New from Windows Mobile: a Facebook application for your phone! Download the new Facebook application for Windows Mobile and:

* Send messages to any of the people in your Friends list.
* Take pictures and videos on your phone, then upload them right to Facebook.
* Send messages or call people in your Friends list.
* Manage your profile and post anytime, anywhere.

Keep up with the latest news and posts with Facebook on your phone. Now your status updates can be up-to-the moment accounts of what you’re doing. Photos and videos are about as close to live-action as you can get. Show your friends what you’re up to, while you’re out and about.


Download Facebook for Windows Mobile 6

WordPress PlugIn - Facebook Album on WordPress

如果你Hosting空間不太夠,或者Bandwidth不夠多而放棄在WordPress建立相簿的話,
可以試試這個WP PlugIn - FotoBook。

它可以把你在Facebook上所建立的Album,放在你的WordPress上,最好的地方是Image Source直接用返FaceBook的,換句話說你不用擔心流量有多大。
雖然Facebook似乎可以無限量建立相簿和上傳圖片,但暫時依然限制一個相簿只可以存放60張圖。而且Facebook的Simple Image Uploader或者Java Image Uploader都非常唔方便。 所以如果真是大量圖片的話,可能就不太適合了。

FotoBook
http://wordpress.org/extend/plugins/fotobook/
FotoBook photo gallery demo:
http://www.aaronharp.com/photo-gallery/

jQuery + Visual Studio IntelliSense Error 解決方法

今天公司機的Visual Web Developer 2008出現:
"更新 JScript IntelliSense 時發生錯誤"

Documents\Visual Studio 2008\WebSites\{project}\js\jquery-1.3.2.min.js: 
Object doesn't support this property or method @ 18:9345..."

2009510_5.png

雖然我已經有安裝HotFix,但都沒有效。

jQuery + ASP.NET Web Service : data.d or not d?

之前講過,當使用jQuery CallBack ASP.NET Web Service後,假設Data部份,我用"response"做名稱的話,我便可以用each()方法去extract "response"的values.

ASP.NET 2.0的做法:
$.each(Sys.Serialization.JavaScriptSerializer.deserialize(response), function(key, item) {
alert(item.ProductModel + ' / ' + item.Description);
});

以上做法本應是沒有錯誤的,但如果是ASP.NET 3.5的情況下,便會出現錯誤 :
"Sys.ArgumentTypeException: Object of type 'Object' cannot be converted to type 'String'.
Parameter name: data"

即使你使用的不是deserialize()方法,而是eval(),都會出現undefined.
2009510_1.png

這問題搞了我兩天,因為我公司是用ASP.NET 2.0平台,而我家中是3.5平台。程式碼肯定就沒有問題,因為Web Service部份已經設定return成string,而一直都不為意3.5的Web Service會override return的DataType。幸好在Firebug發現了奇妙的"d" :

ASP.NET 2.0, 在Firebug顯示的return values (response) , 在IE8的Develper Tools顯示DataType為String。
2009510_2.png
2009510_3.png

ASP.NET 3.5, 在Firebug顯示的return values (response) , DataType為Object,底下還有"d"的member。
2009510_4.png

所以最後觸發到我用"response.d"去得出string的值。上網找找"d"是什麼東西,原來也有人遇到同樣問題。
A breaking change between versions of ASP.NET AJAX | Encosia
特別要看看這個comment,完美解釋"d"是什麼東西: