Monday, January 11, 2010

Eclipse Problems and solutions

Problem: Eclipse opens the project and shows and ‘X’ mark at the project folder. The entire java build path etc is proper. Cleaning the propjet works, but building the project fails. The progress bar stops after showing “Copying resources to folder”.

Solution: Goto project --> properties --> Build Path . Change the output folder to some other name ( usually it will be bin , change to bin1 etc ).

Root Cause : Not known .

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>


Problem: A java error comes .... "ClassNotFoundException a.b.c.DOMParser" .. During compile time / run time

Solution: Find out the jar file for this class and append the path to the classpth variable. Ex: add D:\Hui\xcers.jar to classpath to support DOMParser

Root Cause : No class file found in the class path .


<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>



Problem: Tomcat was getting started and closed immediately without server stating completely.

Solution: The CLASSPATH environment variable was having 2 values "D:\xx\xxxx\tools.jar;D:\xx\xxxx\xcerse.jar"
I removed the last one and the semicolon.Tomcat is coming up and running.

Root Cause: NO idea....

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>


Problem: When compiled a project, an error is shown ==> "

The hierarchy of the type is inconsistent"


Solution: Find the classes which the faulty class extends and make those base classes compile clean / If they are missed in the project source files, add them.


Root Cause : Suppose the class name here is A and A extends B, then the error is shown ifB is not compile clean / It is missed in the project source files.




Saturday, December 12, 2009

Advantages of Being in Koramangala

Hello People ,
If you are a bachelor / married / old age and looking for a house in a good locality in bangalore ... Give first priority for Koramangala .... You have all these advantages ...

Houses and Rent : If you are a bachelor , the best area is near Forum ( 5th block ) or BDA Park ( 8th block ). You will get a 2BHL for 7-8K and a 1BHK for 3.5 - 4 K , with advance of 30K - 50K .

Food : For both veggies and non Veggies , there are restaurants almost on each and every road . All are open till midnight and some are open till 4AM . So no problem for food !!!!!!

Parks : Koramanagala has lot pf parks maintained by BDA . They are really good and you can go there with anybody at any time ......

Pubs : There are more pubs than roads in Koramangala . You can spend your weekends here .... !!!!!! ... But please "Don't Drink And Drive" ...

Hopcoms : There are many Hopcom shops , for vegetables , fruits etc .

Koramangala Plus : Koramangala Plus is a free magazine , which you get once in a month .You will get all news about hot and happenings in you area / block.

Hospitals and Medical Shops : You can find doctors all over koramangala and also medical shops .

Lots of Gods : Siva , Ganesha , SaiBaba temples are everywhere in koramangala .

Camel Ride : Every weekend , a boy comes with a camel . You can enjoy Camel Riding on saturdays .

Malls in Koramangala :
<1> Forum Mall
<2> Big Bazaar
<3> Start Bazaar
<4> Monday to Sunday
<5> Raheja Arcade
<6> BDA shopping complex
<7> Oasis Mall
<8> Lifestyle
etc etc etc ...

Koramangala is the bangalore's Hottest Area :-) .,.... Be Hot and See Hot ....


Friday, October 9, 2009

Reverse Math == Proof for 1=2

Hi ......

Here is the proof finally ....

Let
-20 = -20

Can be also written as
25-45 = 16-36

also
5 * 5 - 9*5 = 4*4 - 9*4

also
5 ^2 - 9*5 = 4^2 - 9*4

Add (9/2 )^2 on both sides
5 ^2 - 9*5 + (9/2 )^2 = 4^2 - 9*4 + (9/2 )^2

Also
5 ^2 - 9*5* (2/2) + (9/2 )^2 = 4^2 - 9*4* (2/2) + (9/2 )^2

Can also be written as
5 ^2 - 2*5* (9/2) + (9/2 )^2 = 4^2 - 2*4* (9/2) + (9/2 )^2

Are of the form a^2 - 2ab + b^2 ........

So,
(5-9/2)^2 = (4-9/2)^2

Taking square root both sides ,

(5-9/2) = (4-9/2)

Cancel common 9/2 from both sides

5 = 4 implies 1 = 0
???????????????????????????????????????????

............. Forgot Maths ???????????? ......Dont you think i should get PhD for this ?????

Thursday, September 24, 2009

Rain Compilers - Most of You wont understand this...

I am still wet ....... Shivering ..... Its very cold ..... Finally i reached my house in koramangala after waiting for 3 hours for the process to stop. Whole team was coding , building , debugging and he was compiling his rain program. Finally he executed it at 6PM and the process ran for 3 n a half hours. Sometimes in background n sometimes in foreground. God knows on which algorithm the rain program runs. Usually it is a distributed algorithm ( wet MGRoad , dry ElecCity ). Today it was not the same . I think he wanted to try some different algorithm this time..... There were comments in between getting printed on the sky ( standard output ) . Trace macro's were not used , so only a small number of platform traces are generated in Jalahalli ... Immediately process started utilizing CPU n MEMORY completely . But the OS stopped it , as it was running for a long time and putting other processes into ready state..... Nature's Deadlock Solved .....
--- Santosh Pai ... A mad blog writer