Python and TCL

02 July 2008

In this post I write a function for finding the nearest neighbours in a list for both Python and TCL.

Read More

SFTP in Python: Really Simple SSH

29 May 2008

In this article, I explain how to use ssh.py, my really simple to use SSH module.

Read More

SFTP in Python: Paramiko

28 May 2008

In this post, I attempt to copy a file over SFTP using Python and the Paramiko SSH module.

Read More

Is Django stable?

25 May 2008

A friend of mine keeps asking "but is it stable?" whenever Django is mentioned. In this post I explore the question.

Read More

List files recursively by modified time

22 May 2008

In this post I share my little command-line Python application for getting back up to date with a project directory.

Read More

An Introduction to ReStructuredText

17 May 2008

In this post I explain what ReStructuredText is, and demonstrate example ReStructuredText markup.

Read More

ReStructuredText in Django

16 May 2008

In this post I reply to user feedback and explain how to use ReStructuredText in Django.

Read More

How not to program WSGI

12 May 2008

In this post I explain how, (perhaps to my shame), I hacked PyBlosxom to serve robots.txt. Kids, do not follow at home.

Read More

Email Syntax Check in Python

03 May 2008

Sometimes you may want to check that an email address is not syntactically invalid, i.e. it looks like a recognisable email address. In this post I examine a couple of ways of doing that.

Read More

Twelve commandments for Beautiful Python code

25 April 2008

In this article, I argue that the benefits of reading Python code in a standardised format outweigh any benefits of bespoke code styles. I then look at 12 rules that will make your code your Python code more readable,

Read More

Sharing our scripts together

15 April 2008

In this post I talk about a project on Launchpad called "Eden" for sharing of specialised but useful scripts.

Read More

Scripting Twitter with Python

09 April 2008

Twitter is a social networking service where users can write a sentence (maximum 140 characters) about themselves. It also has an API that we can use to receive and send data from Twitter.

Read More

Using OpenOffice History at the Command Line

07 April 2008

In this post I write a Python module to print out all the stored OpenOffice document history.

Read More

OOXML Vote: The Python Script Walkthrough

27 March 2008

I talk about my Python script that allowed me to produce live updates of the vote in the OOXML standardisation process.

Read More

Scripting the National Lottery: Part One

25 March 2008

I had a chat with an older lady about the British National Lottery. She buys six tickets for each draw, one for everyone in her family. So the question is what she is getting in return for the ticket price? Lets write some Python scripts to find out.

Read More

Setting up a bazaar server

24 February 2008

So last year I wrote a little tutorial about using bazaar for my own personal projects. Please read that if you have no idea what I am talking about.

This weekend I started working on a project with a small group of friends. Therefore we decided to create a bzr server so we can all track the code that we are writing together.

Read More

Baby Steps with Django - Part 4 Django Applications and flow

18 February 2008

In the previous installment of this series, I explained that a Django site is normally organised into a 'project' which contains 'applications'.

We started a new Django 'project' (i.e. a website). This was a directory with a few files in. The most interesting were settings.py, the project's settings, and urls.py which maps URLs to functions.

Read More

Baby Steps with Django - Part 3 Django projects

02 February 2008

In this post we start our Django project and configure the settings.py and urls.py files.

Read More

Baby Steps with Django - part 2 database setup

25 January 2008

So I introduced this series seven months ago, oops! Oh well, let's get started.

Read More

Three Useful Python Bindings - ClamAV, Apt and Evolution

01 December 2007

Python is not just cool because it easy to code with, it also has loads of bindings to almost every major open source project, (as well as to some famous proprietary software that we don't care about here).

Read More

Older

About

Hello, my name is Zeth, I'll be your host here.

Command Line Warriors is about taking control of your own technology, it looks at our experiences of computing; especially using GNU/Linux, the Python programming language, the command-line and issues such as techno-ethics, best practices and whatever is cool now. If you take control of your technology then you are a Warrior too!

This site is your site too which means that you can contribute and get involved. You can leave comments using the facility provided. For me, the comments and discussions are by far the best part of the site. So please do have your say!

Latest Discussions

Kurushiyama

June 30, 2008
XML is no replacement for SGML, it's a subset.
An Introduction to ReStructuredText

Peter

June 27, 2008
This is pretty nice, maybe if an mget or mput could be added it would really improve its use. not sure how to do that couldn't figure it out using ...
SFTP in Python: Really Simple SSH

Bryce

June 25, 2008
Sorry to comment on an older post, but I wanted to point out that you misunderstand the purpose of at least two of the extensions you mentioned: Foxmarks and Greasemonkey. ...
Will Epiphany be able to compete with Firefox's extensions?

The Dude

June 24, 2008
1. Green Eggs 2. Ham 3. *things* .. _Here: http://google.com/
An Introduction to ReStructuredText

S.

June 20, 2008
A space is .25 of a level??? Instead of tabs or spaces, or tabs being so many spaces, there should be a "level" character, where one character equals one level ...
Twelve commandments for Beautiful Python code

jk

June 20, 2008
First, excuse my english. I was using firefox like every body else, until one day i look on Top command utility (system monitor) that firefox was using 190Mb of my ...
Epiphany and Webkit 2008

Tom

June 17, 2008
find -exec is nice, but escaping can become complicated if you want to execute, say, awk using a weird pattern. My preferred way is not elegant at all but very ...
Five Tips for Easter

Casual reader...

June 16, 2008
"Firstly, sending your friend a 6 MB file over the network, is nothing like murder. " It is true that sending your friend a file over the network is nothing ...
Filesharing is the democratic choice

Adam Bielinski

June 15, 2008
I like using epiphany because it's fast and lightweight, and is more intuitive in a GNOME environment. I don't think extensions are everything.
Will Epiphany be able to compete with Firefox's extensions?

Kewlmyst

June 12, 2008
Hmmm ... I have been rsync for a long time just to do back ups, but be aware that if you put the --delete option, and have a nice cron ...
Backing up my laptop

yegle

June 12, 2008
@Zeth Hello Zeth,can you share your script you mentioned about the Six degrees of separation?I'm so intrested about it~ And, this is really an excellent work !Thank you for shareing ...
Twitter and GNOME integration

Orlandus

June 9, 2008
Well, if they offer only an object-code-only license.and no object code, then I suppose nobody is legally entitled to have the software at all.
Are your Firefox extensions proprietary software?

Swashbuckler

June 5, 2008
"object code is a C term." Uh no. It's any compiled language.
Are your Firefox extensions proprietary software?

Craig

June 4, 2008
Here's a thought: I don't recall ever being asked to agree to a EULA before downloading a Firefox add-on. Maybe I just haven't downloaded any proprietary ones, but I think ...
Are your Firefox extensions proprietary software?