Friday, February 5, 2010

Here, the warm greeting from HCL to newcomers in IT field.
HCL is inviting Fresher applications from ‘08-‘09 batch with a score of min 65% from ECE, EEE, IS, CSE, IT, E&I and MCA disciplines.

Kindly update the needed information on the folloeing link
http://hcl.aspiringminds.in

Eligible candidates will be intimated, to appear for CBT test. Those qualifying after the CBT test will appear for an interview at Bangalore/Chennai/NCR.

Candidates can choose preferrable working locations for final placements and can look forward to a compensation of Rs. 18,000/- per month for the first six months and then Rs. 2.70 lakhs per annum. Cool, na?

A good chance to work with HCL. Don't miss it.
And All the very best for your future. :)

Sunday, September 13, 2009

This is gonna be my first post for log4j. Well, this is all about to log messages of a class to different log files. Here i am giving you a good tricky way to achieve this without creating custom logger or level.

I got this idea from my project. BA provided the given scenario-- When importing data from XML to database, if data imported successfully, then log to success.log and if unable to import then log it to failure.log. And the warning level must be kind of warn.

Well, here i am not going to show the actual code.

In the following illustration,

1. MainLog.java -- The main class for which we need to log messages.

2. MyLog.java -- A very simple class to trick log4j to redirct log to their own file.

Saturday, August 8, 2009

It's going to be my second post.This post is not as a rocket science but needful.I got idea to create this program, when i got issue with my module.There was an xml document and i need to know the occurances of a particular string.The file size was more than 10 mb. I used edit plus for this. First it took time for loading file in edit plus and then when i tried hit "ctrl + h" (to find and replacce dialog box) duhh! Got hanged.Then i used my program. And felt glad.

Please have look may be it ll be helpful for you also.

This program replaces all the occurances of a given string to be replaced in the given file with the given string to be replaced by.

Sunday, July 19, 2009

Hi all.This blog is for Java and J2EE related queries. Those of you who are newbie to Java and want to learn can make use of this blog. Also useful for the developer that wants solution to some problems. Here, what i post is either i learnt it by my experience or the gurus of java. If i write any code, that is well tested at my end.

So let's not much wait, and start with metadata. The graduates always learn this definition- "data about data is metadata", with vague examples. The definition really worths million. But how about understanding?

In this a particular combination of "Unique Attributes" defines a particular kind of data. Hence "Unique Attributes " are nothing but metadata.

Suppose a customer goes to a store of laptop. Now in that store there are several kind of lapy are available. Now customer says i want, laptop made by "hp", with processor "intel core duo", hard disk "320 gb', ram "4 mb". Another customer wants laptop made by "dell", with processor "intel core duo", hard disk "320 gb', ram "3 mb".

Notice the italic words. This is the main four combination that generally defines a laptop. In this if any one them gets changed that defines another new product.

I think this is fair enough to understand. If you feel more on this please write me. I ll get back to you with much detailed and better example.

Please feel free to write comments on the topic.I think your comments will give another way to think me and to provide qualitative articles.