向毛泽东同志学习
2010年02月1日
by 温 云龙
119 views
0 comments
最近一直在看中央一套的《红色摇篮》,深深的为毛泽东博大的胸怀,高瞻远瞩而不失实在战略目光所折服。突然让我对这个教书匠出人的人民领袖充满了敬仰和好奇,最近查阅了不少关于毛泽东遵义会议前后的史料,越是接触的文章多,那种敬佩就越发的由衷起来。
2010年02月1日
by 温 云龙
119 views
0 comments
最近一直在看中央一套的《红色摇篮》,深深的为毛泽东博大的胸怀,高瞻远瞩而不失实在战略目光所折服。突然让我对这个教书匠出人的人民领袖充满了敬仰和好奇,最近查阅了不少关于毛泽东遵义会议前后的史料,越是接触的文章多,那种敬佩就越发的由衷起来。
2009年09月24日
by 温 云龙
246 views
0 comments
config.h
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include \"list.h\"
typedef struct config_node {
char *section;
char *name;
char *value;
} config_node_t;
int config_node_add(list_t *list, char *section, char *name, char *value);
int config_load(list_t **list, const char *filepath);
char *config_get(list_t *list, const char *section, const char *name, const char *def);
void config_free(list_t *list);
#endif /* __CONFIG_H__ */
2009年09月24日
by 温 云龙
127 views
0 comments
源代码
list.h
#ifndef __LIST_H__
#define __LIST_H__
typedef struct list_node
{
struct list_node *prv;
struct list_node *next;
void *data;
} list_node_t;
typedef struct
{
list_node_t *first;
list_node_t *last;
int size;
} list_t;
int list_init(list_t **list);
int list_add(list_t *list, void *data);
void *list_get(list_t *list, int index);
int list_remove(list_t *list, int index, void (*data_free) (void *));
void list_free(list_t *list, void (*data_free) (void *));
#endif /* __LIST_H__ */
2009年08月31日
by 温 云龙
109 views
0 comments
异形窗口利用蒙板(mask)实现,蒙板的数据从图片获得,每一点只有透明和不透明两种状态,不透明区域显示该窗口的背景,透明区域显示其后桌面或其它应用 (全文…)
2009年08月31日
by 温 云龙
127 views
0 comments
Linux 下无线网卡启动脚本
不使用dhcp
#!/bin/sh
ifconfig wlan0 up
iwconfig wlan0 ESSID MYESSID
iwconfig key s:PASSWORD
ifconfig wlan0 192.168.0.xxx
route add gw 192.168.0.1
2008年12月26日
by 温 云龙
118 views
0 comments
主题文件:Thinkpad Slim Theme
安装方法,解压缩到 /usr/share/slim/themes 就可以了
# tar -xf thinkpad.tar.gz -C /usr/share/slim/themes
修改slim配置文件 /etc/slim.conf
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme thinkpad
2008年12月25日
by 温 云龙
140 views
0 comments
#!/bin/bash
#
# $id: .xinitrc.sh,v 1.0.0 2006/12/25 02:50:42 master Exp $
# Copyright (C) 2008 Yunlong Wen (wenyunlong@gmail.com)
#
# Last Modified: 2008/12/25 09:54:53
#Locale Setting
export LANG=\"en_US.UTF-8\"
export LC_CTYPE=\"zh_CN.utf8\"
#Chinese Input Engine
export XMODIFIERS=\"@im=SCIM\"
export GTK_IM_MODULE=\"scim\"
export QT_IM_MODULE=\"scim\"
#Exec Session
DEFAULT_SESSION=startxfce4
case $1 in
xfce4)
exec startxfce4
;;
fluxbox)
exec fluxbox
;;
*)
exec $DEFAULT_SESSION
;;
esac