- 博客(28)
- 资源 (4)
- 收藏
- 关注
原创 Windows server 2003上手动安装MySQL 5.4.1
今天在03 Server 上安装MySQL 5.4.1时,MySQL Installation Wizard报 ended prematurely。试了另外一个5.1的版本,同样的问题。以前这个系统有装过MySQL的,是不是没卸载干净,于是将注册表里所有关于MySQL的全删除了。再试,问题没有解决。只能到官网下载手动安装版了。 将下载的uninstall package解压到C:/my
2009-08-06 17:45:00
3879
2
原创 Use SVN to manage your code
@echo off rem Create depotrem -------------------------rem svnadmin create C:/depotrem Run depotrem ---------------------------rem svnserve -d -r C:/depotrem register servicerem ------
2009-07-02 17:51:00
676
转载 Windows Server 2003的各种版本
Windows Server 2003 Web版:为快速开发、部署Web服务与应用程序,提供Web托管与服务平 台。支持2路SMP(对称多处理)系统、2GB内存。Windows Server 2003标准版:面向中小型企业和部门级应用。支持4路SMP、4GB内存。Wind
2009-05-27 10:39:00
1450
转载 解决出现的LNK2005“符号已定义”错误
许多Visual C++的使用者都碰到过LNK2005:symbol alreadydefined和LNK1169:one or more multiply defined symbolsfound这样的链接错误,而且通常是在使用第三方库时遇到的。对于这个问题,有的朋友可能不知其然,而有的朋友可能知其然却不知其所以然,那么本文就试图为大家彻底解开关于它的种种疑惑。 大家都知道
2009-01-13 18:14:00
1167
转载 Dos批处理中符号作用大全
@ //隐藏命令的回显。 ~ //在for中表示使用增强的变量扩展; 在set中表示使用扩展环境变量指定位置的字符串; 在set/a中表示按位取反。 % //使用两个%包含一个字符串表示引用环境变量。比如一个%time%可以扩展到当前的系统时间; 单个%紧跟0-9的一个数字表示引用命令行参数; 用于for中表示引用循环变量; 连续的两个%表示执行时脱为一个%。 ^ //取消转义字符,即将所有转义字
2008-11-25 10:12:00
1199
原创 Japanese
Shift-JIShttp://zh.wikipedia.org/wiki/Shift_JIS Shift-JIS to Unicodehttp://unicode.org/Public//MAPPINGS/OBSOLETE/EASTASIA/JIS/SHIFTJIS.TXT Unicode Kanji Tablehttp://www.rikai.com/library/k
2008-09-14 23:14:00
893
原创 编码标准
unicode和ansi都是字符代码的一种表示形式。 为使计算机支持更多语言,通常使用 0x80~0xFF 范围的 2 个字节来表示 1 个字符。比如:汉字 中 在中文操作系统中,使用 [0xD6,0xD0] 这两个字节存储。不同的国家和地区制定了不同的标准,由此产生了 GB2312, BIG5, JIS 等各自的编码标准。这些使用 2个字节来代表一个字符的各种汉字延伸编码方式,
2008-09-10 16:12:00
830
原创 经典批处理分析(二)
@echo off:: 保留空行替换字符串:: 当行首有冒号时会抛掉最开始的几个连续冒号(这个问题可以解决):: 会忽略以分号开头的行:: 不能正确处理感叹号(因为启用了变量延迟):: code by jm modify on 2006-11-1:: 出处:http://www.cn-dos.net/forum/viewthread.php?tid=22033set file=set /p fi
2008-09-04 13:58:00
3000
1
原创 经典批处理分析(一)
@echo off:: 把下一行的数字复制到前面一行的后面,并用空格分开setlocal enabledelayedexpansionfor /f %%i in (test.txt) do ( set /a count+=1 set first=!second! set second=%%i if !count! gtr 1 echo !first! !second!)p
2008-09-04 11:17:00
1304
原创 格式化参数
#include #include #include void error (lua_State *L, const char *fmt, ...) { va_list argp; va_start(argp, fmt); vfprintf(stderr, argp); va_end(argp);
2008-07-17 11:19:00
764
原创 Singleton
今天发现singleton的设计模式还有多种不同的实现方法,以前一直这样使用:static Singleton *GetInstance()...{ if (NULL == instance) ...{ instance = new Singleton(); } return instance;} 这样使用不好之处就是得找个地方
2008-03-28 11:13:00
622
原创 __cdecl __stdcall
1.如果函数func是__cdecl(默认调用方式),调用时情况如下 int main() ...{ //参数从右到左压栈 push 4 push 3 push 2 push 1 call func add esp 0x10 //调用者恢复堆栈指针esp,4个参数的大小是0x10(4x4) }
2008-03-21 10:16:00
4815
1
原创 Charset And Encoding
很多情况下,我们搞不清楚unicode是一个什么概念,到底它是一个字符集呢?还是一个编码方式?正确的答案是它是一种编码方式。字符集指的是一种抽象字符的集合,比如说英文字符集,简体中文字符集,还有日文字符集。它们才是字符集的概念。 编码方式是它们的表示方法。比如:ASCII、ISO8859-1、UCS、Unicode、UTF、GB2312等等。 参见无博文: 代码文件如果
2008-03-17 10:20:00
753
原创 nice batch
1.变量延迟和变量替换rem this batch is used to eliminate those unnecessary language tag@echo offsetlocal enabledelayedexpansionfor /r %%i in (*.xml) do ( set ke=%%irem replace the by / set file=!ke:=
2008-03-14 14:30:00
687
转载 C的优先级口诀
括号成员第一; //括号运算符[]() 成员运算符. ->全体单目第二; //所有的单目运算符比如++、 --、 +(正)、 -(负) 、指针运算*、&乘除余三,加减四; //这个"余"是指取余运算即%移位五,关系六; //移位运算符:> ,关系:> = 等于(与)不等排第七; //即== 和!=位与异或和位或; //这几个都是位运算: 位与(&
2008-03-03 11:10:00
3231
3
原创 RUNDLL32 & INF
Today,While I am installing the Ultraedit,a batch file leave me a great impression.it reads:rundll32 setupapi.dll,InstallHinfSection DefaultInstall 128 ./Uedit32.infthese days I use the batch proc
2008-01-26 22:54:00
2276
原创 VC常用数据类型使用转换详解
http://blog.youkuaiyun.com/dyc13/archive/2006/09/01/1155100.aspx刚接触VC编程的朋友往往对许多数据类型的转换感到迷惑不解,本文将介绍一些常用数据类型的使用。我们先定义一些常见类型变量借以说明int i = 100;long l = 2001;float f=300.2;double d=12345.119;char username[]="程
2007-05-23 22:36:00
696
转载 c++进阶
(一)语言入门:《C++ Primer》最新版本:第三版(第四版国外已上架,国内一些网上书店也在预订中)适合有丰富C经验,缺乏C++经验的。不过我个人一直认为此书带着过于强烈的C语言的痕迹,对于C++的学习未必是好事。《The C++ Programming Language》/《C++程序设计语言》最新版本:第三版特别版简称TC++PL,有其他语言的丰富经验的。(也有人简称之为“TCPL”,但需
2007-04-28 00:28:00
1156
转载 软件需求说明书
1引言1.1编写目的 说明编写这份软件需求说明书的目的,指出预期的读者。1.2背景 说明: a.待开发的软件系统的名称;b.本项目的任务提出者、开发者、用户及实现该软件的计算中心或计算机网络;C.本项目的负责人; D.该软件系统同其他系统或其他机构的基本的相互来往关系。 1.3定义 列出本文件中用到的专门术语的定义和外文首字母组词的原词组。1.4参考资料
2006-10-13 18:16:00
1255
原创 软件需求规格说明书
1. 引言1.1 编写目的:编写此文档的目的是进一步定制软件开发的细节问题,便于用户与开发商协调工作.本文档面向的读者主要是项目委托单位的管理人员.希望能使本软件开发工作更具体.1.2 项目背景1.2.1项目委托单位:****公司1.2.2开发单位:***公司1.3 定义1.4 参考资料2. 任务概述2.1 目标: 决策支持:根据公司的要求及时提供所需报表及文件,并在适当时候对各部门领导给予
2006-10-13 17:50:00
3290
原创 VC中使用STL出现的警告.
当在使用STL时,VC有时会提出类似以下的警告:Compiling...test.cppC:/Windows/Desktop/test/test.cpp(13) : warning C4786: std::reverse_iterator,std::allocator > const *,std::basic_string,std::allocator >,std::basic_string::
2006-07-12 11:19:00
1257
原创 first-chance exception
The first-chance exception can be ignored because it is safely handled by the operating system. INFO: First and Second Chance Exception Handling (Q105675)Structured exception handling (SEH) takes a l
2006-07-03 22:33:00
2163
原创 accept a work
This months I accepted a project that write a IM client based on the GLOOX, I was interesting in Jabber and also did some work on it. before this I had implemented a systematic IM chatting tool based
2006-06-22 11:54:00
1016
原创 The promise of MOM based on XMPP
I just want to write a server based on XMPP for communication with different people all over the world Originally. Gradually I realise the powerful function of Jabber is not constrained to just chatti
2006-03-22 20:41:00
898
1
原创 设计思路
当用户注册时,不仅仅在数据库的Register表中记录下注册信息,而且创建一张以用户名命的表,用于存放状态被订阅的信息。用户登入时,加载用户的这张表到一个哈希表当中。当一个客户端发来一个message 的时候,首先查看接收方是否available,如果不,则要将这message存储起来。When registering, the server not only record the regis
2006-03-18 11:55:00
1345
1
转载 Proverb
Time flies. 光阴似箭. Time is life. 时间就是生命. Times change. 时代在改变. Time is money. 时间就是金钱. Life is sweet. 人生是美好的. Love is blind. 爱情是盲目的. Extremes meet. 两极相通,有无相生。 Like knows li
2006-03-16 19:43:00
1149
原创 Cognition of the agsXMPP
What the XMPP protocol depict ,In fact, it is totally the exchange of the XML datas between the client and server. Using the object-oriented thinking to describe the XML fragments as Jabber packets i
2006-03-14 22:32:00
1145
原创 Identify
ID as the unique identifier of the message is generated by the client . The client uses it to keep track of the message.SessionID generated by the server is used to identify the client and keep th
2006-03-14 10:15:00
1304
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人