Autofac是一款IOC框架,比较于其他的IOC框架,如Spring.NET,Unity,Castle等等所包含的,它很轻量级性能上也是很高的。于是,今天抽空研究了下它。下载地址:http://code.google.com/p/autofac/downloads/list 1)解压它的压缩包,主 ...
分类:
其他好文 时间:
2016-06-18 01:27:52
阅读次数:
254
迭代器 1. 迭代器概述: 迭代器是访问集合元素的一种方式。迭代器对象从集合的第一个元素开始访问,直到所有的元素被访问完结束。迭代器只能往前不会后退,不过这也没什么,因为人们很少在迭代途中往后退。 1.1 使用迭代器的优点 对于原生支持随机访问的数据结构(如tuple、list),迭代器和经典for ...
分类:
编程语言 时间:
2016-06-18 01:21:55
阅读次数:
271
l建立一个库 ?drag ?git clone [url] ?设置贡献者 –name –email –git config --global user.name –git config --global user.email –git config --list »查看所有配置项 lgit的三个区 ... ...
分类:
其他好文 时间:
2016-06-17 22:28:48
阅读次数:
141
Given a list of words and an integer k, return the top k frequent words in the list. Given for k = 3, return ["code", "lint", "baby"]. for k = 4, retu ...
分类:
其他好文 时间:
2016-06-17 22:25:01
阅读次数:
152
1. 问题描述 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.T ...
分类:
其他好文 时间:
2016-06-17 22:24:22
阅读次数:
127
做java web项目有时候会需要在页面使用嵌套<c:forEach>遍历一个List,但是嵌套很容易忽略一些东西导致出错 后台代码: 这个时候list里面的每一个元素还包含一个wordsList,到页面遍历就需要用到嵌套<c:forEach> JSP页面代码: 在写内层循环的时候很容易犯错,写成 ...
分类:
Web程序 时间:
2016-06-17 19:30:55
阅读次数:
141
在项目中使用到DataTable数据装换成List<T>,暂时不太懂原理,先把代码记下来。等后面再来研究。 ...
分类:
其他好文 时间:
2016-06-17 19:28:33
阅读次数:
154
Hbase Shell 常用命令 1.hbase shell 进入hbase 2.list 查看表 3.创建一个表member(f1为列族) create 'member', 'f1' 4.查看表描述 describe 'member' 5.scan浏览表中数据 scan 'member' 6.删除 ...
分类:
其他好文 时间:
2016-06-17 19:20:13
阅读次数:
114
很多情况下,我们希望限制ftp用户只能在其主目录下(root dir)下活动,不允许他们跳出主目录之外浏览服务器上的其他目录,这时候我就需要使用到chroot_local_user,chroot_list_enable,chroot_list_file这三个选项了。以下是对三个配置项的解释: 本文原 ...
分类:
其他好文 时间:
2016-06-17 19:19:01
阅读次数:
125
grep-v"liuyifei"file.txt##########去掉不想要的内容chkconfig--list|grep3:on|awk‘{print$1}‘##################取出服务在3级别为on的选项,awk默认以空格为分隔符chkconfig--list|grep3:on|cut-d""-f1#################同上-d指明分隔符-f指明第几部分ls-l|grep^d#########..
分类:
其他好文 时间:
2016-06-17 17:47:25
阅读次数:
207