Saturday, December 08, 2007

Compiling C# + gtk 2 + glade 2 on Ubuntu 7.10

Before that you need to install these packages :

And also your favorite text editor or IDE.
Create a new file GladeApp.cs with the source-code below.

using System;
using Gtk;
using Glade;

public class GladeApp
// declare the widgets you will use from glade
Gtk.Entry MyEntry;

public static void Main (string[] args)
new GladeApp (args);

public GladeApp (string[] args)

Glade.XML gxml = new Glade.XML ("", "MyWindow", null);
gxml.Autoconnect (this);

// Connect the Signals defined in Glade
public void OnMyWindowDeleteEvent (object o, DeleteEventArgs args)
Application.Quit ();
args.RetVal = true;

public void OnMyButtonClicked(object o, EventArgs args)
Console.WriteLine("In entry: " + MyEntry.Text);

Then, start your Glade.
Build a simple window with a text entry and a button. It will be looked like this :

With additional event & signal. delete_event event for MyWindow

and clicked signal for MyButton.

Saved the glade file as . You may need to learn a little bit to create these user-interface. Please keep trying.

Then you are ready to compile our code.

myprompt: mcs -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 GladeApp.cs

And run our application.

myprompt: mono GladeApp.exe


Friday, December 07, 2007

Instalasi Zekr

After I installed Zekr from Ubuntu 7.10 repositories I found that It didn't support to play a recitation.
So I downloaded the newest release from . Zekr version 0.6.6 Debian package.
You also need sun-java5-jre or sun-java6-jre to complete required dependency. I use sun-java5-jre in my case.
Also I downloaded as I want to hear recitation as my first objective.

Just follow installation instruction here .

It works as I expected but the recitation is not as smooth as I wanted to enjoy the hear it.

Wednesday, December 05, 2007

3GP Player di Ubuntu 7.10

In order to play the 3gp movie (ex. you get it from mobile phone) you need to install RealPlayer (from Helix Community website) not the HelixPlayer one.
Pengingat Waktu Sholat

I tried to install minbar from .
I still need to install libitl0 before I can install minbar.
You still need to manually enter the Long/Lat of your location + GMT zone.
In my case I got from here
due to I live at Jakarta Indonesia.

Latitude: -6.1744
Longitude: 106.8294
Timezone: GMT +7.00

But when I see the prayer time list, the Ashr time is quite different from the usual time of Ashr in Jakarta.
I try all the "Calculation Method" listed in minbar, but I can't get the Ashr time that approximate with Jakarta's Ashr time. Almost all list Ashr time about an hour before except for Hanafi method is about half an hour after the time.

So, I think I should better use Pray Time! FireFox Add-on Extention.