Entries Categorized as 'Programming'

Bash Variables

Date August 17, 2006 by Isaac

Character
Definition
$*
Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, it expands to a single word with the value of each parameter separated by the first character of the IFS special variable.

$@
Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, each parameter [...]

Using find in Linux

Date August 11, 2006 by Isaac

The find command is Linux is seriously cool. It allows you to do so much more than simply locate where a file lives. You can also do nifty stuff like delete all the temporary files on your whole hard drive, find broken links, delete empty files, search within files, and more. You [...]

Creating PDF’s in Python

Date July 25, 2006 by Isaac

Whatever your role or occupation there are doubtless times where you need to write a report. Most of the reports that I turn in are unique and need to be manually generated. However, my weekly test status report is pretty much the same every week and basically its just the stats that change.
Poking [...]

Results Comparison in PyFIT Fixtures

Date June 26, 2006 by Isaac

I’m not sure if this is the intended behavior or not, but I found a “feature” in PyFIT that had me smashing the keyboard with my face. According to the PyFIT documentation you should be able to create a table like this:

|TestClass|
|InputString |OutputNum |
|Hello World [...]

Running FitNesse tests from the command line with PyFIT

Date June 21, 2006 by Isaac

I’m really starting to get into this whole FIT/FitNesse thing. Creating test cases is now easy and my managers love the HTML documentation and results that come out of the tools. Until now I’ve just been using FitNesse, but thanks to the hard work of Grig Gheorghiu and John Roth (the PyFIT author) [...]

Bit by Unicode

Date June 21, 2006 by Isaac

I was pretty proud of my latest Python script, which was designed to test a CORBA object. However, when I tried to run the script it gave me some obfuscated errors and died. So, for the last couple days I’ve been trying to figure out why my script was dying. It turns [...]

Using fixtures from within a SequenceFixture

Date June 12, 2006 by Isaac

The FIT SequenceFixture is essentially the same as a DoFixture. I just like the way commands are written better. One of the cool things about a SequenceFixture (or DoFixture) is that it allows you to use other fixture types from within. So, you could have a RowFixture running some tests then decide [...]

Mounting a remote SSH filesystem

Date June 5, 2006 by Isaac

On a typical project there are many different computers that I must use. For years I have been using scp to copy files from one computer to another and wishing for a way to just mount the SSH filesystem. Well, my wish finally came true!
The good news is that thanks to sshfs I [...]

What not to do when importing Python modules

Date May 24, 2006 by Isaac

Let’s see, this would be stupid mistake number 23,320,594,283 for me so far this year….
If you haven’t yet discovered it, IPython is the greatest thing since sliced bread. Come to think of it, I think it’s better than sliced bread. Anyway, in my typical Python development cycle I have one console open with [...]