[BangPypers] Question on GUI

2012-02-16 Thread Nikunj Badjatya
Howdy All, I have never worked on developing GUIs before. Need some suggestions on how to proceed with one. I have a program which takes bunch of inputs from the user. ( 15 ). Currently I use an well structured xml file where user puts his necessary details, then this xml file is passed to the

[BangPypers] checking return status of 'ping' in windows

2012-01-21 Thread Nikunj Badjatya
Hi All, I am using the following snippet to check the availability of an IP address. If that IP addr is found free than it can be used later on for further operations. Python ver 3.2 Windows OS {{{ pingret = subprocess.Popen('ping {0}'.format(IPaddr), shell=True,universal_newlines=True, \

Re: [BangPypers] checking return status of 'ping' in windows

2012-01-21 Thread Nikunj Badjatya
Telnet service is not running and not in my hands to start it. Its a Virtual Machine basically. On Sun, Jan 22, 2012 at 12:21 AM, Noufal Ibrahim nou...@nibrahim.net.inwrote: Nikunj Badjatya nikunjbadja...@gmail.com writes: [...] Now, I was expecting the status in above snippet

Re: [BangPypers] Background ping - check for server availability

2011-12-29 Thread Nikunj Badjatya
Hi, I think the commands.getstatusoutput() is only for unix systems. When I run on windows I get this error: {{{ ret = commands.getstatusoutput('ping 192.168.1.1') ret (1, '{' is not recognized as an internal or external command,\noperable program or batch file.) }}} I then tried once again

Re: [BangPypers] Auto Login to Website and Capturing more details

2011-12-27 Thread Nikunj Badjatya
Noufal, I tried with : {{{ import urllib, urllib2, cookielib username = 'xxx' password = 'xxx' savepage = open('output.html', 'w') #cj = cookielib.CookieJar() #opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())

Re: [BangPypers] continue in try..except

2011-11-19 Thread Nikunj Badjatya
Can someone throw some light on this please. On Fri, Nov 18, 2011 at 7:23 PM, nikunj.badja...@emc.com wrote: Hi , Please look at the below code snippet: {{{ if __name__ == __main__: try: main() except KeyboardInterrupt: print(\nKeyboard interrupt from the user

Re: [BangPypers] How to create HTTPS Proxy server

2011-10-07 Thread Nikunj Badjatya
Deepak, Can you give some info. * Like which platform ( linux, windows ) you creating your proxy server.? * Which 3rd party tools you using .? Like apache etc. Not sure about Python based tools but I have done one similar configuration few months back. Apache server may help you. Just google for

Re: [BangPypers] (no subject)

2011-09-15 Thread Nikunj Badjatya
+1 :) On Mon, Sep 12, 2011 at 7:34 PM, AKARSH SANGHI akarsh.san...@gmail.comwrote: Hey, here's a great video with Python in it. http://youtu.be/1lBeungEnx4 Although it's also about matlab. -- Akarsh Sanghi Jaypee Institute of Information Technology University Undergraduate Student

Re: [BangPypers] [commercial] python/django training

2011-05-15 Thread Nikunj Badjatya
hi I have 5 years exp using Python/Django i want to give free training to all please contact Dear Srinivas, Please let us know the place, venue and timings. Really appreciate your efforts. Although most of us wouldnt mind paying a nominal fee. ! Nikunj On Sun, May 15, 2011 at 5:17 PM,

[BangPypers] UnicodeDecodeError: 'utf8' codec can't decode byte xxx

2011-04-17 Thread Nikunj Badjatya
Hi All, I am working on a self project for grabbing certain URL's from the web. Do some processing and store the final contents in text/pdf file. I am also using html2text ( https://github.com/aaronsw/html2text/archives/master ) for converting the fetched page into text format. As a first step I

Re: [BangPypers] UnicodeDecodeError: 'utf8' codec can't decode byte xxx

2011-04-17 Thread Nikunj Badjatya
at 0x8deabac }}} Please let me know if I am missing something. Thanks, Nikunj On Sun, Apr 17, 2011 at 8:11 PM, JAGANADH G jagana...@gmail.com wrote: On Sun, Apr 17, 2011 at 8:01 PM, Nikunj Badjatya nikunjbadja...@gmail.comwrote: Hi All, I am working on a self project for grabbing

Re: [BangPypers] UnicodeDecodeError: 'utf8' codec can't decode byte xxx

2011-04-17 Thread Nikunj Badjatya
://www.hindu.com/nic/kye/index2.htm the command works fine..!! I also tried with importing as, from html2text import * and calling the function accordingly. Same results.!! Thanks, Nikunj On Sun, Apr 17, 2011 at 9:21 PM, JAGANADH G jagana...@gmail.com wrote: On Sun, Apr 17, 2011 at 9:13 PM, Nikunj

Re: [BangPypers] UnicodeDecodeError: 'utf8' codec can't decode byte xxx

2011-04-17 Thread Nikunj Badjatya
Hi, With stripogram Its working fine. Thanks a lot. :) !! But couldnt understand the reason behind the previous html2text malfunction for that particular (index1.htm) link.??! On Sun, Apr 17, 2011 at 10:28 PM, JAGANADH G jagana...@gmail.com wrote: Hi Do the following things install

Re: [BangPypers] UnicodeDecodeError: 'utf8' codec can't decode byte xxx

2011-04-17 Thread Nikunj Badjatya
On Sun, Apr 17, 2011 at 11:17 PM, JAGANADH G jagana...@gmail.com wrote: On Sun, Apr 17, 2011 at 11:13 PM, Nikunj Badjatya nikunjbadja...@gmail.com wrote: Hi, With stripogram Its working fine. Thanks a lot. :) !! But couldnt understand the reason behind the previous html2text

[BangPypers] Program_to_catch_changes_in_webpage

2010-05-27 Thread nikunj badjatya
on this. ? OS - Linux ( CentOS 5.4) Browser - Firefox, Opera Thanks, Nikunj Badjatya Bangalore, India ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] [Tutor] Program_to_catch_changes_in_webpage

2010-05-27 Thread nikunj badjatya
. Nikunj Badjatya BTech On Thu, May 27, 2010 at 1:20 PM, Alan Gauld alan.ga...@btinternet.comwrote: nikunj badjatya nikunjbadja...@gmail.com I am actually using a web interface for outlook mails. * It should periodically check for any changes in that webpage . * If their is any

Re: [BangPypers] [Tutor] Error :Attempt to overwrite cell while using xlwt to create excel sheets

2010-02-11 Thread nikunj badjatya
Hi, Many thanks to all.. I tried cell_overwrite=True and its working fine..!! On Wed, Feb 10, 2010 at 6:13 PM, Kent Johnson ken...@tds.net wrote: On Wed, Feb 10, 2010 at 6:47 AM, nikunj badjatya nikunjbadja...@gmail.com wrote: I commented out the raise Exception statement in Row.py library

[BangPypers] Error :Attempt to overwrite cell while using xlwt to create excel sheets

2010-02-10 Thread nikunj badjatya
Hi, I am using xlwt 0.7.2 and Python 2.6. I come across a situation wherein one of the rows of the excel sheet created was being overwritten. And it was flagging the following error. File /usr/local/lib/python2.6/site-packages/xlwt/Row.py, line 150, in insert_cell raise Exception(msg)

[BangPypers] Future of Python Programmers

2010-01-30 Thread nikunj badjatya
. Sincerely, Nikunj Badjatya ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Interesting Read

2010-01-30 Thread nikunj badjatya
Hi, Interesting Read indeed..! Thanks !! -- Nikunj Badjatya BTech ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] January user group meeting

2010-01-19 Thread nikunj badjatya
+1 Nikunj Btech, Sony India Software Centre, Bangalore ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers