Telkomsel 3445 Text Message

What the hell… Thursday evening, August 14, 2011 i got a message from 3445 telkomsel. It said that my phone bill already reached Rp. 770,079. First i think that message was system fault but after i checked again with *888# it said my bill already reached Rp. 900k OMG! The next thing that appear in my mind was the internet package so i checked it, “UL INFO” send to 3636 but it said that i didn’t registered any internet packages. That’s the problem, i still have a message that said i’m registered the unlimited internet packages until August 10th.

Next day, of course i’m going to telkomsel’s customer services, fortunately the CS said there is a system error so my bill will be recalculated and i can go home. Hwoa… that was a shocking messages i can’t imagine paying 900k just for a month for phone bill.

Building PHP Webserver on Nginx with PHP CGI

Doesn’t like the Apache webserver, nginx didn’t have the auto-configuration feature from PHP and library loading. The way to make nginx be a PHP webserver is passing the request to PHP CGI. How?

The first step must be installing the nginx and php5 package. For this post i’m using Ubuntu 10.04 LTS.

apt-get update nginx
apt-get update php5

Check your nginx installation with start the service:

service nginx restart
/etc/init.d/nginx restart

Now, if the nginx working, let’s connect it to the PHP CGI. First, run the PHP CGI so that the PHP listen at 127.0.0.1 with port 9000.

/usr/bin/php-cgi -b 127.0.0.1:9000 &

Read More →

Renewing Driver License at SIM Corner Tunjungan Plaza

Today i get my driver license or also known as SIM in Indonesian renewed. Renewing driver license today is very easy because there are some SIM corner which is located in a malls or shopping centers. One of them are in Tunjungan Plaza Surabaya, located at first building of Tunjungan Plaza (Tunjungan Plaza I / TP I) and can be seen from parking entrance, below the McDonald. SIM Corner in Tunjungan Plaza Surabaya open from 10 a.m till night, so i think this is the best place to get the driver license renewed. Don’t forget to bring the original and a copy of driver license which want to be renewed and the original and a copy of ID card (KTP).

First, i must give the driver license and ID card (with a copy of them) and bought the registration form and for me who want to renew both of A (car) and C (motorbike) driver license must pay Rp. 90.000 ($10) then go to the doctor for health examination. This step is annoying for me because there is no health examination at all, the health certificate was written without any test. Next, Fill the registration form then buy the bank voucher, the cost for A driver license renewal is Rp. 80.000 ($9) and the cost for C driver license renewal is Rp. 75.000 ($8) after this step, the registration step is done, just give the registration form to officer on registration desk.

Read More →

Fixing NetBeans 6.9 else Indentation

It’s annoying when IDE didn’t make coding process easier. For this case is NetBeans 6.9, this netbeans version annoy me when i type “else” word. After typing “else”, the word become at the most left of the editor (without indentation) like code below. What’s wrong, NetBeans 6.8 still okay with this case.

public class Class {

    public void method()
    {

        if (foo)
        {
            doSomething();
        }
 else
        {
            doSomethingElse();
        }
    }

}

Read More →

Rail-Fence Cipher C# Source Code

The rail-fence cipher algorithm has been posted before so this post just show how to implement the algorithm to programming language in C#. First of all always the encryption method:

public static string Encrypt(int rail, string plainText)
{
    List<string> railFence = new List<string>();
    for (int i = 0; i < rail; i++)
    {
        railFence.Add("");
    }

    int number = 0;
    int increment = 1;
    foreach (char c in plainText)
    {
        if (number + increment == rail)
        {
            increment = -1;
        }
        else if (number + increment == -1)
        {
            increment = 1;
        }
        railFence[number] += c;
        number += increment;
    }

    string buffer = "";
    foreach (string s in railFence)
    {
        buffer += s;
    }
    return buffer;
}

Read More →