rioastamal.net

Just things inside my head…

Tips: How to Change Geany Themes to Dark

Posted by rio On July - 1 - 2009

Sorry if there are any spelling or grammatical errors, I’m learning English… :)

In the last few years gedit(the GNOME default editor) has been my favorite since it comes with syntax highlighting. I’m a web developer so most of the time I write PHP, HTML, Javascript or CSS code. I think gedit is doing fantastic job since I do not need WYSIWYG editor. I spent hours for coding so I like dark theme called oblivion on gedit. But in recent time I’ve found that the missing feature of gedit is code folding.

The Alternatives

So I begin to search the alternative, my criteria are the editor should lightweight and easy to customize. And my choice goes to Geany. It has all gedit features plus code folding, that was I need :). But the default theme is white background :(. It makes my eyes quickly tired. I miss the gedit oblivion theme. Thanks to god someone has made that theme for geany. The theme name is Oblivion 2 made by Barry van Oudtshoorn.

But Barry’s oblivion seems little differs from original gedit theme. The selection text is red, yellow marker, and some white text for default. Those color is still high contras not too good if you want to stay for hours in front of your monitor. So, modified the theme to mimic as close as possible the gedit oblivion theme. I call it Oblivio LC, LC is stand for [L]ow [C]ontras.

Installing Oblivion LC Theme

Download Oblivion LC at here: http://rioastamal.net/files/oblivion-lc.tar.gz

After that, extract the content to directory ~/.config/geany/filedefs. Here the example how to do it via terminal. I assume you save the downloaded theme in /tmp directory.

  1. Open Terminal (Application » Accessories » Terminal)
  2. Go /tmp direcoty
    $ cd /tmp
  3. Extract the package to ~/.config/geany/filedefs directory
    $ tar -zxvf oblivion-lc.tar.gz -C ~/.config/geany/filedefs/
  4. Start your Geany and enjoy your new dark theme :)

Here’s my screenshot, I’ve configure my geany to optimize the screen. I love using shortcut instead of mouse :).

References

bookmark bookmark bookmark bookmark bookmark bookmark

Karena terus-menerus diteror deadline akhir-akhir ini, membuat “suhu” otak cukup panas sehingga memerlukan cooling down sebentar hehehe…. Mau main-main game yang ada bosan, lalu kepikiran kepingin nostalgia dengan game-game jaman jadul dulu waktu SD. Masih inget dengan game Contra dan Sonic. Itu adalah salah dua game yg paling saya gemari dan teman-teman sewaktu kecil dulu selain Mario Bros tentunya hehe :). Kedua game tersebut berjalan pada platform yang berbeda (pada saat itu). Contra pada NES (Nintendo Entertainment System) sedangkan Sonic pada Sega Genesis.

Meski sebenarnya dulu g pernah punya konsol NES maupun Sega, klo mau main ya numpang ke rumah temen hehehe, baru punya konsol NES kelas 3 SD sedangkan Sega g pernah keturutan malah dapet Super Nintendo lalu PS :). Walah kelamaan nostalgia malah lupa tutorialnya… :)

Menginstall gFCEU Ultra dan DGen

Untuk emulator NES kita menggunakan aplikasi gFCEU (GTK Front End untuk FCEU) sedangkan untuk emulator Sega Genesis kita menggunakan dgen. Agar tidak berpusing ria kita langsung install saja lewat repository. Caranya masuk ke Terminal melalui menu Application »» Accessories »» Terminal.

Untuk install gfce perintahnya adalah:

$ sudo apt-get install gfceu

Untuk dgen perintahnya adalah:

$ sudo apt-get install dgen

Mendapatkan File ROM Contra dan Sonic

