蓝天,小湖,湖水中一方小筑

Playing MongoDB with Rails

This post will try to implement a web app used for recording mobile phone of cheaters. This idea is came from cooler@linuxfb, and I have used this for a presentation about GAE on 2009, and here is the slide.

NOTE: Code still under developing, the Git repo is shown at the end of article.

Tunning Rails with DTrace

This post will talk about how to do performance test of Rails program with DTrace tool. The testing will be separated into Ruby program part and database operations part. Please make sure all the tested program has provided probes to the DTrace.

NOTICE: The testing data is still under collection, this post has only DTrace script now, I will update this post after gathering enough testing data.

Ruby learning log

Just studied Ruby with the tutorial on website rubylearning.com in the past week, and here are some knowledge gained those days.

List all CVS tags

最近在折腾一个CVS的库,需要把它里面所有的tags给列出来,在网上找了一个Perl脚本,以前一直是直接用的,那天看了看发现原来不是很难,于是写了一个Python的,为的是可以当成函数嵌到我的脚本中。

Simple Life Game in HTML5

想着好久没写blog了,刚好在看计算中的上帝时,里面有提到生命游戏,所以就顺手写了一个,顺便凑篇文章。

Remove packages installed by setup.py install

从源码装了个Python程序的包结果发现系统的仓库中有,于是想先把源码装的包删除了再去装仓库中的,可惜setup.py没有uninstall参数,于是改问G 神,在stackoverflow上找到了[折衷的办法](http://stackoverflow.com/questions/1550226/python- setup-py-uninstall):先用install把包重新装一遍,装的时候记录下文件的改动,然后去把它们统统删除,唔,好囧的办法。 $ python setup.py install --record foo.txt $ cat foo.txt | xargs rm -f 没找到怎么让它输出到stdout,只好用临时文件弄了。