2011-11-21 00:42svn总出现二进制相关的烦人事在使用svn add 时提示: A
(bin) templates/translate/screen/selectTransLang.vm 请看官方文档的解释:
当你第一次添加或者导入文件到Subversion中时,Subversion会...
分类:
其他好文 时间:
2014-05-26 23:40:32
阅读次数:
434
算法:1.
对root的左子树做处理,让左子树的根节点作为,根节点的右子树,并让右子树作为左子树根节点的右子树的子树2. 递归遍历右子树public void
flatten(TreeNode root) { if(root==null){ return; ...
分类:
其他好文 时间:
2014-05-26 23:39:49
阅读次数:
253
原题地址:https://oj.leetcode.com/problems/copy-list-with-random-pointer/题意:A
linked list is given such that each node contains an additional random pointe...
分类:
编程语言 时间:
2014-05-26 23:16:12
阅读次数:
368
route命令显示或者修改本地IP路由表。语法:[plain]route [-CFvnee]
route [-v] [-A family] add [-net|-host] target [netmask Nm] [gw Gw] [metric N]
[mss M] [windowW] [ir...
分类:
系统相关 时间:
2014-05-26 22:53:47
阅读次数:
520
摘自:http://blog.csdn.net/myjlvzlp/article/details/84343761、批量添加元素session.insert(String
string,Object o)public void batchInsertStudent(){ List ls = n...
分类:
其他好文 时间:
2014-05-26 22:43:20
阅读次数:
239
导出excel时,我以前使用的是POI,如下:public class Test { private
void exportEXCEL(List d502s) { Field[] fields =
d502s.get(0).getClass().getDeclaredFields...
分类:
其他好文 时间:
2014-05-26 22:30:03
阅读次数:
383
介绍一个多选list
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th...
分类:
其他好文 时间:
2014-05-23 00:52:57
阅读次数:
455
介绍自定一个的Adapter和list的监听
注意
1....
分类:
其他好文 时间:
2014-05-23 00:51:45
阅读次数:
355
介绍通过方法
@Override
public boolean areAllItemsEnabled() {
return false;
}
@Override
public boolean isEnabled(int position) {
return !mStrings[position].startsWith("-");
}
设置list的可以选和不可选注意有...
分类:
其他好文 时间:
2014-05-22 23:08:09
阅读次数:
388
很和谐精悍的一行快排代码quicksort1。
import random
def quicksort( list ):
if list == []:
return []
else:
cut = list[0]
lesser = quicksort( [ x for x in list[1:] if x < cut ]...
分类:
其他好文 时间:
2014-05-22 22:33:19
阅读次数:
402