Tuesday, January 27, 2009

我的初恋 - 海珊 - Part IV



The important day finally come, I had a cold shower,putting on my new jean and cloth, and ask my friend to help me "styled my hair. I looks into mirror and told myself, "yes James, u can do it, u are good looking, and cute (i.e ugly but adorable, haha)". I am ready.

While at the school hall, I am getting nervous, and my palm start sweating, and getting bit wet. Stupid James, cool down, Ok. How u expect to hand hold her hand with ur slippy hand. Cool down.. Hm, where is 珊? is she ok?

Found her at the back stage. 珊 have two stage performances, a group dance, and a solo dance, she is rehearsal some dance routine, which take my breath away, glamorous and enchanting. I just stand a one corner, and admiring her from a distance. Finally, she notice me, I then smiled at her, give a "V" hand signal to her, wishing her luck for the performance, she smile and acknowledge it. I quietly walk back to my seat, as the show about to start.

珊 solo dance performance wins a lot of applaud and cheers from audiences, I notice a lot of of my senior start noticing her, and whispering who is the girl, some even say must invite her for the lover bridge game later. O oh, no good no good..

When the DJ announced the lover bridge game about to start, and asking all of us to get our partner ready, I quickly runs toward 珊, wanted to invite her for the game, however, 珊 is already been approached by 5-6 seniors, and they all are popular and handsome then me. 珊 didn't notice me at all, knowing the chance to invite her for the game is very slim, I am sad, and disappointed, quietly walk away.


Suddenly, someone hold my hand..

"Hey, where have u been!!!, I been waiting for u to invite me for the game, you stupid!", 珊 said in a cute voice, with the tone pretending she is upset..


Then she give me a light kiss on my cheek, and said. "btw, u are very handsome today.."

"But, only for today..haha", 珊 giggled.


------------- To be Continue --------------

Monday, January 26, 2009

Gong Xi Gong Xi 2009


Coolboy and family (i.e Mimi) would like to wish u and your family a very happy, romantic, prosperous Moo Moo Chinese New year...

Thursday, January 22, 2009

我的初恋 - 海珊 - Part III



珊 and I stayed at school hostel (don't worry, guy and girl do stay in different dorms), we start getting very close to each other after the "Express Lunch Delivery" incident. We went to school together every morning, went to library after school to finish our homework. and, we usually have casual walk around our school after our dinner. We chit chat, enjoy sunset, admiring each other during those walk. People just envy or jealous about two of us, even our teachers also know there is "little love in the air" between me and 珊.

There are many times during those casual walk I really wants to hold 珊's hand, like pretend to fall down, hope she will try to catch me, or try to get my hand very close to her, but all fails, one reason is I am still very shy, and the other reason is Chong Hua high school is very strict, any boy and girl get caught of holding hand by our discipline teacher will call into her office, and be prepared to nag by her for at least two hours, and worse, both parents will be notified, haha.

I know my only chance to hold her hand legally is to invite her to play lover bridge game at the Chinese new years party, in three weeks times. FYI, the Chinese new year party is yearly event organized by students who stay at school hostel (There are about 1000 of us stay at school hostel that year). The party usually run one week before Chinese new year. Teacher are invited to the party, with yummy foods and drinks, stage performances by students (comedy, singing, dance, magic show, and etc) from different dorms, and most importantly some party games.


The most anticipated event for us (well, for guy at least) is the "LoverBridge" game at the end of the party, where Guy are allows to invite any girl, hand hold the girl to quickly go through "Lover bridge" (form by a group students) before music stop. When the music stop, the bridge will lower down, and any pair caught in the bridge will be out of the game, and the game continue..kind of childish from today standarad, I know.. But that time, we consider that is a very big event for "Single" Guy like us..

To attend the party, and to make me stands out compare with others, I needs the following:
a) A new shining cloth and jean
b) A smooth and clean face,

-----------------------------------------------------------
A) Getting a new Shining Cloth and Jean

"Mom, can I have RM50?", I asked my Mom.

"RM50!!!!! What for!! U think is easy to earn RM50 ah, u know how much I can bough for family RM50...blah blah blah.......", Mom scolded me.

