Re: [Tutor] Doing this in reverse?

2008-09-14 Thread Marc Tompkins
On Sat, Sep 13, 2008 at 6:02 PM, Alan Gilfoy [EMAIL PROTECTED]wrote: I found a script at http://code.activestate.com/recipes/65212/ that allows you to convert base 10 numbers to another base. I would like to convert non-base10 numbers to base 10. I wonder if I can do so by flipping the script

[Tutor] Simple physics simulations)

2008-09-14 Thread Jim Morcombe
I want to write a program that helps teach students how to draw ray diagrams for lenses and mirrors. Vpython seems to be used for a number of physics simulations, but may be overkill for my application. Although there are a few 3D things I would like to do, most just involves drawing curves

Re: [Tutor] Simple physics simulations)

2008-09-14 Thread Alan Gauld
Jim Morcombe [EMAIL PROTECTED] wrote I want to write a program that helps teach students how to draw ray diagrams for lenses and mirrors. For simple 2D lines and arcs then the basic Canvas widget of Tkinter or wxPython would be fine. Vpython seems to be used for a number of physics

Re: [Tutor] Doing this in reverse?

2008-09-14 Thread Kent Johnson
On Sun, Sep 14, 2008 at 3:08 AM, Marc Tompkins [EMAIL PROTECTED] wrote: The built-in int() function does what you need - give it a string representation of a number in any base 2-36; pass the base as the second argument. The return is an integer - a pure, Platonic integer - which you can

Re: [Tutor] Extracting body of all email messages from an mbox file on computer

2008-09-14 Thread Kent Johnson
On Thu, Sep 11, 2008 at 4:22 AM, grishma govani [EMAIL PROTECTED] wrote: I have the e-mails from gmail in a file on my computer. I have used the code below extract all the headers. As you can see for now I am using text stored in document as my body. I just want to extract the plain text and

Re: [Tutor] Printing Scripts with color/good formatting

2008-09-14 Thread Omer
I went through a similar process: I got used to PyWin on XP, then when switching to Vista pywin did not install with Python. So I simply downloaded and installed it. (link: http://sourceforge.net/projects/pywin32/ ) Hth, Omer. On Sat, Sep 13, 2008 at 5:41 AM, Mike Meisner [EMAIL PROTECTED] wrote:

Re: [Tutor] Hay Variables

2008-09-14 Thread Jaggo
... or maybe a dict of class[class-name]=grade On Fri, Sep 12, 2008 at 10:42 PM, Kent Johnson [EMAIL PROTECTED] wrote: On Fri, Sep 12, 2008 at 2:13 PM, [EMAIL PROTECTED] wrote: I would use a list of grades and the length of the list. or perhaps a list of (class name, grade) pairs. Kent

Re: [Tutor] Simple physics simulations)

2008-09-14 Thread Noufal Ibrahim
Jim Morcombe wrote: I want to write a program that helps teach students how to draw ray diagrams for lenses and mirrors. Vpython seems to be used for a number of physics simulations, but may be overkill for my application. Although there are a few 3D things I would like to do, most just

Re: [Tutor] Win32 extensions

2008-09-14 Thread Jeff Younker
On Sep 11, 2008, at 2:52 PM, Spencer Parker wrote: I am tasked with a project to use WMI to script something on Windows Server 2003. I was wondering if it is possible to create a script on a linux machine and use the Win32 extensions...since I need those to use WMI python module as well.

Re: [Tutor] Doing this in reverse?

2008-09-14 Thread Marc Tompkins
On Sun, Sep 14, 2008 at 4:48 AM, Kent Johnson [EMAIL PROTECTED] wrote: The docs say, If radix is zero, the proper radix is guessed based on the contents of string; the interpretation is the same as for integer literals. 'guessed' is not really a very good choice of words; 'determined' might

Re: [Tutor] Doing this in reverse?

2008-09-14 Thread Kent Johnson
On Sun, Sep 14, 2008 at 3:34 PM, Marc Tompkins [EMAIL PROTECTED] wrote: On Sun, Sep 14, 2008 at 4:48 AM, Kent Johnson [EMAIL PROTECTED] wrote: 'guessed' is not really a very good choice of words; 'determined' might be better. The last part of the sentence is the clue. You're right - if it had

Re: [Tutor] Simple physics simulations)

2008-09-14 Thread Chris Fuller
You could also try out PyGeo, which is based on VisualPython. You could also use a geometry application like Kig, which has Python scripting support. http://pygeo.sourceforge.net/ http://edu.kde.org/kig/ Cheers On Sunday 14 September 2008 02:46, Jim Morcombe wrote: I want to write a program

Re: [Tutor] Doing this in reverse?

2008-09-14 Thread Marc Tompkins
On Sun, Sep 14, 2008 at 2:29 PM, Kent Johnson [EMAIL PROTECTED] wrote: On Sun, Sep 14, 2008 at 3:34 PM, Marc Tompkins [EMAIL PROTECTED] wrote: On Sun, Sep 14, 2008 at 4:48 AM, Kent Johnson [EMAIL PROTECTED] wrote: 'guessed' is not really a very good choice of words; 'determined' might be

Fat Injections For Buttock Enhancement

2008-09-14 Thread Crystal Ray
Fat Injections For Buttock Enhancement Fat injections to the buttocks is an alternative treatment to traditional buttock (gluteal) implants. Fat injections use the patient's own tissues and one gets the bonus of cosmetic reduction in the harvest site as well. Fat grafts, however, have a

[Tutor] Practice exercise sources

2008-09-14 Thread btkuhn
Hi guys, I'm new to programming and have been learning Python as suggested by a friend as a good language to start with. I bought the Learning Python book from O'Reilly and I'm about 2/3 of the way through, and I've also read through 2 intro tutorials on the web. At this point, I understand