Month: July 2015

  • ERP Development Design

    Here are the list we need consider when develop ERP. More in technical view. 1. Never trust Front-end validation We must separate between front-end validation and backend validation. Always check validation on backend to make sure the data is valid and correct. To avoid any data updates in the middle of process. 2. Audit-trail Audit-trail […]

  • Upload PostgreSQL not working, change the encoding may help

    When we upload and restore the backup into new postgresql server, sometimes we facing problem because encoding. To solve this, we can use UTF-8 : 1update pg_database set encoding = pg_char_to_encoding(‘UTF8’) where datname = ‘your-database’;

  • Uwsgi on ubuntu 14.04 not working solution

    In Ubuntu 14.04, uwsgi that installed via apt-get will not working. To make it working, please use this steps: 12sudo apt-get remove –purge uwsgi uwsgi-plugin-python sudo apt-get install uwsgi uwsgi-plugin-python Then follow this steps: 1234sudo pip install uwsgi cd /usr/bin sudo mv uwsgi uwsgi-old sudo ln -s /usr/local/bin/uwsgi uwsgi If still failed, follow this : […]

  • Setup Ubuntu Server in Softlayer for Django

    Here are a quick step to setup Ubuntu server in Softlayer for Django 1. Install depedencies 1234apt-get install python-software-properties software-properties-common add-apt-repository ppa:webupd8team/java apt-get update sudo apt-get install oracle-java7-installer 2. Install UWSGI, Python, PostgreSQL and other modules 1sudo apt-get install libpq-dev python-dev python-software-properties postgresql postgresql-contrib nginx git zip unzip build-essential python nmap libxslt1-dev python-pip imagemagick uwsgi […]