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"

Sunday, February 14, 2010

Windows 7 Creating Partitions

CREATE MORE PARTITIONS ON WINDOWS 7 LAPTOP

If you had bought laptop/desktop which came with Windows 7 64bit and has only one partition i.e C drive and you want to create separate partitions E,F,G for songs, movies, software then read this it will surely help you :

I had bought my Toshiba Satellite A505-S69803 Christmas 2009 with 500GB harddisk and Windows 7 Home edition 64bit. When i got laptop it was only having C drive but i used to have separate partitions for songs, software, movies on my desktop computer. So i googled a bit about creating partitions in Windows 7 then some people recommended that Windows 7 also has DiskManagement using which we can shrink volumes/drives to get unallocated space for creating new drives. But i do not wanted to take any risk as C drive has Windows7 installed and playing with disk partitions is risky job. Then i looked for some freeware advance partitioning software which works on Windows 7 64 bit edition. Then i found this :

http://www.partitionwizard.com/

I downloaded their free Home Edition from this link :
http://download.cnet.com/Partition-Wizard-Home-Edition/3000-2094_4-10962200.html?part=dl-6285158&subj=dl&tag=button

File was around 6.8 MB then i installed that on my laptop.

I opened that software Partition Wizard Home Edition and right clicked C drive and then choosen Move/Resize to click and then moved sliders to make it 100gb from current 453 gb and remaining space it showed as unallocated after c drive. Then at left bottom i clicked on apply button which then prompted to restart window. On Restart this software Partition Wizard Home Edition started doing its job before windows even started. On boot i checked size of c drive it was changed to 100GB. Now i opened Partition Wizard Home Edition again then got remaining space as unallocated from there i created more parititions E,F,G each of 50GB softwares, 150GB songs, 1500GB movies respectively. For these it haven't asked for restart. On My Computer i was able to see these new drives.
Then from my computer i choosen to format each by unchecking Quick Format. Thats it
my partitions are ready for use.

TIP 1 : Do not let you laptop to go to sleep mode/ restart when software is operating on disk for partitioning, keep power plugged in otherwise it will create problems.

TIP 2 : If you want your drive size to be exact 150GB then on partitioning software choose size little more like for 150GB choose 150.10GB so that after actual partition gets created it will be of only 150GB. Otherwise if you will choose 150GB there actual created partition will be of 149.9GB.

TIP 3 : This software will also work on other O.S also like XP, Windows 7 32 bit etc but i had not tested on them.

hope my experience will help someone...

Thanks
Naresh Yadav

Friday, January 15, 2010

Procedure for Opening SBI Account and PPF Account

My Experience of Opening SBI Saving Account and PPF Account :

Part 1 :

I had applied for SBI Saving account on 15-Jan-2010 at Pune SBI branch which will help me to open PPF account for Investment and future Savings.

Procedure for opening new SBI Saving Account :
I had gone to SBI Bund Garden Branch Pune Maharastra which is at Dhole Patil Road opposite Reliance Fresh. Branch opens at 10:30am. When you enter go straight there will be one counter with label on top "Opening new Accounts". One old lady was sitting there to whom I had asked to give account opening form then she asked me whether u have PAN card or not I said yes then she gave me form.
Then in 5 minutes I had filled that 5-6 page form. Information to be filled was basic like Name, Residential Address, Communication Address, PAN Card No, any other Account with any branch provide a.c no etc
One photo was required that you have fix at first page and gum for that u will get there don't worry. But carry One PEN with you it will be easy to fill forms.
Documents I had attached with form :
Address Proof :
On company Letter head current address mentioned. Carry original and one Xerox copy.
Other options were :
CreditCard Statement, Salary Slip with Address, Income tax/Wealth tax assessment order, Electricity Bill,
Telephone bIll, Bank Account Statement, Letter from reputed Employer, RationCard, Letter from any public authoriy
Identity Proof :
PAN Card carry original and one Xerox copy.
Other options were :
Passport where address differs, Voter ID Card, PAN Card, Govt/Defence Card, ID Card from reputed employer,
Driving License, Photo-Id card issued by Post Office
Once you submit form at counter she will look through it and will ask to show Original Documents which you can take back after showing to her.
That's it...In 10-15 days I will get one letter at given address in form with details of my account and debit card.
I asked her if I want to collect from branch then what ? She said no you cannot it will be dispatched to given Address proof only.
Common myths :
1. Company letter head address proof will not be accepted. It is not true at all.
2. You need signature of one person who has account in SBI for more than 6 months. This is not true at all.
PPF Account :
I asked her about PPF account then she said once your this account is opened in 15 days then you can apply
For PPF account and in 2-3 days it will opened, same documents you will need for opening that also. It will be easy
After you have saving account opened.

