lethean's profileErebusBlogLists Tools Help

Blog


    October 17

    update

     
    msn space 超 挫
    September 11

    PS2模拟器

     
    PCSX2 , 目前版本0.9.1(2),据称跑FF X 已经是Playable & Stable
    过段时间应该不少大作都可以玩了
     
    July 29

    豆腐の禁

     
    伟大的四环素神阿,您真的不吃豆腐么。。。
    July 28

    ChinaJoy

     
    明年我们会去的
    July 25

    A100 DX0

     
    sony nikon 打起来了
    加油啊
     
    May 02

    .

     
    如果一天睡眠时间超过12小时,该天称作睡眠日
    连续七个睡眠日称作睡眠周
    连续四个睡眠周称作睡眠月
    。。。。。
     
    April 10

    口.口

    spaces里回复竟然不能删除,我靠啊,不小心淫到别人怎么办
    April 09

    the Day

     
    我只是想看你失望的样子
    而你却宁愿微笑着死去
    或许等你回来
    我们该好好谈谈
    April 07

    七个小jack

     
     
     
     
     
     
    。。。。合影 

     

    April 06

    塔可夫斯基的盒子

    不知道他是不是笑着离开的
    March 27

    Funny。。

    一幅很有意思的开源标志图,从CSDN杂志上截来的。一共14个。
     
    不知道怎么引用,只能copy过来了
     
     
     
     
    从照片看,GNU之父stallman,Java之父Goslin,羊头GNU,挂历是Ximian,骆驼是perl,金鱼是OpenBSD;

    从桌边看,恶魔是FreeBSD,企鹅是Linux,红鼻头是Java Bean,恐龙是Molliza;

    从桌上看,喝的是Java咖啡,笔筒里插的是Apache,筛子是X-Window和GTK,本子上的OpenOffice,桌布是Gnome。

     
    March 25

    the code room is a cold dark place...

     
    Welcome to The Code Room:  The Code Room is a 1/2 hour internet TV show that exposes technologists to the latest tools and technologies for tackling real-world software development issues. This professionally produced & directed TV show highlights the social, teaming, and technical challenges faced when attempting to complete a software development project.
     
    The Code Room is developed around the free MSDN Developer Events held almost 500 times throughout the year. Each episode focuses on a topic presented at the event. In addition, three attendees are selected from the audience to write functioning code using the principles and concepts discussed in the presentation. By exposing the viewers to the detailed information from the event presentation and seeing the real world application of that information that they can actually use themselves, a viewer takes away a deep understanding of the topic.
     
     
    March 23

    书。

     
    《乐府诗述论》
    《论汤显祖及其他》
    浙江古籍出版社和上海古籍出版社
     
    March 21

    RAII and Exception

     
    Resource Acquisition Is Initialization
     
    永远不要为函数加上异常规格,即使是throw()
     
    永远不要再在Destructor , Deallocation 以及 Swap 函数抛出任何异常。
     
    Abrahams异常安全保证:
    1.基本保证:
      失败的操作可能会改变程序的状态,然而不会发生任何泄露,失败操作所影响的对象/模块仍然是可用的而且是可析构的,并且处于一致的状态下。
     
    2.强保证:
      强保证意味着事务提交/回滚语义:从被操作对象的角度来说,操作即便失败也不会导致程序状态的改变。这意味着失败的操作对被操作对象不会产生任何的副作用,也包括那些相关的辅助对象(例如指向被操作容器内不得迭代器)的内容和有效性也不会受到影响。
     
    3.无失败保证:
      无失败保证是指根本不允许失败的发生。从异常的角度来说就是指某个操作绝对不会抛出异常。
     
     
    March 16

    doxygen + VA

     
    doxygen中的常用关键字:
    @file 声明一个文件
    @class 声明一个类
    @fn 声明一个函数
    @brief 简要说明
     
    /**
    @file RenderMgr.h
    @brief 渲染管理类
    @date 3/16/2006
    @author lethean
    */
     

     
    @param 声明一个参数
    @note 注解
    @par paragraph,自定义一个段落标题,类似html中<p>
    @code 代码示例,需要用@endcode封闭,代码段中不需要加前置*号

     /**
     @brief 读取bmp文件
     @remarks 测试一下
     @param [in] dc 传入一个dc用于临时操作
     @param [in] filename bmp文件名
     @note 屏幕dc只能在一处被使用,请确保传入屏幕dc后其他地方不会操作该dc
     @par 代码示例:
     @code
      //使用
      CDC* dc = AfxGetMainWindow()->GetDC();
      Bitmap bmp( dc , "test.bmp");
      AfxGetMainWindow()->ReleaseDC( dc );
     @endcode
     */
     
    对于单行的前置注释可以用///,或者/** blahblah */ 样式
    ///我是一个变量
    int index;
     
    对于单行的后置注释,需要加一个"<"符号
    int count; ///< 我也是
     
    /** 协议标识 */
    enum ProtoId {
     PROTOID_LOGIN, /**< 登陆协议*/
     PROTOID_BROWSE, /**< 浏览协议*/
    };
     
    @defgroup是用来定义新模块的
    集中在某个头文件中定义所有的模块,然后在属于这个模块的类定义处使用@ingroup
     
    EnginePrerequisite.h中
    /**
    @defgroup Render Render渲染模块
    @defgroup Resource Resource管理模块
    @defgroup Sound Sound声音模块
    @defgroup Anim Anim动画模块
    @defgroup Math Math数学库模块
    @defgroup Script Script脚本模块
    */
    RenderMgr.h中
    /**
    @class RenderMgr
    @ingroup Render
    */
     
     
     
    to be contiuned...
     
     
    VA的变量列表:
    Reserved String Meaning
    $clipboard$ Current clipboard
    $DATE$ Year/month/day formatted as %04d/%02d/%02d
    $DAY$ Day of month formatted as %d
    $DAY_02$ Day of month formatted as %02d
    $DAYNAME$ Three-character abbreviation of day
    $end$ Position of caret after expansion
    $FILE$ Full filename with path*
    $FILE_BASE$ Filename without path or extension*
    $FILE_EXT$ Filename extension*
    $FILE_PATH$ Path of file*
    $GUID_DEFINITION$ GUID formatted for use in a definition
    $GUID_STRING$ GUID formatted for use in a string
    $GUID_STRUCT$ GUID formatted for use in a struct
    $HOUR$ Hour formatted as %d
    $HOUR_02$ Hour formatted as %02d
    $MINUTE$ Minute formatted as %02d
    $MONTH$ Month formatted as %d
    $MONTH_02$ Month formatted as %02d
    $MONTHNAME$ Three-character abbreviation of month
    $SECOND$ Second formatted as %02d
    $selected$ Current selection**
    $YEAR$ Year formatted as %d
    $$ $
    另外VA可以直接使用系统环境变量。