尽管svn没有作强制要求,但是一般svn版本库目录建议创建trunk、branches和tags三个目录。在实际操作时,trunk主干版本要时刻保持干净,即随时可以基于这个版本进行修改并将应用部署上线。branches是分支目录,存放并行开发的项目代码,因为分支是主干的廉价拷贝(相当只是提交了一次主干版本,增加了一个版本号, 并没有取出版本库作镜像拷贝),所以你可以放心建立很多分支版本。不过 Subversion不支持跨版本库的拷贝,当使用svn copy时你只能在同一个版本库内操作。tags目录存放trunk某个的快照,比如说release-1.0即trunk处于1.0版本时的快照。
使用svn来作团队的代码管理,那么分支和合并将是非常常用的操作。下面是一个简单的示例。
阅读全文…
1, OTL是什么
OTL是一个数据库访问模板库,支持绝大部分数据库访问。OTL是C++写的,based on templates, 只有一个头文件,大小只有800K+。使用方便,性能也很不错
可以使用OTL访问基本上所有的数据库,在你更换数据库时不用修改任何业务代码
强烈推荐在C++开发中使用
阅读全文…
Oracle, Odbc and DB2-CLI Template Library, Version 4.0
Frequently Asked Questions
Please, send your questions and comments to skuchin@ispwest.com, skuchin@gmail.com
Q. OTL: how does OTL handle NULLs?
- Call otl_stream::is_null() to check whether the value that was just read from the stream is NULL or not.
- Use template class otl_value<T>.
- If there is a need to set the output variable to a value when NULL is fetched (by default, OTL does not set the output byffer to any value in the case of NULL), the following #defines could be enabled:
Q. OTL: is it thread safe?
阅读全文…
if
CMDTUX_CAT:1668: WARN: Cannot shutdown BBL on xxxx. Clients and/or servers may be running
CMDTUX_CAT:949: WARN: Shutdown failed
then
Try “tmshutdown -c -y”.
If that fails you can try “tmipcrm”.
TCHAR Buffer[MAX_PATH] = {‘\0′};
BROWSEINFO bi = {this->m_hWnd, NULL, Buffer, L”select download destination.”, 0, NULL, IDR_MAINFRAME};
bi.lpfn = BrowseCallbackProc;
LPITEMIDLIST pIDList = SHBrowseForFolder(&bi);
阅读全文…
top:
主要参数
d:指定更新的间隔,以秒计算。
q:没有任何延迟的更新。如果使用者有超级用户,则top命令将会以最高的优先序执行。
c:显示进程完整的路径与名称。
S:累积模式,会将己完成或消失的子行程的CPU时间累积起来。
s:安全模式。
i:不显示任何闲置(Idle)或无用(Zombie)的行程。
n:显示更新的次数,完成后将会退出to
阅读全文…
2011年2月28日
创建数据库约束(ORACLE):
alter table tablename add CONSTRAINT sys_name unique(field1, field2);
删除约束:
alter table tablename drop CONSTRAINT sys_name;
或alter table tablename drop unique(field1, field2);
2011年3月2日
Mysql5.5.9编译安装
1,安装CMake
mysql从5.5开始使用CMake build system
sudo apt-get install cmake
阅读全文…
建了一个网站,www.wangdianzhu.info,文章主要是采集来的,有一些文章被重复采集了,需要删除标题重复的记录
ok,记录一下
create table my_tmp as select min(ID) as col1 from wp_posts group by post_title;
delete from wp_posts where ID not in (select col1 from my_tmp);
drop table my_tmp;
create table my_tmp as select min(ID) as col1 from wp_posts group by post_title;delete from wp_posts where ID not in (select col1 from my_tmp); drop table my_tmp;