How keep python socket alive for ever by setting Keep alive flag.

2012-06-25 Thread hisan
Hi All, I want to open a socket connection and keep it alive for ever or until i explicitly close the socket connection. below is my code though i have set keep alive flag the socket gets closed after some time .please help me out here sb_sock = socket.socket(socket.AF_INET, socket

how to compare below 2 json structure in python

2012-06-21 Thread hisan
sample_json1={{ "globalControlId": 72, "value": 0, "controlId": 2 }, { "globalControlId": 77, "value": 3, "controlId": 7 } } sample_json2={ { "globalControlId": 77, "value": 3, "controlId": 7 }, { "globalContr

Re: Unable to install xmldiff package on WIndows7

2012-01-05 Thread hisan
Can some one help me out here Its High Priority On Jan 4, 12:47 am, hisan wrote: > Hi All > > i have downloaded "xmldiff-0.6.10" from their official site > (http://www.logilab.org/859). > I have tried installing the same on my 32 bit Windows 7 OS using the > co

Unable to install xmldiff package on WIndows7

2012-01-03 Thread hisan
Hi All i have downloaded "xmldiff-0.6.10" from their official site (http:// www.logilab.org/859). I have tried installing the same on my 32 bit Windows 7 OS using the command "setup.py install" but below exceptions are thrown in the console. please help me out in installing this package on Windows

how to call a function for evry 10 secs

2011-06-29 Thread hisan
Hi All, I need to call a function for evry 10 secs how can i achieve this in python -- http://mail.python.org/mailman/listinfo/python-list

How to create n number of threads

2011-06-28 Thread hisan
How to create n number thread in python. i want iterate over the for loop and create a thread for each iteration . sample code for i in range(o,50): i want to create 50 thread here which call the same function. how start and stop each thread after completion -- http://mail.python.org/mailman/l

Re: Import error while running python application on Mac OS

2011-06-09 Thread hisan
On Jun 8, 9:20 pm, hisan wrote: > HI All, > > I have created an application for Mac OS using py2app module, in my > python script i have external modules such as MySQLdb and other , > while trying to run on Mac OS i get an error saying unable to import > the module MySQLdb. >

Python 2.6 OR 3.2

2011-06-09 Thread hisan
Hi All, Please let me know which one is GOOD whether Python 2.6 OR 3.2. Please let me know the difference between them. Please give some refernce site or books to know the difference -- http://mail.python.org/mailman/listinfo/python-list

Import error while running python application on Mac OS

2011-06-08 Thread hisan
HI All, I have created an application for Mac OS using py2app module, in my python script i have external modules such as MySQLdb and other , while trying to run on Mac OS i get an error saying unable to import the module MySQLdb. On Windows i convert python script to an exe using py2exe module an

Re: How to import data from MySQL db into excel sheet -- Very Urgent

2011-06-03 Thread hisan
ow. Waiting for the early response- I need to achieve my task using python only On Jun 2, 2:48 pm, Dennis Lee Bieber wrote: > On Thu, 2 Jun 2011 10:25:24 -0700 (PDT), hisan > declaimed the following in gmane.comp.python.general: > > > > > Currently i am importing the D

Re: How to import data from MySQL db into excel sheet

2011-06-02 Thread hisan
On Jun 2, 5:19 pm, Martin Brochhaus wrote: > Why do you need to do this with python? Why not output the SQL data as a .cvs > and open that file in Excel. The user can then adjust column widths as he > likes. > > If it has to be done programatically, you might want to start your journey > here:h

How to import data from MySQL db into excel sheet

2011-06-02 Thread hisan
Please let me know how can i import my sql data of multiple rows and columns into an excel sheet. here i need to adjust the column width based on the on the data that sits into the column -- http://mail.python.org/mailman/listinfo/python-list