Posts

Showing posts from March, 2012

[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