自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

转载 设置EMACS 23 在启动时候自动最大化

在Windows XP下面,看了网上的一些帖子,自己也试了一下,发现下面的方法比较好用:直接在启动文件(.emacs 或者 site-start.el)的最下面增加一条语句:(run-with-idle-timer 1 nil 'w32-send-sys-command 61488)其中函数 (w32-send-sys-command 61488) 是向当前emacs的窗口发送最大化的

2014-10-17 13:57:26 2181

原创 Emacs 用空格代替TAB

Emacs 的TAB缩进在其他编辑器, 比如source insight 不能正确显示,导致原本排列的很整齐的代码参差不齐,有一个解决方法是用强制emacs 在输入或调用TAB键时都用空格键space填充,这样所有的编辑器都能正确辨识。or this session, force Emacs to indent with spaces, never withTABs:M-x

2014-10-17 10:12:35 4204

原创 我的.emacs 文件内容

1 (custom-set-variables 2 ;; custom-set-variables was added by Custom. 3 ;; If you edit it by hand, you could mess it up, so be careful. 4 ;; Your init file should contain only one such

2014-10-16 17:24:14 702

原创 perl判断文件是否存在

主要就是 -e 这个操作符 ( e 即是 "exist" )$fileExist = -e "C:/windows/readme.txt";if ( $fileExist ) { print "Yes"}else { print "No"}

2014-10-14 17:00:55 2426

原创 shell 判断参数是否存在

if [ -$# -lt 1 ]; then echo 没有命令行参数fiif [ x"$parm" = x ]; then echo 参数parm不存在或者为空值fiif [[ -z "$parm" ]]; then ...

2014-10-14 11:18:05 13278

原创 perl command not found

perl 脚本内容:

2014-10-14 10:04:00 11209

原创 sed替换整行

sed '5s/^.*$/xxxxx/'  file第5行替换为xxxxx如果

2014-10-13 14:26:25 14049 1

原创 HelloWorld.java:3: 找不到符号

public class HelloWorld{ public static void main(string[] args) { System.out.println("Hello Java!"); }}

2014-10-10 13:52:37 3000 2

原创 ps aux 结果显示不全

最近在用nagios,写了个检查系统服务的插件,其中用到了

2014-10-10 10:31:39 6350

原创 Perl system(cmd) 和 `cmd` 的区别

perl 系统调用有两种方式:一种是system(cmd),另一种是`system`以前一直没注意,这两种方式的区别,还以为是一样的,今天写脚本的时候,忽然想要获取命令的返回值,然后,用了my $result = system('ls');发现,命令的结果并没有返回给$result,而是直接,打印到屏幕上了,所以,这么搞是要完蛋的,而改成my $result = `

2014-10-09 15:08:45 2223

GnuPlot 使用手册.pdf

GnuPlot 使用手册.pdf,详细介绍了gnuplot的使用资料

2014-07-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除