KlikBCA Transaction Downloader Script

My bank has a web interface to download my bank transaction history. Unfortunately, they limit only for last 31 days of transaction. This is really annoying for me. Moreover, when I need my last 3 month transaction for credit purposes, they charge me for more money. *Damn*, and when I asked the customer service for 31 days limit, he said that its for the system performance reason. So that they can work faster. That is an absurd reason.

Anyway, I got annoyed, so I created an auto downloader script that can automatically login and download the last 30 days transaction. I run it using cron.

You can download it at http://herdian.ferdianto.com/media/klikbca.py. Just edit the

USERNAME = "Put Your username Here"
PIN = "Put your BCA PIN here"

And you good to go. You'll need python to run it. How to run:

python klikbca.py

And the transaction will be saved as a CSV file

JAVA: Executing Code Before Shutdown

Sometimes, you need to do something before application is shutting down, such as closing any open connection, closing up all opened file or anything else. Luckily, the JVM is always do these two steps below before shutdown:

  1. Run all registered shutdown hooks, if any. Shutdown hooks are threads registered with the Runtime. All shutdown hooks are run concurrently until they finish.
  2. Calls all uninvoked finalizers, if appropriate

Now we can use shutdown hooks to cleanup any resources or do something when application shutdown.

Continue reading ›

WebServer Benchmark - Gatling VS Nginx

Gatling is a high performance web server, developed by this guy. This webserver in my opinion is very light, but very fast. I benchmark against nginx and it runs faster.

Continue reading ›

Reducing Overhead inside CodeIgniter DB Library

I like CodeIgniter database library alot. Infact, I use it for standalone purpose in several of my projects. One thing that distracting me is that it has an overhead while fetching result. The result_xxx method is bugging me.

Continue reading ›

Implementing CDB hash in PHP

The CDB (Constant Database) got a really cool and simple hash function, what I'm trying to do, is implementing CDB hash function in PHP script. There are interesting explanation from here and here.

Continue reading ›