#include "stdafx.h"#include#include#include#include #include#includeextern "C"{#include "lua.h"#include "lauxlib.h"#include "lualib.h"}lua_State *L...
分类:
其他好文 时间:
2014-09-05 15:42:11
阅读次数:
176
/**
* A listener for all the change in the preference file. It is used to maintain the global state of the application.
*/
private class PreferenceListener implements SharedPreference...
分类:
其他好文 时间:
2014-09-05 11:25:31
阅读次数:
219
观察者模式(Observer Pattern)在项目中经常会被使用到,也被叫做发布订阅模式,也就是说 观察者 = 发布者 + 订阅者
GoF的《设计模式》中对观察者是这样描述的:
Define a one-to-many dependency between objects so that when one object changes state, all its depende...
分类:
其他好文 时间:
2014-09-05 01:00:30
阅读次数:
373
均匀分布的随机数或矩阵
语法
Y = rand(n)
Y = rand(m,n)
Y = rand([m n])
Y = rand(m,n,p,...)
Y = rand([m n p...])
Y = rand(size(A))
rand
s = rand('state')
描述
rand函数产生由在(0, 1)之间均匀分布的随机数组成的数组。
Y = rand(n) 返...
分类:
其他好文 时间:
2014-09-04 23:41:48
阅读次数:
243
1 存储流程定义相关的部署信息数据库1.1 jbpm4_deployment字段名字段含义类型允许空值键DBID_流程模板标识Bigint(20)主键NAME_流程模板名称longtext√TIMESTAMP_时间戳Bigint(20)√STATE_可用状态Varchar(255)√1.2 jbpm...
分类:
数据库 时间:
2014-09-04 16:52:39
阅读次数:
311
subclipse是eclipse的一个SVN插件。但是我在使用的时候不断的报出下面的错误:the applet is attempting to access the "exists" state attributes.......大概的错误就是这样吧。上网查了一下,在java的启动参数里加入下面...
分类:
系统相关 时间:
2014-09-04 16:36:49
阅读次数:
189
一、exit()函数函数声明:void exit(int state);exit()函数用于在程序运行的过程中随时结束程序,exit的参数state是返回给操作系统,返回0表示程序正常结束,非0表示程序非正常结束。main函数结束时也会隐式地调用exit函数。exit函数运行时首先会执行由atexi...
分类:
其他好文 时间:
2014-09-04 14:38:29
阅读次数:
198
In this article I'll discuss the most fundamental technique in concurrent programming known as memory barriers, or fences, that make
the memory state within a processor visible to other processors.
...
分类:
其他好文 时间:
2014-09-02 12:29:24
阅读次数:
266
形象例子: 跟MM交往时,一定要注意她的状态哦,在不同的状态时她的行为会有不同,比如你约她今天晚上去看电影,对你没兴趣的MM就会说“有事情啦”,对你不讨厌但还没喜欢上的MM就会说“好啊,不过可以带上我同事么?”,已经喜欢上你的MM 就会说“几点钟?看完电影再去泡吧怎么样?”,当然你看电影过程中表现....
分类:
其他好文 时间:
2014-09-01 21:09:03
阅读次数:
186
在腾讯服务器上部署的时候出现的莫名其妙的错误,我在配置文件上都写master, node1,但是运行mapredure的时候的时候老是出现 Job job_1409546978133_0001 failed with state FAILED due to: Application applicat...
分类:
其他好文 时间:
2014-09-01 19:15:13
阅读次数:
145