Restrict access to your Apache Virtual Host

Restrict access to your Apache Virtual Host

In some case you need to restrict your virtual host site by IP address. Usually the type of site that handle important information such as Administrator site or web-based database administration site (eg : phpMyAdmin) or else. For example the admin site of your website can be accessed only in Office network. This Apache configuration…

How to export your MongoDB collections to CSV files

How to export your MongoDB collections to CSV files

For some reasons, we might want to export our data in our mongodb collections into csv files. Is it possible? Yes, it is. Mongodb provide a tools called mongoexport which can used to export your data to JSON or CSV files. Here is the usage example. mongoexport –db pricebook –collection product_specification –csv –fields “product_id,category_id,specs” -o…

How to convert foreign chars on Code Igniter

How to convert foreign chars on Code Igniter

Working with foreign chars on Code Igniter is super simple. I’ve been working on website with vietnamese language for quite some time. Yes, vietnamese character with their curly accessories on alphabets. For example if you use slug on your vietnamese language on url you will get “Disallowed Character” error. Another case if you are working…

Google’s April Fools Day 2013

Google’s April Fools Day 2013

Seperti tahun tahun sebelumnya raksasa internet ini melakukan “keisengan” april fools. Tapi kali ini google lebih niat, april fools di banyak produknya. Di google maps, google menambahkan satu box menu disamping filter layer, tombol “Treasure”. Google map treasure hunt ini memungkinkan user untuk melihat peta dengan mode peta tua atau peta lama. Begini kira-kira tampilannya.…

Daihatsu e-Tollcard Gratis

Daihatsu e-Tollcard Gratis

Hari ini hari kamis, hari kerja seperti biasa. Berangkat seperti biasa, beli kopi di tempat biasa, lewat jalan yang biasa dilewatin setiap hari, mood biasa, semuanya biasa. Tapi semua yang biasa itu berubah jadi luar biasa aja (bukan luar biasa banget) setelah antri mau bayar tol di pintu tol cililitan. Tiba-tiba disamperin sama cewek cantik…