Powered By Blogger

12 March, 2007

Spring with Jdbc

Yay! I finally managed the unmanageable!
Got Spring framework working with JDBC DAO, had to install MyEclipse though. That IDE is pretty cool. (Netbeans should seriously get a plugin for spring,makes life easier.)

Secret is dont try using MS SQL for this activity unless you wanna use the normal JDBC ODBC driver (not sure if it works though)...they have a MS SQL jdbc driver available online...you may want to check it out. But for novices like me, please use postgreSQL as ur database of choice. Its good easy to use and the GUI is cool!And the driver is available online too and u simply got to add the driver to MyEclipse. ("Help" is ur angel!)

a link that will be useful for the beginner:
http://www.laliluna.de/eclipse-spring-jdbc-tutorial-en.html

My next step in this battle is to get Hibernate working..
Gotta get to reading tutorials reg. those too...damn!
*for now , yay*

07 March, 2007

Meaning of Work ??

Phew! and well, once done with the tech stuff the mind can relax and engage in higher activities like figuring out if God exists.... or well.... in my case, do the highest form of mind exercise - bring myself to doing school work! The horror!

Having been bogged down with internship and school work at the same time I sometimes wonder if other people also have such experiences of horror and woe [or is it that their lives are easy with no work , no school just parties....hmmm... the luck of the idiots!]

Oft I have wondered if taking up such a tech major in Uni has signed me for a lifetime deal of a 9 to 5 job with no life apart from computers and no topics to talk about than tech...Oh Gosh! hurts to even think of it...

But thinking abt the most fundamental thing in the whole discussion....

why do I want a job? Why do I want to work?
Apart from obvious economic reasons.. why do I wanna work? or why does anyone in this whole wide world want to work?

If an individual won a lottery of a 100 billion dollars will he/she stop working for life?
Put urself in the shoes of the person and think...will you?

Hmm...this post will be continued...gotta think of some good answers *hmmm*

After my philantrophy

I always wanted to do my bit for the world hence I gave away precious knowledge accumulated after hours of searches (read Apache Tom... post). Anyways, my friend PJ feels technical blogs dont bring out your personality fully, he is right! I have great respect for the guy...he is quite a thinker (no jokes here...)
So we discussed and came up with a lot of topics...they included a lot of how-to s based on experience...
how to destroy ur sleep cycle
how to never lose/gain weight
(Depending on which one u wanna do.. and then put a never in front of it)

how to skip gym with valid self-excuses
(self-excuses : justifications given to oneself,
for the ones who dint get it!)
how to submit assignments on time when u have just 2 hours to go and u just started!!
but yeah ... after all that brooding I have decided to comment on the happening around the world and mix it with my own tales of woe / happiness but I hope to put in some tech stuff if I can ever find anything irksome enough to include... which I am sure I will...
*smiles*


06 March, 2007

ApacheTomcat + Spring with netbeans on the side

One of the most unnerving experiences (apart from 2 earthquake tremors in one day, yeah there was an aftershock later) would be installing Apache Tomcat and making it work with netbeans and not to forget Spring Framework....
Lemme start off with my tale of woe and then later go onto the part where I let out the secret of how to get it working finally ...(yes, may google be blessed! after a day's worth of googling I found all the missing links and got the setup working)...

Tales of woe are pretty useful especially in the technological field ( but I know no one is gonna particularly find it useful to hear me grumble with intricate details of my every hour on that fateful day!!)
But I can include a few lines of what - not - to - do s....

If you are looking for Apache Tomcat its best to go in for the preconfigured zip file
http://www.coreservlets.com/Apache-Tomcat-Tutorial
/Preconfigured-Tomcat-Version.html

cuz the installation steps require a LOT of changes otherwise and its best NOT to try doing the configurations urself unless of c you are a masochist, then by all means please go ahead!

The tricky part is learning to set the PATH and CLASSPATH etc which is necessary and you could go ahead using the cmd (command prompt) for it OR use Control Panels - >System ->Advanced Tab ->Environment Variables.

After that of course try running your tomcat by clicking on "startup.bat" in the bin folder and goto ur nearest web browser and type http://localhost:8080/ (depends on ur port number, I set it to 8080)
If all is well you would see the apache page, and then you can give ur first sigh of relief. :)

Ok, the problem I faced was basically due to trying to configure things myself. Of course this is as I mentioned before - pure torture...

If ur using netbeans then simply unzipping spring framework and adding it to your Library will do the trick --- now ur ready my friend , try making some programs...of c its gonna be hard trying to figure out how many config files u gotta write...but I am sure u can google it. I am gonna start on that now *hope still prevails*

05 March, 2007

Earthquake and it all began...

The floodgates are open now, I had been thinking of a topic to start my first bout of *blogging* (incidentally 'blog' isnt even on the nokia phone dictionary) but now I found a topic or lets say it found me. The powers that be have strange but effective ways of stirring things up, and stir up they did - my office building was swaying, the senior managers were rushing out of their offices excitedly and I was sitting there wondering if I should get up and show my panic. But lets say the powers that be know me too well and before I could panic and run to the stairs (and make a fool of myself cuz everyone else {except the senior managers} was *surprisingly* sitting nonchalantly in their seats thru the entire episode), the tremors ceased and peace was restored again. And hence came forth my first topic ...

Actually naah, I should make this blog useful, people should come visit it and get enlightened. My good friend PJ (I feel like making some lame joke on the acronym but I shall desist) anyways, PJ asked me to make this a good useful blog and not a silly sob story or humorous rendition of one's day to day chores...so yeah well...thats gonna be a (& the) task.

PS:the earthquake was rather mild no damage done to lives or livestock.

PPS: Gotta still decide on a topic / theme...hmm...*in deep thought*

Why?

A brief history of why this blog started:
Owing to the need of venting out frustration when one does internship (or normal work -"job" {which incidentally means mouthful...how abt that?} ) and doesnt enjoy starting with work early in the morning and wishes there was something else to do in life, was born the inspiration of writing online publically accessible diaries with boring details of one's life.
Though I am a fan of others blogs I've never written a blog myself, so judge not harshly my friend cuz well...u shouldnt (its just wrong!) . I am sure I'll get the flow in a few days :) *Hopez are high*