Thursday, March 3, 2011

JQuery load delay


JQuery Dialog load delay setTimeout

Use below with this article http://harshal-techapps.blogspot.com/2011/02/pop-up-dialog-box-example-using-jquery.html
$(window).delay(8).load(function() {
            setTimeout(callme,15);
        });
function callme(){
$( "#dialog1" ).dialog({ height: 150,
                        width: 300,
                        modal: true,
                        position: 'center',
                        title:'Hello All',
                        overlay: { opacity: 0.5, background: 'black'},
                        font: 'Monospace'
                        } );
                        $("#dialog1" ).dialog("open");

            return false;
}

Simple steps to Install Java on Ubuntu

  1. Simple steps to Install Java on Ubuntu

    From the application>accessories>terminal root# type the command

    add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    also enable canonical repositories from System>Administration>Software Sources
  2. Then type in the command
    sudo apt-get install sun-java6-jdk
    This will install jdk at /usr/lib/jvm location.
  3. Install other candidates sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
  4. To setup sun jdk as default type in the below command
    sudo update-java-alternatives -s java-6-sun
Installation on my system were like this ;
eg: root@ubuntu:/# sudo update-java-alternatives -l
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
  1. Add the following line to etc/jvm file. If the file is not present create a jvm file and add the following to the top of the file /usr/lib/jvm/java-6-sun
  2. Check the version of the java from command prompt>java -version
    Other commands :
    root@ubuntu:/home/localadmin# echo $JAVA_HOME
/usr/lib/jvm/sun-6-java
root@ubuntu:/home/localadmin# whereis javac
javac: /usr/bin/javac /usr/share/man/man1/javac.1.gz

. only can run cmd line jedit
Set JAVA_HOME
sudo nano /etc/bash.bashrc
and add
JAVA_HOME=/usr/lib/jvm/java-6-sun
export JAVA_HOME

2. support gui jedit
sudo vim /etc/environment
and add
JAVA_HOME="/usr/lib/jvm/java-6-sun"
Also You can use Synaptic Manager on your desktop go to System ->Preference->Synaptic Manager.
Search for sun java and you should be able to install from there as well

Gedit Ubuntu How to use Column Select

Gedit Ubuntu How to use Column Select

How to select Coloumn in Gedit

1. Enable the Column Select Option from the menu of Gedit. Edit->Column Mode
2. Click on the column where you want to delete the line .
3. Use Cntrl + Page Down or Cntrl + Page Up
4. Do Back Space the line will get deleted.