Hi,
I am currently working my way through the .pdf Byte of Python tutorial by
Swaroop, C H
After about 1/2 way I ran into a problem that my own trouble shooting has
failed :-(.
The script created is for backing up files into a .zip format. It is written
by the
author in a *nix environment.
marty,
i applaud you in your efforts to port this script to the Win32
platform. the task is not as simple as one may expect, due to the
differing file pathname nomenclatures that the different operating
systems use.
because of this, i have a couple of suggestions:
1. highly recommend converting
Is this the right forum to ask a jython question?
I want to get started on using GUI with my python apps and I already
study Java so I thought maybe I should combine the two. I did some
playing around with it so far and I like what I see. I'll post my code
if you guys handle this.
Any thoughts?
On Fri, Dec 5, 2008 at 3:51 AM, Marty Pitts <[EMAIL PROTECTED]> wrote:
> #5. We use the zip command to put files in a zip archive
> zip_command = "c:\Users\Marty\Zip\Zip -!rv '%s' %s" % (target, '
> '.join(source))
It might help to print zip_command, to make sure it is what you
expect. You can
I am starting out with 7 fixed reference points. From there I want a
program that can randomly
generate linear equations. After the equations are generated I would then
like to randomly insert
the 7 fixed reference points into the equations and calculate the results.
I currently have seve
When you say linear, I'm assuming fitting y=mx+c, and passing through
points?
The line through points (x1, y1) and (x2,y2) is
y - y1 = (y2-y1) / (x2-x1) * (x-x1)
That multiplies out to:
y = (y2-y1)/(x2-x1) * x - (y2-y1)/(x2-x1) + y1
That gives m = (y2-y1)/(x2-x1) and c = y1 - (y2-y1)/(x2-x1
Hey all.
I have a rather large app that uses 14 threads that all run at the same time.
i use threading.Thread().start() to set them off.
each one runs somthing like this
def run():
while 1:
do a bunch of stuff
time.sleep(60)
i have the option i guess of having fewer thread
"shawn bright" <[EMAIL PROTECTED]> wrote
I have a rather large app that uses 14 threads that all run at the
same time.
each one runs somthing like this
def run():
while 1:
do a bunch of stuff
time.sleep(60)
i have the option i guess of having fewer threads, and just calling
Marty Pitts a écrit :
Date: Fri, 5 Dec 2008 23:48:32 +0100
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [Tutor] Writing to a file problem
zip_command = "c:\Users\Marty\Zip\Zip -!rv '%s' %s" % (target, ' '.join(source))
What if you just double the '\' -- you did it properly