Log: Mont Irau 20-21 Oct 2007
9.26am Start Journey, take off from KL, enter Damansara Toll
11.27am Reach Simpang Pulai, Toll Fee: RM 25.60
12.27am Lunch, Bak Kut Teh.
1:23pm After Lunch, continue driving to Brinchang Balai Polis to submit letter.
2.30pm Reach Brinchang Station Mikro, and prepare for hiking
5.15pm Reach anak Irau. and rest 5 minutes.
5.20pm Continue
6.26pm Reach Mont Irau. Setup camp and cooking.
10.00pm Sleep.
Around 2.30-3.00pm Wind start blowing, getting cold
6.30am Wake up.
7.30am Breakfast and packing
9.15am Start going back
10.20am Reach anak Irau
1.05pm Reach Pondok at station Mikro. Cleaning
1.45pm Went back Brinchang Town.
2.10pm Take back the letter from Balai Polis. Lunch, Steamboat.
4.00pm Visit Palas Boh Teh.
5.30pm Shopping, cactus farm
6.05pm Go back.
7.10pm Reach Tapah Toll.
9.00pm Dinner at Jejantas Sg. Buloh.
Around 10.30 Reach home. Toll RM19.20
Monday, October 22, 2007
Tuesday, October 16, 2007
Checklists for Hiking
Shelter
Tent – 4 mans
Bedding
Sleeping bag
Air pillow
Sleeping mat
Clothes
Trekking pants
Trekking shirt
Spare trekking short
Spare trekking shirt
Laundry bag
Rain coat
Jacket
Track bottom
Shirt – put in car, can use after trekking
Short – put in car, can use after trekking
Underwear
Glove
Footwear
Trekking Shoe
Sandal
Socks
Cooking
Mess Tin
Cup
Lighter
Others
Water
Pen knife
Camera
First Aid
Hiking Bag 45+10L
Rain cover
Mosquito repellent
Tissues
Torch light, preferable those headlamp
MP3 player
Watch
Food
Some bread
Tuna
Banana
Tuesday, August 14, 2007
Method to get spring applicatin context from JSF
if(userAcctService == null){
ServletContext servletContext =
(ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext();
ApplicationContext appContext =
WebApplicationContextUtils.getWebApplicationContext(servletContext);
//WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext());
userAcctService = (UserAcctService)appContext.getBean("httpInvokerProxy");
}
if(userAcctService == null){
ServletContext servletContext =
(ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext();
ApplicationContext appContext =
WebApplicationContextUtils.getWebApplicationContext(servletContext);
//WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext());
userAcctService = (UserAcctService)appContext.getBean("httpInvokerProxy");
}
Wednesday, August 08, 2007
HQL: select object(s) from query result set
When you select a particular column(s) from table using HQL, how do you handle the return result? what is the type of result will be returned?
Here is some example:
When you select a single object:
private List loadAffiliationsbyCategory(MucRoom room, int affiliation) {
return getHibernateTemplate().find("Select id.jid from MucAffiliation where id.room=? and affiliation=?",
new Object[] {room,affiliation});
}
Test code:
for(String key:loadAffiliationsbyCategory2(room, MucRole.Affiliation.outcast.getValue())){
log.debug("test " + key);
}
When you select more then one object:
private List
When you select a particular column(s) from table using HQL, how do you handle the return result? what is the type of result will be returned?
Here is some example:
When you select a single object:
private List
return getHibernateTemplate().find("Select id.jid from MucAffiliation where id.room=? and affiliation=?",
new Object[] {room,affiliation});
}
Test code:
for(String key:loadAffiliationsbyCategory2(room, MucRole.Affiliation.outcast.getValue())){
log.debug("test " + key);
}
When you select more then one object:
private List
Monday, July 16, 2007
Subscribe to:
Posts (Atom)