links · people · groups · tags | My: links · tags · groups · watchlists · notes login · sign up now! | help · blog
Simpy simpy
 
Michael Shook, member since May 27, 2004
.
Search Everyone: "test",

Top "test" experts: roaldmarth, reinbeast, smarky, sk545, gumush, bbloom,

Groups about "test": test group, test, test, test, test, testgroup,

1 - 10 of 25 next »   Watch mshook
 
# Server program

from socket import *

# Set the socket parameters
host = "localhost"
port = 21567
buf = 1024
addr = (host,port)

# Create socket and bind to address
UDPSock = socket(AF_INET,SOCK_DGRAM)
UDPSock.bind(addr)

# Receive messages
while 1:
	data,addr = UDPSock.recvfrom(buf)
	if not data:
		print "Client has exited!"
		break
	else:
		print "nReceived message '", data,"'"

# Close socket
UDPSock.close()

# Client program

from socket import *

# Set the socket parameters
host = "localhost"
port = 21567
buf = 1024
addr = (host,port)

# Create socket
UDPSock = socket(AF_INET,SOCK_DGRAM)

def_msg = "===Enter message to send to server===";
print "n",def_msg

# Send messages
while (1):
	data = raw_input('>> ')
	if not data:
		break
	else:
		if(UDPSock.sendto(data,addr)):
			print "Sending message '",data,"'....."

# Close socket
UDPSock.close()
by mshook 2009-11-14 18:27 test · python · udp · example · code · simple · useful · works
http://www.evolt.org/node/60276 - cached - mail it - history

Mitokine Bioscience was founded in Down East Maine in 2006 to develop a critical new treatment for diabetes. This year - 2009 - Mitokine’s treatment will be tested at Purdue University School of Veterinary Medicine in companion dogs that are insulin dependent, a natural diabetes model. A larger canine study to meet requirements for FDA approval for a veterinary pharmaceutical product will follow. In the mean time, research at Mitokine continues to develop a similar treatment for human diabetes.

by mshook 2009-11-06 23:21 biology · maine · business · hancock · medical · mti · test
http://mitokine.com/ - cached - mail it - history
    * Google Mobile
    * Google pdafriendly
    * del.icio.us/mshook/
    * del.icio.us/html/mshook/
    * del.icio.us/popular/
    * del.icio.us/url
    * Wikipedia Search
by mshook 2009-10-30 13:37 test · javascript · *pda · google · search · del.icio.us · dispatch · wikipedia · pdafriendly · url
http://tinyprojects.googlecode.com/svn/trunk/gae/mshook/z/ttpatch.html - cached - mail it - history
by mshook 2009-10-22 12:07 test · google · voice · gv · voip
http://mshook.appspot.com/z/d4m.htm?/mshook/22+october+2009+a - cached - mail it - history
  • Here's the spreadsheet: http://spreadsheets.google.com/ccc?key=r3nTy-cjddJFXh6ZmpmxcaA&hl=en#
  • Here's where I set up the page: http://www.google.com/webelements/docs/spreadsheets/
  • How is this different from a Google Gadget?
by mshook 2009-06-15 11:15 google · gadget · elements · iframe · spreadsheet · 15 · june · 2009 · a · test · code
http://mshook.appspot.com/z/d4m.htm?/mshook/15+june+2009+a - cached - mail it - history
// Regular Expressions function main() { var re = /(w+)(s+)(w+)/; var out = input.match(re); for(i = 0;i < out.length;i++) { print(i + " = [" + out[i] + "]n"); } }
  • There is a pseudo-function called "print()" (not part of javaScript) that allows data to be placed in the output window. See examples for its use.
by mshook 2009-05-16 14:40 javascript · test · example · good · useful · regex · re · interactive · code · 1999
http://www.arachnoid.com/javascript/interactiveJavaScript.html - cached - mail it - history
by mshook 2009-05-15 01:18 test · url
http://mshook.googlepages.com/d4m.htm?dir=/mshook/15+may+2009+a - cached - mail it - history
by mshook 2009-05-15 01:09 tv · humor · 15 · may · 2009 · a · test
http://mshook.googlepages.com/d4m.htm/mshook/15+may+2009+a - cached - mail it - history
1 - 10 of 25 next »  
Related Tags
 
- exclude ~ optional + require
Add Dates