2008年2月29日星期五

ACE = ADAPTIVE Communication Environment

http://www.cs.wustl.edu/~schmidt/ACE-overview.html
这是一个免费的面向对象的多线程编程框架。
The ADAPTIVE Communication Environment (ACE) is a freely available, open-source object-oriented (OO) framework that implements many core patterns for concurrent communication software. ACE provides a rich set of reusable C++ wrapper facades and framework components that perform common communication software tasks across a range of OS platforms. The communication software tasks provided by ACE include event demultiplexing and event handler dispatching, signal handling, service initialization, interprocess communication, shared memory management, message routing, dynamic (re)configuration of distributed services, concurrent execution and synchronization.

ACE is targeted for developers of high-performance and real-time communication services and applications. It simplifies the development of OO network applications and services that utilize interprocess communication, event demultiplexing, explicit dynamic linking, and concurrency. In addition, ACE automates system configuration and reconfiguration by dynamically linking services into applications at run-time and executing these services in one or more processes or threads.

ACE continues to improve and its future is bright. ACE is supported commercially by multiple companies using an open-source business model. In addition, many members of the ACE development team are currently working on building The ACE ORB (TAO).

2008年2月25日星期一

Visual Component Framework

Welcome to the Visual Component Framework !

The Visual Component Framework was inspired by the ease of use of environments like NeXTStep's Interface Builder, Java IDEs like JBuilder, Visual J++, and Borland's Delphi and C++ Builder. I wanted a generic C++ class framework I could use to build app's quickly and visually (when designing UIs), as well as having the core of the framework be as cross platform as possible. The Visual Component Framework is an Open Source project, so feel free to grab and use it if you think it might be useful. If you're really adventuresome you can volunteer to help develop it, making it even better, especially in tying it into the VC++ environment as an add-in.
http://vcf-online.org/

2008年2月24日星期日

在C++程序中使用UNICODE

http://www.i18nguy.com/unicode/c-unicode.html
Cheat Sheet:
Unicode-enabling Microsoft C/C++ Source Code
Here is a cheat sheet for converting Microsoft C or C++ source code to support Unicode. It does not attempt to explain much and presumes you are generally familiar with Microsoft's approach to Unicode. The goal is just to have a single place to look for names, correct spellings, etc. of relevant data types, functions, etc.

2008年2月19日星期二

用MaxQ做Web功能测试


2007-12-10 作者:weihua 来源:SQA Lab 文字大小:【大】【中】【小】
简介:MaxQ是一个开源的Web功能测试工具。它包含一个记录Jython测试脚本的HTTP代理,一个用于回放测试的命令行实用程序。代理记录器自动存储提交到表单的变量。

MaxQ是一个Web功能测试工具。它通过Jython脚本记录你点击的links的输入,然后允许你在任何时候回放。

MaxQ的特点:

1. 免费、开源。
2. 用Jython作为记录测试脚本的语言。
3. 基于Java构建,在任何地方都可以运行。
4. 代码简单,容易按需增强其功能。
5. 测试脚本可以为JUnit运行。
6. 可以运行于代理服务器之后。
7. 支持cookies。

MaxQ的工作原理:


录制测试:

1. 配置web浏览器的HTTP代理为 localhost:8090
2. 启动MaxQ, 双击 bin\maxq.bat
3. 新建一个测试代码,通过File -> New -> Standard Script.
4. 打开Web浏览器,到达你想要测试的地方作为入口
5. 启动正式录制,通过 Test -> Start Recording
6. 开始对Web 页面进行测试。
7. 测试动作完成后,停止测试, 通过 Test -> Stop Recording。 保存测试脚本为"***.py" 的格式。

重新运新测试:

通过 GUI:
1. 启动 MaxQ
2. 选择和打开已存在的测试代码 File -> Open
3. 运行测试代码 Test -> Run, 一个新的包含测试输出的对话框将会自动打开。

通过 命令行:
maxq -r mytest.py

运行于不同的服务器:
maxq -u loalhost:8000 www.sqalab.com -r mytest.py

2008年2月11日星期一

How to kill a process under Windows 2000

You can kill a process with "taskkill /IM notepad.exe" under Windows XP and above.
However, under Windows 2000, this command is not supported. If you copy this taskkill.exe from XP to 2000, you will get a not supported warning.

So, you need other executables to do this.

Microsoft provides us PsKill to do this(even kill process in a remote computer).
Download PsKill.exe from http://technet.microsoft.com/en-us/sysinternals/bb896683.aspx

Just substract it and copy it to system32 folder.

Run like this pskill notepad.exe.

Remember, the first time you run this command, you need to agree a license.

or you can try this one http://www.beyondlogic.org/solutions/processutil/processutil.htm