2011-03-27

guake 类quake的下拉终端 | guake: a quake-alike drop-down terminal

平时需要个顺手的终端,希望呼之即来,挥之即去的。gnome-terminal 本身不错,但是呼叫用鼠标太慢了,最近考虑绑定个super+t之类的,但是每次开启也比较慢,另外不好隐藏,而且如果运行一个程序就想隐藏了,一会儿再回来找它看结果也不方便。

于是就想起了guake,以前装过,没好好设置,这次设了一下,还不错,主要是设了透明,去了tab和滚动条,失焦自动隐藏,绑定呼出/隐藏快捷键为super+`。

于是感觉生活太美好了,而且这样呼出一个terminal确实如quake系fps游戏一样,感觉在和系统核心打交道。

[Update] 刚看了一下guake源码,原来还有很多隐藏的gconf可以调整。现在把resizer也去了,完美了~



I really need a handy terminal in my daily life, I want it to appear as soon as I call it, and I want it to disappear when I do not need it any more. gnome-terminal itself is good, I've been using it, but maybe it is not quite suitable for this task, as it's too slow to call it, and I've considered to bind a shortcut super+t to call it, but it will not be convenient when I run something on it, hide it and want to see the result later.

The I recalled guade, I had tried it before, but without a deeper look. This time I went through the settings and make it a really handy terminal. Basically I adjusted the transparent background, hide the tar bar and scroll bar, make to auto-disappear when losing focus, and at last I bind the shortcut calling/hiding it to be super+`.

Then my life changed! It really likes those terminals in those fps game in quake style, and it dos make feeling communicating with the core of the system.

[Update] I found several hidden gconf settings after a quick browse of its source code. Now I've hidden the resizer, making guake perfect!

tesseract 一个ocr软件 | tesseract: an ocr application

最近需要写bot,要搞验证码,于是想到了ocr,搜到了几个,然后就找到了tessearact。看上去还不错,用了用确实不错。



Recent I needed to write a bot for some automation works, I needed to break some captchas, then I thought about an ocr appliction. I found a number of them from google, then I pick up tesseract among them. It looks good, and is really good as I have been using it.

vim 让背景透明 | make transparent background in vim

gnome-terminal 背景默认是透明的了(至少是ubuntu下),guake也可以弄成透明的,但是vim我用了colorscheme torte,结果背景是一坨黑,很不爽。

最近研究了一下,命令应该是hi Normal ctermbg=NONE,而且应该放到torte.vim里(直接放vimrc中colorscheme的后面没有用,没有再仔细研究)。于是把torte.vim放到~/.vim/colors里,改名,把Normal一行的ctermbg设成None。就好了。 (当然vimrc里要加载这个新的颜色)

另外改guibg后gvim会报错,也没有再自己研究。我基本也不用gvim。



The background color of gnome-terminal has already been transparent, and so has guade. But (maybe since) I use 'colorscheme torte' for vim, the background is a huge black block, ugly...

So I check the help page in vim and found the command should be 'hi Normal ctermbg=None', it's no use if put below the 'colorscheme' scheme in .vimrc, I have to change the color file. So I move the torte.vim in to my ~/.vim/colors, changed its name,and changed ctermbg to be 'NONE' at the line containing 'Normal'. Then it's done (of course you need to load this new scheme file in vimrc)

Besides, gvim will show an error dialog if I set guibg to be NONE, don't know why but ok for me as usually I don't use gvim.