Re: passing Python data to a javascript function

2013-08-09 Thread engg
On Thursday, October 27, 2011 9:25:28 AM UTC+5:30, Chris Angelico wrote: > On Thu, Oct 27, 2011 at 2:51 PM, Bill Allen wrote: > > > Chris, > > > > > > Wow, that seems so simple now that I see it.  I was dancing around that all > > > day, but just not landing on it.   Thanks so very much for th

Data transfer from Python CGI to javascript

2013-08-09 Thread engg
I have written the following program #!c:\Python27\Python.exe import cgi, cgitb; import sys, serial cgitb.enable() ser = serial.Serial('COM27', 9600) myvar = ser.readline() print "Content-type:text/html\n\n" print """ Real Time Temperature window.onload = startInterval; function sta

Plz help..SocketServer UDP server losing lots of packets

2008-11-05 Thread id . engg
logFileName = 'log.txt' logfile = open(logFileName, "a") class MyUDPServer(SocketServer.UDPServer): def server_bind(self): self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 8388608) self.socket.bind(self.serve