摘要: Why not use tabs (introduced in Vim 7)? You can switch between tabs with :tabn and :tabp, With :tabe <filepath> you can add a new tab; and with a regular :q or :wq you close a tab. If you map :tabn and :tabp to your F7/F8 keys you can easily switch between files.If there are not that many file 阅读全文
posted @ 2012-10-19 11:20 伏者 阅读(150) 评论(0) 推荐(0)
摘要: 在centos下用yum安装新软件是,yum有时候会提示找不到相应的软件(当然可以用源码安装来解决问题,不过这个需要手动解决依赖问题,比较麻烦。)。这时可以到https://fedoraproject.org/wiki/EPEL的子栏目:"How can I use these extra packages?", 到一个和系统相关的epel-release。然后用rpm安装epel-release包,再重新yum install就可以了。附上记录,方便以后解决同类问题。#yum install gitLoaded plugins: fastestmirrorReposito 阅读全文
posted @ 2012-10-08 15:28 伏者 阅读(4174) 评论(0) 推荐(0)
摘要: 写代码的时候常常会用到这些这些off_t, time_t这样的数据类型,转了一份老外的代码。#define _FILE_OFFSET_BITS 64#include <inttypes.h>#include <limits.h>#include <stdio.h>#include <time.h> /* for time_t */#include <sys/types.h> /* for off_t */#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))#define TYPE_MAX(t) 阅读全文
posted @ 2012-08-13 12:03 伏者 阅读(739) 评论(0) 推荐(0)
摘要: 1、glusterfsd都会放在/usr/local/var/log/glusterfs/bricks/xxx.log2、glusterfs(client)放在/usr/local/va/log/glusterfs/MOUNTPOINT.log3、glusterd放在/usr/local/var/log/glusterfs/etc-usr-local-sbin-glusterfs-glusterd.log4、glusterfs(server)放在/usr/local/va/log/glusterfs/nfs.log 阅读全文
posted @ 2012-08-08 20:06 伏者 阅读(3091) 评论(0) 推荐(0)