Monday, October 22, 2007

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

Tuesday, October 16, 2007

Checklists for Hiking Mont. Irau, 20/10/2007

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

Monday, August 27, 2007

Linkin Park MinutesToMidnight





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");
}

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 loadAffiliationsbyCategory2(MucRoom room, int affiliation) {
return getHibernateTemplate().find("Select id.jid, affiliation from MucAffiliation where id.room=? and affiliation=?",
new Object[] {room,affiliation});
}

Test code:
for(Object[] key:loadAffiliationsbyCategory2(room, MucRole.Affiliation.outcast.getValue())){
log.debug("test " + (String)key[0] + (Integer)key[1]);
}

Monday, July 16, 2007

14 July 2007, Location: Taman Pertanian Malaysia, Bukit Cahaya, Shah Alam



Entrance to taman pertanian


Chen Khee, Kam Wai, Chee Hong and me, posing in front of a map


Guess where am i on the map? im lost...


At a rest place


Wei Nee and her bike

All set to skywalker, uph skytrex
At Skytrex, promotion price RM 20 per person. :)



Stand up high among the trees


Tuesday, June 05, 2007

凯菲(baby mui) weeding dinner on 2 Jun 2007

老同学重逢
惊喜!!开心!!! :) 从2002年马大毕业,有4-5年没和第十宿舍的hostel's mates见面. 今天能在baby mui 的婚礼上相聚. 虽然不是每个都参加婚礼,但得知大家在毕业后都大放异彩,很是高兴。 尤其是宇中,他的歌红透半边天哦。 (哎!!!看来我也要加倍努力!!!)

这就是baby mui啦

宇中--四佬
姐妹们.....和我(嘻!!!)