Skip to main content

Posts

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, ...

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 k...

Windows 7 不能自动给移动硬盘分配盘符 | Windows 7 won't assign a volume letter for removable hard disks automatically

症状: 插上移动硬盘后,显示连接了usb设备,但是在我的电脑里看不到新盘符。 用计算机管理里面的磁盘管理可以手动设置盘符,然后可以使用。 解法: 以管理员权限运行命令mountvol /e Symptom: A new volume won't appear in 'my computer' after plugging in a removable hard disk, but it shows that a new usb device has been plugged in. A volume letter can be manually assigned through the disk management in computer management console, then the removable disk can be used normally. Solution: run as adin: mountvol /e

ubuntu 下挂载ipad | Mounting ipad on Ubuntu

默认情况下插上ipad会报个dbus错误。 应当安装ifuse这个包,但是官方源的目前不够新。 按ifuse官网说法,添加ppa ppa:pmcenery/ppa,更新一下就好了。 In default installation, after plugged in an ipad, a dialog will show saying something wrong with dbus. The package ifuse would be necessary for accessing ipad, but the one in the official repository is not new enough. According the the web page of ifuse, just to add the ppa ppa:pmcenery/ppa, then perform an upgrade.

ios 游戏修改 | Cheating games in iOS

以前看网页都说是只能破解才能修改,今天发现其实不是 用iphone explorer可以看到app信息,这就够了,游戏的存档也都在这里。目前像megajump, run as hell都没问题,所以存档类的修改都ok了。 二进制不知道是不是也能修改,看样子是可以。 但是锁定变量这种修改应该就不行了吧。 It was said in several web pages that game files can be modified only in jailbroken ios, but today I found that this is not true. We can explorer the files for apps with iphone explorer, and this is enough. I've successfully modified savegames of megajump and run as hell. I'm not sure if we can modified the binary files of the games, seems to be ok. But maybe we can not lock any variables.

启用compiz和fglrx时的vnc问题 | Problem of vnc server with compiz and fglrx enabled

困扰了我近两年的问题。 远程连vnc回我的电脑,第一个画面能看到,鼠标也可以动,但是键盘按没反应,画面也不会再动。 一开始以为是网络问题,或者是设置了view only,但是本机上看,鼠标和键盘都得到了响应,所以只是屏幕刷新的问题。 这个问题我一直不知道原因。 但是最近新装的ubuntu,一开始是可以连得,没有问题,我还以为是更新了解决了这个问题。但是最近又不行了,我才开始想最近改了什么设置。 最后发现原来是启动了fglrx,关了radeon。 改回radeon后vnc又复活了。 于是查了一下, 果然是个bug,见 https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/353126 , 而且nvidia的闭源驱动也有这个问题,我以前是用的nvidia的卡,只是一直用它的驱动,所以没有发现这个问题。 A problem that has been bothering me for nearly two years. So the problem is, when trying to remotely connect to the vnc server enabled on my computer, I can see only the first screenshot, without further update, the mouse pointer is moving, but keyboard events are not responded. I thought at first this must be something wrong with the network, or maybe "view only" is set on the server, however on my computer I see that mouse and keyboard are working properly, so it's only the problem of screen updating. I didn't know the reason all the time until now. Recently I have a new Ubuntu installe...