Re: help

2006-04-27 Thread NavyJay
For such a simple task, I would use MATLAB. http://www.mathworks.com/products/matlab/ However, if you have to do generic programming in addition to this, I would use Python with the libraries ImageMagick or Python Image Library (PIL). Just search for them and you'll have all the examples you need

Re: How could I ask Thread B to call B().Method() from inside Thread A's run?

2005-11-30 Thread NavyJay
I agree with jmj's solution, you would want to send a signal of some sort to Thread B from A when some event occurs in A. A queue is one way to do it, but keep in mind that there are numerous ways to communicate between threads/processes (queue, pipe, exit status, TCP/UDP message, etc.). I believ

Re: Automate decryption using GnuPGInterface

2005-11-30 Thread NavyJay
Are you able to run a dummy Python script using crontabs? For troubleshooting purposes, I would verify this before trying to debug my code. Check your permissions, paths, etc. Can you post your entry into cron? What exactly happens when it "blows up"? -- http://mail.python.org/mailman/listinf

Re: XML processing

2005-11-30 Thread NavyJay
I haven't used PyXML extensively, but I have used parts of the Amara XML Toolkit (http://uche.ogbuji.net/uche.ogbuji.net/tech/4suite/amara/) and recommend it for elegance. I can't say, however, which tool is faster. There are many other XML modules that people have written for Python. Do your re

Re: Stretching a bitmap

2005-11-17 Thread NavyJay
Try ImageMagik: http://www.imagemagick.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__ method and raising exceptions

2005-04-02 Thread NavyJay
Or better yet, define your own string/class exception to catch your errors. In my code, things can break in more than a few ways. In each case I catch the exception(s) specific to that piece of code, print a warning message to the user at sys.stdout and raise a new exception to be caught by my "w

Re: __init__ method and raising exceptions

2005-04-01 Thread NavyJay
Exactly the answer I was looking for! 12 hours of straight programming tends to fog ones mind. Thanks for making it clear! Jay -- http://mail.python.org/mailman/listinfo/python-list

__init__ method and raising exceptions

2005-03-31 Thread NavyJay
I have a simple for-loop, which instantiates a class object each iteration. As part of my class constructor, __init__(), I check for valid input settings. If there is a problem with this iteration, I want to abort the loop, but equivalently 'continue' on in the for-loop. I can't use 'break' or '