刚刚在学习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
1、 递归算法:quicksort.cpp#include using namespace
std;void Swap(int a[],int i,int j){ int temp=a[i]; a[i] = a[j]; a[j] = temp;}int
Partition(int a[],int l...
分类:
其他好文 时间:
2014-05-27 02:29:55
阅读次数:
274
源码://HeapSort.cpp#include using namespace
std;//about heap://the last leaf node is a[n-1]//the last non-leaf node is
a[n/2-1];// a[i]// ...
分类:
其他好文 时间:
2014-05-27 02:21:23
阅读次数:
240
算法源码://BubbleSort.cpp#include using namespace
std;void BubbleSort(int a[], int n){ for(int i=n-1;i>0;i--) { for(int
j=0;ja[j+1]) { int tmp = a[j...
分类:
其他好文 时间:
2014-05-27 02:07:07
阅读次数:
223
BlogEngine.Net
是个功能点很全面的开源博客系统,容易安装和实现定制,开放接口支持TrackBack,可以定义主题配置数据源等等。可谓五脏俱全,这里先记录一下它基于Membership的权限管理,文章有点长了,花了不少时间。这只是对知识的一个梳理,并不是要推荐用这种方式做权限管理,分享一...
分类:
Web程序 时间:
2014-05-27 02:04:17
阅读次数:
461
目录前言现象源码分析HandlerMethodArgumentResolver与HandlerMethodReturnValueHandler接口介绍HandlerMethodArgumentResolver与HandlerMethodReturnValueHandler接口的具体应用常用Handl...
分类:
编程语言 时间:
2014-05-19 18:02:59
阅读次数:
531
1. 服务器是定制过的,不知对应的centos版本;2.
PHP是自己编译的,而且服务器上没有保留对应版本的源代码,通过/pathto/php -v 找出php版本号,然后wget去下载对应的php源码包;3.
加压代码,到源码的ext/openssl目录下,使用phpize的方式进行编译环境的配置...
分类:
Web程序 时间:
2014-05-19 14:53:41
阅读次数:
301
### AngularJS简介 angularjs
是google出品的一款MVVM前端框架,包含一个精简的类jquery库,创新的开发了以指令的方式来组件化前端开发,可以去它的官网看看,请戳这里
再贴上一个本文源码分析对应的angularjs源码合并版本1.2.4,精简版的,除掉了所有的注释, 请...
分类:
Web程序 时间:
2014-05-19 13:24:59
阅读次数:
550
前言
前段时间帮别人调试程序,在windows下能正常显示的输出,在linux下输出的全是乱码?后来发现windows默认的文件编码而是GB2312,而linux下的文件默认是utf-8,所以导致了这个问题。另一个问题就是用source
insight看源码的问题,对windows下的文本文件都能....
分类:
其他好文 时间:
2014-05-19 13:18:39
阅读次数:
196
FileChannel是flume一个非常重要的channel组件,非常常用。这个channel非常复杂,涉及的文件更多涉及三个包:org.apache.flume.channel.file、org.apache.flume.channel.file.encryption(加密)、org.apa.....
分类:
其他好文 时间:
2014-05-19 13:02:06
阅读次数:
285