Thursday, March 4, 2010

Google adds more STARS to its search

Now star mark your search results.........
We all have wasted lots of time to search back results we once found....
No more. Today Google announced a new feature in search that makes it easier for you to mark and rediscover your favorite web content — stars.


With stars, you can simply click the star marker on any search result or map and the next time you perform a search, that item will appear in a special list right at the top of your results when relevant.


The great thing about stars is that you don't have to keep track of them. You don't even have to remember whether or not you starred something. Simply perform a search and you'll rediscover your starred items right when you need them.


For more details visit Google Blog

Increasing Java Heap Size & Largest prime Number

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.