Categories
Linux/Unix

CentOS 上安装 Testlink

系统为 CentOS 6.2 x86_64。Testlink:1.9.3。

1. 安装 mysql:

yum mysql mysql-server。

2. 安装 php:

yum php php-mysql php-gd php-ldap

3. 配置自启动:

chkconfig mysql on

chkconfig httpd on

Categories
Software

完全卸载 Office 2010 Starter 工具,包括恼人的 Q 盘

公司不能够使用商业授权版本的 Office,金山的 WPS 使用了感觉还不错。这样可以删除之前安装的 Office 2010 Starter了。不过在控制面板删除之后,发现 Office 2010 Starter 产生的 Virtual App Q 盘依旧存在看着非常恼火。终于找到了微软官方的移除工具了,共享出来。

下载:CleanC2R

参考:http://support.microsoft.com/kb/982434

Categories
Hardware Storage

bit, nybble, byte, WORD, DWORD, QWORD

It depends on the computer architecture.

For 32bit,

bit = …1 bit…

nybble = 4 bits = 1/2 byte

byte = 8 bits = 2 nybbles

WORD = 2 bytes = 4 nybbles = 16 bits

DWORD = 2 WORDs = 4 bytes = 8 nybbles = 32 bits

QWORD = 2 DWORDs = 4 WORDs = ….. = 64 bits

 

On 64bit system, it will be double.

Categories
开发

C++ 中箭头操作符(->)和点操作符(.)的不同

针对 -> 和 . 的定义区别如下:

如果 p 是指针,p -> function();

如果 p 是对象和结构体,p.function();

例如:

Categories
Linux/Unix

ksh 中的补完

方法一:
set -o vi
历史命令功能(esc -,esc +)自动补全文件名(esc \)。

方法二:
set -o emacs
历史命令功能(ctrl-n,ctrl-p),自动补全文件名(按两次esc)。