草根也讲品味
高山仰止,虽不能至,然心向往之
-
No Comments
cakephp部署在nginx子目录下的rewrite
把app改名成相应的子目录名,两次rewritelocation /subdictionary/ { index index.php; if (-e $request_filename) { break; } if (!-e $request_filename) { rewrite ^/subdictionary/(.+)$ /subdictionary/webroot/$1 last; break; } } location /subdictionary/webroot/ { index index.php; if (-e $request_filename) { break; } if (!-e $request_filename) { rewrite ^/subdictionary/webroot/(.+)$ /subdictionary/webroot/index.php?url=$1 last; break; } } -
No Comments
可牛影像在线版http://www.keniu.com/online/online.html是一个可以在线编译图片的web程序
前台是flash,后台web服务器用的是 php, 后台图片处理程序未知
利用firebug跟踪,发现这个前台总共有三个swf (都在http://www.keniu.com/online)
CoSkin.swf 一些皮肤背景,简单素材,无代码
Wrapper.swf 加载器,包含一个进度条动画,就加载ConewEditor.swf这个文件
ConewEditor.swf 图片编辑操作的代码都在这个swf里(未细看,等研究完发文章) -
No Comments
金融危机是电子商务的机遇,所以09年是淘宝高速发展的一年。当一个网站从百万、千万记录的数据规模,增长到亿、十亿、几十亿记录的数据规 模时,是一个量变到质变的过程,单纯的硬件升级已经达到了瓶颈,而需要在整体结构上做文章。09年一年,大部分时间都在数据的扩展性上努力。
对于一个电子商务网站来讲,订单是最核心的数据,也是增长最快的数据。对于数据的扩展性来讲,最传统也是最简单有效的模式是数据库的分库分 表。当订单和分库分表相遇,会有什么火花迸发出来?09年初碰撞了很久,结果产生的火花很小。最大的问题在于数据分割的规则,无规则的水平分割肯定会带来 数据合并的开销,而按照业务规则拆分,会因为买家和卖家的查询需求不同而导致数据不能分割,唯一可行的火花是把订单双份保存,买家卖家各自一份,只是成本 比较高,而且对数据同步的要求非常高。
-
No Comments
我在医院工作了40年,绝大部分人病死是很痛苦的。我来的目的很明确,我受科学委托,受命于卫生部的指示,希望每个人都重视保健工作。 联合国提出个口号:“千万不要死于无知”。很多人死于无知,这很冤枉呀。我们很多人很糊涂,对保健一无所知,这样我们的工作也做不好,因为我们天天处在不健康、次健康状态。我见过很多人,宋美龄我在长岛见过,他们都活得很长,都是100多岁。他们能活,我们为什么不能活。很奇怪,我们很多人是凑合着活,这思想危害极大。 大家知道怎么保健吧?其实国际上在维多利亚开会有个宣言,这个宣言有三个里程碑,第一个平衡饮食,第二个有氧运动,第三个心理状态。这三个里程碑国际上都知道,而我们很多人不清楚。这三个标题不会改变,而内容会随时改变。
-
No Comments
NAME
tcrmgr – the command line utility of the remote database API
//tcrmgr是管理远程数据库(TT)的很有用的命名行工具DESCRIPTION
The command [tcrmgr] is a utility for test and debugging of the remote database API and its applications. [host] specifies the host name of the server. [key] specifies the key of a record. [value] specifies the value of a record. [params] specifies the tuning parameters. [dpath] specifies the destination file. [func] specifies the name of the function. [args] specifies the arguments of the function. [file] specifies the input file. [upath] specifies the update log directory. [mhost] specifies the host name of the replication master. [url] specifies the target URL.
//[host]专指服务器的名字, [key]专指某条记录的key值, [value]专指某条记录的value值,
[params]专指传递的参数, [dpath]专指目标文件, [func]专指函数名字, [args]专指函数的参数表,
[file]专指输入文件, [upath]专指更新日志的目录, [mhost]专指同步主机名,[url]专指目标URL Read the rest of this entry » -
No Comments
MySQL-Memcached or NOSQL Tokyo Tyrant – part 1
http://www.mysqlperformanceblog.com/2009/10/15/mysql-memcached-or-nosql-tokyo-tyrant-part-1/
MySQL-Memcached or NOSQL Tokyo Tyrant – part 2
http://www.mysqlperformanceblog.com/2009/10/16/mysql_memcached_tyrant_part2/
MySQL-Memcached or NOSQL Tokyo Tyrant – part 3
http://www.mysqlperformanceblog.com/2009/10/19/mysql_memcached_tyrant_part3/


近期评论