Posts

Showing posts from January, 2014

2023-09-13, Wednesday, Cloudy

新工上遇上了挫折。寫好的東西達不到標準需要別人執手尾了。雖然同事說沒關係,但反應了自己的不足。有時反省自己為何做事總是不好,為何別人有留意或想到的事情自己總是忽略。現在覺得是自己天生的思考模式問題,可能看多少書都沒用。或者自己應該更適合做地盤呢類工作,而唔係IT。

Baileys cheese cake 百利甜酒芝士蛋糕

之前試過呢個食譜, 都幾好食, 記低廢事第二時搵唔返. 呢個食譜既好處係唔使用魚膠粉, 做起上黎方便又簡單, 不過就要雪耐D 原文: http://www.bbc.co.uk/food/recipes/baileysandchocolatec_72293 材料 100克/3½安士 牛油 250克/8¾安士 消化餅餅碎 600克/1磅 5安士 cream cheese 25毫升/1液安 Baileys or other Irish cream liqueur 100毫升/3½安士 糖霜 (icing sugar) 300毫升/10½安士 打好的忌廉 (doubled cream, whipped) 100克/3½安士 磨碎朱古力 (grated chocolate) 裝飾 200毫升/7¼安士 打好的忌廉 (double cream, whipped) 少許可可粉(cocoa powder), 散在餅面上裝飾用 制作方法 1. 置牛油於鍋內熱溶, 然後加入消化餅餅碎, 混合及讓餅碎充分吸收牛油. 2. 離火. 把混好牛油的餅碎放到18cm 或7吋的餅模內, 壓平成為餅底, 放入雪櫃內雪一小時. 3. 雪餅底時就可以蛋糕了. 先稍為把cream cheese打一下軟身以方便混合其他材料. 然後放入Bailey's 及糖霜打混. 再加入磨碎朱古力及打起的忌廉混合. 這個時候餅底應該都差唔多, 可以拿出來, 把混合物放在餅底上. 表面稍為整平一下. 4. 然後放入雪櫃內雪兩小時. 拿出來用忌廉做裝飾及在面上散上可可粉就食得了. 有關 忌廉, 小弟其實都係用係蛋糕材料舖買到的1公升的whipping cream, 係唔係 double cream 我無留意到, 但做出黎個效果都OK. 另外由於小弟懶, 所以無落朱古力. 但味道都唔錯, 起碼食過既都覺得唔錯.  有關磨碎朱古力請參考: http://cooking.stackexchange.com/questions/10274/whats-the-best-way-to-grate-chocolate 有關何謂double cream 請參考: http://www.euphocafe.com/terms/terms.asp?t_id=17

Debugging Maven test cases with Eclipse 如何在Eclipse中為Maven的test case除錯

Image
1. Add Junit 4.7.1 dependency in project's pom files. 首先, 先加入Junit 4.7.1. junit junit 4.8.1 test 2. write a test case in Junit 4.7, like below: 寫一個Junit 4.7的測試用例. 例如: package com.sml.form.restore; import org.junit.Assert; import org.junit.Test; import com.sml.formrestore.SpringContextUtil; import com.sml.formrestore.mvc.dao.product.mapper.ProductSpecMapper; import com.sml.formrestore.mvc.dao.product.model.ProductSpec; public class StartUpTest { @Test public void TestStartUpTestCase(){ // the test method must be annotated with @Test, and starts with Test, or ends with Test, TestCase                 // 用例名稱必需以Test開首,或以Test, 或TestCase結尾,                 // Write your test case here...                 //在這裏寫測試用例... } } 3. Finally, if you want to use Eclipse debugger to debug, you must: 最後, 如果你想以Eclipse內置的除錯工具除錯, 你需要:    a. Right-click project -> Debug As->Debug Configuration    b. Input "-Dmaven.surefile.debug test" in Goa