Xupeng's blog

圆外之大,心向往之

换用 Mac 一周

电脑不够用了,上周末去苹果家园买了台 MBP 990,这是目前已上市最新款中最低配的 MBP,标配 2G 内存,购机时给升到了 4G,内存有些贵(650元),不过用惯了 4G 内存的本本,不想再倒回到一年多以前,用了几天发现,升级到 4G 内存实在是一个非常明知的选择,并且 4G 内存用 Snow Leopard 也实在不算多。

使用 Nginx 一分钟搭建全功能的Twitter/Twitter search API

现在有很多的 Twitter 代理软件,比如 tweetr 和 [birdnest](http://code.google.com/p/birdnest/, 不过使用反向代理来做的话会更容易,并且得到的是一个 全功能 的 Twitter 代理,这是我在我的 VPS 上使用 Nginx 配置 Twitter 和 Twitter search API 代理的示例配置文件(当然了,这里写出来的域名是假的,哈哈):

修改 OpenLDAP 的 base DN

在 Debain 里安装 OpenLDAP 时,Debian 会提示给 LDAP 的 admin 用户设置一个密码,然后就自动地创建了一个默认的数据库,这个默认的数据库使用了一个默认的 base DN,默认情况下,Debian 会使用本机的域名来作为 base DN,比如如果我的域名是 xupeng.local,那么 Debian 就会使用 dc=xupeng,dc=local 作为我的默认 base DN,但是很不幸,我没有给我的 Debian 测试机设置域名,于是我的 LDAP 默认数据库的 base DN 就成了 dc=nodomain,要想修改 base DN 还真不是直接改了配置文件(/etc/ldap/slapd.conf)就行的,不过 Google 一下很快就找到了解决方法:

Settings for improving poor 3D performance of intel 945GM

I don’t use compiz on my work computer(HP 520 laptop), but I do use compiz on my own laptop which has a NVIDIA 8400GS video card, the main reason I don’t use it on the HP 520 is that: it’s really too slow to run compiz smoothly with the default settings of Xorg and intel driver, but I hear that the 3D performance has been greatly improved in kernel 2.6.29, so I spent some time to get compiz work well with the HP 520(Intel 945GM video card).