The ALAY translator
My body is not "delicious", felt so empty, so in response to http://alaygenerator.co.cc/, I've tried to create the ALAY translator. Its not perfect, but its fun to do. Enjoy ;)
Ijen Crater
If you like volcanoes, you should visit Ijen Crater, it's so beautiful I went there twice — in a sequence weekend. I started the trip from Malang, by land at 11pm. Yes, we go so late because of the trip from Malang to Ijen took about 7 hours. Actually, it only about 250km from Malang, from Malang to Bondowoso only took about 4 hours.
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:
- Run all registered shutdown hooks, if any. Shutdown hooks are threads registered with the Runtime. All shutdown hooks are run concurrently until they finish.
- Calls all uninvoked finalizers, if appropriate
Now we can use shutdown hooks to cleanup any resources or do something when application shutdown.
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.