摘要: svn更新项目时出现如下问题:update D:/manage -r HEAD --force svn: Working copy 'D:\manage' locked; try performing 'cleanup'产生这种情况大多是因为上次svn命令执行失败且被锁定了。如果cleanup没有效果的话只好手动删除锁定文件。cd 到svn项目目录下,然后执行如下命令,del lock /q/s,就把锁删掉了。 阅读全文
posted @ 2014-01-21 17:15 天宝 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 使用FilenameFilter过滤掉chapter开头的文件。 1 public class contentFilter implements FilenameFilter { 2 public boolean isContent(String file) { 3 if (file.startsWith("chapter")){ 4 return false; 5 }else{ 6 return true; 7 } 8 } 9 public boolean accept(File dir, String name) {10 ... 阅读全文
posted @ 2013-12-09 13:48 天宝 阅读(153) 评论(0) 推荐(0) 编辑
摘要: document.getElementById('updatelog').attachEvent('onpropertychange', function(o) { if (o.propertyName == 'value') changeFlag1();});function changeFlag1(){ if(versionFlag){ versionFlag=false; }}onpropertychange事件在用键盘每改变一下文本框的值或用js改变其值便会触发一下,而onchange只有在用键盘改变其值,然后在失去焦点(onblur)后 阅读全文
posted @ 2013-12-05 15:01 天宝 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 测试 阅读全文
posted @ 2013-12-05 14:48 天宝 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1 public void batchInsertAlbum(final List list) { 2 this.execute(new SqlMapClientCallback() { 3 public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException { 4 executor.startBatch(); 5 for (int i = 0; i imgList) { 2 this.e... 阅读全文
posted @ 2013-12-05 14:27 天宝 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 1 Map map = new LinkedHashMap(); 2 map.put("shuoji", "手机图赏"); 3 map.put("pingban", "平板电脑"); 4 map.put("bijiben", "笔记本电脑"); 5 map.put("pingguo", "苹果"); 6 map.put("xiangji", "数码相机"); 7 map.put("cha 阅读全文
posted @ 2013-12-05 14:19 天宝 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-11 18:38 天宝 阅读(325) 评论(0) 推荐(0) 编辑
摘要: $!{model.digest.replaceAll("\n", "").replaceAll(" ", "")} 阅读全文
posted @ 2013-11-11 18:32 天宝 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: 今天往Oracle 中导入数据时,有一个列导入的数据应该时‘2011-10-11’ 的格式,结果导入的数据为 ‘2011/10/11’格式的,5000多条记录要一条条改基本不可能。后来想到了replace这个函数,具体用法如下:update表1 t set t.列1=replace((select 列1from表1 a where a.主键列=t.主键列) , '/' , '-' ) 解决了我们问题。replace 函数用法如下:replace('将要更改的字符串','被替换掉的字符串','替换字符串')例1:se 阅读全文
posted @ 2013-11-11 18:24 天宝 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 执行update (select T1.operatingsystemdigit a1,T2.oper b1 from cms_software T1,tmp_sid_oper T2 where T1.ID=T2.sID)set a1=b1时出错,后来给tmp_sid_oper表添加了主键,问题解决。做数据仓库经常遇到的问题,大家先看下面的例子表test1create table test1(id number,gender varchar2(10));insert into test1 values(1,'男');insert into test1 values(2,' 阅读全文
posted @ 2013-11-11 18:07 天宝 阅读(612) 评论(0) 推荐(0) 编辑