Skip to main content

Posts

Showing posts from 2008

Installing alpha version of 64-bit Adobe Flash Player 10 in Hardy

Finally I managed to install the alpha version of 64-bit Adobe Flash Player 10 in my Ubuntu Hardy. It runs nice on my Firefox 3 If you got confused what to do with the so file given by tar.gz package in http://labs.adobe.com/downloads/flashplayer10.html but STILL USING Ubuntu Hardy like me, just copy paste the following script after running this script (I got this from "script for Ubuntu Intrepid") sudo apt-get install libnss3-dev -y sudo ln -s /usr/lib/libplds4.so{.0d,} sudo ln -s /usr/lib/libplc4.so{.0d,} sudo ln -s /usr/lib/libnspr4.so{.0d,} Say good bye to heavy nspluginwrapper and have fun!

Konqueror got error when loading localhost?

You got this annoying message:

An error occurred while loading http://localhost
Could not connect to host http://localhost

when using Konqueror (at least in Kubuntu)? You got to do this:

1. Go to Settings > Configure Konqueror > Cache
2. Uncheck "Use cache" then OK
3. Done!

Now you can browse localhost and run your PHP codes using Konqueror without network connection.

Perl memang jagoan text processing

Kecepatan processing text dengan menggunakan bahasa Perl ternyata sangat dahsyat. Gak heran dulu waktu kuliah Information Retrieval, dosennya nyaranin pake bahasa Perl ke para mahasiswanya.

Sensasi ini gw rasakan pada sekitar tanggal 23 September, saat iseng-iseng memporting Parserproject Quran di Drupal dari Shell script ke Perl. Saat itu merupakan pertama kalinya gw dan Perl berkomunikasi (baca: ngoding). Ternyata lompatannya sangat jauh. Mungkin ada yang bilang: "Ya iya lah, Shell script mau dibandingin sama Perl". Ya emang dasarnya gw gak niat membandingkan, cuma ingin mempercepat proses aja dengan bahasa Pemograman yang langsung didukung oleh Linux. Daripada porting ke Python, lebih baik ke Perl yang sudah banyak dipakai di bidang text processing.

Kira-kira kecepatan Shell script dalam memproses 114 ayat al-Quran itu adalah 120 detik, sedangkan Perl hanya 1 detik. Ya begitu lah, 120:1.

Pernah juga pakai Ruby untuk memproses xml dengan libxml Ruby tapi kasusnya tidak sama.…

Drupal module, Quran 6.x-2.1 is out!

Alhamdulillah

Finally I released the next version of Quran module for Drupal 6.4. These are the changes:

- Now it cares about localization (locale module). Ambiguous old locale setting is now changed into browser language.
- Searching in Arabic!
- Minor fixing of misspelled words
- All database are now can be imported automatically in UTF8.
- There are one translation: Indonesian language. To others, please contribute too.
- There is an info about amount of searching result

It took a quite time to handle CVS problem (more than 4 hours). I misread the CVS instruction. May be I should use git to access this CVS. :D

I've just released the new version for Drupal 5 with the same features...... and Drupal 6 (yes, another new version) for one small feature: Localization by i18n module.

Enjoy the new version!!!

Using pg_standby for high availability of Postgresql

PostgreSQL is a famous database server which can be compared with Oracle or any other commercial database servers. It is said that Postgresql doesn't care about replication because Postgresql wants to focus. But fortunately there is a simple opensource solution to this. Which is called pg_standby.

