Categories

Dev C++ Makefile.win [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.

C:\Dev-Cpp\Bin
C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2

See the image below.
Compiler Options

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

C:\Dev-Cpp\Bin
Compiler Options Programs Settings

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

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

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

See the image below.com mysql jdbc exceptions jdbc4 CommunicationsException

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

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

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
India
Pakistan
Australia
New Zealand
Bangladesh
England
Sri Lanka
South Africa
Ireland
Netherlands
WestIndies
Scotland

Advantages of Servlets over CGI

 

java2

  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. 

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

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?

Shootout / encounter in Bus No 332 of Rahul Raj

Shootout / encounter in Bus No 332 of Rahul Raj

Shootout / encounter in Bus No 332 of Rahul Raj

This is really a very touching and sad story on the first day of Diwali. My heart is filled with a great sorrow and grief. What could have been a stupid youthful extravaganza to bring forth his dissatisfaction for Maharashtra Navnirman Sena (MNS) chief Raj Thackeray (by a disgruntled Patna youth Rahul Raj) has ended in a very very tragic story. I agree he (Rahul Raj) shouldn’t have resorted to violence and he deserved punishment. However, I don’t know what prompted Police to shoot this (single) youth. I think if wanted Police could have easily overpowered him.

He was alone on the upper deck of B.E.S.T. bus no. 332 and I don’t see any logic that he could have killed anybody. I am sure that police will now leave no stone unturned to justify killing of Rahul Raj. Prima facie it appears that this is one of those cases in which police have gone terribly wrong and have misjudged a misguided and misadventurous youth for a terrorist. Police must show now courage and accept mishandling this case.

Leaders from three different political parties from northern states have come together and have decided to meet PM on this issue. Lalu Prasad Yadav –  president of  Rashtriya Janata Dal, Ram Vilas Paswan – president of the Lok Janshakti Party, and Nitish Kumar – Chief Minister of Bihar and top leader of Janata Dal (United) have raised doubts over authenticity of the encounter of Rahul Raj. There is no doubt that this encounter is most unfortunate and could have been avoided. However what seems to surprise me always is lack of will power from the leaders of these northern states to create and provide enough employment opportunities in their states itself. I have never heard they even uttering a word about creating and providing jobs in their states itself.

Encounter of Rahul Raj reminds me of two movies – Rang De Basanti and Dombivli Fast. In Rang De Basanti five youngsters who are fighting against corrupt political system are killed by commandos. And in Dombivli Fast a middle class bank employee disgusted with corruption and mismanagement in society is killed by police for taking law in his own hand to bring order in society. What Rahul Raj has done to protest is definitely not acceptable and is wrong, however at the same time what happened to him is also most unfortunate and torrid!

Ya Sukhano Ya

I am not a great fan of TV serials or TV soaps. Not because I do not like watching TV serials or I do not like drama (or rather melodrama should I say), I do (like to watch drama)! But because to know whats happening around in serials you have to follow TV serial regularly. And that is my problem! I can not watch TV serials regularly as I do not get time enough to watch serials day after day.

However, when it comes to Ya Sukhano Ya, I follow this serials as fas as possible as this is a very different TV serial amongst all the TV serials. Whats I like about this TV serial is the closeness to reality and a message it gives.

Characters in this serial are dressed up and behave as you and me dress up and behave in our day to day lives. Female characters at home or away wear saris or clothes as normal housewives, mothers, sisters would wear in their day to day lives and are without makeup most of the times. Male characters too wear clothes as normal Marathi middle class males would wear in their routine lives. Such is the closeness to reality in this TV serial is that a character (Abhay Adhikari) is shown wearing same old T Shirt everytime he is shown at home. Hats off to the people who are behind this and look into such a minute (but important) details.

Black Friday in Indian Cricket!

Andrew Symonds,  bhajji,  Bhajji Sree,  Bhajji Sreesanth,  black,  Cricket,  cry,  DLF indian premier league,  friday,  Game,  Gentleman,  Gentlemen,  Harbhajan,  Harbhajan Singh,  Harbhajan Singh S. Sreesanth,  Harbhajan Singh Sreesanth,  Harbhajan Sreesanth,  India,  Indian,  indian cricket league,  indian premier league,  Indians,  IPL,  Kings,  Kings XI Punjab,  League,  Mumbai,  Mumbai Indians,  Premier,  Punjab,  S. Sreesanth,  Singh,  slap,  slapped,  Sports,  sportsmanship,  sree,  Sreesanth,  Sreesanth cry,  T20,  Twenty20

Image Source: Harbhajan, Sreesanth

Who would have had thought that such a day will come in Indian Cricket. When everything was going very good and it seemed that even players from across the countries are coming in good terms with each other, we had a bad bad news. Our very own Bhajji slapped our very own Sree! What an unfortunate day in the Indian Cricket! Though the news is neither confirmed nor denied, Sreesanth crying nonstop on the ground in front of large crowd even after his team Kings XI Punjab won the match comprehensively against Mumbai Indians has said it all. Nobody is a fool to guess that what must have been happened and why Sreesanth was crying like anything that too in front of crowd and cameras. It was such a sad sad picture that nobody would want to see it again.

This is nothing but shocking and shameless. Harbhajan Singh and S. Sreesanth both look sensible to me. Still, having played together in a team for India how could a sensible person do this? What made Harbhajan Singh so furious that he hit his own Indian teammate? Did Sreesanth said him something? We know Harbhajan Singh and S. Sreesanth are both surrounded by controversies. Very recently during India’s tour of Australia Harbhajan Singh was accused of racial abuse. Indian board somehow succeeded in freeing him of racial abuse charge as there was not sufficient evidence to convict him. However after this thing has happened eyebrows must have been raised again that may be during that time he may have said something objectionable to Andrew Symonds. After all he is freed because there was not sufficient evidence to prove charges against him. Has he or hasn’t he, question will be raised in minds of everybody again.

Players from the same team fighting with each other is not new to Cricket. Pakistani speedster Shoaib Akhtar was called back from the Twenty20 World Cup in South Africa last year as he hit his team mate Mohmmed Asif with bat during practice session. It is also said that Shoaib Akhtar slapped former Pakistani coach Bob Woolmer during Champions trophy in India in 2006. However, this has never happened with Indians (at least in public eyes). This is the most unfortunate incidence and as unfortunate as match fixing in 1999/2000.

Harbhajan Singh as well as Sreesanth has denied that Harbhajan Singh slapped Sreesanth. However, both accepted that there was something which happened and which is unacceptable. Harbhajan Singh later went to Sreesanth’s dressing room and apologized and Sreesanth also said that there was no need for an apology altogether and things like these happen. Sreesanth also said that Harbhajan is like his elder brother, he has forgiven Harbhajan, and he will not file complain against Harbhajan.

This all happened in presence of IPL CEO Lalit Modi. Stories are making rounds that this fight is make belief and staged to catch the attention to IPL. If this is the case I think this idea is very sick and there is whatsoever no reason to make such a drama as IPL in my opinion is already doing very good and things like this can never do any good, it can only harm the good show.

India is host to this tournament. That is we are playing in our own country. When we are playing in our own country, we should set an example. By staging this tournament successfully we wanted to prove that we too have capability to make changes and bring revolution in game, world should stand and take a notice of us. However, this incidence has made every Indian ashamed of themselves. In first place there is no need to get so hyperactive as this tournament is for entertainment. If we ourselves are fighting with each other then what treatment we can expect from players from other countries towards us. This is blot which is very difficult to clean. Whatever Harbhajan Singh and S. Sreesanth say now and whichever way they try to convince, not only they will remember this incidence forever their life, it will also be remembered as one of the most embarrassing moment in Indian cricket. It has saddened every Indians heart to no end. I hope that board should not take a strict action against Harbhajan Singh as this is the first time this has happened and he must be given a chance. We can only hope that Harbhajan Singh and S. Sreesanth should really forgive each other for the sake of sportsmanship, game, and country, they should play together as they did before and things like this should never happen again…