[Tutor] serial -->file tranfer

2008-02-29 Thread govind goyal
Hello, I have a modem connect to my Windows XP PC through a serial cable. I Want to transfer the file(e.g '.TXT' format) from XP PC to serial modem and also from Serial modem to winXP PC. Can anybody help me out how to do it in Python and provide some sample code or useful links so that I can pro

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Chris Fuller
On Friday 29 February 2008 12:24, Dick Moores wrote: > http://www.kuow.org/real.ram . Try this to start, then turn into a service with FireDaemon, http://www.firedaemon.com/. You'll need to fill in the quit() function, and the particulars for your media player. from time import mktime, strft

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Chris Fuller
I left out the daily increment. there should be a event_time += 86400 end of the inner loop. while True: while time()http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Chris Fuller
On Friday 29 February 2008 18:25, Tiger12506 wrote: > time.sleep is not exactly accurate, so I would suggest that you use this > method, short 5 minutes or so and then do a sleep(10) or so in a loop to > get closer to the time. Another advantage to shorter sleeps is it reduces the latency of anyth

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Tiger12506
time.sleep is not exactly accurate, so I would suggest that you use this method, short 5 minutes or so and then do a sleep(10) or so in a loop to get closer to the time. >>import time >>b = '20:00:00' >> >>(bhour, bmin, bsec) = b.split(':') >>bsec = int(bsec) + int(bmin)*60 + int(bhour)*360 >>

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Dick Moores
At 03:13 PM 2/29/2008, Dick Moores wrote: At 02:09 PM 2/29/2008, János Juhász wrote: > >import time >b = '20:00:00' > >(bhour, bmin, bsec) = b.split(':') >bsec = int(bsec) + int(bmin)*60 + int(bhour)*360 > >while True: > act = time.localtime() > actsec = act.tm_sec + act.tm_min*60 + act.t

Re: [Tutor] Need help with encoder & decryption keys

2008-02-29 Thread Kent Johnson
Trey Keown wrote: > is it > possible to decompile things within a .pyc file? Yes, it is possible. There is a commercial service that will do this, for older versions of Python at least. To figure out a secret key kept in a .pyc file it might be enough to disassemble functions in the module; tha

Re: [Tutor] Need help with encoder & decryption keys

2008-02-29 Thread Alan Gauld
"Trey Keown" <[EMAIL PROTECTED]> wrote > from being isolated, and messages being intercepted. So... is it > possible to decompile things within a .pyc file? Yes its definitely possible and in fact not even difficult - the tools come with Python. Do not do that if you want real security. Use a s

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Dick Moores
At 02:09 PM 2/29/2008, János Juhász wrote: > > > I've got this so far: > > > > > > #!/usr/bin/env python > > > #coding=utf-8 > > > import time > > > b = '20:00:00' > > > while True: > > > a = time.strftime('%H:%M:%S') > > > time.sleep(0.5) > > > if a == b: > > > print "TIME!

[Tutor] Need help with encoder & decryption keys

2008-02-29 Thread Trey Keown
Hey all, Been away for a while. So, I'm in the process of making a program for encrypting and decrypting strings of text. And I was wondering how it would be possible to perhaps keep keys in a .pyc file, and keep them from being isolated, and messages being intercepted. So... is it possible to de

[Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread János Juhász
> > I've got this so far: > > > > #!/usr/bin/env python > > #coding=utf-8 > > import time > > b = '20:00:00' > > while True: > > a = time.strftime('%H:%M:%S') > > time.sleep(0.5) > > if a == b: > > print "TIME!" > > break > > It needn't to make this comparison in e

[Tutor] authentication again a crm web application

2008-02-29 Thread linuxian iandsd
hi everyone, I need to get pass throught an authentication form (username & password) to access our client CRM web application automaticaly, which means at some intervals of time i need to log in to thier web site download a specific table parse it & then load it into my mysql database. the parsing

[Tutor] ANN: Beginner Python screencasts in 'developing emol!' ShowMeDo series

2008-02-29 Thread Ian Ozsvald
Summary - Erik Thompson is creating a long screencast series aimed at new Python programmers. You will learn to build a 3D Molecule Viewer, topics covered include Classes, Design, wxPython GUIs and pyOpenGL 3D graphics: http://showmedo.com/videos/series?name=vXJsRwlBX Detail - Currently at 14 e

[Tutor] iexplore scheduler

2008-02-29 Thread Toby
to a rigorous and expert audience. It is **extremely** unlikely that you will ever find a bug in the interpreter or the built-ins if you are using a released version of Python. I've been using Python professionally since 1998 and I never stumbled upon a single bug anywhere in a released Py

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Dick Moores
At 08:40 AM 2/29/2008, Chris Fuller wrote: >On Friday 29 February 2008 06:28, Dick Moores wrote: > > I keep missing a certain weekly program on my local NPR station. My > > idea is to record it using software I have, Easy Hi-Q Recorder. I can > > set it to start recording when the program starts, 8

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote > You might want to learn how to use your OS's scheduler to do this > part. > I don't know what it is on Windows though. Start->Settings->Control Panel-Scheduled Tasks->Add New Task Starts a wizard. You can also try the 'at' command: -- C

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Chris Fuller
On Friday 29 February 2008 06:28, Dick Moores wrote: > I keep missing a certain weekly program on my local NPR station. My > idea is to record it using software I have, Easy Hi-Q Recorder. I can > set it to start recording when the program starts, 8pm, but I need to > have the program playing on my

Re: [Tutor] comparison bug in python (or do I not get it?)

2008-02-29 Thread Steve Willoughby
Kent Johnson wrote: > Hans Fangohr wrote: > >> In [2]: 2 in [1,2,3] == True On a slightly different tangent from the other answers you've received to this question, if you're using a conditional expression, don't compare it explicitly with True or False, just state the condition: if 2 in [1,2,

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Dick Moores
At 05:19 AM 2/29/2008, Tim Golden wrote: >Kent Johnson wrote: > > Dick Moores wrote: > > > >> #!/usr/bin/env python > >> #coding=utf-8 > >> import time > >> b = '20:00:00' > >> while True: > >> a = time.strftime('%H:%M:%S') > >> time.sleep(0.5) > >> if a == b: > > > > You might want

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Dick Moores
At 05:07 AM 2/29/2008, Tim Golden wrote: Dick Moores wrote: > I keep missing a certain weekly program on my local NPR station. My > idea is to record it using software I have, Easy Hi-Q Recorder. I can > set it to start recording when the program starts, 8pm, but I need to > have the program p

Re: [Tutor] comparison bug in python (or do I not get it?)

2008-02-29 Thread Luciano Ramalho
On Fri, Feb 29, 2008 at 10:21 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > No, not a bug. Don't be too quick to blame your tools! Well said, Kent. Here's a generic tip to anyone learning Python. I learned Python after working professionally with several languages for many years, including Java

Re: [Tutor] comparison bug in python (or do I not get it?)

2008-02-29 Thread Hans Fangohr
Hi Kent, > Hans Fangohr wrote: > >> In [2]: 2 in [1,2,3] == True >> Out[2]: False >> >> Why does [2] return False? Would people agree that this is a bug? > > No, not a bug. Don't be too quick to blame your tools! That's good news. I'd be worried if this wasn't the desired behaviour -- I just hadn

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Tim Golden
Kent Johnson wrote: > Dick Moores wrote: > >> #!/usr/bin/env python >> #coding=utf-8 >> import time >> b = '20:00:00' >> while True: >> a = time.strftime('%H:%M:%S') >> time.sleep(0.5) >> if a == b: > > You might want to learn how to use your OS's scheduler to do this part. > I do

Re: [Tutor] comparison bug in python (or do I not get it?)

2008-02-29 Thread Kent Johnson
Hans Fangohr wrote: > In [2]: 2 in [1,2,3] == True > Out[2]: False > > Why does [2] return False? Would people agree that this is a bug? No, not a bug. Don't be too quick to blame your tools! The equivalent expression is In [1]: (2 in [1,2,3]) and ([1,2,3]==False) Out[1]: False 'in' is conside

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Kent Johnson
Dick Moores wrote: > #!/usr/bin/env python > #coding=utf-8 > import time > b = '20:00:00' > while True: > a = time.strftime('%H:%M:%S') > time.sleep(0.5) > if a == b: You might want to learn how to use your OS's scheduler to do this part. I don't know what it is on Windows though.

Re: [Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Tim Golden
Dick Moores wrote: > I keep missing a certain weekly program on my local NPR station. My > idea is to record it using software I have, Easy Hi-Q Recorder. I can > set it to start recording when the program starts, 8pm, but I need to > have the program playing on my computer. The URL for the stat

[Tutor] comparison bug in python (or do I not get it?)

2008-02-29 Thread Hans Fangohr
Dear Python folks, here is a sequence of commands (ipython) that lead to a question. See my comments after leading '#': In [1]: 2 in [1,2,3] Out[1]: True #nothing special here, of course 2 is in the list. In [2]: 2 in [1,2,3] == True Out[2]: False #This is somewhat surprising, as one would ho

[Tutor] How to open IE7 to a certain URL?

2008-02-29 Thread Dick Moores
I keep missing a certain weekly program on my local NPR station. My idea is to record it using software I have, Easy Hi-Q Recorder. I can set it to start recording when the program starts, 8pm, but I need to have the program playing on my computer. The URL for the station's audio is http://www.