Script to Download Ubuntu Gutsy ASAP

2007-10-17 Thread danfolkes
I thought I would post the source to a program that I made that will download the http://ubuntu.media.mit.edu/ubuntu-releases/gutsy/ as soon as its posted. It checks the site every 10 min time.sleep(600) This is mostly untested so I would appreciate comments, and if you use it, post that too! :)

Why does the message send only once?

2007-10-16 Thread danfolkes
Why does the message send only once? The node sends once, then fails after that. import socket import thread import time def Node(nodeAddress): '''connect to node and get its file load''' sN = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Echo client program HOST = nodeA

Script to get the current Woot.com Product.

2007-10-16 Thread danfolkes
Hey, I just decided to check out urllib. This script gets the Woot.com product of the day and prints it. from urllib import urlopen docu = urlopen("http://www.woot.com";).read( ) woot = docu[docu.find("")] print woot - Daniel Folkes http://danfolkes.com [EMAIL PROTECTED] -- http://mail.p

Re: while statements

2007-10-16 Thread danfolkes
On Oct 16, 9:28 am, Shawn Minisall <[EMAIL PROTECTED]> wrote: > I just learned about while statements and get why you place them around > inputs for validation, but I'm a little lost on exactly where to place > it with what condition in this program where the number of fat grams > exceeds the total

Trying to Send Repeated Messages to a Server Using sockets

2007-10-16 Thread danfolkes
Hey Everyone, I am trying to send repeated messages from a "Node" to a "Server". It works the first time I send the from the Node to Server, but after that it either errors, or does not do anything. I would love some help, here is the code: import socket import thread import time def Node(nod

Re: Web Programming thru python

2007-09-17 Thread danfolkes
I have been wondering the same thing. I know you have to load the mod_python into apache. But I failed on setting that up. I run an ubuntu server. But I would check out a site like this: http://webpython.codepoint.net/mod_python -Daniel On Sep 17, 7:14 am, python_lover <[EMAIL PROTECTED]> wr