Sunday, January 17, 2010

Fixing Eclipse interaction with kde4.3

I love KDE(no secret!) and kde underwent a big review after Qt4 was introduced. KDE stopped being the environment I loved. So many bugs and it kept crashing all the time. I had to switch to Gnome. I started using Ubuntu(Ubuntu Linux Bible (versions 9.10 and 10.04)) for some time and it was fun for some time. But my longing for KDE just kept me troubling. I was waiting for a stable release and hoping that I get back to KDE. So KDE 4.3 came to my rescue; not only is it stable, its really really fun. 
      Probably I will reserve another post for all the things I love about KDE but for now lets get to the main issue. Lately I wanted to learn Android and start writing applications for the platform. I borrowed "Android Wireless Application Development" from my university's library and so far its just great! 
To develop android applications, I am using google's eclipse plugin. However, lately eclipse stopped working or rather its not working properly on distros with KDE 4.3. You cannot click buttons, only menus work and the eclipse wizards are a pain in the ass! You have to use combination of space bar, tab key and enter key to navigate. Very annoying indeed! Looks like the problem seems to be with the latest SWT framework which has made some kind of internal changes.     
After googling, the fix was very simple. I will describe what you need to do to solve this. It will work for any linux distro you are using. I am going to assume that you have eclipse installed under folder /opt/eclipse. Open your favorite editor(kate/kwrite/jedit whatever) and paste the following contents into the file.
#!/bin/sh
export GDK_NATIVE_WINDOWS=true
cd /opt/eclipse
./eclipse




Save the file under $HOME/bin/eclipse_launch. Next, press Alt+F2. This will bring your runner upfront. Type 'konsole'. After the konsole launches, navigate to your bin directory by typing

cd bin
chmod +x eclipse_launch
Thats it! You can create a shortcut on your desktop for the script or just click the script directly to launch eclipse. The weird problem is gone! Long live KDE :)


Wednesday, May 02, 2007

The Seed Stopper......(Smokey!)

I am having my exams on the 9th and 11th of this month. The first exam is Software Testing which sucks so much, i had to take a diversion today! and guess what a mad scientist does? I created a very small plugin for Azureus which does nothing other than preventing it from seeding any of the files downloaded.
I know this goes against the principles of bit torrent protocol, but for people like me who have a bandwidth of just 10KB/s for upload, its a tough call :( . Anyway I am providing the link here, help yourself. Seed Stopper!!

Also have a look at the release notes for info about installing the plugin.

Wednesday, February 07, 2007

My Multimedia keyboard works.!!!

What a wonderfull feeling.......yesterday by accident i moved the volume scroll on my system.... It is a multimedia keyboard .... however i never expected that linux has installed the appropriate drivers for it .The above screen shot is that of the volume and the bottom is that of mute. Besides the play,next,previous,stop all work..By the way i am using kubuntu :) . Go linux !!! Go!!!! You rock

Saturday, January 13, 2007

An dissapointing topcoder contest....

Yesteday topcoder conducted its srm contest at 10:30 pm . Even though it was pretty late for us i did not mind since i usually sleep late into the night. It was damn cold in my room which was pretty unusual in a city like chennai . I donot know whether it was the climate or was it my body that started freezing ? This was my first top coder srm and i wished i did properly . I was not able to get the gist of the first problem . I got a bit confused . the second problem was regarding a problem validating a knight's move .
the full code is here :http://www.topcoder.com/stat?c=problem_solution&rm=263249&rd=10658&pm=7245&cr=20718854
for (int i = 0; i < cells.length; i+=2) {
if(!this.valid(parse(cells[i]),parse(cells[i+1])))
return "Invalid";
}
this loop was the mistake i did. here what i did was that i paired up two consequtive moves instead of sequence
so suppose you have a sequence of moves say
"D5", "F6", "C6", "A5",

so what my code did was validate knights move from D5->F6 and then the next validate C6->A5
however it should have been
D5->F6, F6->C6,C6->A5 .
then the corrected loop looks something like this
for (int i = 0; i < cells.length; i+=1) {
if(!this.valid(parse(cells[i]),parse(cells[i+1])))
return "Invalid";
}
so its i+=1 and not i+=2!!!!!
damn this seemed to be the easiest that top coder could ask and i messed it up!!!!

