Sunday, September 30, 2007

升级wp到2.3

昨天把WP升级到了2.3,感觉很好,由于WP2.3自己带有TAG的功能,所以原来的TAG插件不能使用了,不过你可以使用2.3上自带的导入功能中的TAG导入功能来导入原来TAG的数据库,并且支持多种TAG插件,完全不用修改PHP代码,不过原来你在模板中使用的TAG代码就不能用了,可以再这里找到WP2.3新的模板TAG代码。

Saturday, September 22, 2007

Intel is cool, now!

Intel 发布了一系列可以在Linux系统上的“节能”程序,主要方法是使用Intel工程师开发的Kernel模块来跟踪 Linux 系统上占用程序占用CPU的一系列参数,用户可以根据这些软件包来有目标优化自己的系统,并更加智能使系统运行更优化,使得系统可以节约能源,这个难道不是
Intel is cool, now!

吗? ;) 或者说是
Intel is green!


Linux节能项目官方站点

Efficient Editing With vim

我在这里发现了这篇关于VIM操作的文章,感觉不错,所以转载了过来。

This article has been translated into French by Geoffrey Bachelet. You can read the French version here: L'dition efficace avec vim.




"To me, vi is Zen.
To use vi is to practice zen.
Every command is a koan.
Profound to the user,
unintelligible to the uninitiated.
You discover truth every time you use it."

--reddy@lion.austin.com



This tutorial assumes a basic knowledge of vim -- insert mode, command mode, loading and saving files, etc. It is intended to help vi novices develop their skills so that they can use vi efficiently.



In this tutorial, <C-X> means Ctrl-X -- that is, hold down the Ctrl key and codess X. You can get help on most of the commands used here by typing :help command in vim, where command is what you need help on.



Moving efficiently



Stay out of insert mode



In general, you want to spend as little of your time in vim's insert mode as possible, because in that mode it acts like a dumb editor. This is why most vim novices spend so much time in insert mode -- it makes vim easy to use. But vim's real power lies in command mode! You'll find that the better you know vim, the less time you will spend in insert mode.



Use h, j, k, and l



The first step to efficient editing in vim is to wean yourself from the arrow keys. One of the the advantages of vim's modal design is that you do not need to constantly move your hands back and forth between the arrow keys and the letter keys; when you are in command mode, the letters h, j, k and l correspond to the directions left, down, up, and right, respectively. It takes some practice to get used to, but you will notice the speed difference once you're used to it.



When you are editing e-mail or other paragraph-formatted text, you might notice that the direction keys skip more lines than you expect. This is because your paragraphs appear as one long line to vim. Type g before h, j, k or l to move by screen lines instead of virtual lines.



Use motions to move the cursor in the current line



Most editors have only simple commands for moving the cursor (left, up, right, down, to beginning/end of line, etc). vim has very advanced commands for moving the cursor; these commands are referred to as motions. When the cursor moves from one point in the text to another, the text between the points (and including the points themselves) is considered to be "moved over." (This will be important later.)


rxvt-unicode 配置


Xft.dpi:96

!!========================================================
!! RXVT-unicode setting
!!========================================================
URxvt.inheritPixmap: False
URxvt.visualBell: true
URxvt.insecure: true
URxvt.saveLines: 3000
URxvt.scrollBar: True
URxvt.scrollBar_right: True
URxvt.scrollstyle: plain
URxvt.secondaryScroll: true
URxvt.underlineColor: yellow
URxvt.termName: xterm
!標籤功能
URxvt.perl-ext-common: default,tabbed
URxvt.tabbed.tab-fg: 12
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.tabbar-fg: 4

!colors
URxvt.background:black
URxvt.foreground:grey
URxvt.colorBD:yellow
URxvt.colorUL:Green

URxvt.color0: #000000
URxvt.color1: #CC0000
URxvt.color2: #4E9A06
URxvt.color3: #C4A000
URxvt.color4: #3465A4
URxvt.color5: #75507B
URxvt.color6: #06989A
URxvt.color7: #D3D7CF
URxvt.color8: #555753
URxvt.color9: #EF2929
URxvt.color10: #8AE234
URxvt.color11: #FCE94F
URxvt.color12: #729FCF
URxvt.color13: #AD7FA8
URxvt.color14: #34E2E2
URxvt.color15: #EEEEEC

!字型
URxvt.font:xft:Bitstream Vera Sans Mono:pixelsize=15, \
xft:AR PL New Sung Mono:antialias=false

!URxvt.font:xft:Monospace:pixelsize=15:antialias=false

!輸入法
inputMethod:gcin
!輸入法樣式可選:Root(置底) OverTheSpot(跟隨)
URxvt.codeeditType:Root


urxvtd

urxvtd -q -f -o

啟動背景程式,然後用urxvtc來啟動客戶端。

tab功能
記得加入:

URxvt.perl-ext-common: default,tabbed

shift+down:新增tab
shif+left:左移
shift+right:右移

Saturday, September 8, 2007

links for 2007-09-08

Wednesday, September 5, 2007

vmware虚拟机在ubuntulinux上的问题

在shell里运行vmplayer,出现下面的错误然后退出,从“应用程序”菜单里也不能启动。

/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2)

解决办法:

$ cd /usr/lib/vmware/lib/
$ sudo mv libpng12.so.0/libpng12.so.0 libpng12.so.0/libpng12.so.0.disabled
$ sudo ln -sf /usr/lib/libpng12.so.0 libpng12.so.0/libpng12.so.0


然后修改 /usr/bin/vmplayer 这个脚本,在第一行后面加上

unset GTK_IM_MODULE

links for 2007-09-05

Monday, September 3, 2007

links for 2007-09-03

创业者圣经

来自solidot.org

可能每个人都有创业的梦想吧。没有创业,是因为没有项目?缺乏资金?没有时间?我觉得最有可能的原因是没有勇气,没有做好准备。Sath Godin的《创业者圣经》就是帮你解决这个问题的。这本书在译言有专门的小组,经过众多译者的协作努力,终于全部翻译完成,现在已经制作完成PDF版本,供更多想要创业但是又不敢创业的人阅读。


如果以上链接失效,我在这里同时上传了这本书的英语中文版本,同时再次感谢这些无私奉献的朋友们