Category: Technology

  • CentOS 5 Asterisk Install Commands

    This should get close to installing asterisk on CentOS 5. Current as of 11/06/2007, changes like the weather though….

    yum -y install mysql-devel mysql-server curl-devel kernel-devel newt-devel gcc-c++ bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc
    cd /usr/src
    ln -s kernels/2.6.18-8.1.15.el5-i686/ linux
    wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.13.tar.gz
    wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.5.1.tar.gz
    wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.1.tar.gz
    wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.4.tar.gz
    tar -xzvf asterisk-1.4.13.tar.gz
    tar -xzvf zaptel-1.4.5.1.tar.gz
    tar -xzvf libpri-1.4.1.tar.gz
    tar -xzvf asterisk-addons-1.4.4.tar.gz
    cd libpri-1.4.1
    make && make install
    cd ../zaptel-1.4.5.1
    ./configure
    make menuselect
    make
    make install
    make config
    modprobe zaptel debug=1
    modprobe wctdm debug=1
    nano /etc/zaptel.conf
    ztcfg -vv
    cd ../asterisk-1.4.4.13
    ./configure
    make menuselect
    make
    make install
    make config
    cd ../asterisk-addons-1.4.4
    ./configure
    make
    make install
    asterisk
    asterisk -r

  • Building pdftk on VPS cannot allocate memory

    I found this solution at http://www.schmalenegger.com/virtual-server-compiling-error-cannot-allocate-memory/

    Sometimes when you compile certain things on a virtual server from source, you may receive the following error message: “virtual memory exhausted: Cannot allocate memory” error. The following is a quick tip that at least worked for me.

    List the amount of virtual memory allowed:

    [root@vps /]# ulimit -a

    To change it to a smaller value, enter this:

    [root@vps /]# ulimit -v 60000

    To reset it to the default settings, just type:

    [root@vps /]# ulimit -v unlimited

    On Debian you want to use ulimit -m instead of ulimit -v. It will do the job for you.

    [root@vps /]# ulimit -m 60000

  • How do I import delimited data into MySQL?:

    How do I import delimited data into MySQL?:

    LOAD DATA INFILE “./ImportData.csv” INTO TABLE table1 FIELDS TERMINATED BY “,” OPTIONALLY ENCLOSED BY “””” LINES TERMINATED BY “\r\n”;

  • Nice SQL Query tool

    This tool is handy.  You can run it from a command line to do SQL queries and dump the results to a text file.  Great for hacked together scheduled queries and the like.

    George Poulose’s Home Page

    Query Tool (using ADO) is a Universal Data Access (UDA) tool. It lets you query OLE DB data sources, author SQL scripts and queries, return query results to a grid or free-form text, retrieve provider properties, execute multiple SQL scripts or stored procedures simultaneously, and more.

  • Online Form Creators

    Here are two options for creating nice looking forms with a wizard.  You can then download the code and put it on your own host, or they’ll host it for you.
    The Form Assembly
    JotForm