APIAPI(Application Programming Interface,应用编程接口)其实就是操作系统留给应用程序的一个调用接口,应用程序通过调用操作系统的 API 而使操作系统去执行应用程序的命令(动作)。其实早在DOS时代就有 API 的概念,只不过那个时候的 API 是以中断调用的形...
一、Framework 简介(Introduction to Framework Programming Guide)Mac OS X 扩展了 framework 的功能,让我们能够利用它来共享代码和资源。通过 framework 我们可以共享所有形式的资源,如动态共享库,nib 文件,图像字符资源...
分类:
移动开发 时间:
2014-08-19 16:03:24
阅读次数:
265
Introduction This tutorial will help you to understand about Java OOP’S concepts with examples. Let’s discuss about what are the features of Object Oriented Programming. Writing object-oriented p...
分类:
编程语言 时间:
2014-08-18 23:42:53
阅读次数:
755
參考:W.N. Venables, D.M. Smith and the R DCT: Introduction to R -- Notes on R: A Programming Environment for Data Analysis andGraphics,2003. http://baye...
分类:
其他好文 时间:
2014-08-18 20:08:02
阅读次数:
560
UVA 11107 - Life Forms
题目链接
题意:给定一些字符串,求最长并且在所有字符串的连续子串中出现超过一半次数的字符串,输出这些字符串
思路:把这些字符串接起来,拼接部分用一个不会出现的不重复的字符,然后求这个长串的后缀数组,利用height数组去进行二分求解,二分的判断里面如果有一个连续height段超过了一半次数,那么就是可行的,如果所有连续段都没有出现超过...
分类:
其他好文 时间:
2014-08-18 18:44:22
阅读次数:
273
《programming computer vision with python 》中denoise 算法有误,从网上好了可用的代码贴上,以便以后使用。书中错误的代码:def denoise(im,U_init,tolerance=0.1,tau=0.125,tv_weight=100): m...
分类:
编程语言 时间:
2014-08-18 14:22:32
阅读次数:
429
The registration of callback functions is very common in JavaScript web programming, for example to attach user interface event handlers (such as oncl...
分类:
编程语言 时间:
2014-08-18 02:48:43
阅读次数:
465
UVA 11107 - Life Forms
题目链接
题意:给定一个字符串,找出重复出现超过m次的字串的最大开始下标
思路:hash大法,需要点人品,然后二分答案,每次利用hash值去找出最大下标即可
代码:
#include
#include
#include
using namespace std;
typedef unsigned long long ...
分类:
其他好文 时间:
2014-08-17 17:04:52
阅读次数:
650
一、概念
AOP(Aspect-Oriented Programming,面向切面的编程),它是可以通过预编译方式和运行期动态代理实现在不修改源代码的情况下给程序动态统一添加功能的一种技术。它是一种新的方法论,它是对传统OOP编程的一种补充。
二、Aop原理
1.面向对象编程模型
OOP(面向对象编程)...
分类:
其他好文 时间:
2014-08-16 21:09:11
阅读次数:
230
到http://nginx.org/en/download.html下载最新版本的Nginx并安装.
一 下载并安装pcre库ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
tar zxvf pcre-8.30.tar.gz
./configure make make install
二 安装opens...
分类:
其他好文 时间:
2014-08-16 17:10:50
阅读次数:
412