跳到主要內容

發表文章

[Android] 安裝Android SDK 發生 Java SDK not found

這個問題,看似簡單,實際卻很難,讓我搞了一個小時,解法如下: 當安裝Android SDK出現 Java SDK not found 時,如下圖 解決方法: 1. 按一下Back 2. 再按一下 Next 完成. 解決蠢問題了!! 資料來源: http://stackoverflow.com/questions/4382178/android-sdk-installation-doesnt-find-jdk

[新聞] Firefox 4 正式推出

期盼已久的 Firefox  終於推出第四代了,這麼多種瀏覽器對於Firefox種是有一種更特殊的情感,回憶當年,M$稱霸的年代,終於出現了一個小小地曙光,而他就是Firefox (火狐),苦撐到現在也佔了快1x%的市占率,以open source的產品來說,算是極為成功的產品。 Firefox 官方網站: http://www.mozilla.com/ 下載位置: Firefox 4繁體中文 附加元件: 附加元件繁體中文 更好得消息是,目前所知 Firebug , Web developer , JSON view , IE tab 直接可以啟用於Firefox 4,不需要等待改版的過渡期。

Facebook API on PHP 錯誤訊息 - certificate verify failed

Facebook php版本的API 會產生莫名其妙的錯誤,就算開啟了SSL也無法處理,出現異常訊息如下: Facebook php-SDK usually make some strange message, it still does not work well even I used SSL module. Fatal error: Uncaught CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed thrown in C:\AppServ\www\demo\facebook\src\facebook.php on line 615 經過查詢之後,處理方式如下,加入標示區域的兩行程式: After google, you can add two line of codes, sign it on yellow cross line area. $opts[CURLOPT_SSL_VERIFYPEER] = false; $opts[CURLOPT_SSL_VERIFYHOST] = 2; 尋找關鍵字『 URLOPT_POSTFIELDS 』為加入範圍如下圖: Search keyword 『 URLOPT_POSTFIELDS 』 and it will like this picture. 如此可以解決掉煩人的問題。 So this problem is solved. 參考資料 (Ref): http://blog.lamb-mei.com/2010/06/facebook-php-sdk-fatal-error.html

[HTML] history pushState, 如何改變瀏覽器網址狀態,但是不更換頁面

如何改變瀏覽器網址狀態,但是不更換頁面 Change browser's URL bar without to change web page. 以前要改變狀態都只能使用HASH,如下, The old method, you can use HASH.  For example, http://localhost/index.php#head. 現在你可以任意改變網址的狀態。 Now you can change URL as you want to. http://localhost/index/head 如果你的瀏覽器支援HTML5,可以使用History,根據 whatwg 官方說明。 Now if your browser support HTML5 , you can use this,  The History interface. According whatwg spec , window . history . pushState(data, title [, url ] ) Pushes the given data onto the session history, with the given title, and, if provided, the given URL. 此方法會將將資料,網址標題,網址瀏覽歷程填入session history中。 如此你可以使用javascript改變網址狀態同時不更新網頁,網址可以更貼近語意,還蠻酷的。 Of course, you can change URL with javascript and it does not change page. And URL will be semantic. It sounds cool. Ref: http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#history-0 http://developer.yahoo.com/yui/3/history/

[CSS] CSS Hack for IE 6, 7, 8

IE6 ( _ ) _width: 500px; IE7  ( * !important ) *width: 500px !important; IE7, Firefox ( !important ) width: 500px !important; IE6, 7 ( * ) *width: 500px; IE6, 7, 8 ( \9 ) width: 500px \9; IE8 ( \0 ) width: 500px \0; 引用別人的分析圖: 資料來源: http://sofree.cc/ie6-ie7-ie8-firefox-css-hack/ http://www.css88.com/archives/1681

[YUI3] YUI判斷瀏覽器版本

引用資料: 來源 if ( Y. UA . gecko > 0 ) { } // e.g. Firefox if ( Y. UA . ie > 0 ) { } // Microsoft Internet Explorer   // Or leverage boolean coercion -- 0 evaluates as false if ( Y. UA . opera ) { } // Opera if ( Y. UA . webkit ) { } // Safari, Webkit 輸出結果會是版號,結果為 0 表示目前並不是使用此瀏覽器。 例如目前使用 Chrome 瀏覽器,詳細資料如下: ie: 0 opera: 0 gecko: 0 webkit: 534.13 chrome: 9.0597 mobile: null air: 0 ipad: 0 iphone: 0 ipod: 0 ios: null android: 0 webos: 0 caja: undefined secure: false os: windows 變數資料可以查詢: YUI 3: YUI Global Object

[教學] Facebook API PHP SDK 基本篇. Facebook API PHP SDK Basic introduce.

快速教學如何使用php建構自己的APP Facebook 中建立application 取得Keys Facebook developer application page. 進入頁面後如下圖所表示,根據提示快速建立Application. 建立好app,可以進入到內部將Domain name, email, ...等資料補齊。 TIP:Domain name一定要設定好,不然會導致無法使用。