jump to navigation

A Generic CLI Dispatcher module for Python May 30, 2007

Posted by samwyse in Scripting.
1 comment so far

Here’s a little script that makes it easy to create command line interpreters (CLIs). Creating a CLI framework is one of my usual benchmarks when I learn a new programming language. It usually requires a bit of in-depth knowlege, yet is easy to code in only a day or so. In this case, it took a bit longer but it was worth it in the end because it taught me more about decorators. (more…)

Book info script May 26, 2007

Posted by samwyse in Scripting.
add a comment

The Problem

I like books. I like them a lot. Over the years, I’ve collected a large number of books. And now I want to get rid of some of them.

A lot of them I’m giving to Goodwill, but there are several sets that all deal with one topic or another. As I was packing some of these for transport, it occured to me that someone else may want to buy some of my books, so I needed to write an ad. Of course, good ads are packed with useful information about the product being sold, and collecting that data for a collection of random books is a bit labor intensive.

So, I wrote a Python script.

(more…)

About Linux Meta-distros, part 2 May 11, 2007

Posted by samwyse in Reviews.
add a comment

Yesterday, I discussed my experiences with rPath, and the one thing that I dislike about it. (Fortunately, the developers are aware of the problem and seem to be working on it.) Today I’m going to discuss Linux From Scratch, aka LFS.
(more…)

About Linux Meta-distros May 10, 2007

Posted by samwyse in Reviews.
2 comments

In the beginning, to use Linux you had to download and compile a kernel, and then download and compile any programs that you wanted to use. This was a tedious and error-prone process, so after a while someone came up with the idea of the “distribution”, aka “distro”. This combined a pre-compiled kernel, a selection of other software, and a process for installing everything onto disk. Since the process of building a distro was still tedious and error-prone, many of the largest are supported by commercial ventures, such as Fedora Project (Red Hat), openSUSE (Novell), Ubuntu (Canonical, Ltd) and Mandriva Linux (Mandriva).

(more…)