ZhangZe

Computer World--Linux, BSD

博客园 首页 新随笔 联系 管理
上一页 1 ··· 4 5 6 7 8 9 10 下一页

2010年12月28日 #

摘要: https://help.ubuntu.com/6.10/ubuntu/packagingguide/C/basic-scratch.htmlhttp://topic.csdn.net/t/20040907/14/3348197.htmlhttp://zhidao.baidu.com/question/185750284.html?push=ql 阅读全文
posted @ 2010-12-28 17:45 ze_zhang 阅读(285) 评论(0) 推荐(0) 编辑

2010年12月20日 #

摘要: syslog how to 阅读全文
posted @ 2010-12-20 11:24 ze_zhang 阅读(139) 评论(0) 推荐(0) 编辑

2010年12月6日 #

摘要: 检查所做的修改,用svn statussvn diff svn revert以上这三个命令可以在SVN的离线方式下运行,不用连接repositorysvn status --verbosesvn status --show-updates要在svn commit -m "update"运行之前,svn diff 显示出具体对working copy做了哪些修改svn diff patchfile 输出的是diff的标准输出格式,有文件名和偏移信息;使用SVN外部的diff命令 --diff-cmd ARG --extensions ARGsvn diff --diff-cmd /usr/ 阅读全文
posted @ 2010-12-06 15:19 ze_zhang 阅读(176) 评论(0) 推荐(0) 编辑

2010年12月4日 #

摘要: C++中可以用三种方式存储字符串:1.字符数组char str[] = “hello, world!”;char str[] = {“hello, world!”};二者等价(只能在初始化的时候这样写,不能先定义一个字符数组,再用字符串常量赋值!)字符数组的长度是字符串长度加1,因为字符串常量会自动加一个‘\0’;sizeof... 阅读全文
posted @ 2010-12-04 14:41 ze_zhang 阅读(370) 评论(0) 推荐(0) 编辑

2010年12月3日 #

摘要: TARGET = myprogramCONFIG += qt debugTEMPLATE = appHEADERSSOURCESFORMS, qt designer ui fileDESTDIR, destination install dirDEFINES, macro definesINCLUDEPATH, additional header filesCONFIG += qtQT += ne... 阅读全文
posted @ 2010-12-03 14:54 ze_zhang 阅读(130) 评论(0) 推荐(0) 编辑

2010年11月25日 #

摘要: http://www.ibm.com/developerworks/cn/linux/l-tsl/index.html简介进程无法启动,软件运行速度突然变慢,程序的"Segment Fault"等等都是让每个Unix系统用户头痛的问题,本文通过三个实际案例演示如何使用truss、strace和ltrace这三个常用的调试工具来快速诊断软件的"疑难杂症"。truss和strace用来 跟踪一个进程的... 阅读全文
posted @ 2010-11-25 22:01 ze_zhang 阅读(318) 评论(0) 推荐(0) 编辑

2010年11月23日 #

摘要: libmeegotouch的程序打开debug:1../ChangeOwner -software -output-level debug 输出qDebug()的信息(这个方法只能在scratchbox外面,安装libmeegotouch以后使用)2.在scratchbox内部,用std::cout<<或者std::cerr<<输出3.在设备上如果第二种方法不能说出的话,通... 阅读全文
posted @ 2010-11-23 09:32 ze_zhang 阅读(259) 评论(0) 推荐(0) 编辑

2010年11月22日 #

摘要: 1.用designer写好界面,保存为一个扩展名为.ui的xml文件;2.运行qmake生成.pro文件和makefile文件qmake -projectqmake gotocell.pro3.qmake会检测到user interface file *.ui, 然后会生成恰当的makefile规则调用uic,qt的用户接口编译器;4.uic会把*.ui转化为C++的.h文件;5.生成的.h文件名... 阅读全文
posted @ 2010-11-22 16:37 ze_zhang 阅读(737) 评论(0) 推荐(0) 编辑

摘要: 1.apt-get install <package_name>install a new package.2.apt-get build-dep <package_name>search the repositories and install the build dependcies for <package_name>.build-dep causes a... 阅读全文
posted @ 2010-11-22 15:52 ze_zhang 阅读(1794) 评论(0) 推荐(1) 编辑

2010年11月18日 #

摘要: 1.QT的moc机制中,实现了signal和slot的动态链接,因此在程序中把signal名写错了,编译的时候不会出错,但是运行的时候,会查找不到这个signal()函数,因而不能响应事件。2.在类的构造函数中,调用某个方法可以不写某个对象,因为构造函数也是成员函数的一种,它也有this指针,this指针指向的就是当前正在构建的对象。而在main()函数中则不同,没有this指针,就要写明哪个对象... 阅读全文
posted @ 2010-11-18 08:58 ze_zhang 阅读(261) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 下一页