sa note – such another note site

关于互联网架构,分布式应用,数据库,SQL/NOSQL,高性能计算,同时钟爱Mac

解决mac dock cpu跑满的问题

without comments

原因是vmware fusion引起的。

解决方法:

在虚拟机的 *.vmx文件里加一行: isolation.tools.hgfs.notify.enable = “FALSE”

然后重启vmware,重启里面的虚拟机。

Written by admin

十二月 2nd, 2011 at 11:15 上午

Posted in mac

使用vimdiff作为svn diff工具

without comments

http://www.blogjava.net/stone2083/archive/2011/05/24/350917.html

http://hi.baidu.com/spare_h/blog/item/d4311cee2b72c801fcfa3c1e.html

http://www.ccvita.com/445.html

1、

编写svndiff脚本,放在/usr/local/bin下,

~~~~~~~~~~~~~~~~~~~~~

#!/bin/sh

#去掉前5个参数

shift 5

#使用vimdiff比较

vimdiff -f “$@”

#~~~~或者~~~~~~~~~~~~~~~

#!/bin/sh

# 配置你喜欢的diff程序路径

DIFF=”vimdiff”

# SVN diff命令会传入两个文件的参数

LEFT=${6}

RIGHT=${7}

# 拼接成diff命令所需要的命令格式

$DIFF $LEFT $RIGHT

~~~~~~~~~~~~~~~~~~~~~~

2、 修改 ~/.subversion/config

        diff-cmd = svndiff

Written by admin

十二月 2nd, 2011 at 11:00 上午

Posted in vim

试用SecureCRT

without comments

rm -rf ~/Library/Application\ Support/VanDyke

Written by admin

十一月 24th, 2011 at 5:18 下午

Posted in mac

dnssec相关技术

without comments

Written by admin

十一月 23rd, 2011 at 1:40 下午

Posted in dns

python llvm

without comments

Written by admin

十一月 15th, 2011 at 11:32 下午

Posted in python

mac route table flush

without comments

/usr/bin/sudo /sbin/route flush

Written by admin

十一月 15th, 2011 at 6:55 下午

Posted in mac

分布式版本控制工具 bazaar — bzr

without comments

Bazaar-NG 采用 Python 语言编写

http://bazaar.canonical.com/en/

Part of the GNU Project, Bazaar is free software sponsored by Canonical.

bzr 五分钟教程

http://3444542.blog.163.com/blog/static/422666022008311105520792/

http://wiki.bazaar.canonical.com/中文

Written by admin

十一月 14th, 2011 at 10:53 下午

Posted in misc

加速 Apple App Store 下载速度

without comments

Written by admin

十月 18th, 2011 at 5:35 下午

Posted in mac

How to Disable Recent Items in Lion’s Dock

without comments

Written by admin

十月 10th, 2011 at 8:53 下午

Posted in mac

自定义vim color theme的一个另类方法

without comments

手动修改vim的colortheme比较麻烦,有一个方法就是,在textmate里调整好主题颜色,然后copy出来。
再去http://coloration.sickill.net/此网站,他可以把textmate的主题颜色转化为vim的主题颜色,这样就容易多了。

这个东西还有一个命令行工具: 作者网站是这么描述的:
If you like to install coloration on your own machine to do some batch conversion or for some other reason just gem install coloration. It gives you tm2vim, tm2jedit and tm2katepartbinaries to do the conversion on command line.

项目地址:http://github.com/sickill/coloration

Written by admin

九月 30th, 2011 at 3:08 下午

Posted in vim