Install Memcached and PHP Memcached Extension under Mac OS 10.8Install Memcached and PHP Memcached Extension under Mac OS 10.8

I just setup memcached on a new/clean Mac OS environment without WAMP. iTerm2 My favorite terminal. Apache First of all, I use original apache service comes with this Mac. PHP Edit the file: "sudo vim /etc/apache2/httpd.conf" and remove "#" of the line “#LoadModule php5_module libexec/apache2/libph…

Read more »
23 Nov 2012

在 Ubuntu 11.10 新增自己需要的螢幕解析度在 Ubuntu 11.10 新增自己需要的螢幕解析度

手邊一台舊電腦重灌 Ubuntu 11.10 後抓不到一台 23" 螢幕,無法自動偵測,解析度也變成只有兩個可以選:1024x768 和 800x600。後來找到手動的解法。 例如我這次想要加入的是 1680x1050 (16:10) 解析度 @ 更新頻率 60: $ gtf 1680 1050 60 -x # 1680x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 147.14 MHz Modeline "1680x1050_60.00" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 …

Read more »
10 Mar 2012

AWS EC2 再度降價囉!AWS EC2 再度降價囉!

Just checked the new AWS EC2 pricing that announced 2 days ago. The pricing is very competitive in hosting/VPS industry, especially the pricing of 3-year reserved instance. I made a simple calculating table for your reference. More pricing numbers please refer to AWS EC2 service page. ps: the number…

Read more »
08 Mar 2012

在 MacOS 裡頭載入 .bashrc 的方法在 MacOS 裡頭載入 .bashrc 的方法

剛練習使用一台 MBP (MacOS 環境),在 terminal 下常常遇到系統不理會很順手的 "ll" 指令縮寫,看了一下 ~/.bashrc 裡頭有寫好這個 alias 沒有問題。原來問題出在 MacOS 是去讀 ~/.profile,所以就弄個連結連過去囉。 > cd > ln -s .bashrc .profile …

Read more »
30 Jan 2012

Setup Gitolite Hook post-receive-emailSetup Gitolite Hook post-receive-email

設定 Gitolite 範圍中每個 repository 在每次收到 git push 之後就通知該 repository 相關人員,需要設定 hook 機制。但是 gitolite 和 git 的設定方式有些不同,尋覓許多文件後終於找到實作的方式成功 :) 環境 建立 gitolite 環境:參考 Tsung 的「Linux 使用 Gitolite 架設 Git Server」 採用 gitolite  這個帳號直接管理 gitolite,沒有另外建立一個 git 的 linux user 帳號。 gitolite 的 hooks 位在:/usr/share/gitolite/hooks/c…

Read more »
03 Jan 2012
 
Top