- 博客(18)
- 资源 (11)
- 收藏
- 关注
转载 eclipse不能自动编译工程的解决方法
from:http://www.blogjava.net/javafield/archive/2008/01/05/172940.html eclipse出现不编译工程的现象。怎么刷新classes目录下也是空的.具体都操作了:打开project->build aut
2011-09-28 19:35:02 555
原创 使用gcov提高代码测试覆盖率
参考:《Linux® Debugging and Performance Tuning: Tips and Techniques》 chapter 21. 待测代码如下:/home/a/j/nomad2:cat sample.c#include #include
2011-09-25 10:44:49 3092
原创 gcc Option Needed for gprof
来自 《Linux® Debugging and Performance Tuning: Tips and Techniques》ch1重点如下:1) 编译时 使用 -pg 产生profile gmon.out2) gprof -b a.out3) 编译时使
2011-09-24 10:47:01 933
转载 使用vim/sed去除网上copy的源代码行号和空格
from http://imzc.net/archives/122有些时候,在网上搜索到的代码都包含有行号,高亮显示控件不支持直接提取,如: test.sh 01 #!/bin/bash 02 echo “aaa”简单的去掉行号和前面的空格:
2011-09-24 10:19:13 1512
原创 C++对象模型 ch7 站在对象模型的尖端
模板的实例化:This means an implementation must keep two scope contexts:1. The scope of the template declaration, which is fixed to the gen
2011-09-23 19:34:06 689
原创 C++对象模型 ch6 Running语义学
1. 关于deleteWhen the programmer writesdelete pi; the language requires that operator delete not be applied if pi should be set to 0.
2011-09-21 21:21:50 621
原创 C++对象模型 ch5 构造 析构 拷贝语义学
1. 关于拷贝operatorWhile poking around cfront recently, I noticed that when generating the copy operator, it does not condition the copy by a
2011-09-20 21:21:37 708
原创 C++对象模型 ch4 Function语义学
1. name mangling代码如下:/home/a/j/nomad2:cat Point.CPP #include using namespace std;class Point{ private: int
2011-09-19 21:55:18 713
原创 C++对象模型 ch3 Data语义学
例子,求下面的程序输出。/home/a/j/nomad2:cat ch3.CPP#include using namespace std;class X{};class Y : public virtual X{ /* pub
2011-09-19 20:29:18 538
原创 XP实践 2
1. 关于测试用例命名以should开头,主语是测试类。不同的测试类要分开,好处是可以直接产生文档。每个测试里面只有一个assert,当重构失败时,可以一眼看出哪个功能被破坏了。好的代码不需要写注释,如果代码的意图足够清晰的话。2. 一个测试用例可以分为 Gi
2011-09-17 19:53:46 650
原创 XP实践
1. 什么是敏捷一组方法论的集合, XP, Scrum,FDD...2. 敏捷宣言see http://agilemanifesto.org/iso/zhchs/个体和互动 高于 流程和工具工作的软件 高于 详尽的文档客户合作 高于 合同谈
2011-09-15 20:31:47 857
原创 C++对象模型 ch2 构造函数语意学
1. Programmers new to C++ often have two common misunderstandings:That a default constructor is synthesized for every class that does not
2011-09-14 21:52:34 551
原创 Prevent class inheritance in C++
see: http://stackoverflow.com/questions/2184133/prevent-class-inheritance-in-c倾向于使用private constructor and non-virtual destructor.#inclu
2011-09-13 21:56:13 617
原创 C++ 对象模型 ch1 关于对象
1. demo#include using namespace std;class X {public: int a; virtual void foo() { cout << " I
2011-09-13 21:48:54 514
原创 thread pool and database connection pool
The test result shows the “one main thread, one connection per NE/per sql” performs worst, and “thread pool, shared one connection” improves
2011-09-11 13:17:45 1386
转载 LCA 离线算法 tarjan
from: http://blog.csdn.net/zxy_snow/article/details/6151884kosaraju算法是从算导上看证明看明白的。然后我觉得,GB以前说的话很有道理,他挺想让我们看算导,看上面的证明,做课后题,神马的。现在看来,确实有用。
2011-09-04 22:13:05 669
原创 mdl principle
from wiki,The minimum description length (MDL) principle is a formalization of Occam's Razor in which the best hypothesis for a given se
2011-09-04 22:07:47 1474
原创 corba stub 作用
使用openfusion,例子是grid,IDL编译后产生7个java文件。其中_MyServerStub.java类的作用如下:在helper类的narrow()方法实现中, 返回的是一个_stub类的实例,也就是说,客户端所有的方法调用,实际调用的是_stub类的
2011-09-01 19:46:42 1623
machine learning advice
2011-11-05
Inside Java Virtual Machine
2007-11-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人