Archive for the ‘Codes’ Category

perfect commentary style

星期四, 6月 12th, 2008

e.g:

/* Project Babel
 *
 * Author: Livid Liu <v2ex.livid@mac.com>
 * File: /htdocs/core/V2EXCore.php
 * Usage: V2EX Page Core Class
 * Format: 1 tab indent(4 spaces), LF, UTF-8, no-BOM
 * 
 * Subversion Keywords:
 *
 * $Id: V2EXCore.php 316 2008-01-15 00:25:31Z v2ex.livid $
 * $Date: 2008-01-15 08:25:31 +0800 (星期二, 15 一月 2008) $
 * $Revision: 316 $
 * $Author: v2ex.livid $
 * $URL: http://project-babel.googlecode.com/svn/trunk/htdocs/core/V2EXCore.php $
 *
 * Copyright (C) 2006 Livid Liu <v2ex.livid@mac.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

我的双屏uBuntu

星期日, 11月 25th, 2007

       经过了半天的努力,我把我的代号为mrzenixuBuntu6的机器成功变成双屏幕显示。(另一个屏幕由来:一台无使用机器)
       这台机器现在是全校最刁的机器了。手机像素不高,就凑活着看吧,呵呵。

ubuntu dual screen1
ubuntu dual screen1
ubuntu dual screen1

xorg.conf配置文件

[乱]mfc与sdk笔记[十四]

星期四, 8月 16th, 2007

关于链接库。大概的使用应该就这些吧。呵呵。
(more…)

[乱]mfc与sdk笔记[十三]

星期一, 8月 13th, 2007

进程间通信。剪贴板,管道,邮槽
(more…)

[乱]mfc与sdk笔记[十一]

星期五, 8月 10th, 2007

vc进行网络socket编程与一些简介。
(more…)

[乱]mfc与sdk笔记[十]

星期五, 8月 10th, 2007

文档,串行化,类数据永久保存(或者说内存)。很直白的东西,不知道为什么教程老是绕来绕去弄的我看了几次才明白怎么回事。小笔记。
(more…)

[乱]mfc与sdk笔记[九]

星期三, 8月 8th, 2007

文件操作,配置文件? 注册表操作。
(more…)

[乱]mfc与sdk笔记[八]

星期日, 8月 5th, 2007

这个主要笔记的是视图和保存吧。我也不知道。

(more…)

[乱]mfc与sdk笔记[七]

星期日, 8月 5th, 2007

关于绘图?各类对话框…
写到第七篇,发现一些理念,差异变得越来越小了。在预测教程进行下一步操作所需要的代码也更加准确。但是绝不是当初刚学的时候所用的理念。对于Windows程序其实只有一个解释,消息决定一切,一切源于消息,你不用找它,它会找你,msdn是万能的。最后也很容易发现,其实体力活比什么都多,什么算法什么数据结构的,在一般程序几乎用不着,用得到的只有逻辑。所以之前看一些看来很牛x的程序,现在在我看来也不过如此,毕竟大多体力活和美工的事情。真正的程序我觉得应该像topboy那种在ACM做题的。算法,数据结构结合的艺术,对待代码,就应该像艺术品一样对待。所以基础的重要性…
(more…)

[乱]mfc与sdk笔记[五]

星期四, 8月 2nd, 2007

基于对话框与控件。
(more…)