map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . let Tlist_Show_One_File=1 let Tlist_Exit_OnlyWindow=1 let Tlist_Auto_Open=1 set nocom...
Problem Description
A sequence consisting of one digit, the number 1 is initially written into a computer. At each successive time step, the computer simultaneously tranforms each digit 0 into the...
分类:
其他好文 时间:
2014-10-11 20:04:56
阅读次数:
221
抽空做了个集成v4l2api, 实力有限, 有粗糙的地方还望不吝赐教 ^_^
v4l2_lib.h
/* This driver provid v4l2 API
*
* (You can use this driver as abouve steps)
*
*
*
* STEP ONE: define value
*
*
* step 1.1: defin...
Example:#pragma pack(2)struct One{ char c; short b; char a;};print: 6#pragma pack(2) struct One { char a; char c; short b; };print: 4#pragma p...
分类:
其他好文 时间:
2014-10-11 18:56:45
阅读次数:
240
invlpg 指令简介
void
tlb_invalidate(pde_t *pgdir, void *va)
{
// Flush the entry only if we're modifying the current address space.
// For now, there is only one address space, so...
分类:
其他好文 时间:
2014-10-11 18:13:55
阅读次数:
214
1.ntp4.2.4之前的版本都存在一个很严重的BUG,当ntp的启动参数里有同时有-g -x,并且在ntp.config中的server的校时服务器地址不可达时,会出现无论是start,stop,restart服务都会报错。报错内容:Starting ntpd: ERROR:only one pa...
分类:
系统相关 时间:
2014-10-11 16:56:25
阅读次数:
310
s是遍历后赋值的变量,v是要遍历的list。可以通过以下语句进行测试: List v=new ArrayList(); v.add("one"); v.add("two"); for(String s:v){ System.out.println(s); }注意s要跟前面的类型匹配。来自...
分类:
其他好文 时间:
2014-10-11 16:48:25
阅读次数:
169
BFS:Is it possible that a solution exists using only one single queue? Yes, you bet. The single queue solution requires two extra counting variables w...
分类:
其他好文 时间:
2014-10-11 03:37:04
阅读次数:
190
Problem:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique lo...
分类:
其他好文 时间:
2014-10-11 02:20:24
阅读次数:
227
Description``Accordian'' PatienceYou are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows:Deal cards one...
分类:
其他好文 时间:
2014-10-10 23:21:24
阅读次数:
423