the next 1000 sum was easy.......but never did it strike me to use dp or memoization .
so i did the normal way and it took too much time to execute ! :(
http://www.topcoder.com/stat?c=problem_statement&pm=7244&rd=10658&rm=263249&cr=20718854
and here is my solution
http://www.topcoder.com/stat?c=problem_solution&rd=10658&rm=263249&cr=20718854&pm=7244

better luck next time!!!

Sunday, March 26, 2006

My First Music Class!

perhaps for too long have i been writing about my theories... for a change i thought i could write something about my life experiences....... so here goes one of them!

Well.... long long ago when i was still a small kid.......when the world was waiting to hear my beautiful voice, i thought of going to a music class to enhance my singing skills.........so near my house there was a karnatic music teacher

So i went to his house with the notion of mastering carnatic music.... so he gladly accepted me as his disciple and went on to teach me music.......well you know me! i showed him how loud i was.......he was wondering whether he made a mistake of taking me in!(though he didn show it out!)

so days went on and i was gradually improving in my singing skills......now each day the master had a visitor from the neighbourhood! they were asking the master "who is singing in such a beautiful voice"! and he directed them to me! So on the fourth day of my class as usual i started walking towards my music master's house......but i found his house locked for unknown reasons :((.... probably he was'nt well... so i walked back home! He didn come back even after 3 or 4 days.... i started getting impatient..
Suddenly one day my parents got a letter from my music master! And it said

"Your son has such a beautiful voice that teaching him is beyond my powers.... you would and should definitly find a better music teacher!"
and so on.........
that is what my mother said to me......how ever i recently am starting to guess that he ran away from his house due to some compulsions from his neighbours regarding his music class and i was his dear disciple! LOL! my god , my first music teacher ran away trying to teach me music........my parents decided not to send me to any music class from here after..........

well well! that explains why i dont know karnatic music........ but that doesnt mean i cannot sing ! well if you wanna hear mine you can surely write to me and i shall show you! :p

Friday, March 24, 2006

Cd Rom Busted

Well i hate this computer drives when they malfunction and mine does toooo! i have a cd writer/dvd reader which got busted for no reasons! now it is not reading any free space on my cd's and it is not writin either! damn cd rom i am so pissed off!

Sunday, March 12, 2006

The birth and death of this world

This post is going to deviate from the matrix theory which i discussed yesterday yet it has so many similarities to this topic.........

Well i dont know how many of you out there are firm believers in ramayana and mahabaratha, but i am one of the firm believers and i am going to fork the story of mahabaratha and ramayana to provide some scientifical insights of human life.....

I came across a beautiful site which speaks of the marvel of Indian existence
http://www.sacred-texts.com/ufo/aiac.htm

here they speak of the flying objects which Indians possesed during the period of ramayana and mahabaratha........ There are so many compelling similarities and yet people who lived so long ago seemed more advance than what we are...... I am going to list out some of them
  • It was said that the duriyothana's father had more than 100 sons and it is also said that they were born on lotus flowers...... by splitting a single being into many and planting them on those flowers.... yet this seems so similar to our cloning technique as well as the splitting of embryo when it is inside a mother's uterus
  • The most controversial and yet the most powerfull weapon humans possessed "The Brahmostra"... it had the reputation of bursting into thousands of sun....... Actually this was one of the dangerous weapons during the period of the mahabaratha .Yet this seems so similar to that of the atomic bomb which we possess.........


There are many many more........ But if we were so advanced how come all these were lost? Could it be that they simply dis appeared ? i surely dont believe that something so advanced could have been lost . But it could be lost if this world was destroyed.... is it not? if some of our plans for constructing is lost then how would you go about building without any plan? besides i believe all the advanced knowledge which we humans accumulated during the past were lost....

Yes it is true...... This world goes through a cycle of birth and death..... and we humans are a part of it........ And this world does not destroy itself......it is we humans who destroy this world....
I believe that this world was destroyed and reborn so many times.....it will happen again......
It happened in the past when brahmostram was used to destroy the enemies, it will happen when we humans use the atomic bombs to destroy ourselves.... It is this world which forgives us for all the things which we did to her, she heals herself and gives us another chance... yet this cycle continues..... It is rightly said , nothing is permanent..... yes your body, your face,your belongings are lost when you leave this world..........

Now dont you see the similarity between this and that of the matrix theory? Each time the zion is destroyed and yet out of the ashes another new zion is born......... And each time neo is born to save zion.......! Yes......I would like to point out a saying of lord Krishna during the battle of mahabaratha!
"When ever there is evil...where ever it raises its head above the limit , i will be born again and again to defeat this evil,to save humans.............. I will be born again and again! "
Neo was born again and again to save humans from the evil...........

Yes this world whether be inside the matrix or outside the matrix shall be go through the cycle of birth and death countless number of times.......... and yet we would continue to live without knowing anything! not knowing who we were ,how we lived, how we shall live.........