Amazon S3 & Google Storage 速度测试

July 4th, 2010

网络接入为中国大陆电信2M ADSL 。

下载速度:

E:\tmp>curl -o 16m.s3 http://s3.domain.com/16m
% Total % Received % Xferd Average Dload Speed Upload Time Total Time Spent Time Left Current Speed
100 16.0M 100 16.0M 0 0 167k 0 0:01:37 0:01:37 –:–:– 227k

E:\tmp>curl -o 16m.gs http://gs.domain.com/16m
% Total % Received % Xferd Average Dload Speed Upload Time Total Time Spent Time Left Current Speed
100 16.0M 100 16.0M 0 0 223k 0 0:01:13 0:01:13 –:–:– 230k

加粗为平均下载速度 Google Storage 还是比较有优势的。

USA is the hope of human beings.

July 3rd, 2010

Metro翻唱 黄家驹 《海阔天空》

7.1 香港公投游行
7.6 《独唱团》将出版

有些人说我崇洋媚外,我说:我只是向往我认为美好的东西。

去一次美国馆,向往美国精神。

inline image with base64 & css

June 29th, 2010

今天看到一个有意思的CSS加载背景图的方法:
围观链接先:https://mail.google.com/tasks/android?source=mig&gl=us&hl=en&pli=1

.someimage {
background-image:url(data:image/png;base64,{BASE64 STRING}");
}

@厦门

June 26th, 2010

如题。

还有一件事情就是,昨天Google Storage的邀请码发来了:)

保存MSN聊天记录到邮箱

May 31st, 2010

打算折腾个小东西,保存MSN的聊天记录到Email里,就像Gtalk那样。
嗯。Mark一下。

[zz] Using Redis as a Xapian backend

May 25th, 2010

Xapian 是什么 : Open source search engine library written in C++, with bindings to allow use from other languages as well.
Redis 是什么 :A persistent key-value database with built-in net interface written in ANSI-C for Posix systems

Using Redis as a Xapian backend

take is easy

May 25th, 2010

深呼吸~~~呼~~~

我的一些学习原则

May 23rd, 2010

前天看了李笑来老师的《未知的必然、必要和必需》,自己也深有感触。

我自己的一个学习原则就是:

当你对目前的一个东西还无法理解的时候,那么就记下好了,也不用刻意去找到其答案。
这些不理解的东西似乎也不会太影响事情的进程。
随着自己的经验、知识的积累,有些疑问就会自然而解,这个情况在我自己的身上应验了很多次。

MySQL Explain’s type

May 21st, 2010

Explain的type显示的是访问类型,是较为重要的一个指标,结果值从好到坏依次是:

system > const > eq_ref > ref > fulltext > ref_or_null > index_merge > unique_subquery > index_subquery > range > index > ALL

REF :
http://hi.baidu.com/thinkinginlamp/blog/item/eef0cd119239db17b8127b6f.html

隐藏HTTP头中的X-Powered-By

May 13th, 2010

php.ini 设置 expose_php = Off

http://php.net/expose-php