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"

Thursday, May 09, 2013

Save money on Recharge Mobile/DTH/Datacard/Movies expenses

Savings :

If you want to save Rs 25 on 100 mobile recharge
OR
Rs 50 on Rs 200 movie tickets..then read otherwise ignore

Process :
Ngpay is one app which always give 25% discount Max Rs 50 on all above.
Their recharges and booking works for 100% tested...train tickets wont
save much as ngay have their own svc charge on irctc equal to discount...

For discount MUST need to use Promo Code : RMMEV on one of their screen.

1.Download bluestack software :
http://www.bluestacks.com/bstk-download-success-2.htm
2.Download ngpay apk file :
Search in google com.jigrahak.ngpay-652-6.5.apk  OR direct download with
http://www.2shared.com/file/CsxZlGUc/comjigrahakngpay-652-65.html  Click Lowest Download button
3.Open apk file with bluestack then you will find ngpay app installed in My Apps.
Register as new user on app home screen and remember to use Promo Code.

Headache :
Only problem is promo code works for new user and new payment method.

So new user possible just uninstall ngpay from bluestack by going in Setting/Manage Application...then open APK and  register with new email id
New payment : they accept debit card for sure AND also netbanking of some
banks...always need to find new account for payment to get discount...

Enoy!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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.