Re: [Tutor] Dynamically naming functions
Ed Singleton wrote: > How does one go about creating functions, classes, or callable objects > when you don't know their name in advance? (For example you want to > read their names in from a text file or database). > > I want to use this in a few different places. For example Faces, the > Python Project Management Planner Tool Thingy, uses nested functions > to put tasks within a project: > > def MyProject(): > start = "2006-03-06" > resource = Me > > def Task1(): > start = "2006-03-13" > > def Task2(): > effort = "1w" > > I'd like to load these from a database (using SQLObject), but I'm not > sure how I can define the name of the function from a filed in a > database (or read in from a text file). Hi Ed, I was just wondering how this came out - did you find a way to generate these functions dynamically? Or change Faces? Or give up? Thanks, Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] How do I monitor running processes?
Is there a command that will monitor all running processes/programs(on Windows ME)? I'd like to make a program that makes a beep when an unrecognized process, such as an adware program, is running. That way I'd know immediately when one of these stealth programs not on my safe list has installed itself. Jack ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] compilte python to an executable file.
hi all, Does anyone know how to compile a python filename.py to an executable file? thanks, phon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] compilte python to an executable file.
On 27/03/06, Keo Sophon <[EMAIL PROTECTED]> wrote: > hi all, > > Does anyone know how to compile a python filename.py to an executable file? Google for py2exe. Note, though, it doesn't really "compile" your script. Rather, it bundles up the interpreter and all the flies needed to make it go. It still means you can run your programs on Windows systems without python installed, though. -- John. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] compilte python to an executable file.
> On 27/03/06, Keo Sophon <[EMAIL PROTECTED]> wrote: > > hi all, > > > > Does anyone know how to compile a python filename.py to an executable file? > > Google for py2exe. > > Note, though, it doesn't really "compile" your script. Rather, it > bundles up the interpreter and all the flies needed to make it go. It > still means you can run your programs on Windows systems without > python installed, though. > > -- > John. == I was kinda wondering about that too. Isn't there any other way to get your program compiled into standalone machine code? Would a py2exe program be practical for a commercial program? I'd think people could read your source code too easily. -Jack ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] compilte python to an executable file.
On Monday 27 March 2006 10:38, Ars wrote: > > On 27/03/06, Keo Sophon <[EMAIL PROTECTED]> wrote: > > > hi all, > > > > > > Does anyone know how to compile a python filename.py to an executable > > file? > I don't know how python creates executable file. The purpose is to have the program written in Python can run on Linux and Windows and Mac (if possible). thanks, phon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] How do I monitor running processes?
[Ars] | Is there a command that will monitor all running | processes/programs(on Windows ME)? I'd like to make a | program that makes a beep when an unrecognized process, such | as an adware program, is running. That way I'd know | immediately when one of these stealth programs not on my safe | list has installed itself. I don't know if there's anything absolutely foolproof; I imagine that stealth-type programs know pretty much all the tricks. However, to answer your question in the most general way: you might try looking at WMI. I don't know how much information I need to give you, because you haven't indicated what level of expertise you have, but if you're coming from zero, then start with the Microsoft WMI page (tinyurl link to a Microsoft page): http://tinyurl.com/awq7 and then at the WMI module for Python: http://timgolden.me.uk/python/wmi.html ( yes, that is my name in the URL) and specifically at this example: http://timgolden.me.uk/python/wmi_cookbook.html#watch_notepad whicih gives you a simple example of how you set up a WMI watcher to monitor a particular thing, in this case a process. You can generalise it by watching for, in your case, Creation rather than Deletion, and by removing the ProcessId parameter which is narrowing it down to just the notepad.exe process which the example creates. You could check, for example, the Caption or Name or Description attributes, all of which seem to hold the .exe of the running program. Be warned: I don't know how much of an overhead this will have on the system. Try it cautiously before implementing it for real. TJG This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Authen::ACE
[Asif Iqbal] | Does anyone know if there is any python module similar to Authen::ACE | available that I can use to authenticate against a RSA SecurID server? I don't believe there is, I'm afraid. Certainly, if a Google for python securid doesn't turn anything up, it's not likely. However, it's a specific enough question that you might want to ask on the main Python newsgroup comp.lang.python (or its mirrored mailing list at: http://mail.python.org/mailman/listinfo/python-list or its equivalent Google Group: http://groups.google.com/group/comp.lang.python?hl=en TJG This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor