Posts

[Level 2] Replace doc by variable name in Python.

#!/bin/env python doc = ''' a: %(a)s b: %(b)s c: %(c)s d: %(d)s ''' dict = { 'a': 'a1', 'b': 'b1', 'c': 'c1', 'd': 'd1', } print doc % dict $ /tmp/t.py a: a1 b: b1 c: c1 d: d1 $ Wish this helps. regards, Stanley Huang

[Level 2] Use taglist for python in vi.

You could add taglist in vi for python developing. The setup process as the following: 1. install ctags http://ctags.sourceforge.net/ 2. install taglist http://www.vim.org/scripts/script.php?script_id=273 After install both component, re-run vim and use command :TlistToggle to show taglist. Wish this helps. regards, Stanley Huang

[Level 1] Nice python shell bpython.

If you though default python shell is not good for use, you replace python with bpython. You could get it with apt-get # apt-get -y install bpython Wish this helps. regards, Stanley Huang

[Level 2] How to enable VNC server in Ubuntu 10.04

How to enable VNC server in Ubuntu 10.04, please refer here . Wish this helps. regards, Stanley Huang

[Level 1] How to get ram spec in Ubuntu

If you want to get the ram module information from Ubuntu. Please use command dmidecode with type 17. ex. $ sudo dmidecode --type 17 | more Wish this helps. regards, Stanley Huang

[Level 1] Install maven in Ubuntu

In Ubuntu, you could use apt-get to install maven. # apt-get -y install maven2 Wish this helps. regards, Stanley Huang

[Level 1] Install git in Ubuntu

If you want to install git in Ubuntu, you could use apt-get command: # apt-get -y install git-core git-doc git-gui gitk Wish this helps. regards, Stanley Huang