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();

Thursday, June 27, 2013

Investing Terms

Fundamental vs Technical Analysis

Technical Analyis 
Support vs Resistance
Support - prices on a chart that tend to act as a floor by preventing the price of an asset from being pushed downward
Resistance levels - also regarded as a ceiling because these price levels prevent the market from moving prices upward


GSW1 - 1985 to 1997
Wave 3 - 1989 to Dec 1993 (500 to 3300/3474)

GSW2 - 1997 to 2001 - (3474 to 1000)

GSW3 - 2001 to ____
Super Cycle Wave 1  -  Oct 2001 to Aug 2007  -  6 yrs more or less -  (1000 to 3800)
Super Cycle Wave 2  -  Oct 2007 to Nov 2008  -  1  yr     "          "
Super Cycle Wave 3  -  031709 to ? ( est dec2013 june 2014) -  (1747 to ____)
         cw 1  - 031709 to 080211
         cw 2  - 080211 to 092611 or 110310 to 092611
         cw 3  -  092611 to 051513
         cw 4  -  051513 to 062513 nx is sideways/consolidations
         cw 5  -  062513 to est. dec or nx yr
Supercycle Wave 4 may be in 2014 up to 2015 (1 year)
Supercylce Wave 5 may be in 2015.


Sources:
http://www.investopedia.com/articles/technical/061801.asp
http://www.pinoymoneytalk.com/forum
http://www.pinoymoneytalk.com/forum/index.php?topic=44602.720

Wednesday, June 26, 2013

Time

EST (Eastern Standard Time) - time in US

DST (Daylight Saving Time) - 12 hr difference b/w NJ & PH
Standard Time - 13 hr difference b/w NJ & PH (4am NJ = 5PM PH)

GMT (Greenwich Mean Time) - global standard time

  • US NJ/NY - GMT-5
  • PH - GMT+8



Sunday, June 23, 2013

Financial Sites

Bloomberg - http://bloomberg.com/
Financial Times - http://www.ft.com/
Reuters - http://www.reuters.com/

BLOGS:
Absolutetraders.com - http://absolutetraders.com/main/
tsupitero.com - http://tsupitero.com/

CONCEPTS:
Elliott Wave - http://stockcharts.com/school/doku.php?id=chart_school:market_analysis:elliott_wave_theory

http://www.moneylifeblood.com/2013/02/dividend-paying-stocks-and-5-year.html#.UcqDo_lORH0

Stock Code Bloomberg Quote Financial Times Quote Reuters Quote Dividend Per Share 2012 Dividend Yield Average
2011 2010 2009 2008 2007
FGEN FGEN:PM FGEN:PHS FGEN:PS NA 9.76 9.76
TEL TEL:PM TEL:PHS TEL:PS Php 171 8.73 8.57 7.9 9.17 4.72 7.818
GLO GLO:PM GLO:PHS GLO:PS Php 65.00 5.47 0 2.46 6.45 7.39 4.354
RLC RLC:PM RLC:PHS RLC:PS Php 0.36 3.19 3.23 2.57 7.53 4.13
URC URC:PM URC:PHS URC:PS Php 1.90 4.58 2.27 2.27 7.16 4.07
BPI BPI:PM BPI:PHS BPI:PS Php 2.30 3.26 1.53 3.85 7.48 1.81 3.586
PX PX:PM PX:PHS PX:PS Php 0.53 1.68 0.87 7.7 3.416667
EDC EDC:PM EDC:PHS EDC:PS Php 1.14 2.54 2.04 2.66 7.76 1.9 3.38
SCC SCC:PM SCC:PHS SCC:PS Php 12.00 4.52 3.24 1.22 3.95 2.81 3.148
SMPH SMPH:PM SMPH:PHS SMPH:PS Php 0.29 2.54 2.75 3.06 4 3.29 3.128
AP AP:PM AP:PHS AP:PS Php 1.54 4.41 0.96 2.33 4.74 3.11
BDO BDO:PM BDO:PHS BDO:PS 3% stock div 1.88 1.52 0.8 7.39 1.47 2.612
AEV AEV:PM AEV:PHS AEV:PS Php 1.58 3.94 1.4 3 0.89 2.9 2.426
MWC MWC:PM MWC:PHS MWC:PS Php 0.60 2.89 2.4 2.54 2.64 0.81 2.256
SMDC SMDC:PM SMDC:PHS SMDC:PS Php 0.05 1.62 1.12 1.77 3.18 3.56 2.25
DMC DMC:PM DMC:PHS DMC:PS Php 1.20 2.42 1.39 2.06 3.77 1.04 2.136
MER MER:PM MER:PHS MER:PS Php 8.10 3.16 2.48 1.22 1.68 2.135
SMC SMC:PM SMC:PHS SMC:PS Php 1.75 0.9 4.12 0.51 2.59 2.37 2.098
MBT MBT:PM MBT:PHS MBT:PS Php 1.0 1.47 0.83 2.28 4.47 1.13 2.036
AGI AGI:PM AGI:PHS AGI:PS Php 0.36 3.48 0.48 1.98
SM SM:PM SM:PHS SM:PS Php 10.40 1.55 1.45 2.12 3.07 1.59 1.956
JFC JFC:PM JFC:PHS JFC:PS Php 2.20 1.18 2.53 1.55 2.02 1.54 1.764
AC AC:PM AC:PHS AC:PS Php 2.00 1.93 1.22 1.59 1.15 2.55 1.688
ICT ICT:PM ICT:PHS ICT:PS Php 0.65 0.94 0.89 1.78 2.75 0.66 1.404
MEG MEG:PM MEG:PHS MEG:PS Php 0.03 1.4 0.77 1.28 2.77 0.49 1.342
PCOR PCOR:PM PCOR:PHS PCOR:PS Php 0.10 0.79 0.53 1.96 1.75 1.2575
ALI ALI:PM ALI:PHS ALI:PS Php 0.21 0.97 0.57 0.53 0.94 0.42 0.686
JGS JGS:PM JGS:PHS JGS:PS Php 0.16 0.32 0.26 0.45 1.76 0.26 0.61
MPI MPI:PM MPI:PHS MPI:PS Php 0.03 0.68 0.26 0.47