Thursday, December 30, 2010

Idea for a new TV Series

A reality show where people come to get rid of their addictions. Smoking , Drinking etc. Users who also want to get rid of these problems register via a web portal and track their addiction status. If they fail their chosen contestant fails. You help the player get rid of addiction and you also get rid of it.

Sunday, December 12, 2010

Jtable inconsistent / wrong data / values when scrolling

Sometimes your jtable shows inconsistent values when you use a scrollbar to scroll . Youcan avoid that by adding the lines below

JScrollBar scrollBar = scrollPane.getVerticalScrollBar();
scrollBar.addAdjustmentListener(new AdjustmentListener() {
public void adjustmentValueChanged(AdjustmentEvent e) {
scrollPane.repaint();
}
});

Friday, September 10, 2010

Khayyam Why God Exists

In the tradition of Peripatetics, Khayyam refers to God as the Necessary Being. While throughout his writings the existence of the Necessary Being is implied and one does not see an in-depth discussion or endeavor to prove the existence of God, there are numerous references to and brief treatments of the subject matter. Khayyam’s argument for the existence of God is what is traditionally referred to as the cosmological argument. According to this argument, since every event must have at least one cause and the cause itself is an event in need of another cause, we end up either with a Necessary Being who has no cause or an infinite succession of contingent,dependent beings which goes on progression ad infinitum.

Thursday, May 13, 2010

Java Decompiler

One can find a very nice Java decompiler with a nice UI here Java Decompiler

Thursday, February 25, 2010

Remove highlight after search in Vi

You can use :noh to disable highlight search temporarily (until your next search). To make turning off the highlights after a search a little quicker and convenient, add something like this to your ~/.vimrc:
Code:

nmap :silent noh

This will map Ctrl+N to :noh.

Taken from here

Thursday, February 18, 2010

Some Shell Commands

Enabling Line Numbers in Vi

:set number

command to turn them off:

:set nonumber

to tar gzip a file use

tar czvf MyProject.20090816.tgz MyProject

Sunday, January 24, 2010