Re: Way to get an array of latitude/longitude points (tuples) from a trip

2006-05-31 Thread kbperry
> The problem is not the latitude/longitude. It would be trivial to > compute the great circle, thus the length of the trip between A and B > and divide it in smaller pieces to get 1-mile-distances. Yeah, I am starting to wish we drove in straight lines. > But unless you own an Aircraft & are

Way to get an array of latitude/longitude points (tuples) from a trip

2006-05-30 Thread kbperry
I am not sure if this is the right place for this, but I thought it was worth a shot. What I want: Enter a From: street address and a To: street address, and then specify an interval (say every half mile). Then, I click a submit button, and it gives me latitude and longitude points (in order) fr

Re: win32com.client.constants - AttributeError

2006-04-21 Thread kbperry
Wow..I didn't even realize that this existed. Thanks for your help! -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com.client.constants - AttributeError

2006-04-21 Thread kbperry
Please help! Anyone else know? -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com.client.constants - AttributeError

2006-04-21 Thread kbperry
how do I do this? Where is the Word object library? -- http://mail.python.org/mailman/listinfo/python-list

win32com.client.constants - AttributeError

2006-04-20 Thread kbperry
On my machine, this runs fine, but when I try to run it on someone elses machine it blows up with an attribute error: import win32com.client, pythoncom pythoncom.CoInitializeEx(pythoncom.COINIT_APARTMENTTHREADED) myWord = win32com.client.dynamic.Dispatch ("Word.Application") myWord.Visible = Tru

Using pyinstaller to create an .exe, when using win32com

2006-04-11 Thread kbperry
Hi all, I am pretty confused on this? While pyinstaller has a "MakeCOMServer.py" thing, it seems to blow up every time I run it. It keeps complaining that a dictionary that I have has "TypeError: unscriptable object.", but when I run my code normally (outside of trying to make an .exe), it runs p

Re: Exception handling....dumb question?

2006-03-31 Thread kbperry
Thanks guys! I appreciate the help. I have a Python book, but it didn't mention this at all. I also tried looking through the online docs to no avail. -- http://mail.python.org/mailman/listinfo/python-list

Exception handling....dumb question?

2006-03-31 Thread kbperry
In Python, When using the default except (like following) try: some code that might blow up except: print "some error message" Is there a way to show what error it is throwing? Like in Java, you can do catch (Exception e){ System.out.println(e); } Or something like that. Is there

Re: Convert Word .doc to Acrobat .pdf files

2006-03-31 Thread kbperry
The question is where is the API? -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE for Python?

2006-03-31 Thread kbperry
To me, it just doesn't behave the same way as Eclipse for java. I have used the plug-in, and I usually use it on my home machine ( I am still a student). For example, in Java eclipse, if you import a module like math, then if you want to use a math function, you just type math + period, and then

Re: Best IDE for Python?

2006-03-31 Thread kbperry
I have recently been trying out NewEdit, and it is a pretty good "IDE" for Python. The reason that I have it in quotes is because I haven't really found a true IDE (like the way Eclipse behaves for Java) for python. (I realize that Eclipse has a plug-in for Python, too). -- http://mail.python.o

Re: Convert Word .doc to Acrobat .pdf files

2006-03-30 Thread kbperry
Justin, Your way appeared to work great, but now I just realized that the using the printer way destroys the table of contents and bookmark links. Rune's way would be perfect, but I don't see a macro created like that. I tried to create one from scratch, but it didn't work. I am now trying to se

Re: Convert Word .doc to Acrobat .pdf files

2006-03-29 Thread kbperry
Wow...thanks again for the replies! I will try both of these out at work tomorrow. (I only work 3 days a week because of school). Thanks, Keith www.301labs.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert Word .doc to Acrobat .pdf files

2006-03-28 Thread kbperry
Justin, While I was salivating when reading your post, it doesn't work for me, but I am not sure why. I keep getting an error: Titled: Adobe PDF "When you create a PostScript file you have to send the host fonts. Please go to the printer properties, "Adboe PDF Settings" page and turn OFF the opt

Re: Perforce p4c.run("print" error - AttributeError: OutputBinary

2006-03-28 Thread kbperry
This seemed to fix my problem. Keith www.301labs.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Perforce p4c.run("print" error - AttributeError: OutputBinary

2006-03-28 Thread kbperry
I received a response from Robert Cowham ( the author of the API): The problem is that something like print was only expected to be done for text files not binary. You could try editing p4.py and add a method similar to: def OutputText(self, text): "Adds text lines to the output data

Perforce p4c.run("print" error - AttributeError: OutputBinary

2006-03-28 Thread kbperry
Hi all, I am getting an error message when trying to use the P4 print command via the python api for perforce. Anytime that I run p4c.run("print","-q", eachFile), I keep getting an error message: "AttributeError: OutputBinary." Here is my code below: Please Help. import p4 #import perforce mo

Re: Convert Word .doc to Acrobat .pdf files

2006-03-23 Thread kbperry
Thanks again Duncan! I will use the OpenOffice solution as a last resort. It isn't the standard office suite at my corp. I would like the code to be as portable as possible, and it would seem like a pain in the arse to have the end user install OpenOffice just to run my script. Sure it would ju

Re: Convert Word .doc to Acrobat .pdf files

2006-03-23 Thread kbperry
Thanks for the replys! I need to stick with Word (not my choice, but I would rather keep everything like he has it). Duncan, I was just trying the printing thing. When installing Adobe Acrobat, it installs a printer called "Adobe PDF," and I have been trying to print to there, but the "Save" win

Convert Word .doc to Acrobat .pdf files

2006-03-23 Thread kbperry
Hi all, Background: I need some help. I am trying to streamline a process for one of our technical writers. He is using Perforce (version control system), and is constantly changing his word documents, and then converts them to both .pdf and "Web page" format (to publish to the web). He has a l

Re: Zope/Plone - Is it the right solution?

2006-02-21 Thread kbperry
Rene and Tim, Thanks for the help! I am glad that I didn't rule out Plone yet because I was able to download and install quickly. My "site" was up and running very quickly. For this class we are more focused on the HCI/usability stuff than we are the coding. I have plenty of other classes that

Re: Zope 3?? How do you start it on Windows?

2006-02-21 Thread kbperry
Many good points! Thx Matt. -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope/Plone - Is it the right solution?

2006-02-21 Thread kbperry
Well, I guess our main goal in this class is to improve usability and user experiences at the site. While we want to improve our site visually and make it more usable to the prospective students, the site needs to be easily updated. I don't think that I am looking for a wiki. I will definitely c

Re: Zope 3?? How do you start it on Windows?

2006-02-21 Thread kbperry
Cool thx Matt. I did finally figure it out, but barely. Why would you want to download and install Zope without creating an instance? It seems kind of dumb to me. -- http://mail.python.org/mailman/listinfo/python-list

Zope/Plone - Is it the right solution?

2006-02-21 Thread kbperry
Hi everyone, I am currently a student, and for our HCI class project we are redeveloping our CS website. I attend a very large university (around 30,000 students), and the CS site will need to be updated by many people that don't have technical skills (like clerical staff). The biggest problem wi

Zope 3?? How do you start it on Windows?

2006-02-20 Thread kbperry
Call me crazy and stupid, but how do you start zope? I downloaded the thing, installed it, and then nothing. I can find a stupid README.txt that is useful. Can someone help?Please! Thx. -- http://mail.python.org/mailman/listinfo/python-list