Skip to main content


Showing posts from 2015

Code base to jump start flask-classy system

This post is just to announce my sharing of a source code base which can be used to jump start development using the python micro framework flask and it's excellent extension flask-classy. Do note that this code base uses the Ace Admin bootstrap theme. Please purchase the license for your use from wrapbootstrap or remove it from your source code referencing it. To begin, you need to clone the repository using mercurial: hg clone examplesystem Then you need to create the virtualenv for your system: virtualenv --python=/usr/bin/python2 examplesystem Do note that my example here is running on arch linux which uses python3 as the default python version. I suggest the above command to use python2 in your virtualenv because it makes things easier to migrate to systems using python2 (eg ubuntu, centos and others). The you need to go into the directory and activate the virtualenv: cd examplesystem source bin/activate Then

Hard Link In Rsync

I've been struggling for a few days trying to backup a folder using rsync. The folder is huge but there should be enough space on the destination server. But everytime I did a backup it never finish because the hard disk is full. It seems like the destination folder became bigger than the source folder after using rsync. After much googling, I found out that it might be because of the way rsync handles hard links (which is it creates a new file for each link). Refer to  Directory backed up with rsync is much bigger than source  . So finally to do the backup properly, the command I had to use was: rsync -H -a -vv -z -e 'ssh'

Write everyday

They say you should write everyday. Write everyday to get better. Will I get better. Will I write everyday? Does it matter whether I get better at it? Sure it sounds like something I should strive for, but would it finally be worth while in the end? Maybe I should do it, maybe I shouldn't. Maybe in the end I will end up doing what I should be doing.