紅燒獅子頭 Braised Lionhead

看了好多天的紅燒獅子頭食譜,今天終於有空可以做,這也是因為上次去全聯發現有賣荸薺這東西,讓我覺得可以嘗試看看。

食材有豬絞肉荸薺嫩豆腐胡蘿蔔香菇雞蛋白菜,調味料需要香油白胡椒花椒粉米酒醬油,另外需要太白粉

先將荸薺胡蘿蔔去皮細丁,香菇切末,絞肉先用刀剁碎直到稍有筋度,600g絞肉約加入半盒豆腐荸薺胡蘿蔔香菇蔥薑末醬油米酒白胡椒粉花椒粉拌勻、再加入全蛋液(適量)攪拌、最後加入適量太白粉攪拌好,起油鍋,捏出適當大小肉球放下去炸,炸好撈起備用。用少許油與水將白菜炒軟,另外起一個湯鍋,加入香油醬油蒜頭蒜苗適量,然後將白菜、炸好的獅子頭放進去一起熬煮20~30分鐘,如果喜愛軟爛的白菜就可能要再熬煮更久,盛盤前用太白粉勾芡湯汁,盛盤後撒上香菜葉香菜末就完成了。

Tags: , , , , , , , , , , , , , ,

在MediaTemple上安裝Zip Extension for PHP

跟下面那篇文章同樣的問題,我向MediaTemple (MT)租用Server,預設他們的GridServer (GS)也沒有啟用Zip Extension,要如何安裝呢?

如果你也是租用MediaTemple,請到他們的KnowledgeBase搜尋“PECL“,就會出現一篇”Installing PECL Extensions”,而文章中Extension名稱都用”Zip”取代,就可以完成安裝。

Tags: , , , , , , , ,

為MAMP安裝Zip Extension for PHP

因為有個需求必須將server端的zip檔案解壓縮,但是PHP的ZipArchive是屬於PECL的Zip Extension,一般在編譯PHP Core的時候,編譯的指令並不會加上這個參數,所以如果在程式中使用這個class就會出現:
Fatal error: Class 'ZipArchive' not found in xxx.php on line xx

我在我開發端的測試平台用了MAMP,就是Mac+Apache+Mysql+PHP,當然也有Wamp、Lamp,MAMP中的PHP在編譯時也沒有加進Zip Extension,我找了許多網站,終於找到針對MAMP這個Zip Extension問題的解決方法:

1. Download MAMP’s “Source” package, located here. If that link doesn’t work, it should be linked at the bottom of this page: http://mamp.info/en/download.html

2. Open the archive and look for the PHP version that you’re using (4 or 5) and unzip that archive. (I’m using 5 (everyone should be), so I unzipped that one.)

3. Open terminal and cd to the PHP directory that you just unzipped.

4. Run the following command in terminal: ./configure –prefix=/tmp/php

5. Wait for the configure script to finish and then run: export PATH=/tmp/php/bin:$PATH

6. Now, cd to the zip extension directory: cd ext/zip

7. Run: phpize

8. Run: ./configure

9. Wait for it to finish and then run: make

10. Wait for it to finish and then run: sudo make install – (You’ll need to type your administrative password.)

11. After it’s done running, you’ll see something like this:

Installing shared extensions:     /usr/lib/php/extensions/no-debug-non-zts-20060613/

12. Copy the zip.so extension file from that directory to your PHP installation’s extension directory:

cp /usr/lib/php/extensions/no-debug-non-zts-20060613/zip.so /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922

13. Open up MAMP’s PHP.ini file (Hint: In MAMP Pro, open up the MAMP Pro app, go to “File > Edit Template > PHP5 php.ini”) and scroll down to where your extensions are listed and add the following on a new line: extension=zip.so

14. Save the file, restart Apache and your PHP Info page should reveal that the zip extension is now installed.

以上十四個步驟節錄自網頁:Enabling PHP’s “Zip Extension” in MAMP,我就懶得翻譯了。

Tags: , , , , , , ,

百達麗時尚磁磚 Vitality Fashion Tiles

一直沒有機會展示這個網站作品,因為他們放在測試站已經三個多月了,最近才有時間上線。

百達麗時尚磁磚官方網站,他們公司有專業的平面設計師,所以上架的資料應該品質都不會太差,產品跟整體設計應該都有一定水準,有興趣的人也可以到他們公司參觀,他們可以為你做室內的磁磚搭配設計。

Tags: , , , , , , , , , , , ,

培根捲豆和馬鈴薯沙拉 Bacon Beans & Potato Salad

昨晚半夜心血來潮想要做朋友教我的馬鈴薯沙拉,把為了今天一人一菜準備的咖哩用剩的馬鈴薯處理掉,翻冰箱時又看到前幾天買的四季豆,突發奇想順便來做個培根捲四季豆做搭配。

煮一鍋熱水,削馬鈴薯皮,切丁丟下去煮,一邊洗好挑好四季豆,丟下去稍微川燙一下,夾起來且長度切超出培根寬度多一點,用培根捲起,可用牙籤固定再乾鍋煎一下使它出油,再放入烤箱烤,就完成了。馬鈴薯丁主軟後撈起,不要關火再放入一顆蛋水煮,馬鈴薯先加入一小塊奶油利用餘溫將奶油融化,並攪拌壓爛,加入少許鹽、美奶滋,和水煮蛋一起壓碎拌勻,最後加入小黃瓜和玉米粒攪拌就完成了。

Tags: , , , , , , , ,