- 博客(13)
- 资源 (6)
- 收藏
- 关注
原创 typedef 和#define定义别名的区别
typedef与#define 的区别一、typedef的用法 typedef常用来定义一个标识符及关键字的别名,它是语言编译过程的一部分,但它并不实际分配内存空间,实例像:typedef int INT;typedef int ARRAY[10];typedef (int*) pINT; typedef可以增强程序的可读性,以及标识符的灵活性,但它也有“非直观性”等缺点。二、#define的用法 #define为一宏定义语句,通常用它来定义常量
2010-12-24 15:47:00 1274
原创 ubuntu wiki 下的编程简单入门
编程语言: http://wiki.ubuntu.org.cn/%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80脚本:http://wiki.ubuntu.org.cn/%E8%84%9A%E6%9C%AC%E8%AF%AD%E8%A8%80
2010-12-24 15:23:00 653
原创 python cookielib 登陆校内
转自: http://www.cnpythoner.com/post/30.html我今天给大家分享一个我自己用python写的自动登录 人人网的脚本,没办法就是懒!懒的输入帐号和密码,让python给我们减少工作量! 先上脚本吧,等下来讲下知识点:#!/usr/bin/env python#encoding=utf-8import sysimport reimport urllib2import urllibimport cookielibclass Renren(object): def
2010-12-23 17:07:00 1161
原创 Vrapper — Vim-like editing in Eclipse
website:http://vrapper.sourceforge.net/home/Vrapper is an eclipse plugin which acts as a wrapper for eclipse text editors to provide a Vim-like input scheme for moving around and editing text.Unlike other plugins which embed Vim in Eclipse, Vrapper imitate
2010-12-19 12:02:00 1217
原创 VIM开发C/C++插件cvim的安装及使用
利用c.vim插件,你可以实现添加文件头添加注释插入一些代码片段语法检查读函数文档注释代码块这一插件的作者是 Fritz Mehner, 目标就是打造程序员流畅的编辑环境。这一插件还能完成:Statement oriented editing of C / C++ programsSpeed up writing new code considerably.Write code and comments with a professional appearance from the beginning.Us
2010-12-17 17:23:00 43123
原创 rsync中文手册
转自:http://blog.csdn.net/joliny/archive/2007/09/25/1800767.aspx 必须在服务器A和B上都安装rsync,其中A服务器上是以服务器模式运行rsync,而B上则以客户端方式运行rsync。这样在web服务器A上运行rsync守护进程,在B上定时运行客户程序来备份web服务器A上需要备份的内容。rsync服务器1、rsync服务器的启动在web服务器A上需要以守护进程方式来启动rsync服务器,只需要运行:[root@www rsync-2.4.6]#
2010-12-13 16:50:00 633
原创 code style
3.1 CommentsExample 3-1 shows how the "hello world" program looks after comments are added.Example 3-1. hello2/hello2.cpp/******************************************************** * hello -- program to print out "Hello World". * * Not an espe
2010-12-10 13:12:00 424
原创 经典杂文
永远要像你不需要金钱那样地工作;永远要像你不曾被伤害过那样地爱;永远要像没有人在注视你那样地跳舞;永远要像在天堂那样地生活。 -- 马克吐温
2010-12-09 12:44:00 414
原创 我的tmux配置
# General Settingset-option -g prefix C-aset-window-option -g automatic-rename off# Statusbar properties.set -g display-time 3000set -g status-bg blackset -g status-fg cyanset -g status-right "#(uptime|awk '{print $11}') #(date)"set utf8-default on# Bindin
2010-12-06 16:25:00 642
原创 推薦使用tmux – a "terminal multiplexer"
tmux是一個類似常見的GNU Screen軟體,那作者為啥還開發呢,原因單純,他覺得Screen使用的Licence是GNU有些限制,所以就順手寫了一個類似功能但是卻是用BSD Licence,除了Screen常用的功能都有外,tmux還可以在單一一個window中處理多個不同的terminal,如果你常跟我之前一樣需要常常切換在Screen之間去做事情,你一定會愛死tmux的!! 首先,先來談談如何安裝,由於不是每種OS所提供的tmux package都是最新的1.0版,所以我會建議直接抓tarbal
2010-12-06 15:39:00 852
原创 25 Best Linux Commands 25个最好用的linux的命令
As a Linux user you’ll come to learn and love certain commands. Remembering these commands is the toughest part. Some people use cheat-sheetssome create scripts, and some just refer to websitefor their fix. Here I have posted the 25 top command line snippe
2010-12-06 12:42:00 805
原创 设置Gvim的启动位置与窗口大小,代码折叠及配色等
在开头(结尾那加也应该可以,没有试过,没必要试)加入这些行:++++++++++++++++++++++++++++++winpos 235 235set lines=25 columns=108 colo peachpuff set autoindent ++++++++++++++++++++++++++++++第一行为设置启动位置;第二行为设置窗口大小,行X列;第三行为设置本色方案;第四行为自动与上一行跟从缩进.建议加上代码折叠功能:===="用空格键来开关折叠(说明西方“"”后面的内容为注释,不会被
2010-12-05 22:27:00 14148
原创 Ubuntu下evince查看中文pdf乱码解决方案
Evince真是让我又爱又恨,作为Ubuntu默认的PDF查看软件,启动速度飞快是其特点,但是对中文的过弱支持让人实在闹心。 安装poppler-data:yuanjin@yuanjin-laptop:~$ sudo apt-get install poppler-data搞定收工!转自:http://www.goleng.com/?p=276
2010-12-03 14:24:00 708
Addison.Programming.in.Python.3.Dec.2008
2010-03-17
Subversion 权威指南
2010-03-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人