"I needs to buy new cloth and jean..", I said

"New cloths!!!! you should have enough cloths and jeans in your closet. I just bough u new jean 6 months ago, OK! why u so so greedy and selfish!!! ....blah blah....", Mom nagging..

"Our school's Chinese New Year party is coming in two weeks time", I said

"So what, can't ur wear your exsting cloth..blah blah blah...blah", Mom continue to nag me

"But Mom! I have to wear a bit smart to impress a girl I like loh, her name is 海珊", I said

"Oh! really?!!!! OK, OK, here is RM50", Mom give me RM50, "Now, tell me more about this girl 海珊, is she pretty, how many brother and sisters she have, where do she stay, blah blah.."

"Mom!"..

"OK OK, will not ask any more question, when u will bring back the girl for mom to see.?"

"Bye, Mom.."

---------- To be continue -------





Tuesday, January 20, 2009

我的初恋 - 海珊 - Part II


珊 not only a pretty girl, she is friendly, helpful and very smart, all this have make her a very popular girl in our school. For me, because I am bit shy that time (Remember, my face full of pimples that time) I am just admired her secretly, observed her from a distance, and jealous by myself when she start talking a bit friendly to other guys.

Our second magical moments happen three weeks later..

"Everyone, do finish up your essay, and submit to my desk by today", our Chinese language teacher remind us, before she end the class.

Everyone has finished their essay, and rushing for lunch. Except 珊..still working hard to finish her essay.

"Still have a lot to write?", I ask.

"Yep", she answer quietly.

"Ubi Khoo, hurry up, we all waiting for u, hungry lah!!!!", my friends urging me to go to cafeteria for our lunch..

"Ok, Ok, coming", me walking unwillingly toward my friends.

While at the cafeteria, I start getting very concern about her, as we only have one hour lunch break. I am worried that she might don't able to take her lunch before our afternoon class start.

So I excuse myself, order some light foods and drink, and quickly rush back (is more like running 100 meter in 10 seconds) to our classroom, and found out that 珊 still working very hard on her essay.

I walk quietly toward her, slowly and nervously hand over the foods and drink to her, and say "Err....this is for u.."

She first stare the food and drink, and then she looks into my eye, smile and say "Thanks, we share share the food, ok!", Bingo!..

Then ..the magic just happen..

She slowly raise her hand, to tidy up my shirt, and comb my hair a bit..
"Next time, u don't have to run, ok."

Wow, I am just stun, like forever, and no idea what to do next..she just smile away.

From that moment, I know I am in love with her, and she soft of "confirm" that I am her Boyfriend.

However, we only start holding each other hand about two weeks later.

------- To be continue --------

Friday, January 16, 2009

我的初恋 - 海珊

Do u on and off miss your puppy love? And when u do, do u smile of those happy moments u both share or those little secret only and u and her know? Do u occasionally still hope that one day, u could meet up with her again, even after many many years u have lost contact with her?

Well, I do. Her name is 海珊 (i.e Coral), and here is our story.

1989, I am 17, face full of pimples, am study at Seremban Chong Hua High School. 海珊 joined our class (Form 5 Science Class-B) after long holiday break.

"Class, we have a new student join us today, her name is 海珊, and previously she is from..", our teacher introduce her, while I still half awake, and half asleep.

"Ubi (my nick name, i.e Potato), wake up! got Leng Lui (pretty girl) joining our class..", my friend Thong try to awake me...

"huh....Where?"

"Hi everyone, my name is 海珊, glad to joining this class..."

Wow, such a lovely and cute cute voice, fully awake now,Oh my god! she is indeed a pretty girl and till now, I still remember her first smile. When she smile to every one of us, I feels that our class room is brighter, warmer, and fresher, as there is a little Sun, shining through from her head. I swear I didn't exaggerate any of this. this is what I truely feels then, maybe this is love at first sight?

"珊, u could sit beside Khoo..", did I hear that correctly? my teacher just ask her to sit beside me..wow..thanks teacher, muak muak.. thanks very much. I promise I will not sleep again in your class.

"Hi, 珊 here, nice to meet you.",

