Re: [Tutor] Need help with sockets

2008-04-19 Thread Alan Gauld
"James Duffy" <[EMAIL PROTECTED]> wrote > C# so I just need a client side program that can listen for and > display > incoming messages as well as send messages. Ive managed to make a > socket and > connect but I don't know how to setup a listen thread and a sender > function. Tale a look at

Re: [Tutor] Setting the PC Clock to Correct Time

2008-04-19 Thread Dick Moores
At 10:40 AM 4/19/2008, Chris Fuller wrote: I just checked my laptop (XP Pro), and you can set the time server (or use the default), but it only updates once a week.  So your computer's time could be off by thirty seconds by the time of the next synchronization.  It might be enough, but you als

Re: [Tutor] Recursion doubt

2008-04-19 Thread Jos Kerc
Hi, you are tackling 3 "heavy" subjects in just 1 go! graphs :a triving math society would approve your choice. But you might start with the *slightly* less difficult challenge: trees. I do not know your math/programming background, so the following link can perhaps enlighten you: http://www.brpr

[Tutor] Need help with sockets

2008-04-19 Thread James Duffy
For a part of a program, I need to send a text string to another machine in a IM style app. I've done this in C# but never in python. The server is in C# so I just need a client side program that can listen for and display incoming messages as well as send messages. Ive managed to make a socket and

Re: [Tutor] Executing from Python prompt

2008-04-19 Thread Alan Gauld
"kinuthia muchane" <[EMAIL PROTECTED]> wrote > I do not know what I am doing wrong. When I run the following code > from > the Python prompt it executes without a murmur. But when I save it > as > a .py file and try to execute it from the shell, it just returns the > prompt...actually it is all

Re: [Tutor] Setting the PC Clock to Correct Time

2008-04-19 Thread Alan Gauld
"Wayne Watson" <[EMAIL PROTECTED]> wrote Is there some function that will fetch the correct time from the internet and reset the clock? I'd like to reset the clock each time the program is activated at dusk. That should be standard in your S. If its Windows you do it via the Internet Time tab o

Re: [Tutor] Executing from Python prompt

2008-04-19 Thread bob gailer
kinuthia muchane wrote: > Hi, > > I do not know what I am doing wrong. When I run the following code from > the Python prompt it executes without a murmur. But when I save it as > a .py file and try to execute it from the shell, it just returns the > prompt...actually it is all scripts that return

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-19 Thread Marc Tompkins
Just as a followup - I ended up using a Python script to recurse through the folders of files and, for each file found, extract the doctor/date/medical record number from the filename, then run a Word macro on the file to insert the header slug. If anyone ever needs to do something similar, or ju

Re: [Tutor] Executing from Python prompt

2008-04-19 Thread kinuthia muchane
Hi, I do not know what I am doing wrong. When I run the following code from the Python prompt it executes without a murmur. But when I save it as a .py file and try to execute it from the shell, it just returns the prompt...actually it is all scripts that return a value which are behaving in this

Re: [Tutor] Setting the PC Clock to Correct Time

2008-04-19 Thread Chris Fuller
I just checked my laptop (XP Pro), and you can set the time server (or use the default), but it only updates once a week. So your computer's time could be off by thirty seconds by the time of the next synchronization. It might be enough, but you also need to be aware so you aren't confused int

Re: [Tutor] Setting the PC Clock to Correct Time

2008-04-19 Thread Chris Fuller
On Saturday 19 April 2008 10:45, Wayne Watson wrote: > I have a Python program that runs 24/7, but is activated around dusk and > de-activated from its task around dawn. My clock drifts about 4 sec/day. > Is there some function that will fetch the correct time from the > internet and reset the cloc

Re: [Tutor] Setting the PC Clock to Correct Time

2008-04-19 Thread jay
Wayne, Is this a Linux box? If so, you might consider setting up NTP to sync to an outside time source. We do that here and it works quite well, even accounting for drifting. If this is a Windows machine, I believe those are already synced with the PDC, if joined to a Domain, but I might be wro

[Tutor] Setting the PC Clock to Correct Time

2008-04-19 Thread Wayne Watson
I have a Python program that runs 24/7, but is activated around dusk and de-activated from its task around dawn. My clock drifts about 4 sec/day. Is there some function that will fetch the correct time from the internet and reset the clock? I'd like to reset the clock each time the program is a

Re: [Tutor] web programming tutorials?

2008-04-19 Thread Alan Gauld
"Monika Jisswel" <[EMAIL PROTECTED]> wrote > reading theses emails i have a question : > ikaaro or zope - what's best ? which one is the most used ? They are very different animals as far as I can rtell. In terms of usage there is nom doubt Zope is more poular, you can tell that by the fact t