刚刚在学习ViewPager的使用,于是想要观看它的源码。上网找了很多资料大概步骤如下1:
找到libs/android-support-v4.jar,对其Build Path-add toBuild Path2:Java Build
Path-Libraries android-support-v...
分类:
移动开发 时间:
2014-05-27 03:05:40
阅读次数:
291
关于Orchard中的Caching组件已经有一些文章做了介绍,为了系列的完整性会再次对Caching组件进行一次介绍。
缓存的使用 在Orchard看到如下一段代码: 可以看到使用缓存的方法Get而看不到以前常见的缓存方法:Add\Set\Remove,是不是很神奇。
其实也不是那么的神奇,Get...
分类:
其他好文 时间:
2014-05-24 05:09:23
阅读次数:
398
Reverse digits of an integer. Example1: x =
123, return 321 Example2: x = -123, return –321 这道题应该不用详细说了。比较简单。唯一的是要注意特殊值0.
public class Solution { publ...
分类:
其他好文 时间:
2014-05-24 01:39:59
阅读次数:
170
sudo add-apt-repository ppa:webupd8team/javavi
/etc/apt/sources.list.d/webupd8team-java-wheezy.listdeb
http://ppa.launchpad.net/webupd8team/java/ubunt...
分类:
其他好文 时间:
2014-05-23 12:48:58
阅读次数:
1311
1.安装
Linux下直接apt-get install git 或者 apt-get install git-core 即可
2.创建版本库
进入目录 git init 此时会生成一个.git的目录,用来管理你的这个目录下的版本,一般不要动.git目录。
3.添加文件,并提交
git add filename 可以看作将文...
分类:
系统相关 时间:
2014-05-23 08:14:08
阅读次数:
374
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2014-05-23 07:43:23
阅读次数:
246
目的:本文通过分析JDK源码来对比ArrayBlockingQueue 和LinkedBlockingQueue,以便日后灵活使用。
1. 在Java的Concurrent包中,添加了阻塞队列BlockingQueue,用于多线程编程。BlockingQueue的核心方法有:
* boolean add(E e) ,把 e 添加到BlockingQueue里。如果BlockingQueue可以容纳,则返回true,否则抛出异常。
* boolean offer(E e),表示如果可能的话,将 e 加...
分类:
数据库 时间:
2014-05-22 12:19:23
阅读次数:
442
戳我去解题Given two binary strings, return their sum
(also a binary string).For example,a ="11"b
="1"Return"100".分析:高精度加法,只是将10进制的高精度加法 换成了 2进制的高精度加法首先将 两个...
分类:
其他好文 时间:
2014-05-20 11:21:52
阅读次数:
224
戳我去解题Given a non-negative number represented as an
array of digits, plus one to the number.The digits are stored such that the most
significant digit ...
分类:
其他好文 时间:
2014-05-20 10:42:14
阅读次数:
244
add by zhj:
其实作者是想说用Python来做那些Bash实现起来比较麻烦的部分,即将Bash与Python结合使用。英文原文:http://www.linuxjournal.com/content/python-scripts-replacement-bash-utility-scrip...
分类:
编程语言 时间:
2014-05-20 08:53:25
阅读次数:
735