Will post details of PPF Account in some other post after i open that for me after 15days.

Hoping it will help many people seeking such information........

Part 2 :
On 15thJan2010 i had submitted account opening form then on 26thJan2010 i had gone to SBI bank Bund Garden branch pune for enquiry(usually go after 10 days of opening account) there i told at counter my details Name and Date of Opening Account then she gave me one slip on which my account no was written and asked me to deposite Rs 1500 to this account no. Then i went upstairs and picked one deposite slip and filled it with account no and amount and given that to cash deposite counter there she gave me in return Customer copy of slip with stamp and told me to got to a person sitting there and ask for passbook. The when i went to that person he asked for that slip/challan and Identity Proof. After providing that he gave me
passbook. Then i enquired for ATM card they said it will come by POST only.

Then on 30thJan i got registered post from SBI having cheque book and ATM card.
Postman asked to sign and thats it.

On 29 th March 2010 :

PIN for ATM card they do not send by post, you need to go to your account Branch
with in 45 days of you received your ATM card post. So i went to my Bund Garden
branch their inquired about it. Then after showing ATM Card, Identity Proof and Account No
he gave me envelop having only ATM card PIN. Then i inquired for Net Banking user id password for that i went to some other person He gave me one form to fill with details of name,
address, dateofbirth,account no etc for registering to Internet Banking Then i gave that filled form to some other counter from there i received one envelop having internet banking userid and password. Finally got ATM card pin and Internet Banking user id and password .
Internet account he told me will be activated with in 48 hours.

That's it now i have fully working saving account with ATM card and Internet Banking,
thanks to SBI..

Procedure for Opening SBI PPF Account :
Then on 2ndFeb2010 i had gone to same Bundgarden, Pune branch and enquired for PPF account then came to know that a lady upstairs handles that. Then there i asked for PPF opening procedure then she gave me one form asked to come after 1 week and told it will take 8 more days. I have to give invetsment proof before 10Feb2010. To try luck i again went on 5Feb2010 and it opened same day there submitted that ppf account opening form with same documents of Address Proof and Identity Proof given for Saving Account. One more thing she asked was Xerox copy of first page of SBI Saving Account passbook. One photo was required for this. Form was having very basic details.
Then she accepted my form and asked me deposite money by cash or cheque atleast Rs 500 you have to deposite. I said cash then she said will give you PPF account no in half an hour come with cash. After half an hour when i went then she told me my PPF account no and asked to deposite money to cash counter by filling PPF Deposite Slip(this is different slip for PPF only). Then after filling that went to Cashier there submitted slip and money, she in return gave me Customer Copy with Stamp. That i had to taken to same person who had issued Saving Account Passbook and showed him slip then he gave me passbook after checking Identity Proof. Thats it my PPF account opened in just one hour.

Now for invesment proof either i can show Challan/Customer Copy of deposite slip OR XEROX of passbook having credit details.

Few things i enquired about PPF :
1. Must deposite minimum Rs 500 every year and year is financial year Apr-Mar. So my this financial year was done now i have to depoite again before March2011 at least Rs 500.
2. For Deposite y go to your SBI branch from where opened, fill PPF deposite slip and give cash at CASHIER counter and also give passbook if want to get updated and done. Show Challan as investment proof.
3. You can not deposite from anywhere. I asked for DELHI branch she said no, you need to transfer account there and transfer takes long time may be 2-3 months better i would have opened account from there only not from Pune.
4.Within Pune branches i think you can deposite by cheque not sure she told me something like that.

Procedure for changing address SBI Saving Account :
Go to your branch and ask for Change Address form very simple form then give new Address Proof and submit it. Thats it. On passbook you can get it reflected after few days.
I had changed to Harayana address she asked for Address Proof then i was having document issued from my company on letter head both Permanent and Temp written on that.
It was easy process.

Hope this will help..

Thanks
Naresh Yadav

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