04 2010 档案

摘要:1.psql -h localhost -d p2pvpn_server -U openfire 连接某个指定的数据库2.COPY statsconnection (statsnodes, relayconns, directconns, "timestamp", "year", "month", "day", "hour", "minute") FROM '/home/gaoyibo/backup.sql' 命令会自动将文件中的data部分insert.比如 阅读全文
posted @ 2010-04-30 16:36 highriver 阅读(890) 评论(0) 推荐(0)
摘要:英语不行,有货倒不出的感觉.推荐钟道隆的逆向英语法,重新拾起英语. 阅读全文
posted @ 2010-04-27 16:57 highriver 阅读(145) 评论(0) 推荐(0)
摘要:ContinuationFilter+ContinuationAPI可以与Tomcat容器一起工作.也就是要让Tomcat这样的Servlet2.5container(据说tomcat7会支持servlet3.0.目前的都是2.5)支持使用ContinuationAPI编程的Servlet,需要在web.xml中加入<filter> <filter-name>continu... 阅读全文
posted @ 2010-04-20 16:24 highriver 阅读(600) 评论(0) 推荐(0)
摘要:由于Struts2的Action都继承自ActionSupport,客户端的每一次请求都会调用该类的execute方法并返回一个代表JSP页面的String,这是一种有求立即响应的模式.而对于Continuation,如果资源比较耗时,没有准备好,则将当前request suspend到一个Queue中,并且不返回response(什么时候返回:在资源就绪时,异步通知,比如通过httpclient... 阅读全文
posted @ 2010-04-19 14:56 highriver 阅读(557) 评论(0) 推荐(0)