在struts2-core-2.1.8.1.jar的org.apache.struts2包下面的default.properties资源文件里可以查到常用的常量配置,这些不用刻意的记住:忘记的时候可以查询。总结长用的的常量配置如下面:
...
分类:
其他好文 时间:
2014-05-20 01:57:44
阅读次数:
355
1.recreating default ads instance ./[root@dhcppc2
~]# dsadm delete /usr/local/dsee7/var/dcc/ads #delete default
instance[root@dhcppc2 ~]# dsccsetup...
分类:
其他好文 时间:
2014-05-20 01:50:56
阅读次数:
421
You need to override onSaveInstanceState(Bundle
savedInstanceState) and write the application state values you want to change to
the Bundle parameter ...
分类:
移动开发 时间:
2014-05-17 14:49:13
阅读次数:
292
1.Scatter/Gather I/Oa single system call to
read or write data between single data stream and multiple buffersThis type of
I/O is so named because the...
分类:
系统相关 时间:
2014-05-17 14:17:55
阅读次数:
571
【题目】
原文:
1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one...
分类:
其他好文 时间:
2014-05-16 01:50:08
阅读次数:
311
HADOOP HA配置
hadoop2.x的ha配置,此文档中描述有hdfs与yarn的ha配置。
此文档的假定条件是zk已经安装并配置完成,其实也没什么安装的。
hdfs ha配置
首先,先配置core-site.xml配置文件:
在老版本中使用mr1时,还可能使用fs.default.name来进行配置
fs.defaultFS
此处配置的mycluster目前还没...
分类:
其他好文 时间:
2014-05-15 23:40:10
阅读次数:
705
输出数字不同: write()输出数字转换为字符,println原样输出。输出null不同:
write()输出引用类型的时候调用的toString转换为String数据,因此如果对象为null那么直接抛出空指针异常。Println直接输出null。
分类:
其他好文 时间:
2014-05-15 22:28:14
阅读次数:
287
/// /// 信息写入记事本 /// /// /// public static void
Write(string text, string path) { try { DateTime newDat...
分类:
其他好文 时间:
2014-05-15 17:51:53
阅读次数:
262
连接管理器: 接受请求 创建线程 认证用户 建立安全连接并发控制: mbox:MDA C/S:
100 10分钟: 多版本并发控制: MVCC锁: 读锁:共享锁 写锁:独占锁 LOCK TABLES tb_name {READ|WRITE}; UNLOCK
TABLES...
分类:
数据库 时间:
2014-05-15 17:29:22
阅读次数:
423
今天在做Android电子词典的时候,数据库打不开,报错为:Could not open
the database in read/write mode。后来才发现犯了一个低级错误,没有设置权限。添加权限即可:希望大家不要犯这种白痴错误。
分类:
数据库 时间:
2014-05-15 17:22:42
阅读次数:
386