通过对这些属性的配置,可以改变Struts 2 框架的一些默认行为,这些配置可以在struts.xml文件中完成,也可以在struts.properties文件中完成。1. 指定Web应用的默认编码集,相当于调用 HttpServletRequest的setCharacterEncoding方法。2...
分类:
其他好文 时间:
2015-01-20 13:33:03
阅读次数:
162
无论如何使用,都能感觉到使用boost.asio实现服务器,不仅是一件非常轻松的事,而且代码很漂亮,逻辑也相当清晰,这点上很不同于ACE。使用io_service作为处理工作的work pool,可以看到,就是通过io_service.post投递一个Handler到io_service的队列...
分类:
其他好文 时间:
2015-01-20 13:29:41
阅读次数:
389
今天收到邮件,mysql3308,同步出错,日志如下:修改配置文件my.cnf,添加:innodb_buffer_pool_size=16M重启mysql,解决,---------参考:Mysql解决Thetotalnumberoflocksexceedsthelocktablesize错误在操作mysql数据库表时出现以下错误。网上google搜索相关问题,发现一位外国牛..
分类:
数据库 时间:
2015-01-19 16:02:27
阅读次数:
200
php-fpm status详解pool – fpm池子名称,大多数为wwwprocess manager – 进程管理方式,值:static, dynamic or ondemand. dynamicstart time – 启动日期,如果reload了php-fpm,时间会更新start sin...
分类:
Web程序 时间:
2015-01-19 12:45:13
阅读次数:
150
1.sql解析的过程oracle首先将SQL文本转化为ASCII字符,然后根据hash函数计算其对应的hash值(hash_value)。根据计算出的hash值到library cache中找到对应的bucket,然后比较bucket里是否存在该SQL语句。如果不存在,获得shared pool l...
分类:
数据库 时间:
2015-01-19 12:43:45
阅读次数:
222
1.安装ntpdate#yum install ntpdate2.#cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime#ntpdate us.pool.ntp.org3.如果用了cacti,记得修改cacti所在主机的php的timezone#vi...
分类:
其他好文 时间:
2015-01-19 12:25:33
阅读次数:
193
题目:
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant s...
分类:
编程语言 时间:
2015-01-19 09:26:40
阅读次数:
232
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant...
分类:
其他好文 时间:
2015-01-18 15:47:14
阅读次数:
126
首先安装NTP:1 yum install -y ntpdate然后执行NTP命令:1 ntpdate time.windows.com或者:1 ntpdate cn.pool.ntp.org想要偷懒,让机器自动校准时间的话,只需要将命令加入到cron就可以了。1 crontab -e2 * */1...
分类:
系统相关 时间:
2015-01-18 12:59:06
阅读次数:
330
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-01-17 16:28:38
阅读次数:
188