tornado有许多关于如何处理路由列表的源码分析的博客,关键在与调用了Application.__call__函数,然后遍历路由列表,取出对应的处理类,由于处理类都是RequestHandler类,调用的是父类的_excute()进行响应处理,我们要了解的是__call__函数和什么时候调用了__call__函数def__cal..
分类:
其他好文 时间:
2014-08-01 07:04:12
阅读次数:
391
当使用gradle时,添加.so和jar包遇到报错:java.lang.UnsatisfiedLinkError: Couldn't load faceppapi: findLibrary returned null解决办法是将build.gradle写成如下形式:apply plugin: 'an...
分类:
移动开发 时间:
2014-07-31 19:43:57
阅读次数:
227
什么事都不做的函数就是一个空函数:def kong(): passprint dir(kong())即便是一个空函数,他也会有如下属性:['__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__....
分类:
编程语言 时间:
2014-07-31 19:34:17
阅读次数:
307
自从php5.3,越来越多的人会遇到“Assigning the return value of new by reference is deprecated in xxxx”这样的提示,尤其是在国外产品中(例如wordpress、joolma),很多人的解决办法很简单:把php版本换回就版本就ok...
分类:
其他好文 时间:
2014-07-31 12:57:16
阅读次数:
191
在sqlplus中这两种方法都可以使用:exec pro_name(参数1..);call pro_name(参数1..);区别:1. 但是exec是sqlplus命令,只能在sqlplus中使用;call为SQL命令,没有限制.2. 存储过程没有参数时,exec可以直接跟过程名(可以省略()),但...
分类:
数据库 时间:
2014-07-30 20:07:44
阅读次数:
295
一、概念
IoC是Inversion of Control的缩写,有的翻译成“控制反转”,还有翻译为“控制反向”或者“控制倒置”。
二、什么是IoC
IoC就是IoC,不是什么技术,与GoF一样,是一种设计模式。在Spring中控制反转是Spring框架的核心,其原理是基于OO设计原则的:Don't call us,we'll call
you(...
分类:
编程语言 时间:
2014-07-30 01:08:42
阅读次数:
282
最近为支付宝忙破了脑袋,以下是我终于成功后的经验以供参考 首先你得先去支付宝官网上下一个code,以供参考. 在配置时尽量不要改动文件,把需要的那几个文件(app_code,imageslog)直接放在你的项目里面,然后在建同步回传页面(call_back_url),异步回传页面(notify_.....
分类:
移动开发 时间:
2014-07-30 00:39:52
阅读次数:
291
call_user_func_array (callable $callback, array $param_arr)
参数1: 调用一个回调函数,
参数2: 数组参数是回调函数的参数.
call_user_func(callable $callback, $mixed $parameter, $mixed $...)
参数1:调用的回调函数
参数2-n:回调函数的参数.
...
分类:
Web程序 时间:
2014-07-29 22:10:02
阅读次数:
270
For a positive integer N , the digit-sum of N is defined as the sum of N itself and its digits.
When M is the digitsum of N , we call N a generator of M .
For example, the digit-sum of 245 is 256 (...
分类:
其他好文 时间:
2014-07-29 21:53:12
阅读次数:
284
function isString(variable) { return Object.prototype.toString.call(variable).indexOf('String') != -1;}function isNumeric(variable) { return !is...
分类:
其他好文 时间:
2014-07-29 21:33:52
阅读次数:
245