吴祖洋

Results 15 issues of 吴祖洋

The SSDB document says "Max key length" is 200 bytes - http://ssdb.io/docs/limit.html no matter what type of data that key is. But I recently found out that the max key...

Since 1.9.7, SSDB supports slaveof command. Usage: ``` slaveof id host port [auth last_seq last_key] ``` This command will start replication from host:port, which is named `id`, the sync point...

Use HTML table to define a ITable in XML file.

## XML ``` option 1 option 2 option 3 option 4 ``` ## Objective-C: ``` ISelect *sel = (ISelect *)[view getViewById:@"select1"]; [sel onSelectKey:^(NSString *key) { log_debug(@"select %@", key); }]; ```...

CocoaUI will handle screen rotation automatically. CocoaUI 现在会自动处理屏幕翻转, 并刷新界面了.

### 新特性: - 更加符合 CSS 规范(2015-11-13) - 因此, 它有可能和老版本的布局有一些差异, 千万要充分**测试**你的老代码! - 支持格式不合法的 HTML(2015-11-13) - 老版本无法识别格式不合法的 HTML, 例如有标签不正确闭合. 现在, 使用 libxml2, CocoaUI 可以像浏览器一样, 兼容格式不合法的 HTML 了! ### Bug 修复: - 修复...

- 0.2.2.1 (2014-04-09) - New features: - Refactor source code - Bug fixes: - Fix memory leak bug, MUST call evhttp_send_reply_end in connection_closecb(2014-04-12) - 0.2.2 (2014-03-24) - New features: -...

This bug is in class `HttpQuery`, the evkeyvalq is not freed by evhttp_clear_headers() after evhttp_parse_query(). - Affected version: all versions of icomet - Status: **fixed**

基类中为了方便原则, 一般会加载所有可能用到的属性到 Context 中, 但这会导致性能问题, 所以需要 lazyload 机制. 例如, 某些属性只有在子类中被用到时, 才会真正地去查询数据库, 如果子类中不使用这些属性, 则不会发生数据库请求. 原型: ``` php Context::lazyload($name, callable $callback_func); ``` 示例: ``` php class AppController extends Controller { function init($ctx){...