Installing or Upgrading PostgreSQL 9.4 on Ubuntu 14.04

I am currently having a side project that requiring JSON Blob feature on PostgreSQL 9.4. But Ubuntu 14.04 only delivering PostgreSQL 9.3 on their repositories. Now I’ll posting step by step how to install or upgrade if you already using PostgreSQL 9.3 on ubuntu 14.04 to PostgreSQL 9.4. ...

August 20, 2015 · 1 min · Rezha Julio

Fix Locale Settings Error On Ubuntu Server 14.04

We are just migrating our cloud from Amazon Web Service to SoftLayer, and we feel really happy with performance improvement. But, somehow the new system has error like this. ...

July 29, 2015 · 1 min · Rezha Julio

EAFP Coding Style in Python

What is EAFP ? EAFP (Easier to Ask for Forgiveness than Permission) is a coding style that’s commonly used in Python community. This coding style assumes that needed variables, files, etc. exist. Any problems are caught as exceptions. This results in a generally clean and concise style containing a lot of try and except statements. This technique is really contrasts with common style in many other language like C with LBYL (Look Before You Leap) approach which is characterized by the presence of many if statements. ...

April 27, 2015 · 1 min · Rezha Julio

Installing Varnish with nginx on Ubuntu 14.04

About Varnish Varnish is an HTTP accelerator and a useful tool for speeding up a server, especially during a times when there is high traffic to a site. It works by redirecting visitors to static pages whenever possible and only drawing on the server itself if there is a need for an active process. ...

April 26, 2015 · 2 min · Rezha Julio

Disabling Apport Error Reporting on Ubuntu

What is Apport ? Apport is an Error Reporting Service provided by Ubuntu to intercept and analyze crashes and bugs as and when they occur. Crashes and Bugs may sound like bad things, but actually most operating systems will have several a day, and it doesn’t mean your computer is broken, nor does it necessarily stop working. As such, Apport can usually be safely disabled, as it doesn’t fix anything, it just tells developers that something went wrong. ...

April 25, 2015 · 2 min · Rezha Julio