Monday, July 29, 2013

Spring Inversion of Control

Bean Creation
- code POJO, add bean configuration element to the Spring XML configuration file or annotate the POJO
<bean id="message" class="org.springbyexample.di.xml.BelleMessage"/>

Inversion of Control
1. Constructor Injection

public ConstructorMessage(String message) {
    this.message = message;
}

<bean id="message" class="org.springbyexample.di.xml.ConstructorMessage">
    <constructor-arg value="Spring is fun." />
</bean>

2. Setter Injection

public void setMessage(String message) {
    this.message = message;
}

<bean id="message" class="org.springbyexample.di.xml.SetterMessage">
    <property name="message" value="Spring is fun." />
</bean>

3. Reference Injection

<bean id="message" class="org.springbyexample.di.xml.SetterMessage">
    <property name="message" ref="springMessage"" />
</bean>


source: http://www.springbyexample.org/examples/intro-to-ioc.html

Tuesday, July 9, 2013

Baking Supplies in Philippines

Sweetcraft Baking and Confectionery Supplies

Address: 373 Boni Avenue, Mandaluyong (in front of Rizal Technological University)
Tel no.: 532-1595
  • items: baking and cooking ingredients and equipment items, available in retail and wholesale quantities
  • tips: don't buy marshmallows

Chef's Nook

Address: 20 Pilar St., Addition Hills, Mandaluyong (corner street of the Honda showroom along Shaw Blvd.)
Tel. No.: 724- 5812
  • cheap: chocolates and nuts are cheaper than chocolate lovers, refrigerated/stored well

Chocolate Lovers

Address of Main Branch: 45 P. Tuazon Blvd. corner C. Benitez St.Cubao Quezon, City 1109 ( use Benitez St, main entrance)
Tel. Nos. 411-7474 / 724-5752 / 724-4964
Address of 2nd Branch: Kitanlad St. cor. Quezon Avenue, Quezon City
Tel nos. 732-8576 / 741-7487
  • items: chocolate compound and nuts, lot of cake packaging materials, cake boards, ready made cupcake toppers, cupcake stands, chocolate moulders, lollipop sticks, baking pans, glycerin, glucose, gelatin, confectioner's sugar
  • cheap: nuts
  • not available: corrugated Boards, big cake boxes, big icing tips

Best Way Merchandising

Address: 691 Sto. Cristo Street, Divisoria (outside Divisoria mall)
  • items: everything, styrophor dummy cakes, edible flowers, candles, cake backdrop
  • cheap: icing gel colors(85pesos/oz), nuts(500-800pesos/kg) and tylose powder (700pesos/kg), packaging materials like rolls of cellophane/or plastic wrapper(150-155 per roll)
  • expensive: baking tools - gourmet writer (800-850 pesos), macaron mat costs 650, cutters, molders, etc
  • tips: for wholesale confectionary sugar of Peotraco brand, it's in Sto. Cristo St. Binondo, for stainless items you can find them in Ilaya Street in Divisoria
  • other stores near:
    Estanislao Trading
        817 Sto. Cristo Street, Divisoria (3rd store right after crossing M. de Santos Street where Allied Bank is)
        Tel.Nos: 241-9541 / 241-9487 / 243-3976    
    Enriquez Multi-Sales (near Allied Bank)
       427 M. de Santos St., Divisoria
       Tel.Nos: 243-3678 / 243-3668
    George Enterprises
       736 Tabora St., Divisoria Manila
       Tel. Nos: 241-8578 / 241-8579

Killion Merchandising

Address: 40 Orosco Street, Quiapo Manila (near Quiapo church)
Tel No. 733-8221, 733-2093
Fax 733-7036
  • items: all baking ingredients except imported ones
  • cheap: packaging materials, flour and confectioner's sugar (cheapest here)
  • tips: long queue, come around 7:20-8:15 am

Nut Store in front of Killion

  • cheap: choco bars, choco molds at lowest prices, also canned fruits, flour, confectionary sugar, ice cones flavoring etc.

Mostwell

  • items: doilies and boxes for cupcakes and cakes, for candles and souveneirs plus plastics

New Sin Kian Heng

Address: 196 Carlos Palanca St. Quiapo, Manila (Right beside Quinta Market in Quiapo, Manila)
Tel.Nos:733-2131/ 733-6871/ 733-6367/ 733-6381
  • items: kitchenwares and baking equipments, lots of pans and molds, kitchen aids to pans, wilton decors, tips, whisks, stoves, ovens, spatulas
  • tips: Goldilocks Cakeshop has been a long time client of their store

