Monthly Archives: August 2010

cheater: yet another rule-driven tool to generate random databases

cheater 是我前一阵子开发的规则驱动的随机数据库生成器,是量子开发、测试工具链的组成部分。 cheater 已在量子店铺统计的前端开发中得到了广泛的应用,为前端开发提供大量的指定模式的伪造数据,从而大大减轻了对后端和真实数据的依赖,同时也可以得到比较理想的数据覆盖率。 cheater 工具的源码仓库位于下面这个位置:     http://github.com/agentzh/cheater/ 相比我们 QA 部门的 xdata,Ruby 世界的 faker 和 Perl 世界的 Data::Faker 等同类型的工具,cheater 具有以下优点: 能自动处理表间的关联和外键约束,因此是真正的“数据库实例生成器” 定义了一种类 SQL 的小语言来表达期望生成的数据模型 支持强大的 {a, b, c} 离散集合,数值/时间/日期区间记法 a..b,Perl 正则表达式模式 /regex/,常量值 ‘string’, 1.32 等方式来表达数据字段的值域 能直接生成 JSON 或者 SQL insert … Continue reading

Posted in Uncategorized | Leave a comment

A patch for libdrizzle to fix issues on Mac OS X

libdrizzle is an excellent piece of software but we’ve noticed that it does not compile on Mac OS X due to its use of the new bool type in C:   /usr/local/include/libdrizzle/result.h:69: error: syntax error before ‘drizzle_result_eof’ The following small … Continue reading

Posted in Uncategorized | Leave a comment

ngx_chunkin v0.20: fixed some memory bugs and added support for chunked PUT

I’ve just pushed a new release (v0.20) for my ngx_chunkin module:   http://github.com/agentzh/chunkin-nginx-module/tarball/v0.20 Here’s the changes included in this version:   fixed a bug that may read incomplete chunked body. thanks Gong Kaihui (龚开晖).   fixed various memory issues in … Continue reading

Posted in Uncategorized | Leave a comment