Python

Tutorials

Install Python Fabric Library on Mac 10.6 (Snow Leopard)

I've been doing a lot of Python work lately to manage a butt-load of Linux servers and I've been using the Fabric Library to help me connect remotely and securely. I had some problems getting the library and dependencies to install on my Mac laptop so here is what I did. Add a reply if there is an easier way.

> sudo easy_install pip    # PIP is recommended for installation
> sudo -s   # Creates a new sudo shell 
> export ARCHFLAGS="-arch i386 -arch x86_64"   # Need to set some GCC flags
> pip install fabric   # Get the install on

Props go to these guys and stackoverflow for helping out.

1 min read
Web Development

CherryPy - Trac

CherryPy   - CherryPy is a pythonic, object-oriented HTTP framework.

CherryPy allows developers to build web applications in much the same way they would build any other object-oriented Python program. This results in smaller source code developed in less time.

CherryPy is now more than six years old and it is has proven very fast and stable. It is being used in production by many sites, from the simplest ones to the most demanding ones.

1 min read
Programming

Linux / UNIX: Python programming tutorial for system administrators

| Linux / UNIX: Python programming tutorial for system administrators | Generally I use Perl and Shell script for automation or to make system administration easier for me. Python is an interpreted, interactive, object-oriented programming language that combines remarkable power with very clear syntax. Python runs on Windows, Linux/Unix, Mac OS X, OS/2, Amiga, Palm Handhelds, and Nokia mobile phones.

You can easily adopt Python to manage UNIX and Linux systems while incorporating concepts of good program design. Python is an easy-to-learn, open source scripting language that lets system administrators do their job more quickly. It can also make tasks more fun:

1 min read
Tutorials

Cheat Sheet Round-Up: Ajax, CSS, LaTeX, Ruby...

170 Cheat Sheets about Ajax, Apache, Blogging,CSS, CVS, Firefox, Google, HTML/XHTML,JavaScript,Linux, MySQL, LaTeX, Oracle, Perl,PHP, Python, Photoshop Ruby, Unix, Windowx, XML

read more | digg story \<http://digg.com/programming/Cheat_Sheet_Round_Up_Ajax_CSS_LaTeX_Ruby\>__

1 min read
Programming

Python 101 cheat sheet

This is a great Python cheat sheet.

read more | digg story \<http://digg.com/programming/Python_101_cheat_sheet\>__

1 min read