XML-RPC VS. ATOM

今天看了wordpress的官方論壇,裡面說,有越來越多的作業系統、手機可以寫Blog,
所以要統一標準,而這個標準是ATOM而不是xml-rpc….

The Atom API is a new REST-based API:

http://atomenabled.org/

We should support all of the Atom API we can, because a new generation of clients, such as Nokia cell phones, OS X, and desktop clients have exclusive support for it and not XML-RPC.

哇咧….我還把xml-rpc的spec給k了一遍~
現在才說不是標準~
哇咧咧…..

不過看了一下~
支援Atom的BSP(blog service provider)還不少~
我想~如果我自己把這樣的API寫出來~
以後我自己更新眾多Blog時也會方便很多
那個apache的header rewrite也要研究一下
應該也蠻好玩的~

phpMyAdmin 中文亂碼解法

Edit phpMyAdmin-2.7.0-pl2/libraries/select_lang.lib.php:

在這一段裡:
// MySQL charsets map
$mysql_charset_map = array(

將 'utf-8' => 'utf8', 改成: 'utf-8' => 'latin1',

將: 'big5' => 'big5', 改成: 'big5' => 'latin1',

將:
'zhtw-big5' => array('zh[-_](tw|hk)|chinese traditional',
'chinese_traditional-big5', 'zh-TW'),

改成:
'zhtw-big5-utf-8' => array('zh[-_](tw|hk)|chinese traditional',
'chinese_traditional-big5', 'zh-TW'),

以上修改法取自 http://phpbb-tw.net/phpbb/viewtopic.php?p=212048&

進入 phpMyAdmin 的首頁,在 Language 的選項中選:”Chinese traditional (zhtw-big5-utf-8)”.

若要 import 含有 big5 的 sql 檔,在”文字編碼檔案:”中選”latin1″,不要選 “big5”.

Yahoo RSS 資料訂閱

Yahoo 提供了自定RSS來源的功能
但是~跟白痴造句法有異曲同工之效

假設我定閱了一個字~叫「正常」好了~
當文章中有~他長的很正,常常會吸引別人的目光

結果…這篇文章 就被列在RSS中~
真叫人哭笑不得~
自然語法~果然是一門很深的學問

弄了一天~RSS機器人弄完囉!
得到幾個結論
1.crul遇到網址前的空白~不會自行處理~會開啟失敗
2.mysql遇到資料前的空白~會造成操作失敗
3.yahoo的rss真的是一點誠意也沒有~就給個標題和連結
4.yahoo真的是一家有錢的公司~兩年前的新聞連同圖片一樣存在
5.google的快訊~真的~很遜~
6.Yahoo新聞~呈現的格式~相當的工整
7.Gmail真是個好用的東西~

The XML Element of Yahoo Search API.

I worte a php function to split the xml return of yahoo search api.
It will return a arry, and it’s easy use for me.
8 elements a set.The elements as below.

1.Title
2.Summary
3.Click URL(will auto redirect)
4.The site URL
5.Modify Date time(unit is second since 1970/1/1)
6.Format
7.Cache URL
8.Size

搜尋出來的結果~和在台灣搜尋出來的結果不同
不知道 在這個搜尋結果 和台灣的結果有什麼明顯的差異
另外…修改日期是秒數~拿來操作的要作轉換
但是 我不知道 實用性在哪
檔案格式[any (default), html, msword, pdf, ppt, rss, txt, xls]
可能是網頁~也有可能是doc文字檔
參數蠻多可以玩的~
可以參考原廠文件~在這裡

有問題的地方~查詢區域~沒有台灣~有泰國
代碼在這~真不知道台灣Yahoo在幹嘛

沒誠意的Google API


Running the sample code

A full working sample client, containing all the sample code shown in this document, is available in the Zend Framework SVN repository. The sample is located at /framework/trunk/demos/Zend/Gdata/Blogger.php. The sample contains all the functions explained in this document. It can be run only from the command line:

php Blogger.php -- --user=[email_address] --pass=[password]

Before running this sample or developing your own code using the the Zend Framework, you may need to set the include_path and load the appropriate classes. The include path can be set either using a php.ini setting or using the set_include_path method. This code requests access to the core Zend_Gdata class, the Zend_Gdata_Query class, and the authentication class Zend_Gdata_ClientLogin.

require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_Query');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
什麼~只能在指令列上執行API
我的老天爺啊~現在是什麼時代了
不是在講雲端技術嗎~
又不是所有的人都有Linux環境
我想在XAMPP中測這個API卻怎麼也跑不起來

真是無解~原本還想說自己來寫個API來貼文章
目前看來....只好回去用Zoundry慢慢貼囉!
 

好的hosting平台對SEO工作的影響

說了N次了~AnHosting的平台真的很不錯
第一年是貴了點之外
第二年之後~價格差不多

話說我有另外兩個站分另hosting在Startlogic及IPower
SEO中~關鍵字自然越多越好
我就把腦筋動到標題上去了~

wordpress的標題可以導入在固定連接中
結果如下圖
可以有效的將文章名稱變成網址-好的SEO平台

如果在IPower或是StartLogic啟動相同的Function
好笑了~Internal 500錯誤 Orz 一個相哭的感覺
無奈加上無力
500錯誤
所以說~以後~再要申請Hosting空間~
AnHosting是我不二的選擇
(速度快~Function多~Support好)

google apps的gmail圖示可以自訂

各位知道google apps的gmail可以自定嗎?
我自定了2個網站
但是~出來的效果卻是不一樣
我想google apps在網站設定上 仍然有一些怪地方
飛來筆創意工作室
https://www.google.com/a/aflypen.com 沒有logo 但是入口和進去之後的內容沒有差異
http://mail.google.com/a/aflypen.com 有logo 登入的地方顏色也不相同
台北女人徵信
https://www.google.com/a/twfbi.com 沒有logo 但是入口和進去之後的內容沒有差異
http://email.twfbi.com/有logo 登入的地方顏色也不相同

其實設定很簡單~
在控制主頁–>網域設定–>外觀
上傳一個不含google字樣的logo上去
就可以囉~

have fun