break
Jun 25

finally i’ve done my project. here are the screen shot

this one show you the main window of the Client (the app for testing the library). beside the emulator you can see the contact if_bot is online.

original buddy list

Chat window

so what is AYmsg ? AYmsg Is a library of Yahoo! Messenger on Android platform. with AYmsg you can build your own client messger, either only use yahoo! Messenger protocol or you can combine it with other protocol.
Aymsg is the result of my final project for getting my under graduated degree. the picture only show you the application that make use of this AYmsg library. in the future, maybe i will release the code as open source.

later i will talk more about the protocol, what problem do I faced, and how exactly AYmsg works.

for now. currently AYmsg support this features :

  • Use protocol 15 of the Yahoo! Messenger YMSG15
  • Show buddy list
  • Add remove Buddy
  • Add remove Group
  • change status (predefine and custom)
  • Join, Invite, create and talk in conference
  • Typing notification

as i said, with some permission, later i will publish the code and doc for AYmsg. but for now im just preparing for my final presentation (”sidang“) to morrow. wish me luck :D

Feb 14

Artikel ini dibuat setelah saya membaca majalah info linux edisi Desember 2007
Glib adalah sebuah library bawaan dari GTK yang didalamnya terdapat banyak sekali wrapper function. diantaranya adalah fungsi untuk struktur data.

perintah pkg-config digunakan untuk melakukan generate otomatis parameter waktu kompilasi
syntax :

code pkg-config [option]

option –cflags digunakan untuk menghasilkan parameter include folder untuk gcc
contoh :

pkg-config --cflags glib-2.0

menghasilkan : -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
option –libs akan menghasilkan nama library yang akan di gunakan
contoh :

pkg-config --libs glib-2.0

menghasilkan : -lglib-2.0

cara untuk kompilasi dengan gcc adalah
syntax :

gcc `pkg-config --cflags -libs glib-2.0` [source] -o [executable]

contoh :

gcc `pkg-config --cflags -libs glib-2.0` glib1.c -o glib1

menghasilkan : file executable glib1

catatan tanda ` bukan merupakan tanda petik, karater tersebut biasa terletak pada tombol yang sama dengan simbol ~ (tilde) pada keyboard anda

apabila pkg-config mengeluarkan bahwa library tersebut tidak ditemukan, maka anda terlebih dahulu harus menginstall library Glib-2.0
dengan cara

sudo apt-get install libglib2.0-dev libglib2.0-doc

Ok.. lets start our first program. contoh program sederhana

//Begin file glib1.c

#include <stdio.h>

#include <glib.h>

int main (void)

{

 GString *gstr = g_string_new("Hello world! from Glib");

 printf("\n%s\n",gstr->str);

 g_string_free(gstr, TRUE);

 return 0;

}//End file glib1.c

program tersebut akan menghasilkan output

Hello world! from Glib

Read the rest of this entry »