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
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
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
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
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
>>
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
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
"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
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!
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
> > 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
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
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
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
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
"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
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
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,
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
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
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
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
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
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
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.
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
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
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.
28 matches
Mail list logo