Friday, July 27, 2007

Installing Toshiba L35-1054 Audio Drivers on Fedora Core 7

The Toshiba L35-1054 Laptop comes with a RealTek Audio Card. In order to install the drivers on Linux (I use Fedora Core 7 which rocks!), first download the driver pack from Given is the straight link for the pack ..

Extract the archive using the tar command passing -xvf options.
tar -xvf realtek-linux-audiopack-4.06a.tar.bz2

Go into the directory that was created during the extraction. You can see a Readme.txt which explains how to install manually or automatically. Since I am a novice I prefer to do it automatically. So I type in

It takes around 10 mins for the drivers to be installed. I had all the needed compilers like the cc,g++ and fortran stuff installed on my box so I did not face any errors. Anyway after installation, restart the system. You might get an error saying device not found. Just check the box asking it not to show the message again. Now you can go to the Sound Card Detection Tool ( I run KDE, it rocks too! - Start -> Administration -> Sound Card Detection). Test the card and you should be able to hear the sound!

Well all the best!

RealTek Audio Drivers
Toshiba Satellite L35-S1054 Audio Drivers
Audio Drivers Linux Fedora Core 7
Installing Audio Drivers on Linux 2.6

Monday, July 16, 2007

How to resolve StackOverflowException in Java?

Well, not only when you use deep recursion that you encounter a StackOverflowException but also when you serialize objects you might see this exception.
Well you can always avoid this error by setting a VM option to java, either from eclipse or when you run it from command line, as an argument.
If it is in Eclipse, go to the Run dialog of the current Java program that you wish to run and go to the second tab (arguments I guess) and then in the VM Options you can set "-Xss1024K" which means that any thread that runs on Java VM will be allotted a Stack size of 1 MB which is quite enough for most of the cases.
If you wish to serialize data that has a lot of interlinked references then you might want to keep it something really high, just to be on safer side.
Interesting stuff is going on in the DBMS class at my university and we are learning really good stuff especially the performance oriented nature of DB algorithms! I enjoy the programming assignments, its fun to learn and code!