今日睇左兩齣電影,一部是2006年的《達文西密碼》,另一部是2008年的《葉問》。
and setup IIS7 to support 32bit application
1. install Sybase 32 Bit ODBC Driver
2. Run this exe : C:\Windows\SysWOW64\odbcad32.exe
This is 32bit ODBC Program. SysWOW64 means <Windows on Windows 64bit>
(You CANNOT find the "sybase ASE ODBC Driver" in 64Bit ODBC Program (Start->Administrative Tools->Data Sources(ODBC))
3. setup Sybase ASE ODBC Driver System DSN
4. Open IIS and selected the application pools
5. Right click the "DefaultAppPool" and select "Set Application Pool Defaults"
6. Set "Enable 32-Bit Applications to "True" and then save.
7. Finish
本來對林峰印象並不太好,因為覺得佢只是一個電視藝員,都只不過是跟風才做歌手。
但其實上年已經覺得佢同一個人的經歷好像,都要電視藝員出身,跟住成為電視小生,再而做歌手,而且初初不被看好,完全是一個偶像派。他就是劉德華。
但林峰一出道做新人就有無線比獎佢,又很快就可以開個人演唱會。
其實,他聲線、唱功都很多,現在只是有一個偶像的包袱。睇完《峰.情無限演唱會Let’s Get Wet Live》DVD,發覺得表現得很多,佢只是用了一個多月時間去排練,有這麼的表現已經很了不起。
講真,他演唱會DVD 比起近期的謝安琪演唱會更加好睇,因為林峰有驚喜、突出的表現。
我希望他將來可以好似劉德華一樣,成為另一個出色的全能藝人。
前幾日有一個website 要上production,一做testing 就發覺所有page 一遍空白,睇完apache error log 之後就發現幾個php4 的問題。因為system developement 時是用php5,有一些function php4 唔support。
php5 已經是2004 年出,無想到還有hosting 是未upgrade 的,還是php4 ,而且全個server 好似停留起2002 年的config 。
好了,花多一些時間,做多幾次test,同keep 住睇下個error log,就發現主要有三個問題要解決。
1. date_default_timezone_set("Hongkong") 要變成 putenv("TZ=Hongkong")
2. date("N", variable)
php4 是沒有 "N" 的,所以要轉成 date("w",variable")。但因為"N" 是出1-7 ,但"w"是出0-6,所以花了一些時間睇code 同改code
3. "=&" 一定要寫清楚
Ref: http://jikky.pixnet.net/blog/post/18213326
Ref: http://forum.virtuemart.net/index.php?topic=50465.msg182090
如果用virtuemart 入面的user registration 功能,當你入一個已經存在的username 或者password,當click "send registration" 時,會於同一版refresh,但又無任何warning / error message 。
應該於joomla template 入面
於<jdoc:include type="component" />前面
加一行
<jdoc:include type="message" />
Ref: http://forum.virtuemart.net/index.php?topic=11167
首先去paypal sandbox 入面,create 一個sandbox account。Login 完之後,再create 一個buyer testing account 和一個seller testing account. (記得payment review 是disable 的)
之後於virtuemart -> store -> list payment method,"paypal" set 做active。
再入到paypal detail "configuration" tabs :
$url = "https://www.paypal.com/cgi-bin/webscr";
要改成
$url = "https://www.sandbox.paypal.com/cgi-bin/webscr";
paypal payment email 要打testing seller email address
這樣,一個paypal testing environment 就完成了。
當要扮演客人進行買賣,首先sanbox account 要login 左先。之後當virtuemart redirect 你去paypal 的時候,你就可以用先前create 的buyer testing email 去login 和付款了。再而可以login 入seller 的paypal ,你就會見到你的交易記錄了。記得第一次交易,paypal 是要你確認貨幣的。
當完成了所有development testing,你就可以於改回先的url 和paypal payment email ,就可以了。





