- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 note on rest in practice
REST li { list-style: none; margin: 0; } p { margin: 0; } span.l { color: red; font-weight: bold; } a.mapnode:link {text-decoration: none; color: black; } a.mapnode
2011-12-20 00:31:43
711
1
原创 random GB2312 in python
"""" GB2312 http://zh.wikipedia.org/wiki/GB_2312 汉字区的“高位字节”的范围是0xB0-0xF7,“低位字节”的范围是0xA1-0xFE, 占用的码位是72*94=6768。其中有5个空位是D7FA-D7FE。 """ def randomGB2312(): high=random.randint(0xB0, 0xF7)
2011-11-06 11:28:34
563
原创 declare a class uncopyable
To prevent a class from copy or copy assignmentbehavior, there are two ways, as I know,1st, private inherit from a un-copy-ableclass, ECPP, Item62nd, use macroExample: //
2010-03-28 20:18:00
1101
原创 stack frame和函数调用--眼见为实
从汇编层面上看程序,最主要的事务是函数调用,所以掌握函数调用和stack frame的概念是基本功。以MSVC6为工具,debug一个小测试程序,就可以理解其中的原理了。测试程序如下,是不是很简单?void test2(){}void test1(){ test2();}int main(){
2010-01-21 15:00:00
1396
原创 volatile--眼见为实
The volatile keyword was devised to prevent compiler optimizations that might render code incorrect in the presence of certain asynchronous events.以前看过volatile的解释,但实际上事情是怎么发生的,心里还是没底。俗话说,眼见为
2009-12-16 17:49:00
609
SMT统计机器翻译入门
2013-06-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人