Sunday, March 22, 2015

2 months and onwards

Hi,

So i have been in a relationship for 2 months already(19/1/2015) and i must say, she is godsent.
I do whine a lot about her sucking up all my time and energy because she is currently still searching for a job, but that does not mean I am unwilling to do so!

This post is definitely not a PDA post to share about how much I love her or how much she loves me, but it is to share about what are the more interesting happenings between us, which i hope to document.

- The NTUC FairPrice Shoppaholic
Every.Single.Date.
We will end up at the supermarket for a short walk. Be it JP, Joo Koon, AMK or Toa Payoh. We never fail to go there. But apart from these, we end up at pretty much all other supermarkets in all other shopping centers(Giant, Cold Storage). I guess soon enough, she will start to pull me to Sheng Shiong, and there is one just 1 block away. And oh, did i mention she LOVESSSS Diaso and i have a hard time getting her to leave which brings me to.....

- The NONSTOP Shopper
Now, since she loves to go shopping, it just meant that there are times where i have to shop with her
until i miss my train or we reach home damn late.
So i ended up trying to stop her from her crazy obsession.
By leashing her. with her scarf.
She will run away from me and i will try to throw the scarf that is tied into a small ring over her head to leash her. Upon leashing, i will try to drag her out and we end up like comedy in the shop (Daiso especially) I guess whoever review the security tape would be laughing at this 2 crazy couples always pulling and pushing around the shop.


- The precious moments 
Though 2 months is pretty short, we went through quite a bit of festive season together. Vday and CNY were all in the month of Feb.

* We 上船(NOT 上床) together (RSS ENDURANCE AND NOT SOME EXCITING CRUISE)

* We visited a few temples together (Buddist Relic, Mahabodi and the one that is near Mahabodi, and i want to go Phor Kar See and the Si Ma Lu Bugis temple with you together soon)

* We went for a swim at Pioneer that theme park public swimming pool. (ended up doing stupid stuffs instead of swimming)

* We 荡秋千(with me being the slave dog pushing her fat ass) together at AMK park.

* We walk about NTU and watch stars(our favourite passtime) whenever we have nothing exciting to do.

* We watched 2 movies together so far, and they are pretty bad and end up we both sleep through the movie.

* We took long bus rides and MRT rides together( some are not by choice since she stays in Pioneer and every other places are far from there) This is a precious moment because she will lie on my shoulder and its damn blissful lor.

* We gym once together. it was horrible, but oh well...

* We cooked carbonara together once. Technically, I COOKED IT.

*WE ATE A LOT OF SHIT TOGETHERRRRRR

I think we did a lot more, but I cant remember all of them now.

More to come!!!


Regards
Benjamin Chai

Monday, March 9, 2015

Autowiring (Java Spring Annotations)

Hi,

Autowiring is a very useful function in Java annotation and Spring
http://java.dzone.com/articles/why-you-should-use-springs

So the key points to note when doing Autowire is:
- it cannot be a new object.

- you might need a setter function if you are wiring a particular variable.

- you can pass the autowired object by reference, but it will only be a read-only. hence if you are passing a DAO, you can only get read-only database access, and cannot write back to database.

- you are required to declare the autowired object in your application-context.xml (beans.xml)


More guides on autowiring:
http://www.tutorialspoint.com/spring/spring_autowired_annotation.htm

It is indeed difficult to understand, but damn useful to use.