上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页
摘要: gu 大写转小写gU 小写转大写~ 大转小,小转大可以前后指定范围,或者跟量词使用, 如:gggUG(全文转大写)gu$(光标至行尾转大写)。也可以在选块上使用 阅读全文
posted @ 2012-07-25 22:12 Leo Forest 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.163.com/tyw_andy/blog/static/11679021201031582826251/GCC使用by Jian LeeGCC的选项如何指定GCC的默认头 文件路径Linux系统的头文件 和库文件搜索路径头文件库文件运行时动态库的搜索路径GCC的选项-c只生成目标文件(.o),不连接。% gcc -c main.c% g++ -c reciprocal.cpp-I可以指定头文件的目录% g++ -c -I ../include reciprocal.cpp-D设置宏定义% g++ -c -D NDEBUG reciprocal.cpp% g++ 阅读全文
posted @ 2012-07-24 11:09 Leo Forest 阅读(173) 评论(0) 推荐(0) 编辑
摘要: svn commit -m `cat /tmp/sometext`报错commit failed: 'xxx' is not under version control原来是shell命令外面忘记加引号了。。。svn commit -m "`cat /tmp/sometext`"顺利提交 阅读全文
posted @ 2012-07-24 09:30 Leo Forest 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.chinaunix.net/space.php?uid=11585335&do=blog&id=2867003libtool常见于autoconf/automake,单独用的例子很少,所以我想仔细研究一下,为将来兄弟们看起来方便。一。libtool的作用offer a standard procedure for creating shared libraries on different platformslibtool 是一个通用库支持脚本,将使用动态库的复杂性隐藏在统一、可移植的接口中,也就是说,你可以通过如下所示的标准方法,在不同平台上创建 阅读全文
posted @ 2012-07-18 11:28 Leo Forest 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: 例子为匹配ip地址pcre库(perl正则)/* * gcc pcre.c -o pcrec -lpcre */#include <stdlib.h>#include <stdio.h>#include <string.h>#include <pcre/pcre.h>int is_match (const char *src, const char *pattern){ pcre *re; const char *error; int erroffset; int result; re = pcre_compile (pattern, /* th 阅读全文
posted @ 2012-07-18 11:21 Leo Forest 阅读(794) 评论(0) 推荐(0) 编辑
摘要: http://www.aka.org.cn/Lectures/002/Lecture-2.1.8/Lecture-2.1.8/index.htm 阅读全文
posted @ 2012-07-15 20:48 Leo Forest 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 原文:http://hi.baidu.com/cr0_3/item/b519420b8eba99d773e67685#definePCRE_STATIC//静态库编译选项#include<stdio.h>#include<string.h>#include<pcre.h>#defineOVECCOUNT30/*shouldbeamultipleof3*/#defineEBUFLEN128#defineBUFLEN1024intmain(){pcre*re;constchar*error;interroffset;intovector[OVECCOUNT];i 阅读全文
posted @ 2012-07-13 18:29 Leo Forest 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/wangkangluo1/archive/2012/07/09/2583228.html参考 GCC 函式追蹤功能 finstrument-functions __attribute__ +用 Graphviz 可视化函数调用 ibm用 Graphviz 可视化函数调用 gcc/g++使用-finstrument-functions來觀察code每個function的呼叫 http://www.logix.cz/michal/devel/CygProfiler/cyg-profile.c.xp http://gcc.gnu.org/... 阅读全文
posted @ 2012-07-13 18:25 Leo Forest 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 查看寄存器::reg插入模式下 CTRL + R 后跟寄存器名字 阅读全文
posted @ 2012-07-12 18:30 Leo Forest 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.chnlanker.com/postgresql/556.html(1)用户实用程序:createdb 创建一个新的PostgreSQL的数据库(和SQL语句:CREATE DATABASE 相同)createuser 创建一个新的PostgreSQL的用户(和SQL语句:CREATE USER 相同)dropdb 删除数据库dropuser 删除用户pg_dump 将PostgreSQL数据库导出到一个脚本文件pg_dumpall 将所有的PostgreSQL数据库导出到一个脚本文件pg_restore 从一个由pg_dump或pg_dumpall程序导出的脚本文 阅读全文
posted @ 2012-07-08 20:10 Leo Forest 阅读(512) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页