clsung is reading

重整 Exif 資料

多想幾天,可以不用重新發明輪子。 :p


Install docker on Centos 7

Perform a yum search docker, we can see two docker available:


EPEL 7 for Centos 7

To install EPEL-7

% rpm -ivh http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm

Also, enable it by default, edit /etc/yum.repos.d/remi.repo and set ‘enable=1’ under section of [remi] and [remi-


Install GNU gcc 4.8.2 on CentOS 6.4

Install pre-requirements:

% yum install gmp-devel mpfr-devel  libmpc-devel

Download and extract gcc 4.8.2 source tar ball:


Crop image in golang

In python, for cropping  image I use PIL. However the dependencies of PIL is huge, also need to install some lib*-dev packages.


Create file with random string in python

#!/usr/bin/env python
import string
import random


Increase uwsgi_buffer_size to run django-openid-auth on dotCloud

To enable Django [OpenID][1] authentication, I choose [django-openid-auth][2]. But when I deploy to dotcloud, there’s a ‘404’ as welcome message :p


MySQL Connector C++ on Ubuntu 10.04 LTS

I’ve trying to use MySQL Connector C++ for my project, here the example code (retrieved from [official site][1]):


Compile and Install Growl 1.3 via XCode 4.3 on Lion

Growl notifier has been updated to 1.3.x last year, and it also became a paid software. Since it’s open-sourced, so I decided to build it myself. The steps are quite simple, just follow the documentation you will be fine. Just be sure you have mercurial (hg) command line tools.


WordPress on dotcloud

My AWS EC2 free tier is expired, so I switched to a fully-dotcloud-hosted site (originally I’ve host MySQL on dotcloud). Here are some notes we need to take care.