题目如下:
Tree
You are to determine the value of the leaf node in a given binary treethat is the terminal node of a path of least value from the root of thebinary tree to any le...
分类:
其他好文 时间:
2014-06-05 05:27:11
阅读次数:
268
今天在centOS下装mysql时出现了一个错误:
解决方案就是如图所示kill 4734 kill 4839
最后再执行[root@localhost src]# service mysql start就可以了...
分类:
数据库 时间:
2014-06-05 02:03:02
阅读次数:
409
第一次使用session,需要:
$this->load->library('session');
的同时,还需要修改配置文件:config.php 找到 $config['encryption_key'] = ‘’
将$config['encryption_key'] 的内容随便设置,就可以用了。
附录:
1.添加session内容:
$this->session->set_us...
分类:
其他好文 时间:
2014-06-05 01:18:12
阅读次数:
201
【题目】
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before imple...
分类:
其他好文 时间:
2014-06-04 23:45:09
阅读次数:
388
最近遇到一个问题.就是
我在io线程里不断的把一个函数调用放到队列里
然后ruby线程就不断的从这个队列里取出函数之争并执行.
典型的 消费者模式.
我以前以为是这样...
这是work线程
pthread_mutex_lock(&mutex2)
while(( invoke = get_invoke() ) != NULL){
do_invoke(invo...
分类:
其他好文 时间:
2014-06-04 22:35:56
阅读次数:
408
缺页处理程序//下面函数将一页内存页面映射到指定线性地址处,它返回页面的物理地址
//把一物理内存页面映射到线性地址空间指定处或者说把线性地址空间指定地址address处的页面映射到主内存区页面page上。主要工作是在相关也目录项和页表项中设置指定页面的信息。在处理缺页异常函数do_no_page中会调用这个函数。
参数:address--线性地址;page--是分配的主内存区中某一页面指针
st...
分类:
系统相关 时间:
2014-06-04 22:01:30
阅读次数:
433
地址重写:
主要是为了网站的安全,
例如我们平时的地址请求 :/read.do?id=1,但是地址重写后就变成:/egread-1.html...
分类:
其他好文 时间:
2014-06-03 04:19:55
阅读次数:
279
在项目中有一个新增客户信息的的功能:
1、在进入添加页面:add.jsp页面之前,要调用一个add_init.do来获取省份信息列表以供在add.jsp进行选择。
2、add页面填写完成以后,提交给addCustomer.do来进行数据库的操作,
在提交之前,要进行一次表单验证,用了STRUTS2的validation。
/parkassist/ad...
分类:
其他好文 时间:
2014-06-03 04:11:19
阅读次数:
231
YES,it's so easy,what we need to do is just include ,then the information of
memory leaking will be shown on the screen....
分类:
其他好文 时间:
2014-05-31 21:14:52
阅读次数:
334
Optional: Get, Compile, Install QWT 5.0.0 (or
newer): * NOTE: You should not need to set the environment variables “QTDIR” or
“QWT_CFLAGS”, so leave t...
分类:
系统相关 时间:
2014-05-31 20:53:04
阅读次数:
500