2011-10-21

【系統】FFmpeg : 安裝 FFmpeg 0.8.5 Love - 注意事項

0 comments

最近把 FFmpeg 從 0.6 變成 0.8.5 ( Love )
官網上有 0.8.5 的 Love 版,也有 0.7.6 的 Peace 版 …
但我真的不懂它們的差別。
反正我選版本編號大的來安裝,哈~
這次裝遇到一點點小問題,在這裡記錄一下。

【系統】FFmpeg : error while loading shared libraries: libavdevice.so.52

0 comments
裝完 FFmpeg 後,執行,居然會出現錯誤訊息
ffmpeg: error while loading shared libraries: libavdevice.so.53: cannot open shared object file: No such file or directory
找不到 Library....

2011-10-20

【機車】Fighter : 換機油 - DIY

2 comments
自己換機油,花更少的錢,還可以換比較高檔一點的油。
所以,想想,還是自己換好了,讓機車用好一點的油。
必竟天天都在騎,要保養一下比較好。
我是去 Costco 買的機油,一大箱,1仟多塊的樣子,有點忘了。
加屎多,全合成的。

【機車】Fighter : 空氣濾清器 - DIY

0 comments
前一陣子,發現機車的問題好像挺多的,
所以決定也要把一些簡單的部份,就自己學著用。
這裡貼一下怎麼換空氣濾清器。
首先當然要去買空氣濾清器啦,網路上看到的價錢大多在120~170。
但我買貴了,我在回家路上的一間機車材料行買,但忘了問價錢。
他直接拿給我東西,我也只好付錢了,花了我200,唉~~
我不會再去了,黑店…

2011-10-14

【系統】PHP : APC - apc_sem_lock: semop !!

0 comments
以為把APC 搞定了,結果上線後…大概二小時就當掉,
錯誤訊息是
PHP Fatal error: Unknown: apc_sem_lock: semop(xxxxxxxx) failed: in Unknown on line 0
xxxxxxxx 是一堆數字。

【系統】PHP : APC - Alternative PHP Cache 效能測試

2 comments

加上APC 後,效能感覺有提高很多耶。
來記錄一下,下面來看看 JMeter 的結果吧。

2011-10-13

【系統】PHP : APC - apc.shm_size now uses M/G suffixes !!

0 comments
看到一個錯誤訊息如下:
[13-Oct-2011 16:15:01] PHP Warning:  PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0
原來是設定檔的問題
apc.shm_size 要加上M (MB) or G (GB)

【系統】PHP : APC - Alternative PHP Cache 設定

0 comments
上一篇的安裝說完,現在就要講設定啦。
其實也沒啥好講的。
貼上我的php.ini裡面,設定APC的部份:

【系統】PHP : APC - Alternative PHP Cache 安裝

0 comments
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

這東西,真是好用,網站的速度一整個加快呢,讚 !
這篇先來說一下怎麼安裝吧。
很簡單的。
記得要先裝好 PHP,這個我就不說了。
直接來安裝 APC 吧。

2011-10-07

【系統】ActiveMQ : Producer & Consumer Code - PHP with STOMP

0 comments
ActiveMQ 都架好後,就要開始寫Producer & Consumer 的程式啦。
PHP 是用 Stomp 協定,所以要先把Stomp 抓回來。