Stefanus Wiely’s Blog

September 5, 2008

jQuery Events

Filed under: Uncategorized — stefanuswiely @ 3:46 pm

Event: ready
Syntax: ready(fn)
Example:
$(document).ready(function() {
alert('jQuery - ready');
});

Event : click
Syntax: click(fn)
Example:
$('p').click(function() {
alert('jQuery - click');
}); {

August 28, 2008

Change default shell

Filed under: Uncategorized — stefanuswiely @ 2:58 pm
  1. At terminal type:
    $ sudo ln -sf /bin/bash /bin/sh

Configure Network - Static IP Address

Filed under: Uncategorized — stefanuswiely @ 2:50 pm
  1. Edit file /etc/network/interfaces
    $ sudo vim /etc/network/interfaces
  2. Change eth0 configuration:
    auto eth0
    iface eth0 inet static
    address 192.168.1.12
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
  3. Save file
  4. Restart network
    $ sudo /etc/init.d/networking restart

August 13, 2008

Add repository source

Filed under: Uncategorized — stefanuswiely @ 11:36 am

DVD Repository

  1. Run terminal
  2. At terminal, run
    $ sudo apt-cdrom add
  3. Insert DVD into drive and wait scan package process finish

URL Repository

  1. Run terminal
  2. Edit /etc/apt/sources.list
    $ sudo vi /etc/apt/sources.list
  3. Add url address
    Example:
    deb http://archive.ubuntu.com/ubuntu/ hardy main restricted
    deb http://archive.ubuntu.com/ubuntu/ hardy universe
    deb http://archive.ubuntu.com/ubuntu/ hardy multiverse
  4. Save file
  5. Update source
    $ sudo apt-get update

Powered by WordPress
Recommended sites: Best Web Hosting and Domain Name Registration. Created with Website Builder Software