Gurgaon Jobs, Companies and Consultants

Those who are looking for job in Gurgaon can visit this site : Gurgaon Jobs. Here you will find email ids/contact no of "Companies in Gurgaon" and also of "Placement Consultants in Gurgaon"

Tuesday, June 30, 2009

Government Job 10th, 10+2 , Graduation

Good site for getting govt job : http://sarkari-naukri.blogspot.com

Indian Army(
http://joinindianarmy.nic.in) :

Category

Education

Age

Soldier General Duty

SSLC/Matric

16-21 Years

Soldier Technical

SSLC/Matric (Maths, English & Science) 45% aggregate marks in Class Xth

16-23 Years

Soldier Clerk/ Store Keeper Technical

SSLC/Matric (English & Maths) 45% aggregate marks in Class Xth

16-23 Years

Soldier Nursing
Assistant

SSLC/Matric (Maths, English & Biology) 45% aggregate marks in Class Xth

16-23 Years

Soldier Tradesman



(i) General Duties
(ii) Specified Duties

Non Matric
Non Matric

16-20 Years
16-25 Years

Havildar Education



(i) Group 'X'

Post Graduate/ Trained Graduate

20-25 Years

(ii) Group 'y'

BA/B.Sc.(Matric with English & Maths)

16-25 Years

Religious Teacher
(JCO's)

Graduate in any discipline
In addition, qualification in his own religious denomination

27-34 Years

JCO (Catering)

10+2 with science and one Year cookery diploma/certificate from a recognised Food Craft Institute.

21-27 Years

Surveyor Automated
Cartographer

BA/BSc with Maths having passed Matric & 12th (10+2) with Maths & Science

20-25 Years

Source : http://joinindianarmy.nic.in/otherranks.htm


INDIAN NAVY(http://www.nausena-bharti.nic.in) :


ARTIFICER APPRENTICES (AA)

Age - The applicant should be of the age between 17-20 years (ie. he should not be less than 17 or more than 20 years on the date of enrolment).

Minimum Educational Qualification

(a) 1st condition - Applicant should have passed Class 12th or equivalent with subjects of Physics, Chemistry and Mathematics.

(b) 2nd condition - Minimum qualification marks required for applying for a particular type of entry into Indian Navy may vary and the same would be promulgated in the advertisement in Newspapers and this website on as required basis.

DIRECT ENTRY DIPLOMA HOLDERS (DEDH)

Age - The applicant should be of the age between 18-22 years (ie. he should not be less than 18 or more than 22 years on the date of enrolment).


Minimum Educational Qualification Applicant should have completed a Three-Year diploma from a Government of India recognised Institute / Polytechnic, with minimum 50% marks in Mechanical or Electrical or Electronics or Telecommunications or Aeronautical or Ship Building or Instumentation Engineering or Metallurgy or in any other subject as advertised for each batch.



SENIOR SECONDARY RECRUITS (SSRs)


Age - The applicant should be of the age between 17-21 years (ie. he should not be less than 17 or more than 21 years on the date of enrolment).

NOTE: Relaxation of age – Against sports quota entry, the upper age relaxation for outstanding sportsmen, who have played at International / National / State level may be considered upto a period of 12 months.

Minimum Educational Qualification.

(a) 1st condition - Applicant should have passed Class 12th (Intermediate) with Science stream with compulsory subjects of Physics and Mathematics and Optional subjects of Chemistry or Biology or Computers.

(b) 2nd condition - Minimum qualification marks required for applying for a particular type of entry into Indian Navy may vary and the same would be promulgated in the advertisement in Newspapers and this website on as required basis.


MRs, NMRs, Musicians


Age - The applicant should be of the age between 17-21 years (ie. he should not be less than 17 or more than 21 years on the date of enrolment).

NOTE: Relaxation of age – Against sports quota entry, the upper age relaxation for oustanding sportsmen, who have played at International / National / State level may be considered upto a period of 12 months.



Minimum Educational Qualification –


(a) MRs – Steward / Cooks - Applicant should have passed 10th class examination.


(b) NMRs – Topass - Applicant should have passed 6th class examination.


(c) Musicians – Applicant should have passed 10th class examination and should be able to exhibit an aptitude for music.


As an Officer :

Type of Entry

Unmarried Men / Women

Age Limit

Educational Qualification

EXECUTIVE, LOGISTICS & EDUCATION BRANCH

National Defence Academy (NDA)
(Through UPSC)

Men

16½ - 19

10+2 or equivalent with Physics & Maths

(10+2) Executive
Naval Academy, Goa
(Through UPSC)

Men

16½ - 19

10+2 or equivalent with Physics & Maths

Graduate Special Entry Scheme (GSES)
Naval Academy, Goa
(Through UPSC)

Men

19 - 22

B.Sc (Physics & Maths) or BE

NCC Special Entry
Naval Academy, Goa

Men

19 - 24

B.Sc (Physics & Maths) or BE with Naval Wing Senior Div NCC 'C' Certificate

Direct Entry

Naval
Armament Inspection (NAI) Cadre

Men

19½ - 25

Degree in Electronics / Elect / Mech Engg or Post Graduate Degree in Electronics or Physics

Direct Entry

Law Cadre

Men

22 - 27

A Degree in Law qualifying for enrolment as an Advocate under the Advocates Act 1961 with minimum 55% marks

Short Service Commission (SSC) Executive/ Hydrography

Men

19½ - 25

Graduate (with Physics & Maths at 10+2 with 55% marks).

SSC -ATC Men & Women * 19½ - 25

Ist Class Science Graduate with Physics & Maths or

MSc with Physics or Maths with minimum of 55% marks.

SSC Law Cadre

Men & Women *

22 - 27

A Degree in Law qualifying for enrolment as an Advocate under the Advocates Act 1961 with minimum 55% marks

SSC Logistics Cadre

Men & Women*

19½ - 25

B.A (Economics), B.Com or B.Sc (Physics and Maths) or BSc(IT), CA/ ICWA, Catering Technology or

BCA/ MCA, or B.E/ B.Tech in Mechanical, Marine, Electrical, Electronics, Civil, Computers, IT, Architecture with minimum 60% marks.

EDUCATION BRANCH

Permanent Commission (PC)

Short Service Commission (SSC)

Men

Men & Women*

21 - 25

21 - 25

A Master's Degree in following with at least 50% marks

  • Physics (with Maths in B Sc) or
  • Maths (with Physics in B Sc)

OR

B.E/ B.Tech in Mech/ Electrical/ Electronics IT/ Computer Science with 60% marks.





Indian Airforce(http://careerairforce.nic.in/) :


After 12 th :

GROUP

AGE*
(See note below)

EDUCATIONAL QUALIFICATION

TRADE ELIGIBLE FOR

Group 'X'

17 - 22 Years

Candidates should have passed Intermediate/10+2 with pass marks in Mathematics and Physics with a minimum of 50% marks in overall aggregate.

OR

Should have passed a 3 year Diploma course in Engineering (Mechanical/ Electrical/ Electronics/ Automobile/ Computer Science/ Instrumentation Technology/ Information Technology) with at least 50% marks from a Govt recognised Polytechnic Institute.

Technical Trades

Group 'Y' 17 -22 Years

Candidates should have passed Intermediate/10+2 with science, arts, commerce subjects or equivalent vocational cources with minimum 50% marks in aggregate.
Vocational courses should be recognised by CBSE/State Educational Boards/Coucils which are duly recognised with 10+2 by Association of Indian Universities (AIU).

All Group 'Y' Trades
Group 'Y' 17-35 Years Should be able to read and write English and have knowledge of elementary Arithmetic. Should be proficient in playing at least one musical instrument out of Trumpet /Bass/ Saxophone /Clarinet/ Euphonium /Jazz Drum /Picolo / Bass Trombone / Key Board/ Guitar / Sarod / Violin / Viola / Cello / Contra Bass (String Bass). Musician Trade


After Graduation :

To join the Administration Branches, you must fulfil the following criteria:

  • Age
    20 to 23 years* for Graduates and 25 years* for Post Graduates.

  • Marital Status
    Single

  • Nationality
    Indian

  • Gender
    This is applicable to both men and women.

  • Educational Qualifications
    • First class (Min 60%) Graduate or Second Class (Min 50%) Post Graduate in Arts / Science / Commerce / Management / Engineering or LLB . [For law graduates (three years course) the upper age is relaxed upto 26 years]

To join our material management team, you must fulfil the following eligibility criteria:

  • Age
    20 to 23 years* for Graduates and 25 years* for Post Graduates.

  • Marital Status
    Single

  • Nationality
    Indian

  • Gender
    This is applicable to both men and women.

  • Educational Qualifications
    • First class (Min 60%) Graduate or Second Class (Min 50%) Post Graduate in Arts / Science / Commerce / Management / Engineering or LLB . [For law graduates (three years course) the upper age is relaxed upto 26 years]

  • Men & Women (Short Service Commission) with Term of Engagement of 14 Years with no extension

    Both men and women are eligible to apply for short service commission in the flying branch.” Short Service Commission in Flying branch is for 14 years with no extension.

For applying through any of the entry points mentioned above, you must fulfil the following eligibility criteria:
  1. Age
    19 to 23 years*

  2. Marital Status
    Single

  3. Nationality
    Indian

  4. Gender
    This is applicable to both men and women.

  5. Educational Qualifications
    1. First Class Graduation( min 60% aggregate marks)in any discipline(Three Years Course) with Physics and Mathematics at 10+2 level.
    2. First Class (min 60 % aggreagte marks ) BE/ BTech(Four years).
    3. Final Year students can also apply, provided thay donot have any backlog and min 60 % aggregate marks in the previous year/ semister.


DELHI POLICE(www.delhipolicerecruitment.in)

SUB-INSPECTOR (EXECUTIVE)-MALE IN DELHI POLICE

EDUCATIONAL QUALIFICATION:
The minimum educational qualification required is a Bachelor's degree from a recognized university.

AGE:

  1. 20 to 25 years as on 01.01.2009, i.e. those born not earlier than 02.01.1984 and not later than 01.01.1989 will be eligible. The upper age limit as prescribed above will be relaxable only in the following cases:-
    1. Upto a maximum of 05 years, if a candidate belongs to a Scheduled Caste or a Scheduled Tribe category
    2. Upto a maximum of 3 years, if a candidate belongs to an OBC category. This relaxation is admissible for those castes notified in the Central List and the List issued by the Govt. of NCT of Delhi. No other certificate will be accepted as sufficient proof.
    3. Age concession to Ex-Servicemen will be allowed in accordance with the orders issued by the government from time to time. They will be permitted to deduct the period served in the armed forces from their actual age and the resultant age, so derived, should not exceed the prescribed age limit by more than three years. It is further clarified that an “Ex-Serviceman” means a person, who has served in any rank whether as a combatant or non-combatant in Army, Navy or Air Force of the Indian Union and who retired from such service after earning his pension.
    4. Relaxation in the upper age limit is admissible upto 40 years (43 years for OBC, 45 years for SCs/STs) for departmental candidates of Delhi Police.
      A “departmental candidate” means a Constable, Head Constable or a Asstt. Sub-Inspector enlisted in Delhi Police with a minimum of 5 years service and who otherwise fulfills all other qualifications.
    5. Upto a maximum of 5 years for sportsmen of distinction who have represented a state at the national level and the country at the international level in sports. The discipline of sports for which relaxation is permissible as per table given below. If a candidate belongs to SC/ST category and fulfills the above criteria, he is eligible for 5 years relaxation in upper age limit over and above the relaxation prescribed at Clause 3(c)(i). In effect, he qualifies for relaxation in the upper age limit to a maximum of 10 years.
CONSTABLE (EXECUTIVE)-MALE AND WOMEN CONSTABLE (EXECUTIVE)

EDUCATIONAL QUALIFICATION:
10+2 (Senior Secondary) pass from a recognized Board. Graduation Certificate issued to ex-serviceman from the Army/Navy/Air Force of Indian Union will also be acceptable for male candidates.
Relaxable upto 11th pass only for:-
(i) bandsmen, buglers, mounted constable, drivers, dispatch riders etc. of Delhi Police.
(ii) sons/daughters of serving, deceased, retired police personnel/Group ‘D’ employees of Delhi Police.

AGE (CONSTABLE (EXE)-MALE):
18 to 21 years as on 01.01.2009, i.e. those born not earlier than 02.01.1988 and not later than 01.01.1991 will be eligible. The upper age limit as prescribed above will be relaxable only in the following cases:-
  1. Upto a maximum of 05 years, if a candidate belongs to a Scheduled Caste or a Scheduled Tribe category.
  2. Upto a maximum of 3 years, if a candidate belongs to an OBC category. This relaxation is admissible for those castes notified in the Central List and the List issued by the Govt. of NCT of Delhi. No other certificate will be accepted as sufficient proof.
  3. Ex-servicemen who are paid from Central revenues may be re-enlisted as Constable at the discretion of the appointing authority, if their discharge certificate shows previous service as Good or of higher classification provided that:-
    1. They present themselves within two years of their previous discharge.
    2. They conform to the educational standard laid down for recruits from open market and such endurance/efficiency as prescribed by the Commissioner of Police from time to time by issuing necessary standing orders.
    3. They are medically fit for police service according to the standards prescribed for recruits and
    4. Age concession shall be allowed to them in accordance with the orders/instructions on the subject issued by the Central Government from time to time. They will be permitted to deduct the period served in the armed forces form their actual age and the resultant age, so derived, should not exceed the prescribed age limit by more than three years.
    “Ex-serviceman” means a person, who has served in any rank whether as a combatant or non-combatant in Army, Navy or Air Force of the Indian Union and who retired from such service after earning his pension.
  4. Maximum age limit upto 25 years for the sons of police personnel and group ‘D’ employees of Delhi Police either serving, retired or deceased, required certificate should be on the prescribed format.
  5. Upto a maximum of 5 years for sportsmen of distinction who have represented a state at the national level and the country at the international level in sports. The discipline of sports for which relaxation is permissible as per table given below. If a candidate belongs to SC/ST category and fulfills the above criteria, he is eligible for 5 years relaxation in upper age limit over and above the relaxation prescribed at Clause 3(c)(i). In effect, he qualifies for relaxation in the upper age limit to a maximum of 10 years.

HARYANA POLICE :

Age : 18 to 25 years as on 01stJuly Upper Age Relaxable upto 5 years for SC/BC

Education : 10+2

Friday, June 19, 2009

Java Memory

Some good references to understand java memory problems.

Read BEST practices to avoid memory leaks

http://jb2works.com/memoryleak/topfive.html

Memory leaks with tools to diagonise :

http://jb2works.com/memoryleak/index.html

Java Memory Puzzle Eye Opener

http://mattfleming.com/node/306


My Memory Related Experiments :

Experiment 1 :

Enviornment : Processor=2.80 Memory=1.93GB(2072321024 bytes) RAM

Case 1 : I ran a program and printed memory using Runtime.getRuntime().maxMemory() Output : 66650112 bytes OR 63.5625 MB

Case 2 : Then i passed argument -Xmx512m and printed memory Runtime.getRuntime().maxMemory()
Output : 532742144 bytes OR 508.0625 MB

Case 3 : Then i passed argument -Xmx1200m and printed memory Runtime.getRuntime().maxMemory()
Output : 1248657408 bytes OR 1190.8125 MB OR 1.16GB

Case 4 : Then i passed argument -Xmx1612m and printed memory Runtime.getRuntime().maxMemory()
Output : 1677328384 bytes OR 1599.625 MB OR 1.56GB

But when i tried to give 1613 or more it started giving error :
Error occurred during initialization of VM Could not reserve enough space for object heap

Experiment 2 :
Case 1 :

public class Test {

public static void ppp1() {
byte[] test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
}
public static void ppp2() {
byte[] test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
}
public static void main(String args[]) {
ppp1();
ppp2();
}
}
O/P : Works Properly

Case 2 :

public class Test {

public static void ppp1() {
byte[] test1 = null;
byte[] test2 = null;
try {
test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
try {
test2 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
}

public static void main(String args[]) {
ppp1();
}
}
O/P : Gives Out of Memory
Case 3 :

public class Test {

public static void ppp1() {
byte[] test1 = null;
byte[] test2 = null;
try {
test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
test1 = null;
try {
test2 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
}

public static void main(String args[]) {
ppp1();
}
}
O/P : Works Properly
Case 4 :

public class Test {

public static void ppp1() {
byte[] test1 = null;
byte[] test2 = null;
byte[] test3 = null;
try {
test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
test3 = test1;
} catch(Exception e) {
e.printStackTrace();
}
test1 = null;
try {
test2 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
}

public static void main(String args[]) {
ppp1();
}
}
O/P : Gives Out of Memory

Case 5 :

public class Test {

public static void ppp1() {
byte[] test1 = null;
byte[] test2 = null;
byte[] test3 = null;
try {
test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
test3 = test1;
} catch(Exception e) {
e.printStackTrace();
}
test1 = null;
test3 = null;
try {
test2 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
}

public static void main(String args[]) {
ppp1();
}
}
O/P : Works Properly


Experiment 3 :
Case 1 :

public class Test {

public static void ppp1() {
byte[] test1 = null;
byte[] test2 = null;
try {
test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
try {
test2 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
}

public static void main(String args[]) {
ppp1();
}
}


O/P :
Gives Out of Memory

Case 2 :

public class Test {

public static void ppp1() {
byte[] test1 = null;
byte[] test2 = null;
try {
test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
for(int i=0; i< 100000; i++) {

}
try {
test2 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
}

public static void main(String args[]) {
ppp1();
}
}
O/P : Works Properly. For index condition i less than 100000 it was giving Out of memory.
Case 3 :

public class Test {

public static void ppp1() {
try {
byte[] test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
try {
byte[] test2 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
}

public static void main(String args[]) {
ppp1();
}
}

O/P : Gives Out of Memory
Case 4 :

public class Test {

public static void ppp1() {
try {
byte[] test1 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
for(int i=0; i < 0; i++) {

}
try {
byte[] test2 = new byte[(int)(Runtime.getRuntime().maxMemory()/2)];
} catch(Exception e) {
e.printStackTrace();
}
}

public static void main(String args[]) {
ppp1();
}
}

O/P : Works Properly for any condition i less than 0, 1, 2 .. it was working.

Tuesday, June 16, 2009

My HTML Favourites

If you have to deal with html coding then these references will be very helpful to complete
things fast :

1. Firefox Addon Aardvark to view source of any element of an html page.
To start addon go to Tools menu and click Start Aardvark.
Popular keystrokes :
W : containing element as selected element
V : view source of selected element
Q : Quit, stops the addon

2. Firefox Addon JSView to view included css, js on an html page

3. Html Formatter : http://www.mycoolform.com/index.php?lang=en
Paste your code there it will give you formatted html.

4. Javascript Formatter : http://jsbeautifier.org/
Paste your code it will format it properly with right indentation

Wednesday, June 03, 2009

Earn Money Internet

First of all there are lot of scam sites doing business in this field. They charge money from people who register with them and then they don't pay anything in return. BEAWARE, most of sites
you will encounter will be fake or scams. Most of popular sites specially survey sites provides options to mainly U.S residents for earning money. Being from India you will have very little scope of earning fast money.

How to know a site is genuine or not ?

Approach i usually take is, i put name of that site in google sometimes with keyword "review"
at end then in search result sites you will get feedback from lot of users who has been duped in past from that site. Go through those reviews and then decide which one is genuine.

Second if you generally search for sites for online earning you will get lot of links in
yahoo answers and other forums. In most of them you will find one ref id at end.
People just want to trap you for referral. They will give you assurance i had got money
from this site, click link to register, basically if you register using that link he/she will
get referral money. Thats why be aware of such people.

Third thing i follow i never register at site which charges you to become member. I will not suggest to opt for sites which ask you some registration fees/charges.

Hot List :

1. www.surveyhead.com
On sign up they had given around Rs200 then if u start taking their surveys then
before start actual survey they ask questions based on answers they judge you are qualified
for survey or not. Very rare chances to qualify. You can try your luck.

2. On article i found about sites based on PTC model(paid to click) :
http://www.himarticles.com/Articles/Affiliate/Onlinejobs.htm
here you will get list of sites with their clicks rates and minimum payout. Good comparison.

3. Blogs it explains everything about online sites from which you can earn money.
http://nocostcashfromhome.blogspot.com/

4. List of sites which are fake :
http://frinder.wordpress.com/2008/06/15/9/
http://ww2.yuwie.com/blog/entry.asp?id=662888&eid=413977

5. Survey Sites for Indians
http://www.internetpaidsurveys.com/international/survey-india.htm

6. Good site information about work at home jobs/freelance sites
http://www.a1newspapers.com/

7. Scam sites list specially for data entry
http://www.squidoo.com/typeathomescams

8.http://www.mydatateam.net
This seems to be only site on internet world which has positive feedbacks. It is not related to reading emails or sending emails or clicks it is simple Data Entry. Concept is you type and submit
data you will be paid. But twist is they charge registration fee : 50$. They claim to refund
money if you do not like site in 60 days. I recommend this site if you want to try.
Similar sites which are genuine but asks same registration fees of around 50$ :
http://www.webcolleagues.com/
http://www.work-from-home-data-entry.net/
generally it is not recommended to work on all three at same time as it becomes little diffcult to handle. So go for one and try it for few months then see how you perform.

9. http://hits4pay.com/
They give some 10$ signup bonus and regularly send paid emails to your inbox , each email have advertisment, on click of that you will get 0.02$. Good but slow way of earning money.

Friday, May 29, 2009

Heart surgery for FREE!!!!!!

Yes it's true it happens in India at Sri Sathya Sai General Hospital, Banglore, India.

About Hospital :

It offers free heart surgeries to people from all walks of life. Till date it has conducted nearly 400,000 surgeries, according to its staff who point out that no billing counter exists at the hospital.

The hospital's mission is to 'provide high quality medical care absolutely on a no cost basis to all irrespective of caste, creed, religion, and financial status in an overall spiritual environment which recognises the patient as a human being and not as a diseased entity.

Every patient receives the same treatment here, free-of-cost. "The idea is that each patient is at the same level and if you do not pay for your treatment, then everyone is on par.

The hospital is located on a 53-acre complex. Hospital houses 333 beds, eight operation theatres, six intensive care units, two cardiac cath labs and a 24-hour emergency unit.

How hospital manages Expenses :

All the funds for the hospital come from the medical trust, which in turn receives donations from various charitable trusts and Sathya Sai Baba's devotees

Located at :

Get directions on Google map :

http://tiny.cc/hospitalongooglemap

Friday, May 22, 2009

Blog in search engine results, Get traffic to blog

Make your blog famous

My Experience :


I had submitted my blog URL to Google search engine, after that i got lot of visitors from Google
search results. So if you want to make your blog popular submit it to all famous search engines,
then keep an eye on your visitors to see the change.

How it will help :

If you give your blog URL to search engine then it will be added to their index each time their engine will crawl the web.

How to do :

Always give your URL starting with http:// prefix. No need to give individual page links just
top-level page will do the job.

Go to these links for submitting your blog URL :

Hope it will help....

Unchecked checkbox problem value not submitted with form - Trick to get it done

Unselected checkbox value not submitted with form

Problem definition :


Today i encountered with one of rule of Html Specification :

unselected radio buttons and checkboxes are not submitted with form.

That means if you have a boolean property xyz in form that toggles checkbox, in that case
value for xyz will be submitted only if it is checked otherwise not.

So in case of updating existing record suppose your field xyz was set to true and now user unchecks that then on form submission value of xyz will remain true, it will not become false as expected.

Solution :

Use a hidden variable of same name and with value as false. Remember your hidden variable should come after the checkbox.

Example :

Your Old code :
<input name="xyz" type="checkbox"/>

Your New Code :
<input name="xyz" type="checkbox"/>
<input name="xyz" value="false" type="hidden"/>

This will give you correct behaviour which you expect. That is if user checks the box then xyz value should be true and if user unchecks then xyz value should be false.

Other approaches which people suggest is to write some javascript for
unchecked boxes to explictly submit them Or use radio button etc,
its upto you to choose whichever works for you.

If this does not work for some one please leave a comment on this post.

Tuesday, May 19, 2009

Desi Recipes for cooking food at home

In this post i will collect recipes from internet for preparing some delicious eatables which we all can cook at our home..keep watching this post for new additions.

Crunchy Poha Recipe :

Ingredients:

  • Chopped onions
  • Mustard seeds (rai)
  • Beaten rice (poha)
  • Peanuts(मूँगफली)
  • Red pepper powder(लाल मिर्च पाउडर)
  • Turmeric powder (हल्दी पाउडर)
  • Salt to taste
  • Oil
  • Coriander to garnish(धनिया से सजाना)

Method of preparation:

  • Heat one big tablespoon of oil in a cooking pan.
  • Shallow-fry the peanuts in the pan, removing them once they turn golden-brown.
  • In the same pan, place the rai and chopped onions, stirring them till the onions go soft -- don't wait for them to fry till they are golden-brown.
  • Add the turmeric powder (हल्दी पाउडर), red pepper(लाल मिर्च पाउडर) and salt to the pan.
  • Take a large bowl and soak the poha in water. Gently wash the poha and drain all the water immediately. Drain the poha completely to remove all water. Then put it in the pan, stirring it around to mix with the other ingredients and allowing it to cook for one or two minutes till yellow in colour.
  • Before serving the crunchy poha, mix in the peanuts and garnish(सजाना) with coriander leaves(धनिया पत्तियां)
Bread Upma Recipe :

Ingredients:

  • 4-5 slices of bread
  • 3 tbsps curd(दही)
  • 1 tsp mustard(राई)
  • 4-5 curry leaves(करी पत्ते)
  • 2 green chillies
  • 1 tsp turmeric powder
  • 2 tsp chillie powder
  • 2 tsp coriander (dhaniya) powder
  • 1 tbsp oil
  • 2-3 tbsp water
  • Salt to taste
  • Coriander leaves to garnish(धनिया से सजाना)

Method of preparation:

  • Cut the bread into small pieces .(each cut into approx nine squares or more)
  • Sprinkle(छिड़कना) water on the pieces, so that the bread becomes soft.
  • Heat the oil in a kadai and add the mustard and turmeric powder.
  • Next, add the green chillies, curry leaves(करी पत्ते) and bread.
  • Add the remaining masalas -- chillie powder, dhaniya powder and salt.
  • Add the curd and mix well.
  • Bread Upma is now ready to eat -- garnish with coriander leaves.

Veg Pulao Recipe :

Ingredients:

  • 1 cup rice
  • 2 cups water
  • 1 tsp cumin seeds (jeera जीरा)
  • 1 small diced onion
  • 1 chopped potato
  • 1 small chopped tomato
  • Green chillies
  • 1/2 tsp red chillie powder
  • 1/2 tsp coriander powder(धनिया पाउडर)
  • 1/2 tsp garam masala
  • 1 tbsp cooking oil
  • Salt to taste
  • you can also add more veggies like carrots(गाजर), peas(मटर) and beans(फलियां) to suit your taste.

Method of preparation:

  • Soak the rice in water for 15 to 20 minutes.
  • Next, heat the cooking oil in a pressure cooker and add the jeera; once it starts crackling(तीखी आवाज), add all the chopped vegetables.
  • Also add all the spices -- red chillie powder, coriander powder(धनिया पाउडर), garam masala and salt.
  • Next add the water (2 cups -- always remember, the quantity of water should be twice as much as the rice to be cooked).
  • Finally, add the rice and close the pressure cooker, allowing it to cook till the first whistle goes off. Once that happens, turn off the gas and leave the rice inside for the next five minutes.
  • Open up the cooker -- your Vegetable Pulao is now ready to eat. I prefer to eat with dahi best combination.
  • Here's a tip -- you can substitute the rice with cracked wheat (dalia)

Thursday, May 14, 2009

Useful Java Articles over Internet

In this post i will keep adding links for good java articles which i will find over internet.


1. Explains CACHING and also compares different caching frameworks performance :

http://javalandscape.blogspot.com/2009/05/intro-to-cachingcaching-algorithms-and.html


2. Explains Use of Strategy Design Pattern with very good example

http://community.java.net/pub/a/today/2005/04/07/pojostrategy.html



to be contd.................. keep watch on this post....................

Tuesday, May 12, 2009

AMIE - equivalent to B.E or B.Tech - no need to attend college

In this week i was searching for information about AMIE. I found information in pieces from various sites then i thought i should write one post to help people to understand this concept.

What is AMIE?

AMIE stands for Associate Member of Institution of Engineers. Simply speaking, it is an engineering degree course recognized by all State Governments, Central Govt., UPSC etc as equivalent to B.E/B.Tech. That means, those who successfully complete AMIE will get equal opportunities for job as well as higher education, just like a B.E or B.Tech holder. The Institution of Engineers (India), the largest multidisciplinary body of engineers in the country is the body that prepares syllabus, conducts examination and issue certificates etc. of AMIE.

In short you become member of IE(Institution of Engineers) India and start reading books for syllabus given by them then appear for tests they conduct every year June,December. You just have to clear few subjects in 10-12 years time and you will become equivalent to B.E/B.tech sitting at home or parallely working with some company as you do not have to attend colleges.

This course is especially suitable for employed person, as they can study this course without being interfering their job, whether they are in India or abroad .

Who Can Study AMIE ?

His/her age shall be 18 years or above

Those who wish to do AMIE must passes any one of the following qualifications.

  1. He /she shall have passed 3 year diploma in branch of engineering/technology
    or equivalent diploma / certificate like Polytechnic.
    (No marks restriction)

OR

  1. +2/HSC/PDC with Physics, Chemistry& Maths with minimum 45% marks.

If you possess any qualification equivalent to the above, still then you are eligible to apply for AMIE.

Those who pursue AMIE after their Diploma course are usually known as Diploma Stream Students, and others are known as Non-Diploma Stream Students


SYLLABUS OF AMIE :

The syllabus of AMIE is more or less similar to B.E/B.Tech. But the number of subjects in AMIE is very less. The AMIE syllabus has two parts:- Section A and Section B (similar to First year , Second year etc. of any formal degree course). Those who join for AMIE should first study Section A subjects, and after passing Section B he should study Section B. In Section A we study some subjects which are fundamental to engineering. In section B, we make specialized study in our chosen branch of engineering. When a student clears all subjects in both sections A and B. he is said to have passed A.M.I.E examination and becomes a graduate engineer.

Based on ones qualification, the number of subjects that a student studies in Section A varies. A diploma holder need to study only 4 subjects in Section A, while a non-diploma/+2 holder studies 10 subjects in Section A.

Following are the subjects in Section A

  1. Fundamentals of Design and Manufacturing

  2. Material Science and Engineering

  3. Computing and Informatics

  4. Society and Environment

  1. Mechanical science

  2. Engineering Physics and Chemistry

  3. Engineering Drawing and Graphics

  4. Electronics and Instrumentation

  5. Engineering Mathematics

  6. Electrical Science.

On completion of section A, a student takes admission to Section B. In section B, student is asked to select a branch of engineering. Following are the engineering branches available.

  1. Electronics and communication Engineering

  2. Electrical Engineering

  3. Computer Science and Engineering

  4. Civil Engineering

  5. Mechanical Engineering

  6. Production Engineering

  7. Chemical Engineering

  8. Materials and Metallurgical Engineering

  9. Mining Engineering

  10. Production Engineering

  11. Textile Engineering

  12. Architectural Engineering.

Of the above engineering branches available, a student can choose ANY branch as he wishes, without any criteria. This is one of the attractions of AMIE. For example, a student studied Automobile engineering in Diploma level can choose Computer Science or Electronics etc in AMIE !!!!

Both Diploma and Non-diploma holders should study 9 subjects in Section B. In order to impart practical knowledge, the Institution of Engineers has included project work and lab experiments as part of section B syllabus.

In short, a +2 holder can complete AMIE by clearing just 10 + 9 = 19 subjects, whereas for a diploma holder, the total subject is 4 + 9 = 13 only.

The project work may be done in the same firm/company where the student is presently engaged in. For carrying out laboratory experiment, the Institution of Engineers will contact the authorities of some engineering college/similar technical institution nearest to the location of the student and make necessary arrangement. For this, a nominal fee of Rs 1000/- will be charged from the student.

DURATION of AMIE :

The attraction of AMIE is its flexibility in completion time. Apart from conventional courses, the AMIE doesn’t have a fixed ‘completion time’. Normally 6 years are available for clearing Section A subjects and another 6 years for completing Section B.

HOW TO JOIN AMIE :

For appearing AMIE examinations, one should get membership with Institution of Engineers. In order to get membership you should apply in the prescribed application form. Application form for membership registration can be had directly from any of the local centers of Institution of Engineers at a cost of 100/-.

Diploma holders should apply for senior Technician Membership, and +2 (or equivalent) holders should apply for Technician membership.

Once you submitted the application form for registration, you must wait for at least 3 months for getting your registration confirmation letter.

If you have properly filled up the form and have remitted the correct amount of registration fee(Rs 3565/ may vary) then definitely you will get the registration.

Plan time of your membership properly.

Candidates who will become member between 1stMARCH to 31stAUGUST will be allowed to appear for DECEMBER exam.

Candidates who will become member between 1stSEPTEMBER to 28thFEBRUARY will be allowed to appear for JUNE exam.

The first examination that the candidates are eligible to appear shall depend on their date of election as mentioned above. The stipulated six-year period shall be counted from the date of eligibility.

All condidates who are selected for membership will be sent 'Membership Pack' which contains general information about the Institution, Rules and Syllabi of the Institution Examinations and the Examination Application Form along with other related forms and Study Material’ for the following four subjects :

i) Fundamentals of Design and Manufacturing (AN 201 / AD 301)

ii) Material Science and Engineering (AN 202 / AD 302)

iii) Computing and Informatics (AN 203 / AD 303)

iv) Society and Environment (AN 204 / AD 304)

While applying for ST / T membership, the applicants from India and Nepal have to pay Rs. 4800/- only (Membership Fee Rs. 2000/- + Membership Pack Rs. 600/- + Study Material Rs. 2200/-). The overseas applicants have to pay US$ 530 only.

The demand draft for the amount as applicable should be drawn in favour of 'The Institution of Engineers (India)' and made payable at Kolkata.

Documents Required

Along with the application form, you should attach the following.

  1. Two passport size photographs to be affixed on the application form.

  2. Attested copy of Matriculation/School leaving certificate to prove your age.

  3. Attested copy of +2/HSC certificate (if applicable) to prove your educational qualification

  4. Attested copy of you Diploma certificate and marks sheet (if applicable) to prove your educational qualification.

  5. Demand draft of Rs 3565/-(may vary) drawn in favour of ‘Institution of Engineers (India)’, Payable at Kolkota.

  6. Write your name and address on the reverse of the Demand Draft.

  7. Keep a Xerox copy of all that you send.

  8. Get your qualification and identity verified by any AMIE/MIE/FIE holder. In order to do this you have to conduct any AMIE/MIE/FIE holder and he will attest your photograph on the application form, and on production of your certificate he will verify your qualification on the space provided on the application form. Regarding this attestation you can contact any local/State centre nearest to you.

  9. Send this application form to IEI, Kolkota at the earliest. If the application form reaches there before August, you will be eligible to appear for December examination.

Once you send the application form to Kolkota, you may not get any correspondence from there for 2 to 3 months. This doesn’t mean that your application was not considered. Normally it takes 2 to 3 months to process your application form. During processing your application form, first your will get an acknowledgement letter mentioning your ‘RS number’. You can note this number for further enquiry regarding your membership (only if it gets delayed too much).

EXAMINATION

AMIE examinations are conducted in the first week of June and December every year. There are a lot of examination centers in India and Abroad. A student can appear for maximum 4 subjects at a time. Thus, a diploma holder can write all the 4 subjects of Section A in single appearance. Examination fee is Rs 1200/- per appearance (not per subject). The examination centre need be selected only at the time of submitting application form for examination.They have exam centers all over india.

WebSites:

Tuesday, April 28, 2009

Amazing Script for Twitter Users

Today found one very good script which makes www.twitter.com very user friendly.

What value it will add to twitter :

  • Links in tweets are automatically expanded and replaced with the target page title if available
  • Hashtags are converted to Twitter search links
  • Auto-pagination is enabled as you get to the bottom of the current page. No need to click more button again and again
  • Media like YouTube videos and Twitpic images are included in-line in tweet
  • replies are included underneath the latest tweet, indented and smaller
  • Hovering over a tweet shows default actions like star (save), reply, and retweet
  • Long URLs are automatically shortened if the tweet you are typing in exceeds the length limit.
  • Twitter names get autocomplete launched by typing an @ in a tweet
  • Twitter bio text gets inserted into following/followers list
  • A tiny smilie face is added to the Twitter icon of those people who are following you
  • When viewing a specific Twitter user, Local time is added if the user's time zone is in their profile.
  • When viewing a specific Twitter user, their social graph is inserted in the bio area. Notes can be added to any user's Twitter page
  • When viewing a specific Twitter user, Map to user's location is inserted if location or geo coordinates are in their profile
  • You can add people( followers/following) to groups that show up in the Twitter sidebar

To use this script you must have Firefox.

Install link for Troys Twitter Script : http://tiny.cc/twitterscript

Try it if you are a twitter user if not register yourself(http://tiny.cc/twittersignup) its fun...

Enjoy....

Naresh

Thursday, April 23, 2009

Wednesday, April 22, 2009

Make Money from Twitter

I just want to share my expereince with a new concept i had found on Internet World.

How to start
:
--------------

To start earning money you need to have twitter account.
If not go to this url for signup : https://twitter.com/signup.

Once that is done next register your self with TwtAd
using this url : http://twtad.com/?id=777

How
TwtAd works :
----------------------

During registration they will ask you two things :

a) Your twitter account username and password
b) Paypal email id So if you have already paypal account then you can give that one otherwise
register yourself as individual on Paypal using this URL : http://tiny.cc/iTMIa. At paypal if you
want to give you account details or not its upto you. I had skipped that till i was about to
receive money from TwtAd.


After registration with TwtAd you can select ADS to be posted on your twitter account.
At first time i had selected 3 Ads which is max allowed in a day. Because of that my account was suspended by twitter considering as spamming. So be careful try with only one AD in start.

Once you select your AD then TwtAd guys will use paypal apis and will post tweet in your
account with URL mentioned for AD in it. If someody clicks it you will earn from it.
So in this way more clicks more earnings in your TwtAd account.

Each Ad has price with it for eample 0.1$, 0.7$, 0.8$...so choose max price AD.

You can withdraw amount from TwtAd only when it will reach to 20$ minimum balance.

One of the cool things is, you can have as many Twitter profiles as you want and post the ads on each one from the same TwtAd account.

Also TwtAd has a pretty referral concept as well - for each referral, you will receive 20% of their earnings for life.

So a simple, easy and fun way to earn money...

Enjoy....


Tuesday, April 21, 2009

An easy way to repay your home loan

Though it is advisable to increase your equated monthly installment to reduce your home loan tenure and help you repay your loan faster, you still need to keep it at comfortably manageable levels to be on the safer side.

Why is this the case you may wonder. A valid argument for you is, I would rather save on the huge interest cost by managing to pay a higher EMI, rather than pay a lesser EMI and face a long loan tenure.

There is a solution to get the best out of both the situations. The solution is to prepay.

You need not worry about the long tenure as you can prepay the amount that is around 3-4 times your EMI periodically like once a quarter or when your year end bonus comes through.

This will effectively help you manage your loan and consistently bring down the outstanding loan amount, as it will directly reduce the principal you owe the bank. Here the only thing you need to take into account is the prepayment fee, which some banks levy if your prepayment exceeds beyond a particular amount.

This could be anywhere between 1 per cent and 3 per cent of your outstanding loan amount. In this case, a handy strategy is to prepay within the limits specified by the bank periodically, which will significantly reduce your outstanding debt and help you close the loan early.

On the other hand, you can still consider prepaying in bulk if you wish to do so, in spite of the prepayment fee if the interest saved is significantly higher.

Here are some reasons that indicate why you should adopt this strategy.

a. Ideally banks offer loan amounts up to a limit of around 50 per cent of your income. This does not mean you should utilise the entire limit available.

Keeping EMI repayments within 30-40 per cent of your budget will help you save nearly 30-50 per cent of your income.

Money management experts recommend that you should try and save up to 60 per cent of your income to help you have enough funds to access, when in need. Though a home is an investment by itself in terms of a fixed asset, you would still need funds that can be liquidated at will, especially if you are a first time home buyer.

The right kind of investments will help you reap rich rewards long term and by saving in spite of EMI repayments will ensure that you start early to save more.

b. A long term loan like a home loan is a debt that is part of your budget every month. If you invest too much into it, there might not be adequate funds to manage a huge list of other expenses that will tend to accumulate with time. For example, you need to make allowances for future expenses like children's education, emergency funds for a job loss or the loss of one income in a situation where two people have taken a joint loan.

c. There might be spikes in interest rates. In such a scenario usually banks will increase the loan tenure in order not to put the borrower in a tight spot by increasing his EMI. In such a scenario if you can manage a slightly higher EMI you can request the bank to adjust the EMI, instead of extending your loan tenure.

d. On the positive side, when your income graph soars with time, as it is bound to under normal circumstances where promotions and job changes take place, you can always choose the prepayment route. It is best not to commit a higher sum that will burn a hole in your pocket, rather it should be the other way around where you can actually control the repayment pattern of your home loan.

e. A home loan may not be the only debt you incur. You might end up taking an education loan for your children or a personal loan for some other purpose. Your debt liability will be taken into account before banks sanction such loans. At such a juncture you will be in a position to leave enough room for one more loan, if need be. This could enable you to invest in a second home also in the long run.

f. Last but not the least, it is very easy to be stressed if some unexpected situation upsets the apple cart. You should have contingency plans in place to avoid your finances toppling like a house of cards leading to undue stress. Your life is something to be enjoyed and cherished, so don't entangle yourself in a web of debt and spoil the fun.



Tuesday, April 14, 2009

JMS : Java Messaging Service : HelloWorld / Sample Program!!

Recently i had learnt JMS and personally i have to do lot of google to write simple Hello World program. With all my learnings i want to save time of others who want to use JMS.

Basics :

You can read What is JMS ? Artchitecture of JMS ? from any site, some references :
http://en.wikipedia.org/wiki/Java_Message_Service
Also can refer Tutorial pdf in zip JMSHelloWorld.zip


Hope after some reading u are familar with terms of JMS. Let me summarize.
Basically core of JMS is Queues and Topics. I will stick to just queues.
For Queue we have Sender, Receiver who push and pop messages from it.
Overall we will register queue with unique name at JMS server(through command).
Then in our java code we will create ONE sender to send messages in queue AND
ONE receiver which will receive messages from Queue.

We will need one third party JMS Provider(mq: Open Message Queue) which will allow us to register Queues and that will provide us one JMS broker with whom we will connect. JMS Broker will take care of routing messages between queue. JMS broker will maintain messages either on file system or JDBC.

Softwares required :

I have JDK 1.5 installed on my PC and i had downloaded standalone Open Message Queue 4.3 from sun site. https://mq.dev.java.net/

Otherwise u can also download j2eesdk1.4 which is Sun Application Server
and it has same message queue as one component.

Now installing these software is easy just doing next next wizard. I had installed Open Message Queue at D:\software\Sun\MessageQueue.

U will need jms.jar(download from sun site) and imq.jar(after installation of MQ find from there) for Java development. These jars are also part of JMSHelloWorld.zip.

How to use Open Message Queue(MQ) :

For reference and install guide check one of PDF in JMSHelloWorld.zip. After installing we will need to learn few command line utilites of it i.e D:\software\Sun\MessageQueue\mq\bin.

Basically it has imqbrokerd.exe which is JMS Broker mind it. This has to be always RUNNING.
This is default broker which MQ provides and we will use same in our sample program.
So this broker listens on TCP port 7676. So identity of broker is localhost:7676.

Let us register queues in this broker :

Create one file pass.txt with content as :
imq.imqcmd.password=admin

Run this command :

imqcmd create dst -u admin -passfile pass.txt -b localhost:7676 -t q -n TestQueue

Check help of these commands for details or if any error.

So till now we had started our JMS Provider imqbrokerd.exe AND through commands registered one queue TestQueue. Now let us write Java :

JMSSenderWithoutJNDI.java :

QueueConnectionFactory connectionFactory = new QueueConnectionFactory();
/*This line will by default will provide u connection to JMS broker running at ur local machine

if u have ur broker at remote PC then use
connectionFactory.setProperty(ConnectionConfiguration.imqAddressList, "pcnamexyz:7676");

if u have broker over Internet(on webserver) use
connectionFactory.setProperty(ConnectionConfiguration.imqAddressList, "http://domainxyz:8080/imqhttp/tunnel");
*/
QueueConnection conn = connectionFactory.createQueueConnection();

QueueSession session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
/* NOTE : in same session do not create sender and receiver of same queue
*/
Queue queue = new Queue("TestQueue"); // other way is session.createQueue("TestQueue")

QueueSender sender = session.createSender(queue);

TextMessage textMessage = session.createTextMessage();

textMessage.setText("hello world");

sender.send(textMessage);
It is very simple to understand. We got connectionfactory and then created connection to JMS broker and then created one session and on session u can create sender, receiver. On sender
simple use send method.

JMSReceiverWithoutJNDI.java :

QueueConnection conn = connectionFactory.createQueueConnection();

QueueConnection conn = connectionFactory.createQueueConnection();

QueueSession session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);

Queue queue = new Queue("TestQueue");
QueueReceiver receiver = session.createReceiver(queue);

conn.start(); // VERY critical step otherwise wont receive message

while(true) {
Message message = receiver.receive();
if (message instanceof TextMessage) {
TextMessage msg = (TextMessage) message;
System.out.println("Reading message: " + msg.getText());
} else {
// Means end of messages
break;
}
}

So our sample program is ready for run. Run sender and then run Receiver and see u got message printed at receiver or not. If yes then say thanks to me, if no try to resolve errors
or contact me on yahoo messenger for that go to link on right hand side.

Download JMSHelloWorld.zip which has sample programs, pdf tutorials, jars for reference.


Key Points for a decision whether to use JMS or not :

1. OpenMessageQueue supports peristence storage of queue messages means even if u restart
PC, messages will remain persisted. By default it uses File System to store messages at example
location : D:\software\Sun\MessageQueue\var\mq\instances\imqbroker\fs370.
U can also configure JDBC to store messages of queue.

2. OpenMessageQueue supports sending messages to a queue on local machine, remote machine or through internet. For internet/http they provide one war file imqhttp.war which needs to be deployed in Web Server(like Tomcat) and url of that can be used to send messages in Queue over internet. See pdf tutorials in zip for details.