MyLife

记录一些关于我的点点滴滴。

GoogleWaveInvite

Google Wave邀请

今天收到了Google Wave的邀请种子,截个图纪念一下。

GoogleWaveInvite

现在Google Wave是白菜价了,没人要了。

[译]在Ubuntu或者Debian中安装PCRE库( Perl 5 Compatible Regular Expression Library )

原文地址:

Ubuntu / Debian Install PCRE Library ( Perl 5 Compatible Regular Expression Library )

http://www.cyberciti.biz/faq/debian-ubuntu-linux-install-libpcre3-dev/

I need to compile few application and I need Perl 5 Compatible Regular Expression Library (PCRE). Under CentOS I can use a package called pcre-devel, but Debian do not have the same. How do I install pcre-devel under Debian / Ubuntu Linux?

我需要编译一些应用程序,同时也需要Perl 5 兼容正则表达式库(PCRE)。在CentOs下,我可以使用一个叫pcre-devel,但是Debian可就不一样了。我怎样在Debian/Ubuntu  Linux下安装pcre-devel呢?

Perl-compatible regular expression library. PCRE has its own native API, but a set of “wrapper” functions that are based on the POSIX API are also supplied in the library libpcreposix. Note that this just provides a POSIX calling interface to PCRE: the regular expressions themselves still follow Perl syntax and semantics. The header file for the POSIX-style functions is called pcreposix.h. To install PCRE, type thy following command:

Perl兼容正则表达式库(PCRE)有自己原生API,但是这一系列封装函是基于POSIX API,而POSIX API也支持libpcreposix库。这样只要提供一个POSIX的调用接口给PCRE后,正则表达式本身仍遵循Perl的语法和语义。POSIX-style的头文件是pcreposix.h,所以,安装PCRE,需要运行以下命令。

sudo apt-get update
sudo apt-get install libpcre3 libpcre3-dev

你可能还需要安装
sudo apt-get install openssl libssl-dev

开始写Nginx的Module

首先访问Nginx下载

wget http://sysoev.ru/nginx/nginx-0.8.22.tar.gz

待续~~

参考资料:
**http://nutrun.com/weblog/hello-world-nginx-module/

http://blog.zhuzhaoyuan.com/2009/08/creating-a-hello-world-nginx-module/

http://hi.baidu.com/kissdev/blog/item/f47622de19efa75fccbf1a90.html

http://www.tech-q.cn/thread-85-1-1.html

http://www.evanmiller.org/nginx-modules-guide.html

蜘蛛猛于虎

唉,这个蜘蛛太暴力了。

124.115.4.198
124.115.0.164
124.115.0.25
124.115.0.156
124.115.0.110
124.115.0.16
124.115.0.157
124.115.4.191
124.115.4.197
124.115.0.168
124.115.0.138
124.115.0.111
124.115.0.101
124.115.0.21
124.115.0.27
124.115.0.23
124.115.0.103
124.115.4.193
124.115.0.105
124.115.0.109
124.115.0.22
124.115.0.166
124.115.0.104
124.115.0.107
124.115.0.141
124.115.4.194
124.115.0.165
124.115.4.195
124.115.0.163
124.115.4.190
124.115.0.158
124.115.0.169
124.115.0.20
124.115.0.171
124.115.4.204
124.115.0.170
124.115.0.108
124.115.4.203
124.115.4.202
124.115.0.19
124.115.0.167
124.115.0.159
124.115.0.26
124.115.0.18
124.115.0.139
124.115.0.160
124.115.0.106
124.115.4.196
124.115.0.17
124.115.0.14
124.115.4.200
124.115.4.201
124.115.0.140
124.115.4.205
124.115.0.24
124.115.4.199
124.115.0.100
124.115.4.192
124.115.0.15
124.115.0.142
124.115.0.28
124.115.0.162
124.115.0.161
124.115.0.102

论中国查封Twitter的蝴蝶效应及对全球经济的影响

欢迎光临~~

The Road Not Taken

李开复的日志里,引用了这样的几句诗,

也许多少年后在某个地方,

我将轻声叹息把往事回顾,

一片树林里分出两条路,

而我选了人迹更少的一条,

从此决定了我一生的道路。

这是人生的一个感悟,就像选择了计算机科学与技术这条道路一样,茫然后的执着,一直不懈努力。

下面是侯捷(候俊杰) 先生的一个译本

美国诗人  罗勃.佛洛斯特:没有走的路
Robert Frost’s known poem: The Road Not Taken

黄树林里分叉两条路,TWO roads diverged in a yellow wood,
只可惜我不能都踏行。And sorry I could not travel both

我,单独的旅人,伫立良久,And be one traveler, long I stood
极目眺望一条路的尽头,And looked down one as far as I could
看它隐没在丛林深处。To where it bent in the undergrowth;

於是我选择了另一条路,Then took the other, as just as fair,
一样平直,也许更值得,And having perhaps the better claim,
因为青草茵茵,还未被踏过,Because it was grassy and wanted wear;
若有过往人踪,Had worn them really about the same,
路的状况会相差无几。Though as for that the passing there

那天早晨,两条路都覆盖在枯叶下,And both that morning equally lay
没有践踏的污痕:In leaves no step had trodden black.
啊,原先那条路留给另一天吧!Oh, I kept the first for another day!
明知一条路会引出另一条路,Yet knowing how way leads on to way,
我怀疑我是否会回到原处。I doubted if I should ever come back

在许多许多年以後,在某处,I shall be telling this with a sigh
我会轻轻叹息说:Somewhere ages and ages hence:
黄树林里分叉两条路,而我,Two roads diverged in a wood, and I–
我选择了较少人迹的一条,I took the one less traveled by,
使得一切多麽地不同。And that has made all the difference

Useing Memcached

翻译:Useing Memcached
如何轻而易举的扩充你的网站

作者:Josef Finel
原文地址:http://books.pragprog.com/titles/memcd/reorder

1 介绍

2 Memcached是什么?

过去的一周时间里,我们都在讨论的核心是一个分布式内存缓存系统。实际上,我们把经常使用的LiveJournal对象都放到一大堆服务器的内存里。这些对象可以是用户信息,登录信息,颜色,样式,日记条目,意见,网站文字,等任何东西……

今天,Memcached被许多大型站点使用,包括Flickr,Slashdot,Wikipedia和Facebook,这只是一小部分。但是Memcached到底是什么?一个站点怎样从Memcached中受益呢?以下,我们将继续探索这些问题

Twitter的IP更新了

在你的
C:\WINDOWS\system32\drivers\etc\hosts

168.143.161.20 twitter.com
168.143.161.20 www.twitter.com
128.121.146.229 assets0.twitter.com
128.121.146.229 assets1.twitter.com
128.121.146.101 static.twitter.com
128.121.146.229 assets2.twitter.com
128.121.146.229 assets3.twitter.com
65.74.185.41 twitter.zendesk.com
65.74.185.41 help.twitter.com
168.143.162.107 search.twitter.com