方案一,在tomcat的workers.properties里面配置相关条件worker.tomcat.lbfactor=50worker.tomcat.cachesize=10worker.tomcat.cache_timeout=600worker.tomcat.socket_keepalive...
分类:
数据库 时间:
2014-05-09 15:51:54
阅读次数:
636
准备:
确保hadoop2.2.0集群正常运行
1.eclipse中建立java工程,导入hadoop2.2.0相关jar包
2.在src根目录下拷入log4j.properties,通过log4j查看详细日志
log4j.rootLogger=debug, stdout, R
log4j.appender.stdout=org.apache....
戳我去解题Write an efficient algorithm that searches for
a value in anmxnmatrix. This matrix has the following properties:Integers in
each row are sorted f...
分类:
其他好文 时间:
2014-05-09 08:27:24
阅读次数:
241
classpath资源路径加载:
velocity.properties文件配置
file.resource.loader.class =
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
input.encoding = UTF-8
output.encoding = UTF-8Servlet代...
分类:
移动开发 时间:
2014-05-09 06:14:52
阅读次数:
387
public class Factory {private static Properties
props = new Properties();static{InputStream ips =
Factory.class.getClassLoader().getResourceAsStream("...
分类:
其他好文 时间:
2014-05-09 03:55:41
阅读次数:
243
Java web 项目读取src或者tomcat下class目录下的xml文件或者properties文件...
分类:
编程语言 时间:
2014-05-09 01:22:09
阅读次数:
298
1.COPY配置文件:cphive-default.xml.templatehive-site.xmlcphive-env.sh.templatehive-env.shcphive-exec-log4j.properties.templatehive-exec-log4j.propertiescphive-log4j.properties.templatehive-log4j.properties2.配置HADOOP主目录:vimhive-env.shHADOOP_HOME=/usr/a..
分类:
其他好文 时间:
2014-05-09 00:51:29
阅读次数:
282
##__sleep() 和 __wakeup()当序列化(serialize)对象时,PHP
将试图在序列动作之前调用该对象的成员函数 __sleep() 。__sleep()
方法常用于提交未提交的数据,或类似的清理操作。同时,如果有一些很大的对象,但不需要全部保存,这个功能就很好用。 类似的,当...
分类:
Web程序 时间:
2014-05-08 23:57:36
阅读次数:
528
参考文档:http://blog.csdn.net/xiaodan007/article/details/7096718function sz_T2S(_t)
local szRet = "{" function doT2S(_i, _v) if "number" == t...
分类:
其他好文 时间:
2014-05-08 22:47:29
阅读次数:
347
对象归档:
概念:
对象归档是指将对象写入文件保存在硬盘,当再次重新打开程序时,可以还原这些对象。也称:对象序列化、对象持久化。
数据持久性的方式(其实就是3类)
1,NSKeyedArchiver——对象归档
2,NSUserDefaults 3,属性列表
4,SQLite数据库 5,Core Data数据库
归档方式:
对Foundation库中对象进行归...
分类:
移动开发 时间:
2014-05-08 17:25:23
阅读次数:
394