2015/06/20

Lulu's Hand Espresso

2年來每個週末早晨, 都會自己手沖咖啡, 純粹就是喜歡咖啡散發的香氣,
但是對於咖啡並沒有太多研究,幾度c的水, 幾克的咖啡, 對我來說太複雜.
不同的豆子也買過, 但是依我的程度跟本分不出差別,所以都到義美買,
因為回家路上會經過很方便.

最近入手取代手沖的的 Lulu's Hand 可以不用一次性的濾紙,
造型也不錯, 由於我沒買手沖壺, 都是直接拿水壺手沖, 所以剛好可以一次解決.

Espresso一直都是在歐洲旅遊時用餐必點的, 那種強烈的果酸在舌根爆炸的震憾,
可以持續在口中迴盪,雖然小小一杯, 但是可以啜飲許久,
所以嘗試了一下如何用Lulu's Hand泡出Espresso.
磨豆機因為太貴了, 所以我是用可調粗細的日製手搖磨豆機.
步驟如下:
1.咖啡粉, 鎖緊後退2格, 豆量約8分滿, 幾克就不知道了, 從沒量過.
2.鋪在Lulu's Hand下層不鏽剛濾網上, 鋪起來大約是7分滿.
3.在上層放水到200ml刻度.
4.調整水量到壓克力窗的一半, 關閉上層水.
5.此時就讓水自動萃取咖啡, 直到水量達到壓克力窗下緣.
6.移開Lulu's Hand, 即可享用.


Lulu's Hand Espresso 用具


鎖緊後退2格, 豆量約8分滿, 幾克就不知道了, 從沒量過.


鋪在Lulu's Hand下層不鏽剛濾網上, 鋪起來大約是7分滿.


調整水量到壓克力窗的一半, 關閉上層水.


讓水自動萃取咖啡, 直到水量達到壓克力窗下緣.


即可享用Lulu's Hand Espresso.

2015/02/17

How to create Google App Engine eclipse project with frontend module and backend module

In this article, i will create a Google App Engine eclipse project support frontend module and backend module.
Why i doing this, because GAE console keep annoying me whit this.

"This application uses Backends, a deprecated feature that has been replaced by Modules, which offers additional functionality. Please convert your backends to modules as described at: Python | Java | Go"

Step1:Prepare eclipse environment
Switch eclipse to Java EE perspective.


Step2:Create new Enterprise Application Project

Setting Project name and target runtime.


Select existed modules.


Setting Google App engine Application ID.


You may has this error message after create a new project.
"vc-complex-type.2.4.b: The content of element 'application' is not complete. One of '{"http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":module}' is expected."


Change the xsi:schemaLocation content from
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
       http://java.sun.com/xml/ns/javaee/application_5.xsd">


To
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee;
                     http://java.sun.com/xml/ns/javaee/application_5.xsd">



Step3:Create new Dynamic Web Project for frontend default module

Setting Project name and add this project to EAR project.


Setting source folder.


Configure web module setting. Set the Context root as "default", because GAE need a default front module name as "default".


Configure Google App Engine. Again, GAE needs a module named "default".


The default frontend module is created.


Step4:Create new Dynamic Web Project for backend module

Setting Project name and add this project to EAR project.


Setting source folder.


Configure web module setting.


Configure Google App Engine.


The modules are created.




Modify the GAEJModuleBackend/WebContent/WEB-INF/appengine-web.xml to support the backend instance.
 
 

  gaejmoduletest
  backend
  2
 true

  
  B1
  
    11
    10m
  
  
  
  
    
  

Create background threads to run the instance in backend.We modify the GAEJModuleBackendServlet.java.
public class GAEJModuleBackendServlet extends HttpServlet 
{
 public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException 
 {
  Thread thread = ThreadManager.createBackgroundThread(
  new Runnable() 
  {
   public void run() 
   {
    try 
    {
     Thread.sleep(10);
    } 
    catch (InterruptedException ex) 
    {
     throw new RuntimeException("Exception:", ex);
    }
   }
  });
  thread.start();
 }
}


Step4:Setting remote server

Click the link to create remote server.


Define a new server.


Configure server.


Add server.


We created a App Engine localhost server.


Step5:Uploading to Google App Engine