發表文章

目前顯示的是 5月, 2014的文章

在 Win7 右鍵選單新增「以 Sublime Text 開啟檔案」

可在 Win7 右鍵選單新增「以 Sublime Text 開啟檔案(Open with Sublime Text)」與「開啟資料夾為專案(pen Folder as Sublime Project)」。這個方法用在 portable 版也可。 1. 增加下面檔案: sublimeText_ContextMenu.reg   Windows Registry Editor Version 5.00   ; This will make it appear when you right click ON a folder ; The "Icon" line can be removed if you don't want the icon to appear   [HKEY_CLASSES_ROOT\Directory\shell\sublime] @="Open Folder as Sublime Project" "Icon"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\",0"   [HKEY_CLASSES_ROOT\Directory\shell\sublime\command] @="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\" \"%1\""   ; This will make it appear when you right click INSIDE a folder ; The "Icon" line can be removed if you don't want the icon to appear   [HKEY_CLASSES_ROOT\Directory\Background\shell\sublime] @="Open Folder as Sublime Project" "Icon"="\"C:...

debian update glibc ( version `GLIBC_2.14' not found )

debian 7(wheezy) glic 是 2.13 遇到 version `GLIBC_2.14' not found 只能升級 glibc 只有 unstable 版提供較新的 glibc vim /etc/apt/sources.list 增加 deb http://mirrors.kernel.org/debian/ unstable main contrib non-free # apt-get update # sudo apt-get install libc6 # sudo aptitude show libc6 --> 可以看 glib 版本 Package: libc6                           State: installed Automatically installed: no Multi-Arch: same Version: 2.13-38+deb7u1 Priority: required Section: libs Maintainer: GNU Libc Maintainers Architecture: amd64 Uncompressed Size: 9,751 k Depends: libc-bin (= 2.13-38+deb7u1), libgcc1 Suggests: glibc-doc, debconf | debconf-2.0, locales Conflicts: prelink (<= 0.0.20090311-1), tzdata (< 2007k-1), tzdata-etch Breaks: locales (< 2.13), locales-all (< 2.13), lsb-core (<= 3.2-27), nscd (< 2.13) Replaces: libc6-amd64 Provides: glibc-2.13-1 Description: Embedded GNU...

Bash Shell: Check File Exists or Not

File test operators The following operators returns true if file exists:        -b FILE               FILE exists and is block special        -c FILE                FILE exists and is character special        -d FILE               FILE exists and is a directory        -e FILE               FILE exists        -f FILE               FILE exists and is a regular file        -g FILE          ...