JSF Lifecycle
The life cycle handles both kinds of requests: initial requests and postbacks. When a user makes an initial request for a page, he or she is requ...
Eclipse GC log
为了查看Eclipse GC log,需要在eclipse.ini 中加入 1234-XX:+PrintGCTimeStamps-XX:+PrintGCDetails-verbose:gc-Xloggc:gc.log 在Eclipse安装目录查看gc.log 19.768: [...
WPS "The URI length is greater than the Windows limit of 259 characters"
http://publib.boulder.ibm.com/infocenter/imshelp1/v3r0/index.jsp?topic=/com.ibm.wspac6.doc/satsinst.html Shorten the temp directory used by WebSp...
网站设计
磁盘IO问题,解决方法之一是cache比如在应用服务器和数据库之间加入memcached.磁盘IO主要原因之一是大量文件读写操作,比如图片,音频,视频的读写。不管是直接从文件还是从数据库,都会造成大量的IO Web Server前(如Apache Server)加入squid(Revers...
Javascript 笔记
正则表达式 1234//删除开头和结尾所有的空格 function trim(str) { return str.replace(/(^\s+|\s+$)/g,''); } 1234567注: ^ 开头 $ 结尾 \s 空格匹配 + 多次出...
RESTful 笔记
REST(Representational State Transfer)是 Roy Fielding 提出的一个描述互联系统架构风格的名词。 Another way to say REST is in HTTP, any request a client can make involv...
Date in Java
以下两个是同一个时间: UTC, Coordinated Universal Time (UTC), use time zone of GMT GMT, Greenwich Mean Time 标准时间 18:00 GMT = 18:00+00:00 在用java...
AJAX学习笔记
在用IFrame做Ajax时,需要考虑的有: 先定义隐藏的IFrame 1<iframe name="myIframe" src="blank.html" style="width:0px;height:0px" fram...
Database replication and partitioning
Database replication and partition<! –more–> ##Separate/dismantle inventoryPartition is applied to partition orthogonal business domains...
rownum解析
Oracle rownum ** 摘自:http://tenn.iteye.com/blog/99339,仅供自学 ** 在Oracle中,要按特定条件查询前N条记录,用个rownum就搞定了。 1select * from emp where rownum <= 5 而且书上也告诫...