Untuk ROM game-game lawas saya mendownload di www.dgemu.com. Untuk mendownload file ROM dari game anda harus register dulu di forum dgemu. Nah, setelah itu baru bisa download. Tapi ingat, sistem download menggunakan GPs (Gold Pieces) semacam points yang didapat setelah posting di forum. Ketika anda register anda akan mendapat sekitar 100 GPs. Untuk lebih jelasnya silahkan lihat sendiri di FAQ atau forum dgemu.com. Setelah mendownload kedua ROM sy asumsikan anda meng-extract ZIPnya ke /home/xxx/game (dimana xxx adalah username anda dan “game” adalah sebuah direktori baru yang anda buat).

Menjalankan gFCEU

Untuk memainkan Contra maka kita perlu menjalan NES emulator kita yaitu gFCEU. Caranya akses dari menu Applicatoion »» Games » GFCE Ultra NES Emulator. Kemudian tekan browse untuk mencari lokasi ROM dari Contra. Lihat ilustrasi gambar dibawah.

gfceu NES Emulator

Contra Screenshot

Menjalankan DGen

Berbeda dengan fceu yang memiliki front-end, dgen murni kita jalankan lewat terminal. Caranya masuk keterminal lalu ketikkan perintah berikut:

$ cd ~/game
$ dgen sonic.bin

* Asumsi file image Sonic terletak di /home/xxx/game seperti yang telah diasumsikan diatas.
* dimana sonic.bin adalah nama file image dari game yang telah saya ubah.

Atau jika VGA anda cukup cepat anda dapat menggunakan perintah berikut:

$ dgen -G -X 800 -Y 600 sonic.bin

* Perintah diatas akan mengaktifkan fitur OpenGL dan menggunakan resolusi 800×600.

Sonic Sega Screenshot

Performance Tips

Jika kemampuan VGA pas-pasan tapi dapat menjalankan compiz sebaiknya anda tetap menjalankan game dalam mode window dengan ukuran kecil. Kemudian gunakan Zoom Effect dari compiz untuk memperbesar layar. Khusus untuk dgen jangan mengaktifkan fitur -G (OpenGL) jika ingin menggunakan effect zoom dari compiz.

Selamat bermain game klasik…!!!

bookmark bookmark bookmark bookmark bookmark bookmark

Sekedar sharing aja kemarin(tanggal 19 juni 2009) sempet kesel karena coba login ke Yahoo Messenger lewat Pidgin g bisa konek2. Terpaksa pake versi webmessenger, dengan segala ketidak nyamanannya :). Setelah googling ternyata ada yang mengalami hal serupa. Solusinya ada di sini:

http://ubuntuforums.org/showthread.php?t=1191064&page=3

Yaitu dengan mengganti Server Pager-nya dari scs.msg.yahoo.com menjadi cn.scs.msg.yahoo.com. Coba Non-aktifkan dan aktifkan kembali account anda. Seharusnya anda sudah dapat login kembali melalui pidgin anda. Lihat gambar berikut untuk lebih jelas…

Sebagai catatan saya menggunakan ubuntu 8.10 dengan language-pack Indonesia dan pidgin 2.5.4.

1. Klik menu Akun-akun (Accounts)

pidgin modify account

2. Pilih Account anda lalu klik Ubah Akun (Modify Account)
3. Pilih tab Lanjutan (Advanced)
4. Ganti nilai dari Server Penyeranta (Pager Server) dari scs.msg.yahoo.com menjadi cn.scs.msg.yahoo.com.

yahoo pager server

5. Non aktifkan Account anda lalu aktifkan lagi.
6. Selamat ber-pidgin ria kembali…

bookmark bookmark bookmark bookmark bookmark bookmark

Glory…Glory… Man. United

Posted by rio On May - 19 - 2009

Meskipun telat tapi gpp dipost aja hehehehe….

Akhirnya MU memastikan gelar juara musim ini setelah bermain imbang 0 - 0 melawan Arsenal di Old Trafford. Ini merupakan capaian yang ke-18 kali MU dalam merengkuh gelar juara Liga Inggris. Serta menyamai rekor liverpool untuk jumlah tropi terbanyak.

