Re: [Tutor] how to read over serial port

2008-11-03 Thread Brian C. Lane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 shawn bright wrote: > Forgot some info, > i hooked the device up and used a serial terminal and got back stuff like this > !^V$G(R)±LL,3602.0960,N,10229.2959,W,r$4013,V*2E > some of the above is what i am looking for. > Ok, that looks bad. You have s

Re: [Tutor] how to read over serial port

2008-11-02 Thread Brian C. Lane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 shawn bright wrote: > Hey there all, > > I have a gps device that talks to the computer over a serial port. > i am using the pyserial module and getting values in. Here are the relevant bits of a serial to tcp/ip app that I use. Most likely you have

Re: [Tutor] Read same instance twice

2008-10-27 Thread Brian C. Lane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Øyvind wrote: > Hello. > > I am trying to gather some information from a webpage: > > side = urlopen("http://www.website.no";) > rawstr = r"""spy.target="_top">(.*?)$""" > rawstr2 = r"""spy.target2="_top">(.*?)$""" > > compile_obj = re.compile(rawst

Re: [Tutor] Edit a Word document programmatically

2008-10-14 Thread Brian C. Lane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 URBAN LANDREMAN wrote: > Good morning, > > I'm trying to write some Python code to programmatically do a Find and > Replace of a string within a Microsoft Word document. > Any suggestions on where I could look to find how to do such a function? > Ta

Re: [Tutor] bug in exam score conversion program

2008-10-04 Thread Brian C. Lane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David wrote: > Hello!! > > I just completed exercise 7 (chapter 4) in Zelle's book: > "A certain CS professor gives 100-point exams that are graded on the > scale 90–100:A, 80–89:B, 70–79:C, 60–69:D, 60:F. Write a program that > accepts an exam score