The Cocoa Pantry  

Address: 130 Katipunan Road, Saint Ignatius Village QC
Tel No 4976957
Opening Hours
     Mondays to Fridays - 10:00am to 4:30pm
     Saturdays - 10:00am to 6:00pm
  • items: essential baking ingredients and hard-to-find packaging materials

Baker's Depot

Branches:
     - San Juan: 188B N. Domingo cor Manzano st. Tel: 723-8810
     - Waltermart North EDSA - Tel: 332-1281
     - Waltermart Makati
     - Victory Mall, Caloocan City

Bake Masters Food Ingredients Corp

Address: along Sucat Road Paranaque City.
Tel No. 887-0150
  • items: bakery, confectionery, snack and also meat processing ingredients

Carla's Bakery and Confectionary Supply

Address: Unit E Dr. A. Santos Ave. Sucat, Paranaque City (along Sucat Road in Paranaque, right across Santana Grove and Shopwise)
  • items: almost have anything you need from ingredients to packaging, variety of box sizes especially bigger sizes, can buy bigger boxes by pieces, they have corrugated boards

Love2Bake Co.

Address: 6 Palanca Street, Fruition Bldg, BF Homes, Paranaque
Website: https://www.facebook.com/love2bakeco
  • items: baking supplies, fondant rolling pin
  • cheap: americolor gel icing and airbrush color, pearl/luster/sparkle dusts, fondant moulds, cutters, macaron mats, pans, sheet trays, dummy styro and more

Ingrid’s Sweet Haven

Address: 363 Dr. Sixto Antonio Avenue corner Liwayway Street, Caniogan, Pasig
Websites: http://www.ingridsweethaven.com
Tel No.: 641-2561

Baking Buddies

Website: https://www.facebook.com/bakingbuddies
  • items: mported fondant shoe cutters, airbrush compressor package, macaron mats and more

MK Kitchen

Website: http://mksurpluswarehouse.tripod.com
  • items: kitchen stainless steel working table, sheet trays, tart moulders, spoon forks and other kitchen utensils

RM Boxes

Website: http://www.rmboxes.com/
  • items: boxes and packaging needs (some boxes in Chocolate Lovers and other suppliers are actually from them)


Accesible Stores

Gourdo's

Address: Unit G, The Fort Entertainment Complex, Bonifacio Global City, Taguig Metro Manila
      Greenbelt 2, Glorietta 4, Gateway, The Fort and The Podium (under the name LIVING WELL)
Tel.No.812-3022
  • pure vanilla extract (The Vanilla Company), official reseller of Wilton

LandMark Makati

Address: 4th floor of Landmark Mall in Makati
  • cheap: baking tools such as rolling pins, muffin pans, fondant cutters and smoothers, chocolate moulds, spatulas, cupcake stands, baking pans, food processors and more

Cooks Exchange

Address: Glorietta 4, SM Megamall Bldg. A
  • more expensive ingredients

SM Supermarkets

  • items: baking powder, baking soda, sugar, oil, butter, cheese in the supermarket 

SM Department Stores

  • items: Wilton and other branded products

Unimart

Greenhills Shopping Center, Ortigas Avenue, San Juan
Tel No. 721-0572
  • items: complete range of Baker’s brand chocolate, wide range of Ferna products, like Dutch-process cocoa, glucose, and light corn syrup, malted milk powder

Healthy Options

  • items: variety of flours including unbleached white, whole-wheat pastry, and spelt flours in both regular and organic. Healthy Options also carries corn meal, a wide range of oats, almond milk
  • cheap: real vanilla 
Sources:
http://www.khakiness.com/2011/07/where-to-buy-complete-and-affordable.html
http://www.mysassybaker.com/2013/05/baking-supplies-stores-manila.html
http://alliwannadoisbake.blogspot.com/2011/05/where-to-go-for-great-buys-on-baking.html
http://www.pepper.ph/baking-ingredients-resource-guide/

Monday, July 8, 2013

Drools Core

  1. create a knowledge builder to load processes from various resources (for example from the classpath or from file system)
  2. create a knowledge base from the builder
  3. instantiate a session based on the knowledge base
  4. start executing processes
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("ruleflow.rf"), ResourceType.DRF);
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ProcessInstance processInstance = ksession.startProcess("com.sample.MyProcess");
ksession.fireAllRules();