Acara nonbar kali ini berbeda dari biasanya. Meskipun tetap bertempat di Mecure Hotel, tetapi lokasinya berbeda. Acara yang biasa dihelat di Coffee Cafe kali ini diadakan di poolside Hotel. Hal ini juga sebagai antisipasi banyaknya para fans kedua tim yang datang. Dan memang benar saja daerah kolam renang hotel penuh sesak dengan “lautan merah”. Saya yg datang sekitar pukul 18.30 sudah hampir penuh. Datang sendiri karena masih menunggu teman “Si Tonggi” yang datengnya telat sekitar jam 19.15. Hampir aja tu tike saya tuker sendiri dengan snack untung aja si tonggi datang… hehe g jadi dech…

Acara semakin meriah dengan dipandu Shandy gibol dari Radio Suzanna dan tamu istemewa yaitu vokalis boomerang “Roy”. Roy boomerang sempet menyanikan dua lagu pendek baik dari lagu album baru dan dari album lawas yg diikuti oleh nyanyian para penonton yg hadir.

Setelah peluit panjang dibunyikan kegilaan2 fans MU mulai terlihat. Chants wajib Glory… Glory… Man. United pun langsung berkumandang… kekekekekek YES… MU Juara…. langsung dech dilanjutkan dengan acara poto2 bareng… plus nyebur kolam… untuk acara cebur-menyebur untung g ikutan padahal hampir ditarik ma temen2 pura ngeluarin dompet plus HP lalu pura2 copot celana… selamat…. aman… akhirnya… ehhehehe….

GLORY…GLORY… MAN. UNITED…

bookmark bookmark bookmark bookmark bookmark bookmark

Sorry if there are any spelling or grammatical errors, I’m learning English… :)

Before I start, Let me explain what google android is, taken from android official distribution.

Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.

Pre-Installation

You must have Java and Apache Ant installed to make android fully works(especially for development). You can refer to my other article about installing Java and Apache on Ubuntu Linux here:

My Environment

  • My $HOME is located in /home/astadev
  • I put android package in $HOME/archive/a
  • I extract the package to $HOME/programs
  • My Android SDK version is 1.1 Release 1

Installation

Download the latest version of Google Android at http://www.android.com/. I save it to $HOME/archive/a. The archive in ZIP format. So we need to extract it using unzip command.

$ unzip ~/archive/a/android-sdk-linux_x86-1.1_r1.zip -d ~/programs/
$ cd programs
$ ln -s android-sdk-linux_x86-1.1_r1 android

The last command is to make symbolic link to directory android-sdk-linux_x86-1.1_r1. So, you can also access the directory in $HOME/programs/android. It will make directory more easy to read and quite useful in development.

Running The Emulator

The easiest way to test your installation is to run the Android Emulator. The emulator located inside the tools/ directory. Follow the instruction below to run the emulator.

$ cd ~/programs/android/tools/
$ ./emulator

Note: Be patient, it takes quite longtime to be fully loaded even with my Intel core2 duo and 1GB of RAM.

As an alternative you can create a launcher(short-cut) on your Desktop. I assume your Desktop is using GNOME. Although it will be quite similar to other Desktop like KDE or XFCE.

  1. Right click on your desktop
  2. Choose Create Launcher…
  3. Fill “Android Emulator” in Name field
  4. On Command field fill it with “/home/astadev/programs/android/tools/emulator” (without quote and make sure the path is point to the correct directory of your android installation)
  5. Click OK
  6. Double click the launcher to test it

Here’s the screenshot. To flip the orientation of the emulator use combination of CTRL+F11.

Google Android Emulator

Reference:
Android Official Site

bookmark bookmark bookmark bookmark bookmark bookmark

Ultah Kelabu IndoManUtd

Posted by rio On March - 14 - 2009

IndoManUtd 9th Anniversary

