文章列表
 
2009-11-10 16:20
http://easwy.com/blog/archives/advanced-vim-skills-omin-complete/ 参考以上文章可以实现 还有一篇也可以参考 http://vim.wikia.com/wiki/C%2B%2B_code_completion
添加linux的库调用
ctags -R -f ~/.vim/systags –c-kinds=+p –fields=+S /usr/include /usr/local/include
set tags+=~/.vim/systags
还有,添加c++的库调用需要参考 第二篇文章
 
2009-09-28 9:24
原文地址:http://www.cnblogs.com/bits/archive/2009/03/01/Linux-bash_iptables.html
感谢原作者无私奉献:)

因为日常管理中经常要限制IP访问,于是写了个iptables的配置脚本,这样就不用换一台机器配置一个了,一个脚本搞定

 

首先是iptables的基本命令:

iptables [-t表名] <-A| I |D |R > 链名[规则编号] [-i | o 网卡名称] [-p 协议类型] [-s 源IP地址 | 源子网][--sport 源端口号] [-d 目标IP

 
2009-08-16 16:02
http://www.linuxdiyf.com/bbs/thread-104403-1-1.html

怎样让32位的windows和linux系统支持64G内存

出自:http://blog.163.com/herod_xiao

计算机寻址位数和内存关系,32位计算机最大支持的内存是2的32次方等于4G,64位计算机最大支持的内存是2的64次方等于184467440737亿字节,换算一下4G个G,太大了,反正是N多G,一辈子也用不完;

当前4G的内存确实无法让我们用于生产环境,根本不够系统使用,但企业又面临昂贵的
 
2009-07-16 16:34
http://www.linux-cn.com/html/linux/network/20080818/57697.html(ZZ)
在远程putty到linux主
 
2009-07-10 11:23
http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html

What is umask and how to setup default umask under Linux?

Anil ask a question (via email):

What is umask and how is it determined on a Linux system?

The user file-creation mode mask (umask) is use to determine the file permission for newly created files. It can be used to control the default file permission for new

 
2009-07-10 10:07
http://msdn.microsoft.com/en-us/library/ms858712.aspx

Unsized Arrays in Structures

Microsoft Specific

A Microsoft extension allows the last member of a C or C++ structure or class to be a variable-sized array. These are called unsized arrays. The unsized array at the end of the structure allows you to append a variable-sized string or other array, thus avoiding the run-time execution cost of a pointer dereference.

struct PERSON
 
2009-06-10 14:30
据说是测试BerkeleyDB是否安装好的一个经典例子,同时也可以作为入门教程 原文来自:http://www.berkeleydb.net/bbs/read.php?fid=1&tid=12&fpage=1 -------------------我是开始线------------------------------------- #include #include #include #include /* DB的函数执行完成后,返回0代表成功,否则失败 */ void print_error(int ret) { if(ret != 0) printf("ERROR: %s\n",db_strerror(ret)); } /* 数据结构DBT在使用前,应首先初始化,否则编译可通过但运行时报参数错误 */ v
 
2009-05-21 10:46
http://www.9php.com/FAQ/cxsjl/shell/2009/04/3383273142262.html
有一文件,内容都是时间记录,大概如下
10:46:16
10:53:28
11:48:01
11:50:01
11:54:01
11:55:01
12:02:40
12:56:01
 
2009-05-19 19:47

因为按RedHat Linux 9.0的posix线程实现,每个线程的 父进程都是当前控制台进程,而不是调用pthread_create的那个进程的。而另一方面,在一个进程中能创建的线程个数又主要受堆栈的限制:2G/ 允许的最大堆栈大小,在i386平台上,控制台进程默认的最大堆栈大小为8M,所以能创建的线程数为2G/8M = 256个。但是,这个8M的限制可以通过

 
2009-05-19 19:14
1、临界区只能用于对象在同一进程里线程间的互斥访问;互斥体可以用于对象进程间或线程间的互斥访问。
2、临界区是非内核对象,只在用户态进行锁操作,速度快;互斥体是内核对象,在核心态进行锁操作,速度慢。
3、临界区和互斥体在Windows平台都下可用;Linux下只有互斥体可用。
 
   
 
 
文章存档
 
     
 
最新文章评论
  

回复sunnydavid_ren:原来如此,倒是我粗心了。
 

回复诗落千行: ls没有注意到hello, world中间是由空格的,恰好是空格分开了俩个stri
 

sscanf(sourceStr, "%*s%s", buf); //%*s表示第一个匹配到的%s被过滤掉,即hello被过
 

请问一下如何安装 GtkMozEmbed的呢,,? 怎么找不到啊,, ubuntun 怎么安装呢。,
 

很详细,TKS。
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu