文章/回應數目及最後更新日期

以下是第一個自己改的blogspot hack, 不過其主要功能都係來自Abin's Tech Note 只是自己加一點東西讓它可以同時顥示都時間吧 (=.=, 想當年在serendipity 一個小小的plugin 現在竟然要自己去研究點hack 佢, 這個都唔知算係blogspot 給人的無限性還是它太過basic 了)


<script>
 var msgCount = 0;
 var msgLastUpdate = "";
 var commentCount = 0;
 var commentLastUpdate = "";

function changeDisplayFormat(val){
 var tmp = val.substring(0,val.indexOf("T"));

 tmp = tmp.replace("-","年");
 tmp = tmp.replace("-","月");
 tmp += "日";

 return tmp;
}

function calculateMsgAmount(json) {
 msgCount = json.feed.openSearch$totalResults.$t;
 if (msgCount > 0)
  msgLastUpdate = changeDisplayFormat(json.feed.entry[0].updated.$t);
 else
  msgLastUpdate = "-";
}

function calculateCommentAmount(json) {
 commentCount = json.feed.openSearch$totalResults.$t;
 if (commentCount > 0)
  commentLastUpdate = changeDisplayFormat(json.feed.entry[0].updated.$t);
 else
  commentLastUpdate = "-";
}
</script>

<script src="/feeds/posts/default?alt=json-in-script&callback=calculateMsgAmount" type="text/javascript" /></script>
<script src="/feeds/comments/default?alt=json-in-script&callback=calculateCommentAmount" type="text/javascript" /></script>

<!-- Calculate the total amount of feed -->
<p>
 文章總數: <script type="text/javascript">
document.write(msgCount);
</script><br/>
 回應總數: <script type="text/javascript">
document.write(commentCount);
</script><br/>
 最近更新日期: <script type="text/javascript">
document.write(msgLastUpdate);
</script><br/>
 最近回應日期: <script type="text/javascript">
document.write(commentLastUpdate);
</script>
</p>


日期就是從以下的地方得到

json.feed.entry[0].updated.$t


我想其實也許可以在個feed 入面找到更多得意野吧!!


blogspot VS serendipity

自己第一個blog 太約是04-05年間用serendipity 自己起server 寫的吧, 所以大大話話玩serendipity 都有3年的時間, 由於server 的死掉, 之後係試過wordpress 同blogspot 之後,都係選擇了blogspot(也許由於google 的關係吧)

經過幾日去玩blogspot 之下,我覺得都還可以接受吧...雖然好像blogspot 很多東西都沒有, 但其實由於他可以用json, 也可以用javascript 所以反而好多野都可以寫到, 不過可惜的是blogspot 個 admin interface 真係雞左d....佢個html editor 真係呢.....這樣東西真係想改都唔得....想當年我用serendipity 時佢都有好多plugin 去改個html editor , 但係blogspot 就看來冇得咁玩, 至於plugin 方面呢, 網上都有唔少的blogspot hack 可以用, 而且d 步驟也很detail, 跟著做也不難. 咁當然現在我都未能做到好似以前咁玩serendipity 勁改plugin d code, 同自己寫plugin 住...

不過由於blogspot 好多hack 都係要直接改佢個template, 咁所以如果要轉template 其實我覺得都好似幾煩咁@@, 不過也許我還是新手吧.


Google Web Browser - Chrome (2)

哈.....估唔到第二日回到office 個 chrome 就用唔到 ~.~!! 好神奇咁出access denied !!

咁諗住uninstall 再install la...點知uninstall 冇反應@@, 再install 出error!上chrome 個help 佢教你去delete 個folder 再試install....好....咁我delete 個folder 又好正常wor..冇任何access denied (我試過copy 個exe ,佢出access denied)

之後再install 都係fail....個install log 只得一句...
[0904/104649:ERROR:main.cc(167)] error during uncompression: 5

eeerrrr....我諗可能都係因為佢個default install path 的問題!!


Google Web Browser - Chrome

Google 推出的新web browser, 今日終於download 了下來玩左一下.... http://www.google.com/chrome/

安裝時沒有太多的東西要set,而且能夠才IE 戴入bookmark 等setting (不過唔知道如果我default broswer 係firefox  的話佢係咪都識得會從firefox匯入), 但好像在安裝時沒有得讓我設定安裝的位置(還是我miss 了 ==)

安裝後有一個設計得幾靚仔的icon

啟動的速度也算是幾快的....memory 方便就同firefox 差唔多吧....畢竟佢個core 都係同firefox一樣..所以memory 相似也是肯定吧, 個interface 都幾靚仔...開網頁的速度反應也唔錯....不過佢冇自己的proxy setting就有少少唔好....佢又係跟IE的setting, 我諗可能由於係beta的關係,所以佢跟default browser setting 吧!!

不錯的界面^^

這個.....會改的嗎?


最後一天..終於到來....

在最後一天....
Quaresma completes Inter switch

MILAN - Inter have completing the signing of Ricardo Andrade Quaresma Bernardo from Porto, with Gomes Passos Vitor Hugo Pelé going the other way.

The Portuguese winger, 25 years old on 26 September, passed a medical before inking a five-year contract which will run until 30 June 2013.

Accompanied by his agents to Inter's headquarters, Quaresma met Inter vice president Rinaldo Ghelfi, technical director Marco Branca, transfer consultant Gabriele Oriali and vice general manager Stefano Filucchi.

José Mourinho, back in Milan after watching Inter's Champions League opponents Panathinaikos in action at the weekend, was at Palazzo Durini to welcome the new signing.

Quaresma, who will wear the number 77 shirt, will be introduced to the press at the Centro Sportivo Angelo Moratti in Appiano Gentile on Tuesday at 12:30 (press entry at 12:15).