Archive

Author Archive

Introduction to PHP AGI (Asterisk Gateway Interface)

August 17th, 2010 2 comments

The (AGI) Asterisk Gateway Interface is an interface for adding functionality to Asterisk with many different programming languages. Perl, PHP, C, Pascal, Bourne Shell, or any other programming language that you like.

To use AGI, create an extension on extension.conf, with this format (example extension number 5151):

exten => 5151,1,AGI(test.php)

 

Then place the script (for example in PHP, test.php) on the specified AGI folder in asterisk.conf, for example in /var/lib/asterisk/agi-bin.

The script should be executable, so you must first chmod +x to the script.

As an example, let create simple AGI application that fetch the web for a currency data and speak it to the caller. To simplify our self, we are going to use PHP and PHPAGI library.

Read more…

  • Share/Bookmark
Categories: Asterisk, PHP, VOIP Tags: , ,

Creating GPS Tracker Application on J2ME Phones

August 17th, 2010 17 comments

This article describes how to create the J2ME tracking application to be installed on J2ME capable phones with an internal GPS receiver. The application will utilize the Location API available on GPS enabled phones, read the GPS location data at a specified interval, send the data via HTTP connection to a specified server.

Here is the application looks like.

image

Read more…

  • Share/Bookmark

J2ME Current date and Time

August 17th, 2010 No comments

This simple J2ME application shows you how to get the current date ant time in J2ME and do the formatting of what format you want it to. Like core Java, J2ME too use the same java.util package to show the current date as well as current time on the screen.

The middlet we create here will show the current date and time when we started it. Each time we press the start button, the it will display the current date and time the button pressed. Here is the look of the finished application:

Read more…

  • Share/Bookmark
Categories: Java Tags:

How to install Asterisk 1.6 on Ubuntu

August 13th, 2010 No comments

1. Required Packages

Install all the required packages:

$ apt-get install cvs build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev php5 php5-cli php5-curl php5-gd php5-mysql mysql-server php-pear php-db curl sox apache2 subversion libssl-dev libmysqlclient15-dev libxml2-dev

 

2. Compile and Install DAHDI Driver

Since we are going to use Digium TDM400 board, then we need to install DAHDI driver. First, get the system kernel name:

$ uname –r

This will results your kernel version number.

Install the kernel header according to your system kernel

$ apt-get install linux-headers-<version>

 

Create a symbolic link to /usr/src/linux-2.6

$ ln -s /usr/src/linux-headers-<version> /usr/src/linux-2.6

Read more…

  • Share/Bookmark
Categories: Delphi Tags:

How to Send Email on Java Application using JavaMail API

July 2nd, 2010 1 comment

This article explain how to use JavaMail API for sending email through our Java application. This will cover simple email, HTML email, and email with attachments.

The required JavaMail API can found here. Put it on a directory accessible by CLASSPATH setting. It’s a good idea to read the JavaMail FAQ.

Read more…

  • Share/Bookmark

How to Use Tor Project Anonymous IP with Curl PHP on Linux

June 15th, 2010 1 comment

This article explains how to utilize Tor project in our own PHP application using Curl Library.

Tor is free software and an open network that helps you defend against a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security known as traffic analysis.

We start by installing and configuring Tor and the necessary software then we create a simple application that fetch a website address anonymously.

Read more…

  • Share/Bookmark

Setup Kannel SMS Gateway on Ubuntu

May 5th, 2010 9 comments

This are the required steps to setup Kannel as an SMS Gateway on Ubuntu. Here we use a simple GSM modem attached to USB port 0, using Enfora modem. You can use other standard AT command modems actually.

Enable the SMS Box

Edit file /etc/default/kannel , uncomment the START_SMSBOX line to enable the SMS Box

sudo vi /etc/default/kannel

START_WAPBOX=1
START_SMSBOX=1

 

Add kannel user to dialout group

This will enable kannel user (user who run kannel process as) to use the /dev/ttyUSB0 device that is necessary when we are using USB GMS modems.

Read more…

  • Share/Bookmark

CodeIgniter Tutorial: [Creating Accounting Application] Part 5 The Mainpage

May 4th, 2010 26 comments

Well I’m sorry, it’s been so long for this part to come.. I had been working very hard on some clients and don’t have enough time to write. Here’s what I had been done if you’re curious :) : http://maps.GpsTrackingIndonesia.com, www.SunberryCorp.com, www.mypushme.com, www.kulacak.com, www.web2trace.com, www.pushmeportal.com, … The fun is almost all of them was written with CodeIgniter :).

Ok, let’s start with the easiest one first. We will create a simple menu page that contains links to other modules on the system. We put it on the Mainpage controller class.

Look at the Mainpage.php controller file. There is a function on it named exactly the same with the filename: Mainpage(). This should be exactly the same including the case. This is the constructor or initialization function of the class. Each time the class is called or instantiate, this function is called automatically. We put some initialization lines inside it:

Read more…

  • Share/Bookmark

Lowongan Kerja: PHP Junior Programmer

August 18th, 2009 No comments

For Indonesian Reader Only:

vitraining.com sebuah perusahaan IT service di Bandung sedang membutuhkan beberapa tenaga programmer PHP untuk ditempatkan pada proyek yang sedang berjalan dengan sistem kontrak minimal 6 bulan dan dapat diperpanjang 6 bulan kemudian jika dianggap perlu. Posisi dan Kualifikasi yang diperlukan adalah sebagai berikut:

PHP/Javascript Programmer

  • Menguasai bahasa pemrograman PHP, CSS, Javascript
  • mengerti pembuatan aplikasi dengan database MySQL
  • nilai tambah jika berpengalaman di aplikasi Google Map API, AJAX, dan jQuery
  • knowledge of Object Oriented Programming
  • familiar dengan OS berbasis Linux
  • good team work
  • bersedia ditempatkan di Bandung, Jakarta, atau Makasar
  • kirimkan lamaran ke email akhmad.daniel@gmail.com dengan subject : JUNIOR PHP <nama anda>

Kualifikasi Umum

  • Surat lamaran, CV, dan expected salary (wajib disertakan) diterima paling lambat tanggal 22 Agustus 2009
  • Candidate must be fast learner and must be able to work very well as a team player
  • Candidate must be able to work well under pressure and must be able to prioritize work to meet deadlines
  • Enthusiastic, communicative and has a sense of humor
  • Can work under high pressure environment
  • Can work as a team or individual
Technorati Tags:
  • Share/Bookmark
Categories: Job Vacation Tags:

Developing Web Application with Google Map API

July 9th, 2009 No comments
Google Maps Hybrid

Image by Telendro via Flickr

Setup API Key

In order to be able to utilize Google Map API for our web application, we need to get the API Key. It can be obtained for free from Google website. This Key will be valid for one URL only, so each time we move the application to another server, we need to obtain a new key for that server URL.

The Key can be obtained from this URL:

http://www.google.com/apis/maps/signup.html

Then, a page similar to the following will appear:

Read more…

  • Share/Bookmark
This site uses a Hackadelic PlugIn, Hackadelic SEO Table Of Contents 1.6.0.