Today I was trying to do this nonsense of computing large prime numbers....
Very soon I found out that the largest prime number known as of now "contains 13 million digits".
More details can be seen on wikipedia.
Well jokes apart......
I am using java and I came across the fact that the default maximum size of java heap is 128 M.
This is truly frustrating as for large scale applications this is sure to give "java.lang.OutOfMemoryError: Java heap space" error or may be slow results.
We can simply increase the heap space by providing a VM arguement with the program.
For eg if ur java class name is MyJava.class. You can run the program with increased heap size uing the command:
>>java -Xmx256m MyJava
or in case of IDEs just supply the vm args under the Arguements tab as -Xmx256m and run the program.
This is an example to run program with heap size 256m, you can use any desired value provided that you have the resources.
Note: This is not a permanent change to the jvm,,,, heap space is permited only for once for the specific deployement.
Thursday, March 4, 2010
Sunday, February 28, 2010
Deleted libmysqlclient15 or package missing
This is something really wierd I did few days back.
libmysqlclient15 is no more available in the repositories as it has been replaced by the latest version 16.
But mysql admin still needs the old version to run. So we must have old version to run the mysql from terminal
Dont panic just reinstall the package libmysqlclient15off. You can do it from the synaptics package manager or just type
sudo apt-get install libmysqlclient15off --reinstall.
This package is also important as amarok, mysql workbench and few other important packages are dependent on it. Though all of them can use the newer version but mysql server can not be run without libmysqlclient 15..... This is bad and I hope will soon be solved.
Note: Dont even think of uninstalling and then installing again..... It will wipe out many packages which depend on libmysqlclient
Note: Dont even think of uninstalling and then installing again..... It will wipe out many packages which depend on libmysqlclient
Configuring MySQL Workbench (GUI tool)
Well very recently I had a real bad time configuring MySQL workbench on my system.
Whenever I try to connect to the database using the "Connection Manager", it displays the error "libmysqlclient_r.so" not found".
This happens to be a known bug in the workbench. Just dont linger around.... Simply create a soft link to the already existing libmysqlclient_r.so.16.0.0 or may be u have another version 15.0.0.
Just type:
sudo ln -sf /usr/lib/libmysqlclient_r.so.16.0.0 /usr/lib/libmysqlclient_r.so
or if u have libmysqlclient 15.0.0 then
sudo ln -sf /usr/lib/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so
The worbench will work like a charm.
Whenever I try to connect to the database using the "Connection Manager", it displays the error "libmysqlclient_r.so" not found".
This happens to be a known bug in the workbench. Just dont linger around.... Simply create a soft link to the already existing libmysqlclient_r.so.16.0.0 or may be u have another version 15.0.0.
Just type:
sudo ln -sf /usr/lib/libmysqlclient_r.so.16.0.0 /usr/lib/libmysqlclient_r.so
or if u have libmysqlclient 15.0.0 then
sudo ln -sf /usr/lib/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so
The worbench will work like a charm.
Wednesday, December 9, 2009
Chrome Beta is here
Hi guys the wait is over....
Google launches the linux version of its superfast browser.
According to Google 50 open source contributor worked on chromium and helped to bring out the linux version.
All extensions and updates will be available on the standard repositories.
So have fun and cheers..............
Download Goolge Chrome for linux here.
The themes can be downloaded here
Thursday, November 12, 2009
Acess to External Hard Drive
I recently faced this problem of writing to my external hard drive with EXT3 Partition.
For partitioning use gparted. If not previously installed type sudo apt-get install gparted.
You will now have full access to your drive.
For partitioning use gparted. If not previously installed type sudo apt-get install gparted.
Now to have write access to the partition type gksudo nautilus. It will open a new window in root mode. Now navigate to your drive, right click and select the permission tab.
Change the Owner drop-down menu to your name, then change Folder Access to Create & Delete Files, then File Access to Read & Write, then Group to your name, Folder Access to Create & Delete Files, File Access to Read & Write then click Apply Permissions To Enclosed Files.
Change the Owner drop-down menu to your name, then change Folder Access to Create & Delete Files, then File Access to Read & Write, then Group to your name, Folder Access to Create & Delete Files, File Access to Read & Write then click Apply Permissions To Enclosed Files.
You will now have full access to your drive.
Monday, August 3, 2009
Google Gadgets
Google Desktop for windows comes up with all the features like search, sidebar and GADGETS. Well now bingo for linux users,,, you can download the google gadgets for linux and run your favourite application right from ur desktop on ur loving linux platform.
The source code can be downloaded from here. A careful compilation is required with loads of pre-requirements. If you are not interested in source code you can directly install the prebuilt binary package.
Well whatever you do Please read QuickStart and HowToBuild carefully before building and using Google Gadgets for Linux. Or u might end up messing up.
Spice up and have fun.
Screenshot:
The source code can be downloaded from here. A careful compilation is required with loads of pre-requirements. If you are not interested in source code you can directly install the prebuilt binary package.
Well whatever you do Please read QuickStart and HowToBuild carefully before building and using Google Gadgets for Linux. Or u might end up messing up.
Spice up and have fun.
Screenshot:
Thursday, July 23, 2009
Spice up Linux with Google Desktop
Well products from google are always great. As we all wait for chrome for linux we have in hand this Google desktop utility. To Download it directly click here.
Have fun
Have fun
Subscribe to:
Posts (Atom)
