这里有两种方法帮你删除在一个ArrayList里重复的elements。下面的程序片段里,removeDuplicate方法不维护顺序 (Order),而removeDuplicateWithOrder方法会保持顺序 (Order),但会有些性能上的牺牲。The removeDuplicate Me...
分类:
其他好文 时间:
2014-09-28 17:06:33
阅读次数:
214
原文:Sublime Text 全程指引 by Lucida作者:Lucida 微博:@peng_gong
豆瓣:@figure9
博客园:@figure9 原文链接:http://zh.lucida.me/blog/sublime-text-complete-guide/博客园链接:http://...
分类:
其他好文 时间:
2014-09-28 14:37:52
阅读次数:
377
针对一些运营商的锁网需求,MTK平台已经对其有很好的支持。绝大多数的海外需求可以通过直接配置相关文件来完成。这里简单描述一下配置方法,不做原理分析。相关数据结构分析:Modem中与SML锁网配置相关的数据结构有:Sml_context_struct:SML上下文,cat:SML种类,目前MTK平台共...
分类:
其他好文 时间:
2014-09-28 14:09:42
阅读次数:
261
一、水平居中
1、内联元素居中:相对父级块级元素居中对齐
1: .center-children {
2: text-align: center;
3: }
2、块级元素居中:设置margin-left和margin-right为auto让它居中(同时还要设置width,否则它就会承满整个容器,无法看出居中效果)
1: .center-me {
2: margin: 0 auto;
3: }
如果有很多块级元素需...
分类:
Web程序 时间:
2014-09-27 23:35:30
阅读次数:
293
UVA - 1400"Ray, Pass me the dishes!"(线段树)
题目链接
题目大意:给你N个数字,要求你动态的给出L到R之间,X>= L && Y
解题思路:结点保存三个附加线段,max_sub, max_suffix, max_prefix.对于每次查询最大的连续和要不出现在左子树的max_sub, 要不就是右子树的max_sub, 要不就是左子树的max_...
分类:
其他好文 时间:
2014-09-27 10:57:49
阅读次数:
262
Make some notes~ http://www.haiyun.me/archives/centos-freeradius-daloradius-ros.html参照上文进行配置首先是http服务,mysql服务的安装,然后是php,其中要加上php-pear(php扩展包)httpd服务会....
分类:
其他好文 时间:
2014-09-26 23:38:48
阅读次数:
334
老赵的博客:http://blog.zhaojie.me/2008/02/using-translate-method-and-modify-command-text-before-query-in-linq-to-sql.html http://www.csharpwin.com/do...
分类:
数据库 时间:
2014-09-26 19:53:28
阅读次数:
326
Uva 1400 "Ray, Pass me the dishes!" (线段树 + 区间查询)题意: 给顶一个长度为n的整数序列D,我们的任务是对m的询问做出回答对于询问(a,b),需要找到两个下标x和y,是的 a #include #include using namespace std;typ...
分类:
其他好文 时间:
2014-09-25 23:21:57
阅读次数:
292
转自: http://blog.sina.com.cn/s/blog_72f6e45701014l6t.html有些时候,应用需要在开机时就自动运行,例如某个自动从网上更新内容的后台service。怎样实现开机自动运行的应用?在撰写本文时,联想到高焕堂先生以“Don't call me, I'll ...
分类:
移动开发 时间:
2014-09-25 20:19:57
阅读次数:
196
Estimation:Almost every is spent on ergod the text and build the dictionary.Gains:I have never used C# before. So This is a precious experience for me...
分类:
其他好文 时间:
2014-09-25 20:18:17
阅读次数:
148