Archive for the '开发' Category

皮皮书屋

Saturday, February 27th, 2010

http://www.ppurl.com/
不错的电子书网站,很有特色,注册用户的Captcha是一段程序,问你输出是什么。
#include

HowTos: 在Debian 5 (Lenny) 上编译firefox

Monday, February 22nd, 2010

刚安装了Debian 5,试一下编译Firefox. 有如下要点:(注意命令在root下执行). 基本上参看官方指南, https://developer.mozilla.org/en/Linux_Build_Prerequisites, 但也有些不同.
1. 安装编译工具

How to install a new disk on Solaris

Friday, February 19th, 2010

Just a bookmark:
http://blogs.sun.com/harcey/entry/solaris_x86_vmware_adding_a
1. Add a VMware Disk to a Solaris image
* Shut down the VM
* Edit the VMware configuration: Select Virtual Machines -> Settings
* Add a new hard disk device
* start the Solaris image

ZT: When and How to Use Dispose and Finalize in C#

Sunday, October 18th, 2009

 
When and How to Use Dispose and Finalize in C#

Although the .NET framework frees managed memory and resources transparently, it’s not as adept at freeing unmanaged resources; you have to help it out by implementing the Dispose and Finalize patterns in your code.
by Joydip Kanjilal

用VS2008编译Google Chromium

Saturday, October 3rd, 2009

Google chromium的源代码是去年这个时候开源的,一直想去看看它的代码,编译一个自己的版本。
以前它需要用VC++2005 SP1编译。值得一提的是,VC++ 2005的SP1非常来装,我折腾了好几次都没有装上(等很久,安装进度条就是不动)

Windows Workflow Foundation学习笔记 (1)

Tuesday, September 22nd, 2009

Workflow Foundation是.Net 3.0+中比较重要的一大功能,值得学习。而学习一项新技术的最快捷办法就是多看看一些例子和文章。
1. 相关文章
关于Workflow的网络文章是非常多的,这里列出一些作为开始的入手点。
微软VP的博客:http://weblogs.asp.net/scottgu/archive/2006/08/31/Windows-Workflow-Foundation.aspx
MDSN: http://msdn.microsoft.com/en-us/magazine/cc163504.aspx
Workflow主站: http://msdn.microsoft.com/en-us/netframework/aa663328.aspx
2. 例子
同时我也在看SDK中自带的Workflow例子,这里把我看过的例子做一个简单的介绍。这些例子都可以从微软的网站上免费下载得到。 http://www.microsoft.com/downloads/details.aspx?FamilyID=22b58b6c-8f98-40d0-880d-c3339c5da01e&displaylang=en

如何获得对话框的ID呢?

Sunday, September 20th, 2009

我们都知道在VC++中,每个对话框都有一个ID. 在实际应用中,这个ID被用来弹出该对话框。
具体如何做,可以参看MSDN上关于DialogBox的介绍
http://msdn.microsoft.com/en-us/library/ms645452(VS.85).aspx
GetDlgCtrlID可以很容易的从ID得到一个对话框的控件句柄。

Googe站点搜索乱码的解决方案

Friday, September 18th, 2009

我在本博克中使用了google sitesearch搜索框,但是搜索中文的时候却出现了乱码。
经过一番研究,只需要修改搜索表单代码如下即可。
注意encoding方式选择utf-8
input name=”ie” type=”hidden” value=”utf-8″
input name=”oe” type=”hidden” value=”utf-8″

Compile Praat on linux

Sunday, August 17th, 2008

Praat is a wonderful speech analysis tool.
The process to compile praat on ubuntu is below:
1. Install ubuntu
2. Download the source code

调试Debug版和Release版的C++程序不一致

Monday, May 12th, 2008

有时候写的程序会出现在Debug版和Release版运行不一样的情况。
有几种情况:
1. 涉及到浮点数的转换。 程序中如果大量使用double和float的相互转换,很容易出现Debug版和Release版的结果不一致。原因是因为Debug版使用的浮点转换方法不太一样。