Bertepatan dengan ulang tahun IndoManUtd (Indonesia Manchester United Fans Club) yang ke-9 pada 13 Maret 2009. Digelar laga big match antara Man. United vs Liverpool pada 14 Maret 2009. IndoManUtd Surabaya menggelar acara nonbar big-match sekaligus perayaan ultah.

Venue untuk nonbar digelar di Van Java Pub & Resto. Saya datang bersama 3 temen kampus: Septian, Anggi dan Dedi(peserta baru). Tidak seperti nonbar biasanya, nonbar kali ini spesial karena dihadiri oleh ketua IndoManUtd Indonesia Mr. Samuel yang datang dari Jakarta.

Waktu pertama kali datang nggak nyangka kayak antri sembako aja panjang banget antrian tiketnya. Dalam hati wah pasti seru nih nonbar kali ini…. Dan memang benar, acara nonbar diawali oleh pemutaran video sejarah IndoManUtd kemudian dilanjutkan dengan acara potong kue ulang tahun oleh Mr. Samuel. Plus foto-foto bareng bersama kelompok suporter klub lain diantarnya: Arsenal, Milanisti, Juventini, Liverpool dan CISC.

Atmosfir nonbar bener-bener terasa kali ini, seperti di Old Traffod aja. Chants-chants (baca: nyanian) bergema di Van Java oleh kedua kubu suporter MU dan Liverpool. Saya sendiri hanya hafal beberapa chants saja kayak: Glory Glory Man. United lainnya baca teks dech hehehe…. suara sampe mau habis gara-gara ngechants.

Namun kado pahit harus kami terima sebagai ketika MU akhirnya menyerah telak dengan skor 1 - 4 atas Liverpool. Gol Christiano Ronaldo sempat membuat venue gempar karena teriakan para fans MU atas gol penalty CR7. Namun selang beberapa menit kemudian, Liverpool berhasil menyamakan kedudukan lewat Torres. Disusul gol Gerrad, Aurelio, dan Dossena. Sial…, itulah kata yang tepat….!!!

Kekalahan MU tidak terlepas dari rapuhnya lini belakang terutama Vidic yang tampil buruk dan Anderson yang secara mental kurang siap dalam laga Big Match.

Tapi kesempatan untuk meraih quintuple masih terbuka lebar, kekalahan ini hanyalah variasi saja (bosan menang melulu :) hehe…

Happy Anniversary to IndoManUtd… GLORY…GLORY…MAN. UNITED!!!

bookmark bookmark bookmark bookmark bookmark bookmark

Lama gak nulis dalam Bahasa Indonesia nulis lagi ah… :)

Salah satu audio player yang sangat populer di X Window adalah XMMS. Bagi sebagian orang mungkin menganggap bahwa XMMS sudah tua dan dan tidak lagi terupdate. XMMS versi terakhir adalah 1.2.11 yang dirilis tahun 2007(Minor Update). Developer XMMS sendiri sudah tidak berniat untuk membuat versi terbarunya. Sayang sekali :(. Namun bagi saya pribadi belum ada player lain yang mampu membuat saya “berpaling hati” :).

Berbagai player sudah saya coba di Linux mulai dari bawaan standard Ubuntu seperti Rythmbox, Banshee, Audacious, dll. Namun masih belum sreg juga. Terutama dari sekian banyak player tersebut output volumenya tidak sekeras XMMS pada laptop saya, meskipun sudah dipasang plugin tambahan untuk audio boost dan kawan-kawannya. Yang ada malah suaranya pecah.

Ok, langsung saja ke topik artikel ini yaitu bagaimana membuat plugin yang menampilkan lyric dari lagu yang sedang diputar. “Senjata” andalan saya masihlah shell script :). Sebenarnya ide ini sudah lama saya pendam(hehe… kayak cinta aja dipendam) karena tersandung masalah males dan kelupaan jadi ya baru kesampaian sekarang. Sebelum ini saya sudah mencoba plugin lyric bernama “singit” tapi gak tau kenapa kok g bisa. Jadi ya buat sendiri deh, meski sederhana yang penting “muncul” :). Toh lyric ini kan kita lihat waktu gak fokus sama pekerjaan.

