Question on Socket Timeouts

2012-11-18 Thread Abhijeet Mahagaonkar
Hi all, I'm new to network programming. I have a question. Can we set a timeout to limit how long a particular socket can read or write? I have used a settimeout() function. The settimeout() works fine as long as the client doesnt send any data for x seconds. The data that I receive in the

Re: Question on Socket Timeouts

2012-11-18 Thread Abhijeet Mahagaonkar
AM, Cameron Simpson c...@zip.com.au wrote: On 18Nov2012 03:27, Abhijeet Mahagaonkar abhi.for...@gmail.com wrote: | I'm new to network programming. | I have a question. | | Can we set a timeout to limit how long a particular socket can read or | write? On the socket itself? Probably

Issue with Scrapping Data from a webpage- Noob Question

2012-02-07 Thread abhijeet mahagaonkar
Hi Fellow Pythoners, I'm trying to collect table data from an authenticated webpage (Tool) to which I have access. I will have the required data after 'click'ing a submit button on the tool homepage. When I inspect the submit button i see form action=/Tool/index.do method=POST Thus the tool's

Re: Is there anyway to use urllib2 to download a file from http server?

2011-09-10 Thread Abhijeet Mahagaonkar
I guess urlretrieve() would do the job -AB On Sat, Sep 10, 2011 at 9:11 PM, crow wen...@gmail.com wrote: As the title. Or is there other module that can handle this task? Many thanks in advance -- http://mail.python.org/mailman/listinfo/python-list --

Re: (Maybe off topic) Can someone explain what a finite state machine is?

2011-07-19 Thread Abhijeet Mahagaonkar
You might wanna have a look at theory of computation. http://www.youtube.com/user/Coderisland#g/c/601FC994BDD963E4 in this lecture series you will have an explanation for FSM from the ground up -AB On Tue, Jul 19, 2011 at 7:02 PM, Matty Sarro msa...@gmail.com wrote: Hey everyone. I am

Re: Running a Python script on a web server

2011-06-08 Thread Abhijeet Mahagaonkar
. So i thought is there a python way of doing something like this? On Wed, Jun 8, 2011 at 9:34 AM, Chris Angelico ros...@gmail.com wrote: On Wed, Jun 8, 2011 at 1:10 PM, Abhijeet Mahagaonkar abhijeet.mano...@gmail.com wrote: So i have requested a server space so I need some inputs on how i

Re: Running a Python script on a web server

2011-06-08 Thread Abhijeet Mahagaonkar
I guess i got my answer :) Thanks Regards, Abhijeet On Wed, Jun 8, 2011 at 12:01 PM, D'Arcy J.M. Cain da...@druid.net wrote: On Wed, 8 Jun 2011 11:22:53 +0530 Abhijeet Mahagaonkar abhijeet.mano...@gmail.com wrote: Python doesn't normally run in a web browser. There's two easy options

Running a Python script on a web server

2011-06-07 Thread Abhijeet Mahagaonkar
Dear Pythoners, I have written a few python tools and cant distribute as exe due to scalability issues. I started with a few tools and gave it as exe to the users and now as the number of tools have increased, they complain they have too many exes :) So i have requested a server space so I need

Tips on Speeding up Python Execution

2011-04-08 Thread Abhijeet Mahagaonkar
Dear Pythoners, I have written a python application which authenticates a user, reads a webpage and searches for pattern and builds a database ( In my case its a dictinary with fixed set of keys). Inputting the username and password for authentication and final display of the results is done by

Re: Tips on Speeding up Python Execution

2011-04-08 Thread Abhijeet Mahagaonkar
Thats awesome. Its time I migrate to 3 :) On Fri, Apr 8, 2011 at 11:29 PM, Raymond Hettinger pyt...@rcn.com wrote: On Apr 8, 12:25 am, Chris Angelico ros...@gmail.com wrote: On Fri, Apr 8, 2011 at 5:04 PM, Abhijeet Mahagaonkar abhijeet.mano...@gmail.com wrote: I was able to isolate

Help With Tkinter.Checkbutton Widget

2011-02-17 Thread Abhijeet Mahagaonkar
Dear Pythoners, I have a list of dictionaries. Here i have a variable which should gather input from Checkbutton widget in Tkinter. The Problem that I'm facing is that I'm unable to set or reset the key in every dictionary using the checkbutton widget. Here is what i have been doing.