Iterator Pattern,即迭代时模式,按照顺序依次遍历集合内的每一个元素,而不用了解集合的底层实现,属于行为类的设计模式。为了方便理解记忆,我也会称其为遍历模式。 下面是一个迭代器模式的简单案例。 Iterator 定义了迭代接口, 仅 hasNext 和 next 两个方法。Contai ...
分类:
其他好文 时间:
2016-05-21 23:04:05
阅读次数:
228
svn提交新代码的时候,一直报错“Aborting commit: 'XXXXXXXX'remains in conflict” 于是开始搜寻解决办法,网络上大多是单独使用svn时的解决办法,其中前因后果讲的比较详细的是这篇: http://blog.sina.com.cn/s/blog_5d267 ...
分类:
系统相关 时间:
2016-05-20 22:14:07
阅读次数:
264
Aborting commit: 'XXX' remains in conflict 错误 本地也删除了一个文件夹,用svn 的repo-brower 删除了服务器上的对应的文件夹 ,再次commit的时候,出现错误:Aborting commit: 'XXX' remains in conflic ...
分类:
其他好文 时间:
2016-05-20 11:18:27
阅读次数:
112
rpm -ivh package.rpmrpm -ivh --force package_name.rpm # ...conflict with...rpm -ivh --nodeps package_name.rpm # ...is needed by .../ ...is not install ...
分类:
其他好文 时间:
2016-05-19 21:24:30
阅读次数:
300
我们环境用zabbix mpm来监控mysql,不过最近官网已经不叫mpm了,而是叫fpmmm,理由为: fpmmm is the successor of mpm. mpm was renamed to fpmmm because of the naming conflict with the A ...
分类:
其他好文 时间:
2016-04-21 13:46:21
阅读次数:
204
原文地址:http://yeoman.io/codelab/write-app.html 创建一个新的模板来显示一个todo的列表 打开views/main.html 为了从一个干净的模板开始,删除main.html中div中所有的元素 ,并且把class属性“jumbotron”改成"contai ...
分类:
Web程序 时间:
2016-04-21 13:32:52
阅读次数:
221
zabbix mpm监控mysql是一个蛮不错的监控模块,不过最近官网已经不叫mpm了,而是叫fpmmm,理由为: fpmmm is the successor of mpm. mpm was renamed to fpmmm because of the naming conflict with ...
分类:
数据库 时间:
2016-04-21 13:25:44
阅读次数:
303
在多人合作的项目里,git pull origin master执行完之后出现以下问题: Auto-merging .DS_Store CONFLICT (content): Merge conflict in .DS_Store Automatic merge failed; 原因是.DS_Sto ...
分类:
其他好文 时间:
2016-04-18 20:42:07
阅读次数:
440
转自http://www.cnblogs.com/mengdd/p/3585038.html 当两条分支对同一个文件的同一个文本块进行了不同的修改,并试图合并时,Git不能自动合并的,称之为冲突(conflict)。解决冲突需要人工处理。 比如当前在master分支,想把dev分支merge过来,结 ...
分类:
其他好文 时间:
2016-04-11 20:45:20
阅读次数:
133
3天来净折腾这俩东西了,总结一下(很多都是同事给出的解释,先不保证正确性): 1.docker 里的images 和 container images 类似系统盘,container类似用系统盘装起来的系统,所以一个images下可以有多个container. 2.docker 建立一个contai ...
分类:
系统相关 时间:
2016-04-07 18:20:10
阅读次数:
189