From Linux by Examples
I have wrote a post regarding on how to access ftp host using curl. And this time, let us look at how to mount the ftp host to a local directory on top of FUSE.
FUSE (Filesystem in userland) is a userland build on top of virtual filesystem, it [...]
from Linux by Examples by mysurface
Search though google, there are a tons of tutorial for accessing a remote site through ssh without a password. I found some tutorial gives too much details. Sometimes, detail’s explanation may confuse the beginners. I just want to make things done, I don’t want to know too much about the [...]
在英文环境下安装FCITX没有安装SCIM方便,需要修改一些文件,现在简单列出安装的步骤:
安装FCITX包,直接使用sudo apt-get install fcitx即可,现在源中的文件版本是3.4.3
安装im-switch,直接使用sudo apt-get install im-switch即可
因为是英文环境,所以需要修改Xinput文件:
sudo vi /usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules
在该文件中找到
“xim” “X Input Method” “gtk20″ “/usr/share/locale” “ko:ja:th:zh”
替换为:
“xim” “X Input Method” “gtk20″ “/usr/share/locale” “en:ko:ja:th:zh”
im-switch -s fcitx
重新启动Xwindow即可
A string tokenizer
A very common operation with strings, is to tokenize it with a delimiter of your own choice. This way you can easily split the string up in smaller pieces, without fiddling with the find() methods too much. In C, you could use strtok() for character arrays, but no equal function exists for strings. [...]