原创 linux mint 系統快捷鍵設置

linux mint 15 設置系統快捷鍵 ========================================================= "System Tool" => "System Settings" => "

原创 php require include

Its quite common to see such lines : require_once('../../lib/some_class.php'); This approach has many drawbacks : I

原创 ubuntu 64位 鏈接 v8出錯 undefined reference to icu_46

debian, ubuntu, linux mint 64位 鏈接 libv8 出錯 undefined reference to icu_46 ==============================================

原创 ubuntu 重啓網絡

debian ubuntu linuxmint 重啓網絡 sudo service networking restart

原创 v8學習---獲取js變量的值

#include <v8.h> using namespace v8; int main() { Isolate* isolate = Isolate::GetCurrent(); HandleScope handleS

原创 ubuntu 安裝 lamp

debian,ubuntu,linux mint 安裝 lamp ============================================= 有一個tasksel的工具專門安裝各種服務 sudo aptitude ins

原创 mongodb導出和導入數據

mongodb導出和導入數據 導出 mongodump -h hostname_or_ip -d database_name -o output_directory 導入 mongorestore -h hostname_or_ip

原创 ubuntu emacs 輸入法失效問題解決辦法

首先安裝ibus-el: sudo aptitude install ibus-el 編輯emacs配置文件,在~/.emacs中加入: (add-hook 'after-init-hook 'ibus-mode-on) 重啓emac

原创 nginx configure error: the HTTP rewrite module requires the PCRE library

nginx-1.3.5 configure: ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable t

原创 centos 安裝輸入法

centos 安裝輸入法ibus -------------------------------------------------------------------------------------------------- su

原创 centos 安裝 nginx

centos 安裝 nginx-1.3.5 ------------------------------------------- cd /tmp wget http://nginx.org/download/nginx-1.3.5.ta

原创 linux ssh自動登錄服務器

linux 使用tcl腳本自動ssh登錄服務器,不必每次都輸入密碼。 ============================================= 首先要安裝expect包(ubuntu) sudo aptitude in

原创 v8學習---Hello world

基本上完全抄自v8文檔 #include <v8.h> using namespace v8; int main(int argc, char* argv[]) { // Get the default Isolate crea

原创 vim cscope E567: no cscope connections

在 ~/.vimrc里加上一句: cs add cscope.out 順便提醒:輸入 cscope -Rbkq 能在當前目錄下建索引。

原创 git 恢復文件

在寫代碼時,可能會誤刪改文件,這時就需要恢復最近一次提交的版本。 sudo git checkout filename_or_directory_name