Archive for March, 2007

Desktop Project

Ingin sekali rasanya ngintip desktop bapak2 dan ibu2 sekalian. Pengen tau OS nya, pengen tau software nya, dan yang lain2 deh. Akhirnya saya bikin project iseng2, sekalian membantu bapak2 dan ibu2 yang sedikit narsis mo pamer desktop yang keren abiss. Desktop Project adalah project kecil2 an untuk pamer screenshot desktop. Dan ngga! ngga ada hadiah dibalik ini. Cuman sharing aja kok. Jadi mohon untuk turut serta dalam project ini. Caranya gampang, Ketik C spasi D, eh cukup capture desktop bapak dan ibu, upload, kasih nama, url dan save.

Thanks all

Thursday, March 29th, 2007 | Tags: Articles, Desktop, PHP | 8 Comments

The Last Post

This is the last post that written in english. The next post will be written in Indonesian. Here’s some reason:

  • Most of my readers and commenters oftenly write their comment in Indonesian, so do I.
  • I’m a native Indonesian, so I will speak and write using my motherland language, the Indonesian Language.
  • Just because

Thursday, March 22nd, 2007 | Tags: Weblog | 8 Comments

Indonesian Postalcode Database

I found Indonesian postal code database somewhere I forgot, it was so nice, the other nice part is that it comes with SQL formatted. So, quickly I backup into my database and uploaded it on my server. Try or download is your choice.

Note:
I forgot where this is came from, please if anyone know, care to notify me so I can put his/her name on this post.

Wednesday, March 21st, 2007 | Tags: Articles, Weblog | 5 Comments

Text2Number Function

I’ve been working on a PHP function that will parse pronounceable representatiion of number into numeric value. It can be useful for validating sensitive user entries such as payment amount, etc, by entering not only the number, but the pronounceable numbers. For example a text if "sepuluh ribu" can be parsed into 10000.

Give it a try, or download the source.

NOTE
Only works with Indonesian language

UPDATE Friday, March 16 2007
Fixing bug while parsing text like "dua puluh tiga ribu"

UPDATE Tuesday, March 20 2007
Fix some sloppy coding :p

UPDATE Wed, March 21 07
Influenced with Lingua::ID::Words2Num package by Om steven.

UPDATE Wed, March 22 07
Om steven emailed me and send a pretty test-suite for text2number function. I’ve put it on the demo page, nice. Thanks om steven …

Friday, March 16th, 2007 | Tags: Articles, PHP | 9 Comments

Retrieving UNIX ProcessID in Java

Usually when we create a daemon in Unix/Linux, we need know the process id of the process in order to restart the process or kill it. And there’s no Java API for returning the JVM process ID. So this is a solution for getting the JVM process ID. Note that the example is only work for Unix-based OS only. I’ve implemented it on a BSD box.

Read the rest of this entry »

Thursday, March 15th, 2007 | Tags: Articles, Java | 3 Comments

RE: Java vs PHP

Here’s my own perspective regarding Pak adiwirasta’s post: "Java vs PHP".

  1. PHP has shorter learning curves than Java
  2. PHP has more support for web-development, since PHP was created for building web application.
  3. Java is intended for general purpose language, so it has more tools and library to support it.
  4. PHP has OOP, but Java do it better.
  5. PHP is lack of threading support.
  6. PHP is more scalable than java, since requirements are cheap, and resource is scattered, while Java, is more corporate minded, with support and stuff.

As a matter of choice, it depends on the subject. If I working on a simple CRUD web-application, I choose PHP. But if my job require concurrency support, I’ll do it in Java.
And if I were asked to choose between PHP or Java for my work? I can’t choose. My company use both.

Thursday, March 15th, 2007 | Tags: Articles, Java, PHP | 4 Comments

SoccerStat Beta, RSS Reader

This is just some result while I am not working at home, I’m sorry, I just cant help myself.

  1. SoccerStat - Soccer match statistic. Thanks to Vnuz, for making me think of it.
  2. Aggregator - My online RSS reader.

Enjoy

Sunday, March 11th, 2007 | Tags: Weblog | No Comments