转载:http://blog.csdn.net/yuxlong2010 作为Android 3.0之后引入的新的对象,ActionBar可以说是一个方便快捷的导航神器。它可以作为活动的标题,突出活动的一些关键操作(如“搜索”、“创建”、“共享”等)、作为菜单的灵活使用,还可以实现类似TabW...
分类:
其他好文 时间:
2014-07-09 00:05:13
阅读次数:
292
Git 的BUG小结
Git 在push的时候出现了:
fatal: The remote end hung up unexpectedly
在网上找了很多 发现出现了以下错误提示也可能是相同的问题:
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everythi...
分类:
其他好文 时间:
2014-07-08 21:10:53
阅读次数:
180
题目
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
解答
首先要注意空链表不成环;不能开额外的空间,即空间复杂度是o(1),可采用“快慢指针”查检查链表是否含有环,如果在快的指针能够追上慢的指针,则有环,否...
分类:
其他好文 时间:
2014-07-08 19:17:47
阅读次数:
160
The Lost House
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 2140
Accepted: 886
Description
One day a snail climbed up to a big tree and finally came to th...
分类:
其他好文 时间:
2014-07-08 18:08:00
阅读次数:
267
Code Style包括两个方面:代码清理,代码规范化。代码清理可以参考:
http://www.ibm.com/developerworks/cn/opensource/os-eclipse-clean/
代码清理过程:
进入eclipse菜单: Window > Preferences > Java > Code Style > Clean Up,点击界面上方的Import,在弹出框...
分类:
系统相关 时间:
2014-07-08 17:09:15
阅读次数:
525
Elevator
Time Limit: 1000ms Memory limit: 32768K 有疑问?点这里^_^
题目描述
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers de...
分类:
其他好文 时间:
2014-07-06 10:52:11
阅读次数:
188
searchview,我们常用在actionbar中做搜索。但是,随着定制化的深入,系统自带的不管是从颜色,图标,还是光标等,都不能与app的整体风格统一,所以必须加以修改。那么怎么才能正确的修改searchview呢?这里使用反射,可以很好滴达到目的。...
分类:
其他好文 时间:
2014-07-06 10:21:02
阅读次数:
169
There are a bunch of different methods you can use to back up your MongoDB data, but if you want to avoid downtime and/or potential
performance degradation, the most common advice seems to be that y...
分类:
数据库 时间:
2014-07-06 09:26:04
阅读次数:
437
The Game
Description
One morning, you wake up and think: "I am such a good programmer. Why not make some money?'' So you decide to write a computer game.
The game takes place on a rectangular...
分类:
其他好文 时间:
2014-07-06 09:02:34
阅读次数:
287
一直在找svn回滚的方法,这个还是很实用的,屡试不爽阿
经常由于坑爹的需求,功能要切回到之前的某一个版本。有两种方法可以实现:
方法1: 用svn merge
1) 先 svn up,保证更新到最新的版本,如20;
2) 然后用 svn log ,查看历史修改,找出要恢复的版本,如10 。如果想要更详细的了解情况,可以使用svn diff -r 10:20 [文件或目录];
3...
分类:
其他好文 时间:
2014-07-05 22:50:24
阅读次数:
351