Dev C++ [Build Error] [main.o] Error 1

Say your Dev C++ is in C drive of Windows (C:\Dev-Cpp\)

Copy following text to Tools >> Compiler Options >> Directories >> Binaries and click OK.


See the image below.
Compiler Options

Additionally add following text to Tools >> Compiler Options >> Programs before .exe

Compiler Options Programs Settings

Please let me know if this has been helpful to you or not.

Posted in Computers, Programming, Technical | Tagged , , , , , , , , , , , , , , , , , , , , | 22 Comments

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.

Just Replace ‘localhost’ with ‘’ in code. For example replace string “jdbc:mysql://localhost:3306/snehal?user=root&password=root” with “jdbc:mysql://”.

See the image mysql jdbc exceptions jdbc4 CommunicationsException

Please let me know if this has been helpful to you or not.

Posted in Computers, Java, Servlets, Technical | Tagged , , | 42 Comments

ICC Twenty20 World Cup 2010 West Indies Groups

Group A Group B Group C Group D
Pakistan Sri Lanka India West Indies
Australia New Zealand South Africa England
Bangladesh Zimbabwe Qualifier Qualifier
Posted in Uncategorized | Tagged , , , , , , , , , , , , | Leave a comment

ICC Twenty20 World Cup 2009 England Groups

These are the groups of  ICC Twenty20 World Cup 2009 in England .

ICC Twenty20 World Cup 2009 England Groups

Group A
Group B
Group C
Group D
New Zealand
Sri Lanka
South Africa
Posted in Cricket, Entertainment, Sports | Tagged , , , , , , , , , , , , , , | Leave a comment

Advantages of Servlets over CGI



  1. Servlets are easier to write.
  2. Servlets are faster to run.
  3. Servlets are platform independent. CGI has the disadvantage of doing server-side programming with platform-specific APIs.
  4. Servlet can handle multiple request concurrently, and synchronize requests.
  5. The servlets can be used to balance load among several servers that mirror the same content and to partition a single logical service over several servers, according to task type or organizational boundaries as servlets can forward requests to other servers and servlets.
  6. Performance, scalability, and reusability of CGI is not as good as servlets.
  7. Servlets uses Java. Java is a object oriented programming language. Obviously servlets have advantage of using object oriented programming language Java. 
Posted in Java, Servlets, Technical | Tagged , , , , , , , , , , | 1 Comment

IPL 2009 Profit


IPL logo

Profit for franchisees

Revenue Rajasthan Royals Chennai SuperKings Kolkata Knight Riders Kings XI Punjab Delhi DareDevils Mumbai Indians Royal Challengers Bangalore Deccan Chargers Hyderabad
Broadcasting 67.5 67.5 67.5 67.5 67.5 67.5 67.5 67.5
Sponsorships 24 24 24 24 24 24 24 24
Other Income 14.2 18.5 18.9 14.3 14.7 14 13.5 13.5
Prize Money 0.7 1.2 0.4 0.8 1.2 0.5 2.25 4.5
Total 106.4 111.2 110.8 106.6 107.4 106 107.25 109.5
Expenses Rajasthan Royals Chennai SuperKings Kolkata Knight Riders Kings XI Punjab Delhi DareDevils Mumbai Indians Royal Challengers Bangalore Deccan Chargers Hyderabad
Franchisee Fees 30.8 41.9 34.5 35 38.6 51.5 51.6 49.2
Salaries 20 20 20 20 20 20 20 20
Other Expenses 20.5 27.5 30.5 25.5 25.5 27.5 27.5 25.5
Total 71.3 89.4 85 80.5 84.1 99 99.1 94.7
Profit 35.1 21.8 25.8 26.1 23.3 7 8.15 14.8
  • All figures are in Rs. Crore 
  • Other incomes include gate receipts, in-stadia advertising, merchandise sales, and media tie-ups
  • Other expenses include stadia fees, travel, stay cost and team promotion
  • Winners got Rs. 4.8 crore, runner ups got Rs. 2.4 crore

Had tournament been played in india, profit could have been even more as the matches played in Indian stadiums could have generated heigher revenue from ticket sales. Profit was also reduced due to shifting of tournament from India to South Africa which added cost of shifting players, staff etc.

Profit for BCCI

Main income is TV rights for 10 years starting from 2008 sold to WSG (World Sports Group) / Sony for US $1.64 billion (Indian Rs 8,200 crore). Earlier contract was for US $918 million (Indian Rs 4,200 crore). However due to inclusion of BigDTH to show the matches as well the contract was renegotiated. Now Sony will pay Rs 670 crore per year for first four years and Rs. 1,100 crore per year  for next five years. Before renegotiation of contract (contract of Indian Rs 4,200 crore) it was Rs. 280 crore/year for first five years and Rs 540 crore for next five years.

Profit for Multy Screen Media (formerly known as Sony Entertainment Television)

IPL Advertisement tariff Rs 4 lakh to 5 lakh / 10 seconds. (It was Rs 2 lakh to 3  lakh / 10 seconds in 2008). Sony has said to be earned above of Rs 400 crore this year as advertisement revenue which was about Rs. 275 crore last year.

Source: IIFL Research

Posted in Business, Cricket, Economics, Finance, India, Sports | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 5 Comments

Should IPL be cancelled?

Lahore Attacks

Lahore attack has taken toll on IPL. What should be the fate of IPL after Lahore attacks? There are mainly three options in-front of IPL management, and we have to see what they choose. 1. to cancel IPL for this year, 2. to postpone it, or 3. to reschedule the dates and go ahead with the tournament within the same duration.

Franchisees and IPL management would definitely want to go ahead with the tournament with little or no adjustments in dates because of their commercial interests. If IPL is canceled, with economy showing no signs of getting back to normal, it would be the last thing they would want to happen. It is said that if IPL is cancelled there would be losses in tune of Rs. 1000 crore (about US$ 200 million). 

Even if IPL want to postpone tournament, it would not be easy to do so or is of no use as the next few months are of rainy season in India and secondly as ICC calender is already full it would be very difficult to find the time required to organize the tournament.

As a cricket lover my heart says that IPL should go ahead as it is without any change, however my mind says that the wise decision would be to cancel or to postpone it till the date there is no security concern and there is 100% surety about the safety and safebeing of players, spectators, officials, organizers, and other concerned people. After all this is a sport and nobody would want to play under security threat and nobody would want to watch a game in tense situation.

Assembly elections are also taking place during the same time. As a result the amount of pressure the security agencies would have to cope with would be tremendous. Also there would not be many overseas players wanting to come to India, especially players from countries such as Australia, New Zealand, South Africa, West Indies, and England would be apprehensive about coming and playing in India. New Zealand’s Jacob Oram has already raised questions about touring India for IPL.

 If something happens India’s reputation, prestige, and pride is at stake. However, IPL management looks very confident of going ahead with the tournament and if they do so it would certainly be a brave decision. Whatever is the case security of players, specatators, officials, organizers is of utmost importance, cannot be assumed, and cannot be compromised. Now it is left for IPL to decide what is more important – safety and security or commercial interests?

Posted in Cricket, India, Sports | Tagged , , , , , , | 2 Comments