Install phpPgAdmin on Ubuntu with Apache2

2016.01.14

The pgadmin3 GUI client for PostgreSQL is terrible.

The other choice is the web client phpPgAdmin.

Install

sudo apt-get install phpagadmin

This wil......

PostgreSQL Notes for Ubuntu

2016.01.14

Naming

A lot of smart developers are terrible at naming. Microsoft is a good(bad?) example, as well as PostgreSQL.

PostgreSQL or Postgres, which one ......

使用 pip wheel 实现 Python 依赖包的离线安装

2015.12.12

有时候, 需要部署 Python 应用的服务器没有网络连接, 这时候, 你就要把整个 Python 应用做成离线安装包.

借助 wheel, 很容易就可以实现.

首先, 你的开发机器上要安装 wheel:

pip install wheel

接下来, 下载依赖包的 wheel 文件:

pip......

在 Ubuntu 12.04 上设置 RabbitMQ

2015.11.07

安装及管理

安装:

sudo apt-get install rabbitmq-server

查看状态:

sudo rabbitmqctl status

注意状态中包含了版本信息:

{rabbit,"RabbitMQ","2.7.1"}

管理服务:

sudo service rabb......

Python 2.x Encoding Notes

2015.09.02

ASCII

char to int:

>>> ord('A')

65

int to char:

>>> chr(65)

'A'

Unicode

Unicode table for Chinese, Japanese and Korean:

http:......

MySQL Note

2015.06.27

dump all database

mysqldump --all-databases -u root -p xxxx > dump.sql

allow all permissons for remote access:

grant all privileges on . to '......

Setup new user on ubuntu server

2015.06.27

Add a user called 'ubuntu':

useradd -d /home/ubuntu -m ubuntu

You need both the -d and -m opitons here. If you just run useradd ubuntu here,......

Run Django app in Docker

2015.06.19

Conditions

I work on Ubuntu:14.04 64bit desktop, the django app is based on 1.8.2, and the docker image I use is also Ubuntu:14.04

Install Docker

w......

Install Vim from source on Ubuntu

2015.06.17

Issue

Default Vim on Ubuntu 14.04 has no clipboard support. You can use this to check:

vim --version | grep clipboard

'+' means support, &#......

Use Tmux on Ubuntu

2015.06.10

Spliting terminal windows is usefull. Tmux is the best to do this.

Basic Usage:

In your terminal, run tmux, then you are in it.

For now, no big dif......