Sunday, November 28, 2010

TMUX – The Terminal Multiplexer

tmux is similar to screen as it lets you run numerous TTY’s in the same terminal window. It enables a number of terminals to becreated, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.
Usecommand for attach after detached to reattached.
$ tmux attach

When tmux is started it creates a new session with a single window and displays it on screen. A status line at the bottom of the screen shows information on the current session and is used to enter interactive

Thursday, November 18, 2010

Sphinx Auto genrate documentation for Django Project

Sphinx is a tool that makes it easy to create intelligent and beautiful documentation.

Installing your doc directory

python -c 'import sphinx'
If that fails grab the latest version of and install it with:
> sudo easy_install sphinx
Now you are ready to build a template for your docs, using sphinx-quickstart:
> sphinx-quickstart
accepting most of the defaults. I choose “sampledoc” as the name of my project. cd into your new directory and check the contents:
home:~/tmp/sampledoc> ls
Makefile      _static
_build                _templates      index.rst

The index.rst is the master ReST for your project, but before adding anything, let’s see if we can build some html:
make html
If you now point your browser to _build/html/index.html, you should see a basic sphinx site.