Problem
The Latin alphabet contains 26 characters and telephones only have ten digits on the keypad. We would like to make it easier to write a message to your friend using a sequence of keypresses t...
分类:
其他好文 时间:
2014-10-12 12:54:58
阅读次数:
163
Suppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. We want to make changes with these coins for a given amount of money.
For example, if we have 11 cents, then we...
分类:
其他好文 时间:
2014-10-12 03:01:27
阅读次数:
238
/**
* A particular {@link AsyncQueryHandler} allowing clients to be notified via a
* listener. The {@link NotifyingAsyncQueryHandler} also make sure no strong
* reference is kept on the given liste...
分类:
移动开发 时间:
2014-10-11 18:06:15
阅读次数:
236
1. android自带的ccache版本(2.4版本)过低,是无法支持以上的功能的,需要使用新版ccache。
2. 最新的ccache请到http://ccache.samba.org/download.html下载
3. 下载解压之后,在linux底下进入ccache目录,运行:
./configure
./make
./strip --strip-all ccache...
分类:
移动开发 时间:
2014-10-11 15:23:45
阅读次数:
174
编译 hadoop 版本的命令如下,可以直接使用 make-distribution.sh 脚本来编译,命令如下:
./make-distribution-noclean.sh --tgz -Pyarn -Phive -Phadoop-2.4 -Dhadoop.version=2.4.0
然后就在当前目前会生成一个 tgz 的文件。
如果是编译 cdh 版本的话,参考命令如下:
./mak...
分类:
其他好文 时间:
2014-10-11 15:19:35
阅读次数:
204
一、前言 本篇内容以理解MyBatis的基本用法和快速在项目中实践为目的,遵循Make it work,better and excellent原则。技术栈为MyBatis3.2.7+log4j1.2.17+sqlite3+jdk1.7。二、示例 ...
分类:
其他好文 时间:
2014-10-11 12:57:35
阅读次数:
360
func?dst(in?[]float64)?[]float64?{
????out?:=?make([]float64,?len(in))
????nr?:=?len(in)
????for?i?:=?0;?i?<?nr;?i++?{
????????for?j?:=?0;?j?<?nr;?j++?...
分类:
编程语言 时间:
2014-10-10 22:28:54
阅读次数:
227
对于GO的数组和切片的初步了解, 切边是数组的一个指针,切片的初始化有三种:一种是通过make,即 slice?:=?make([]int,5,10) 另一种是通过:=指向一个已经存在的数组。即 slice?:=?[]int?{1,2,3,4,5,6} 切片...
分类:
编程语言 时间:
2014-10-10 21:40:44
阅读次数:
194
大道至简Any intelligent fool can make things bigger and more complex. It takes a touch of genius – and a lot of courage – to move in the opposite directio...
分类:
其他好文 时间:
2014-10-10 21:34:04
阅读次数:
174
make常用内嵌函数1、函数调用 $(function arguments) #$引用的结果就是函数生成的结果 2、Makefile下常用的函数 1)$(wildcard PATTERN) #匹配当前目录下的文件 例如:src=$(wildcard *.c) #匹配当前目录下所有的.c文件 2)$(patsubst PATTERN,REPLACEMENT,TEXT) #模式替换函数 例如:$...
分类:
其他好文 时间:
2014-10-10 20:47:24
阅读次数:
266