Category : linux

How to do javascript subclassing

In : Uncategorized, linux, mysql, Posted by admin on Mar.03, 2009

http://www.golimojo.com/etc/js-subclass.html


function subclass(constructor, superConstructor)
{
function surrogateConstructor()
{
}

surrogateConstructor.prototype = superConstructor.prototype;

var prototypeObject = new surrogateConstructor();
prototypeObject.constructor = constructor;

constructor.prototype = prototypeObject;
}

Tags :


Adding a second IP address to Fedora Linux

In : linux, system, Posted by admin on Jan.01, 2009

http://www.oclc.org/support/documentation/ezproxy/technote/2l.htm

These are the steps to add the second IP address to your existing network adapter under non-SUSE distributions of Linux.

  1. Become root on your system, either by logging into that account or using the su command.
  2. Change your current directory to the /etc/sysconfig/network-scripts directory with the command:
    
    cd /etc/sysconfig/network-scripts
    
  3. Check for existing network adapters with the command:
     ls ifcfg-* 

    In most instances, you will see the files ifcfg-eth0 and ifcfg-lo.

  4. Edit /etc/hosts and add a line for your new address and name such as:
    24.249.162.195 www.xyz.org
  5. To create the new interface, you will copy ifcfg-eth0 to ifcfg-eth0:0 with the command:
    cp ifcfg-eth0 ifcfg-eth0:0 

    Next, edit icfg-eth0:0 and change the DEVICE line to be similar to:

    DEVICE=eth0:0 

    and change the IPADDR line to be similiar to:

    IPADDR=24.249.162.195 
  6. To activate the new IP address, issue a command similar to:
    ./ifup eth0:0 


sendmail 451 Name server timeout

In : linux, system, Posted by admin on Oct.10, 2008

This is something related to sendmail IPv6 support.

  1. cd /etc/mail
  2. sendmail.mc and add the following at the end of the file:
  3. define(`confBIND_OPTS’, `WorkAroundBrokenAAAA’)dnl
  4. type make
  5. restart sendmail
Tags :