Assumption

Asumsi saya adalah anda sudah menginstall XMMS. Jika belum silahkan pergi ke situs http://www.xmms.org/ disana juga terdapat paket debian/ubuntu dan repositorynya.

My Environment

  • OS: Ubuntu Linux 8.04
  • Desktop Environment: Gnome
  • GTK+ Dialog: Zenity
  • XMMS: Versi 1.2.10
  • Song Change Plugin: Versi 1.2.10
  • Path Script: /home/astadev/shellscript/xmms-lyrics.sh
  • Direktori Lyric: /media/sda11/feisty/SecondHome/personal/lyrics/

Note: Song Change Plugin merupakan plugin general dari XMMS, jadi seharusnya sudah terinstall secara default.

Step by Step

1. Menulis Plugin

Langkah pertama tentu adalah membuat pluginnya terlebih dahulu. Buka teks editor lalu salin kode berikut:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
 
# function to convert space to dash and UPPERCASE to lowercase
function toLowerHypen() {
   # take all the string
   the_string=$*
   echo "$the_string" | tr [:blank:] "-" | tr "[A-Z]" "[a-z]"
   return
}
 
# function to split "singer - song" format
function splitSingerSong() {
   the_format=$*
   # see man IFS
   IFSdef=$IFS
   IFS="-"
   declare -a tempdata=($the_format)
   IFS=$IFSdef
   singer=${tempdata[0]}
   song=${tempdata[1]}
}
 
splitSingerSong $*
# trim
singer=`toLowerHypen $singer | tr -s " "`
song=`toLowerHypen $song | tr -s " "`
 
# change lyric_dir according to your own setting
lyric_dir="/media/sda11/feisty/SecondHome/personal/lyrics"
 
lyric_file="${lyric_dir}/${singer}/${song}.txt"
lyric_content=
 
if test -f "$lyric_file"
then
  lyric_content=`cat "$lyric_file"`
else
  lyric_content=`echo -e "Lyric File Not Found\n\n($lyric_file)"`
fi
 
# get previous process and kill it
zenity_proc=`cat /tmp/xmms.lyrics.pid`
kill -9 $zenity_proc > /dev/null 2> /dev/null
 
sleep 0.1
zenity --notification --text="$lyric_content" & 
echo $! > '/tmp/xmms.lyrics.pid'

Ganti nilai dari lyric_dir sesuai dengan letak direktori lyric anda nantinya. Simpan file ini, dalam contoh saya simpan pada /home/astadev/shellscript/xmms-lyrics.sh. Selanjutnya kita memberikan permission execute untuk file ini.

$ chmod +x /home/astadev/shellscript/xmms-lyrics.sh

Note: Sesuaikan dengan lokasi file anda.

2. Mengaktifkan Script Melalui Plugin Song Change

  1. Klik kanan XMMS
  2. Pilih Options » Preferences
  3. Pilih tab General Plugins
  4. Pilih Song Change 1.2.10
  5. Centang Enable Plugin pada pojok kanan bawah
  6. Klik Configure
  7. Pada Command xmms start a new song
  8. Isikan lokasi script anda, pada contoh: /home/astadev/shellscript/xmms-lyrics.sh
  9. Klik OK » Apply » OK

general plugins Song Change Plugin

4. Membuat File Lyric

Agar plugin dapat menemukan file lyric sesuai dengan penyani dan judul lagunya. Maka perlu adanya konvensi(aturan) dalam membuat file lyric. Sebuah contoh, misal nama artisnya Michael Heart dan judul lagunya We Will Not Go Down maka struktur direktorinya adalah:

  • Lyric Dir: /media/sda11/feisty/SecondHome/personal/lyrics/
  • Artist Dir: michael-heart
  • File Name: we-will-not-go-down.txt

