Search

7/12/2007

Google Gadget API for Ajax Developers

Google Gadget API for Ajax Developers

Fortunately, Google provides a nice API for proxying, which also caches the content you're grabbing. The main call is _IG_FetchContent(url, callbackFunc). The callback function is given the contents of URL.

Art with Tables


Ajaxian » Art with Tables - 用 table 作畫,真強者現在有自動化把圖片轉成 table 了Neil Fraser: Software: Image to HTML Converter,下面的 comment 說 spammer 已經用上了,也就是用 table 把字畫出來

JavaScript的null判斷

程式語言復習札記:null 判斷 «« William’s Blog


1. 變數名稱若不存在,typeof(name) 會是 'undefined'。
2. 變數名稱若存在,但未賦予實值,則會是 null。

   
function is_null(obj)
{
if (typeof(obj) == 'undefined' || obj == null)
return true;
return false;
}

寫了一些 test case 幫助釐清

//case 0:
var a;
alert(a==null); // 'true'

//case 1:
alert(typeof a); // 'undefined'
alert(typeof a=='undefined'); // 'true'
alert(a=='undefined'); // nothing happen

//case 2:
var a;
alert(typeof a); // 'undefined'
alert(typeof a=='undefined'); //'true'
alert(a=='undefined'); // 'false'

//case 3:
var a=2;
alert(typeof a); // 'number'
alert(typeof a=='undefined'); 'false'
alert(a=='undefined'); 'false'

7/02/2007

石頭閒語:如何區分動態語言和靜態語言 - 樂多日誌

石頭閒語:如何區分動態語言和靜態語言 - 樂多日誌

If the image of program which including op code and data is static in disk before loaded, we call it 'static language'.

6/13/2007

google scholar

Google 學術搜尋說明

如何將 Google 學術搜尋上某個結果的完整引文新增到我的書目管理程式?

請造訪 [學術搜尋偏好] 網頁並從 [書目管理程式] 區段選取您喜好的引文格式。我們目前支持的格式有RefWorks,RefMan,EndNote,和BibTeX。在您儲存偏好設定後,將引文滙入到管理程式的連結,就會自動出現在Google 學術搜尋的每個搜尋結果上。

6/08/2007

Movable Type 與 WordPress

Movable Type 與 WordPress | Jedi's BLOG | Jedi.org
Mephisto

首先,WP 是用 PHP 這套語言撰寫的,而 PHP 有很多問題──尤其是安全漏洞,更可怕的是 PHP 的安全團隊可以說是有名的懶惰,「處理漏洞的方法往往是挖東牆補西牆」,現在已知的安全漏洞搞不好已經超過一百個了。
當把 WP 生出來的東西餵給 W3C 的驗證程式時,WP 會自己偷偷把 TrackBack RDF 刪掉,讓內容增加通過驗證的機會──這完全就是掩耳盜鈴的伎倆;
然後 WP 就跟所有其他 PHP 做出來的系統一樣,一律都是即時從資料庫撈資料,然後吐動態頁面出來,而不是像 MT 那樣生靜態頁面,這也是我無法接受的一點。
此外還有許多棘手的小問題,像是(我沒記錯的話)新版的 WP 堅持 RSS 不輸出完整內容──就算你修改了 RSS 輸出部分的 PHP 模版,它還是會強迫刪減內容;

6/05/2007

麻豆,model,模特兒

我要來發動 model != 麻豆的正名運動,實在是要 google 麻豆的東西,結果就...
鄉民們寫寫就算了,連 engadget 也這樣寫。