上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页
摘要: 原文:http://www.cnblogs.com/wangkangluo1/archive/2011/06/10/2077450.htmlvalgrind --leak-check=full --show-reachable=yes --log-file=a.log ./shdaily.fcgi "op=search&date=2011-04-14&current=4"glib使用如下:G_SLICE=always-malloc valgrind --tool=memcheck --leak-check=full --leak-resolution=hig 阅读全文
posted @ 2012-11-09 09:09 Leo Forest 阅读(1216) 评论(0) 推荐(0) 编辑
摘要: scons 学习作者:Sam(甄峰) sam_code@hotmail.comhttp://www.scons.org/Sam有个好朋友是做游戏的,整天嘲笑做嵌入式的用的工具多土多原始。gdb不是图形化,DDD又没VC调试好用,只会写Makefile等等。刚好最近有需要使用scons。所以Sam准备学习之以回击这种挑衅。呵呵。scons简介:scons是一个Python写的自动化构建工具,从构建这个角度说,它跟GNU make是同一类的工具。scons与其它工具最显著的差别就是:scons配置文件是Python script.它的思想是跟GNU make完全不同的。GNU make的核心是“依 阅读全文
posted @ 2012-11-08 12:25 Leo Forest 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/sunyubo/archive/2010/05/05/2282170.htmlValgrind的主要作者Julian Seward刚获得了今年的Google-O'Reilly开源大奖之一──Best Tool Maker。让我们一起来看一下他的作品。Valgrind是运行在Linux上一套基于仿真技术的程序调试和分析工具,它包含一个内核──一个软件合成的CPU,和一系列的小工具,每个工具都可以完成一项任务──调试,分析,或测试等。Valgrind可以检测内存泄漏和内存违例,还可以分析cache的使用等,灵活轻巧而又强大,能直穿程序错误 阅读全文
posted @ 2012-11-08 09:02 Leo Forest 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 原文:http://huangro.iteye.com/blog/366035在pg 8.3中, 可以使用多个-t来分割不同的table, 其他版本不清楚是否支持多个table导出.例如: 我要一次性导出table1, table2, table3, 可以这么来写:pg_dump -t table1 -t table2 -t table3 -F c -Z 9 databasename > abc.backup比较诡异的用法顺便把pg_dump的用法也放到这里来吧:pg_dumpNamepg_dump -- 将一个PostgreSQL数据库抽出到一个脚本文件或者其它归档文件中Synopsi 阅读全文
posted @ 2012-11-07 18:21 Leo Forest 阅读(1412) 评论(0) 推荐(0) 编辑
摘要: http://openiconlibrary.sourceforge.net/downloads.html 阅读全文
posted @ 2012-11-07 15:33 Leo Forest 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/stephen-liu74/archive/2011/12/16/2290803.html一、表的定义: 对于任何一种关系型数据库而言,表都是数据存储的最核心、最基础的对象单元。现在就让我们从这里起步吧。 1. 创建表: CREATE TABLEproducts ( product_no integer, name text, price numeric ); 2. 删除表: DROP TABLEproducts; 3. 创建带有缺省值的表: CREATE TABLEproducts ( product_no integer, ... 阅读全文
posted @ 2012-11-07 14:05 Leo Forest 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/daduxiong/archive/2010/08/17/1801588.html创建索引通常能够提高数据库的性能,使查询速度大幅提高。同时索引的存在也为数据库中的数据维护带来的负面影响,增加的数据库与系统的资源消耗。适当的建立索引总能利大于弊。postgresql数据库中可以创建多字段、唯一、函数、部分索引多种类型的索引。可能基于主要面向OLTP系统的应用没有引入位图索引(个人猜测)。测试表:CREATE TABLE test1 ( id integer, content varchar );查询语句:SELECT content F... 阅读全文
posted @ 2012-11-06 12:10 Leo Forest 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.chinaunix.net/uid-20662363-id-1904146.html参考: http://www.worldhello.net/doc/program_rules/indent.htmlgoogle搜索就能找到gnu indent.The `indent' program can be used to make code easier to read. It can also convert from one style of writing C to another.参照GNU,Kernighan & Ritchie,Berkel 阅读全文
posted @ 2012-11-02 19:36 Leo Forest 阅读(373) 评论(0) 推荐(0) 编辑
摘要: JSpinner spinner = new JSpinner(new SpinnerNumberModel(value, min, max, 1)); spinner.setBounds(x,y,width,height); // 控制输入 JSpinner.NumberEditor editor = new JSpinner.NumberEditor(spinner, "0"); spinner.setEditor(editor); JFormattedTextField textField = ((JSpinner.NumberEditor) spinner.g... 阅读全文
posted @ 2012-11-02 19:22 Leo Forest 阅读(280) 评论(0) 推荐(0) 编辑
摘要: guava-librarieshttp://code.google.com/p/guava-libraries/public class MultiMapDemo { public static void main(String[] args) { HashMultimap<String, String> map = HashMultimap.create(); map.put("a", "AAAAA"); map.put("a", "AAA"); map.put("a", &quo 阅读全文
posted @ 2012-10-26 15:22 Leo Forest 阅读(240) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页