"Hi, my name is Khoo.. ", When I am about to start my usual James Bond style introduction, i.e Khoo, James Khoo.. ..

"And we all call him Ubi", Thong interrupted, stupid Thong, spoil my image..

She chuckle a bit, and give her right hand toward me.. I just sit that, admiring her smile, and no idea what to do next, till Thong smack my head. "Yoi!, Stupid, she wants to shake your hand..gentleman a little lah"..

"Oh, Oh, sorry, nice to meet you!", nervously give my left hand toward her, and about to shake her hand, ops! found out given wrong hand, quickly change to my right hand instead, and she is doing the same... and then, our first magical moment just happen..

We looks into each other..
Eye to Eye.
Then time just stop.
The whole class room just have me and her,
And, we shake hand, smile, and laugh at each other.
And this is how we first meet.

To be continue..

Tuesday, January 13, 2009

A new start




The rain finally stop, I open up my window, the air is so fresh, sunlight shinning through my eye, warm, and full of energy.

After weeks living in the dark, the Ram is about to embark a new journey.
Is the world ready for the Ram?

1,2,3 Go!

Wednesday, January 07, 2009

The Nasty JPA "Unknown abstract schema type" error

I been trying to debug the following error for days, and it drive me nuts!

The problem: JPA refuse to compile one of my NamedQuery, and throws the following error:

Error compiling the query [UserVO.findByUserName: SELECT u FROM UserVO u WHERE u.name = :name]. Unknown abstract schema type [UserVO]

After numerous Google search, I conclude that JPA will throw "Unknown abstract schema type" when JPA fail locate your entity class". Most often, this type error occurs when:
  • Developer have put down database table name instead of Entity Class name in the JPA query. eg. if we have a EntityClass UserVO which map to table name users, the query "SELECT u from users u" will throw the above exception.
  • When running JPA in standalone, or not JavaEE container(such as Tomcat 5/6), they forgot to explicit list all entities class in the persistence.xml, thus JPA fail to locate the entities when compile the query.
None of above apply to my case, I have explicit listed all my entities class in the persistence.xml
and I am sure my JPA query is valid. I have tested my code with different JPA implementations, but always resulted the same error..

Here my UserVO class


@Entity(name = "users")
@NamedQuery(name = "UserVO.findByUserName",
query = "SELECT u FROM UserVO u WHERE u.name = :name")
public class UserVO extends implements Serializable {

|
|
}


If I remove the NamedQuery, my JPA able to work as expected, i.e I am able to insert, delete, and update UserVO object.
Now, to all my smart reader, can u spot what's wrong in my code? Scroll down for answer.


|
|
|
|
|
|
|

Answer: The culprit is the Entity annotation, I explicit name the UserVO entity as users, which JPA have no problem to map the UserVO to users database table, but have problem to compile the JPA Query, because it can't find the UserVO entity in the JPA context, as the suppose UserVO entity have rename to users entity by me, got it, or confuse..

To resolve this, just add a @Table annotation with the table name, as shown code below:


@Entity
@Table(name = "users")
@NamedQuery(name = "UserVO.findByUserName",
query = "SELECT u FROM UserVO u WHERE u.name = :name")
public class UserVO extends implements Serializable {

|
|
}


Cheers, Happy New Year!!!!

Friday, January 02, 2009

My New Tattoo


Finally, I did it..

It's not as pain as I have imagined, just the waiting process of my tattoo artist to prepare my tattoo logo, placing the tattoo outline on my arm, prepare color, install new needle, change the music player to his favorite Music CD, and start "needle" me is killing me... Haha

Here's the video of the process, warning, a bit violent





Know what my mom say, when she saw my new Tattoo?

"Wow, gangster ah, u.....!"






My 2009's Resolution

1. Get a Tattoo on my left arm, prefer an Aries Ram, which truly represent my character.
2. Back pack to Tibet at somewhere around Aug-Sept, 2009, anyone wants to join me.
3. To deliver some of my cool mobile service ideas, which I think going to "Wow the market"
4. To "reactivate" one of my open source project, "Java batch process management console", time to contribute back open source community
5. Donate one Cow to one of Family via World Vision and adopt one more children.
6. Finally, find my Ms Right....