Nama artis dan judul lagu harus HARUS ditulis dalam huruf kecil(lowercase) dan spasi diubah menjadi tanda “-” (hypen). Judul lagu harus berakhiran dengan ekstensi “.txt”. Dalam contoh diatas lokasi lengkap dari lyric adalah:

/media/sda11/feisty/SecondHome/personal/lyrics/michael-heart/we-will-not-go-down.txt

5. Let’s Test The Plugin

Sediakan sebuah file lyric untuk sebuah lagu, lalu mainkan lagu tersebut. Lihat pada System Tray akan muncul sebuah icon notifikasi. Arahkan mouse tersebut ke icon notifikasi maka akan muncul lyric dari lagu tersebut.

Plugin Test

Selamat Mencoba :).

PS:
- Thanks to Michael Heart, your powerful song and lyric makes me write this plugin.
- Script ini juga bisa digunakan untuk Audacious

Referensi:
http://www.xmms.org/
http://www.rioastamal.net/files/ebook/tutorial-mini-shell.gz

bookmark bookmark bookmark bookmark bookmark bookmark

We Will Not Go Down (Song for Gaza) by Michael Heart

Posted by rio On January - 16 - 2009

Feel free to download and support Palestine. Song is composed and performed by Michael Heart.

MP3 Download: http://michaelheart.com/Song_for_Gaza.html

Lyrics:

WE WILL NOT GO DOWN (Song for Gaza)
(Composed by Michael Heart)
Copyright 2009

A blinding flash of white light
Lit up the sky over Gaza tonight
People running for cover
Not knowing whether they’re dead or alive

They came with their tanks and their planes
With ravaging fiery flames
And nothing remains
Just a voice rising up in the smoky haze

We will not go down
In the night, without a fight
You can burn up our mosques and our homes and our schools
But our spirit will never die
We will not go down
In Gaza tonight

Women and children alike
Murdered and massacred night after night
While the so-called leaders of countries afar
Debated on who’s wrong or right

But their powerless words were in vain
And the bombs fell down like acid rain
But through the tears and the blood and the pain
You can still hear that voice through the smoky haze

We will not go down
In the night, without a fight
You can burn up our mosques and our homes and our schools
But our spirit will never die
We will not go down
In Gaza tonight

We will not go down
In the night, without a fight
You can burn up our mosques and our homes and our schools
But our spirit will never die

We will not go down
In the night, without a fight

We will not go down
In Gaza tonight

Youtube Video:

Feel free to spread this song to entire world…

bookmark bookmark bookmark bookmark bookmark bookmark

Tips: Running multiple instance of Firefox

Posted by rio On December - 16 - 2008

Sorry if there are any spelling or grammatical errors, I’m learning English… :)

I bet many of you didn’t know that you can run more than one instance of Firefox. Instance is different from just another Firefox’s window. It’s completely use different configuration file. So, your preferences like add-on, cookie, proxy setting, etc are different. Running another instance is just like running another browser instead of Firefox itself.

What’s the benefit of running multiple instance than only one instance? IMO there are two point of view that we can look at it. The first is from developer point of view, by running multiple instance web developer did not need to run another browser if only want to test the session log in. e.g the developer wants to be guest user and logged user at the same time. They just need to run another instance since every instance have different session or cookie.

The second is from end user point of view. Imagine that you have visited some “private” site and then your friend borrow your laptop for a moment. When your friend start typing in URL address bar in browser and oopss… he/she found some “interesting site” that you have visited(It’s not my experience :)). It can be avoided by clearing all history from that site but there is more smart way by using another Firefox profile.

So, how can we run multiple instance of Firefox? well basically when you run Firefox it was invoked by using this command:

$ firefox

But ever you notice that the are plenty of options that we can pass to Firefox. Just type in your terminal:

$ firefox -h

Regarding our topic, the option that we need to pass to Firefox so it will run another instance is:

$ firefox -no-remote -P

Firefox Profile Chooser

