James's BLOG
CodeIgniter 單一網址 多語系
看Apple用了/tw/來代取代tw.apple.com
省去了買網址的費用, 是一個很不錯的設計,
CI本身就提供Route的功能, 在參考網友的分享,
讓http://xxx.xxx/tw/可以實現
$route['([a-zA-Z]{2})/?'] = 'welcome';
$route['([a-zA-Z]{2})/(:any)'] = '$2';
參考來源:
生活大小事
Apache 幫網頁加密
參考: http://sparc.nfu.edu.tw/teacher/htaccess/index.htm
Linux 指令 tar
tar 是壓縮/解壓縮指令
壓縮
tar -zcvf <要儲存的DIR> <要壓縮的DIR>
解壓縮
tar -zxvf <解壓縮的檔案名稱>
GitHub For Windows
安裝Git
http://git-scm.com/download/win
打開桌面的git bash
利用git bash產生ssh-key
切換目錄到.ssh底下
cd /c/Users/James/.ssh/
ssh-keygen -t rsa -C "james@gmail.com"
給它檔名, EX: james
會產生james, james.pub
ssh-add /c/users/James/.ssh/james
登入GitHub新增SSH-key
在回git bash測試連線
使用ssh -T git@github.com建立know_hosts
"Hi username! You've successfully authenticated, but GitHub does not provide shell access."
出現以上的字串表示你已經成功串連GitHub
到GitHub新增一個repo(或是找一個存在的repo)
在本機找一個資料夾按右鍵選擇"Git Bash"開始clone你的repo.
你可以安裝TortoiseGit介面化管理你的git.
http://code.google.com/p/tortoisegit/
Google Dart
新聞
http://www.ithome.com.tw/itadm/article.php?c=75505
官網
http://www.dartlang.org/
FreeBSD ports install and package delete
今天在FreeBSD的ports上要安裝一個新程式,
卻一直無法執行, 要求我要刪除某一個pkg
沒刪過怕怕的, 但不刪又沒得裝... 只好硬著頭皮上了~
先看好它要求刪的pak然後下指令
pkg_delete -f pkg-config.0.25_1
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)