1. 查看内核版本命令: 1) [root@q1test01 ~]# cat
/proc/version Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com)
(gcc version 3.4.4 20050721 (Red ...
分类:
系统相关 时间:
2014-05-01 07:15:14
阅读次数:
575
限制并发select的patch,代码量很少,主要是为了学习mysql的源码,yy一下。增加两个全局控制变量:
thread_limit_min thread_limit_max增加一个条件变量: COND_thread_running_limit增加一个新的错误码:
concurr...
分类:
数据库 时间:
2014-05-01 07:14:13
阅读次数:
576
A_byte_of_Python-v192-for_Python_3.0-中文版.pdf
中的一道题:练习题: 检测一个文本是否为回文应该忽略标点,空格和大小写。 例如”Rise to vote,
sir.”同样是一个回文,但是我们当前的例子无法识别它。你能改善这个例子让它做都这点吗?代码有点挫,莫...
分类:
其他好文 时间:
2014-05-01 06:52:33
阅读次数:
359
网页的缓存由HTTP消息头中的"Cache-Control"
来控制的,常见的取值有private、no-cache、max-age、must-revalidate等,默认为private。其作用根据不同的重新浏览方式分为以下几种情况:(1)
打开新窗口如果指定cache-control的值为pri...
分类:
其他好文 时间:
2014-05-01 06:51:33
阅读次数:
273
原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/题意:将链表中的节点两两交换。Given1->2->3->4,
you should return the list as2->1->4->3.解题思路:这题主要涉及到链表的操作,没什么...
分类:
编程语言 时间:
2014-05-01 06:44:21
阅读次数:
339
原题地址:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/题意:Given
a linked list, remove thenthnode from the end of list and return its he...
分类:
编程语言 时间:
2014-05-01 06:42:15
阅读次数:
332
最后更新:2014年4月30日1、位运算包括:这个我觉得大家都会我就随便说下:位与&,如 101 & 110 = 100位或|,如 100 |
110 = 110位非~,如 ~101 = 010位异或^,如 101 ^ 110 = 011左移>,如 110 >> 1 =
011其中,负数位运算的时候...
分类:
其他好文 时间:
2014-05-01 06:23:40
阅读次数:
336
#include#include#includeusing namespace std;int
main(){ int n,i; char a[100000]; cin>>a; sort(a,a+strlen(a)); do{
cout<<a<<endl; }while(next_permut...
分类:
其他好文 时间:
2014-05-01 06:20:37
阅读次数:
368
vector的标准模板是:template > class
T>而普通模板则是template class
T>,如何创建一个模板能包容以上两个形式通用?http://zhidao.baidu.com/question/412950067.html
分类:
编程语言 时间:
2014-05-01 06:06:16
阅读次数:
331
Z-Stack是TI推出的全功能ZigBee协议栈,通过了ZigBee联盟的兼容性平台测试,包含如下几个组件。
1. HAL,硬件抽象层 2. OSAL,操作系统抽象层 3. ZigBee Stack和IEEE 802.15.4 4. User App 5.
MT,通过串口与PC进行通讯的demo ...