When command above invoked it will bring a “Profile Chooser” window. In normal situation when you never create a profile before, your profile name is “default”. So, let’s try to create another profile by clicking “Create Profile…” button and named “private” for the profile name. When you want browse some “interesting site” you can use that profile by using command below:

$ firefox -no-remote -P private

But remember, as you can see at picture above. There is an option “Don’t ask at startup”, every time you run Firefox your default profile now is “private”. So, we need to set back the profile to “default”. Just close the instance of running “private” profile and then run the following command:

$ firefox -no-remote -P default

bookmark bookmark bookmark bookmark bookmark bookmark

Tutorial: How to Create Simple Telephone Application

Posted by rio On November - 29 - 2008

Sorry if there are any spelling or grammatical errors, I’m learning English… :)

This afternoon while searching about XML for my assignment, I came across to the term “VoiceXML”. Well, that term sounds strange to me but some of you may have heard it or even have been master on VoiceXML :). “How can an XML structure produce some voice?” is a question that came across my head. According to the wikipedia the definition of VoiceXML is:

VoiceXML (VXML) is the W3C’s standard XML format for specifying interactive voice dialogues between a human and a computer. It allows voice applications to be developed and deployed in an analogous way to HTML for visual applications

So, what things that we need to build our first telephone application. Not much here the list:

  • Account at voxeo.com
  • A web server to host your VoiceXML document
  • Skype software
  • Text Editor

Here step-by-step how to build your first telephone application.

1. Create an account at voxeo.com

Voxeo.com is a company that provide IVR (Interactive Voice Response) hosting and all related voice application including VoIP. Start creating account by clicking this link evolution.voxeo.com. Complete all the steps to get an account.

2. Install Skype Software

Skype is the most popular VoIP application. Download the latest version at Skype.com, in this tutorial I’m using Skype for Ubuntu Linux.

3. Create the VoiceXML file

Using your favorite text editor create a new file and write code below:

1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1" >
  <form>
    <block>
    <prompt>
      Hello there, enjoy my blog.
    </prompt>
    </block>
  </form>
</vxml>

Save the file, in this example I named the file “hello.xml”.

Code above shows that we use VoiceXML version 2.1. Keep in mind all tags like <form>, <block> are differ from HTML tag. Sentences inside prompt tag will be read by the voxeo IVR.

4. Upload the VoiceXML file

The next step is to upload the file to web server so Voxeo server can grab and read the file. If you don’t have a hosting account, byethost.com is a good and free web hosting service you may try. After uploading the file just remember the location, in this example my VoiceXML file located at http://rioastamal.net/voice/hello.xml.

5. Creating the Application at Voxeo

After logged into voxeo member area, follow these steps:

  1. click Account => Application Manager
  2. click Add Application
  3. On Development Platform choose Prophecy 8.0 - VoiceXML 2.1
  4. click Next
  5. Fill “Hello Blog” at Application Name
  6. Fill “http://your-url-to/hello.xml” at Start URL 1
  7. click “Create Application”

Click the “Phone Numbers” tab to get your application phone number. Take a look at Skype VoIP phone number. That is number you should call from skype in order to test your application.

Voxeo phone settings

6. Testing the Application

The last step is testing our application. Testing the application is easy, we just need to call the number from Skype or other VoIP software. Let’s try it:

  1. Open Skype
  2. Click “Call ordinary phones”
  3. Enter your Application phone number
  4. Click dial (green phone button)
  5. You should hear sentences that you wrote before.

If you want to test my application, just dial this number on your Skype +99000936 9991424802. You may ask, how much the charge when calling these number from skype? The good news is Voxeo and Skype have been partnership. So, you don’t have to pay when calling your application :).

call a number  calling number

References
http://en.wikipedia.org/wiki/VoiceXML
http://www.voicexml.org/
http://www.vxml.org/

bookmark bookmark bookmark bookmark bookmark bookmark

Subscribe to rioastamal.net