Pg Standby is used as a simple way to make PostgreSQL highly available. To make this short, I'll start the tutorial which I've been created from many scattered sites (it's really hard to find how to use pg_standby for me)

Condition: I used Ubuntu 8.04 (Hardy) 64-bit, PostgreSQL 8.2 (If you're using version 8.3 or more, just skip the following installation steps). Please make sure that both servers (or workstations) installed using the same Linux version (the same distro, release and architecture. e.g. Ubuntu 8.04 i386)

Installation
========
For now on, we'll do these steps in primary server.

Preparation
1. Install required packages to create PostgreSQL binary for Debian
sudo …

Membuat Gateway Flash Telkomsel di Ubuntu Linux

Dari pada pusing riset lagi dari awal, mendingan bikin dokumentasinya dan berbagi kemudahan ini ke orang banyak. Saya akan menjelaskan bagaimana membuat Ubuntu Linux kita menjadi server gateway internet dengan menggunakan Huawei modem dari Flash Telkomsel.

Cara ini berhasil di Ubuntu 8.04 karena paket wvdial yang dimilikinya mampu menkonfigurasi otomatis huawei modem. Untuk berbagi ke jaringan, pastikan koneksi komputer kita dengan komputer2 lainnya di LAN berjalan baik.

Deteksi Modem
Pastikan pulsanya Telkomsel Flash adaTancap kabel yang tengah (baca keterangan pada usb jack!). Karena ada 2 jack yang punya fungsi berbeda.Pastikan Ubuntu dapat mendeteksi modem pasca penancapan usb. Biasanya baru sempurna deteksinya setelah 1 menit. Cek dengan lsusb. Harusnya ada tulisan kira2 seperti ini:Bus 005 Device 005: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem


Konfigurasi dan dialing
Lakukan konfigurasi otomatis "sudo wvdialconf". Perintah ini harusnya menghasilkan file /et…

Typing Arabic with Scim

Alhamdulillah and thanks to Anjar03 my friend who has been researching and being curios with Scim and the author of the code (yes, the one who has created scim Arabic). I finally can write Arabic with Scim in Kubuntu, KDE version of Ubuntu. I want to document it here so everybody can leverage Scim as I do.

Please make sure you've installed the following packages so that KDE will automatically use Scim as default input method: scim-bridge-agent scim-bridge-client-qt scim-bridge-client-gtk. For KDE4 may be you should install additional scim-bridge-client-qt4. After that, type "im-switch -s scim-bridge" to activate Scim. For more information see my previous post and here.

To type Arabic you don't need scim-anthy since it is for Japanese. You need scim-tables-additional package installed. Now, re-login.

To test, open kopete chat window since it automatically supports right to left typing mode. Ctrl+Space to start writing with Scim, choose Arabic Egypt from the scim popup. Y…

Minbar crash on non Gnome Ubuntu derivatives?

I'm currently using Kubuntu 8.04 amd64. I installed Minbar to remind me of prayer time. It worked fine except, it crashed when I tried to play athan.

I've been searching to solve this problem. I even downloaded its source code to see what happen. From it, I concluded that there must be related to audio plugin. After gooling a little bit, I think the author forgot to include some Gstreamer library as one of Minbar's dependencies since he never used other than Ubuntu. May be, ubuntu has already has that dependency. But not with Kubuntu or Xubuntu.

The solution is just install the following packages: gstreamer0.10-plugins-base, gstreamer0.10-plugins-good
That should solve your problem and make sure you to always pray on time :D

Drupal 5 Performance Tuning, Suprising way

Lately, I tried to tuning up my Drupal 5-based website for one of my company's clients. And successfully achieve their requested test: more than 50 requests per seconds with only one additional PHP PECL module: APC. Alhamdulillah, finally. It was achieved by an unusual way, at least for me.

About 2 months before during development time, I had the Drupal pass the same test. This fact made me relieved that the development is on the track. But at the time, it did not load so much modules as it did lately. To, make it faster, I even activated memcache and advanced session modules. Then, I continued to add and customize additional modules. I think, without testing it anymore.

Two months later, I found out that my Drupal had gone slow. It could only handle no more than 25 requests per seconds. What?..... This made me curious over the new modules. I tried to turn they off one by one and I fired up xcache to see what was happening. After tuning up Apache2, MySQL, and others I could just onl…

Installing Clamav antivirus on Samba in Ubuntu

Many people use Samba in their file server to let Windows users share their files there. But some people just doesn't care if they have shared virus infected files. The other users merely become the victim.

So, lets arm our Samba to protect users from viruses hidden in the shared directories. In Ubuntu and other *nix distros, we can use free Clamav antivirus plugged in to Samba which is called clamav-scan. *nix distros usually provide ready-to-install binary of clamav-scan. But Ubuntu does not. So you must compile the plug in manually.

Enough for the intro, now we'll begin arming the Samba in Ubuntu (my Ubuntu version is 7.04 feisty fawn) . Don't be rush. You must follow test instruction before proceeding the next step.

1. Prepare package Clamav and supporting packages
apt-get install clamav arj unzoo lha clamav-freshclam clamav-daemon clamav-testfilesbuild-essential

You may also need build-essential package

Test: Please make sure that we can scan infected files.
clamscan…

Quran module for Drupal

Alhamdulillah, I finally released one of Drupal module: Quran, or Koran. This is my first contribution to Drupal community and my second contribution to free CMS (previously, Mambo).

This module allows you to read Quran (Koran) on Drupal. You can also search for specific verses by keywords. There is also optional block for random verses. The module includes Quran in Arabic, and English for default translation.

Currently we have more than 3 languages: Arabic, English and Indonesian. The other languages are Germany, French, Turk, etc as listed in Zekr Quran project. Please visit http://www.muslimade.com/projects/quran-drupal-module to download them