From noufal at gmail.com Mon Oct 3 14:40:41 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 03 Oct 2011 18:10:41 +0530 Subject: [BangPypers] PyPy and Python3 (was: About pypy and bangpypers) In-Reply-To: (kracekumar ramaraju's message of "Mon, 26 Sep 2011 23:04:02 +0530") References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> <87pqinxn04.fsf@sanitarium.localdomain> <87d3enxmbi.fsf@sanitarium.localdomain> Message-ID: <87d3ees0xi.fsf_-_@sanitarium.localdomain> One of the large problems which PyPy and other implementations are facing is Python 3 support[1]. If we can organise around this, I think it'd be a worthwhile goal and something good would come out of it. Opinions? Footnotes: [1] http://pypy.org/py3donate.html -- ~noufal http://nibrahim.net.in Some bachelors want a meaningful overnight relationship. From amit.pureenergy at gmail.com Mon Oct 3 18:20:00 2011 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Mon, 3 Oct 2011 21:50:00 +0530 Subject: [BangPypers] Using Facebook graph api in a page tab application Message-ID: Hi all , I have a feeling that the answer to this might be very simple but some how i am not able to find it even after reading and re-reading the facebook documentation This is somewhat of generic problem and may not necessarily have a python solution. This is a page tab application running inside iframe . This seems to be quite a used workflow As the documentation say "As with a Canvas Page, you will not receive all the user information accessible to your app in the signed_request until the user authorizes your app." Thus as some stackoverflow questions suggest one should use the javascipt sdk to get the permission. I have got this working . I simply ask the user if he wishes to authorize getting info and incase he says yes he sees the normal facebook request for permissions . However i am stuck after that because as far as I can see there is no way I can get the refreshed signed_request data . Even if I use js to reload the page the only it is always a get request with no oauth_token or any other user information . Can someone tell me what I have missed in this workflow and how I can get data/signed_request in relation to the changed permission status. -- A-M-I-T S|S From sajuptpm at gmail.com Tue Oct 4 15:25:14 2011 From: sajuptpm at gmail.com (Saju M) Date: Tue, 4 Oct 2011 18:55:14 +0530 Subject: [BangPypers] selenium click not working fot some links Message-ID: I created a selenium script in python as follows loc_link = self.driver.find_element_by_id("tbpi") print "------loc_link-------", loc_link.tag_name, loc_link.text loc_link.click() i want to click on link 'More search tools'. Tsis script printing element name 'a' and text 'More search tools' correctly. but 'click' operaion not working check this page http://www.google.com/search?q=smith, you can see the link "More search tools" at let bottom. I could click on some other links in the same page !!!!. From sajuptpm at gmail.com Tue Oct 4 15:31:07 2011 From: sajuptpm at gmail.com (Saju M) Date: Tue, 4 Oct 2011 19:01:07 +0530 Subject: [BangPypers] selenium click not working fot some links In-Reply-To: References: Message-ID: I could find that some padding is given for that link, is that the issue ?? From abpillai at gmail.com Tue Oct 4 19:12:20 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 4 Oct 2011 22:42:20 +0530 Subject: [BangPypers] Python3's Most Wanted! Message-ID: Did anyone see this ? http://www.python.org/3kpoll -- --Anand From senthil at uthcode.com Wed Oct 5 00:54:20 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 5 Oct 2011 06:54:20 +0800 Subject: [BangPypers] Python3's Most Wanted! In-Reply-To: References: Message-ID: <20111004225420.GA1982@mathmagic> Yes, but that is only suggestive, but still good to know as what most people are using. http://py3ksupport.appspot.com/ gives details on packages having py3k support. On Tue, Oct 04, 2011 at 10:42:20PM +0530, Anand Balachandran Pillai wrote: > Did anyone see this ? > > http://www.python.org/3kpoll > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From cjgiridhar at gmail.com Wed Oct 5 07:39:29 2011 From: cjgiridhar at gmail.com (chetan giridhar) Date: Wed, 5 Oct 2011 11:09:29 +0530 Subject: [BangPypers] Python3's Most Wanted! In-Reply-To: References: Message-ID: Hi Anand, How are you doing? When and where do you guys meet for all the discussions on Python? Please let me know, I would like to join. On Tue, Oct 4, 2011 at 10:42 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Did anyone see this ? > > http://www.python.org/3kpoll > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Chetan http://technobeans.com From abpillai at gmail.com Wed Oct 5 09:12:17 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 5 Oct 2011 12:42:17 +0530 Subject: [BangPypers] Python3's Most Wanted! In-Reply-To: References: Message-ID: Hi Chetan, On Wed, Oct 5, 2011 at 11:09 AM, chetan giridhar wrote: > Hi Anand, > > How are you doing? When and where do you guys meet for all the discussions > on Python? Please let me know, I would like to join. > Discussions are pretty rare now a days. We have this pypy thread running for a while, but so far no concrete discussion plans yet. Maybe we need a change of venue :) Is NetApp a possibility ? Regards --Anand > > On Tue, Oct 4, 2011 at 10:42 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > > > Did anyone see this ? > > > > http://www.python.org/3kpoll > > > > -- > > --Anand > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > Chetan > http://technobeans.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From cjgiridhar at gmail.com Wed Oct 5 09:23:46 2011 From: cjgiridhar at gmail.com (chetan giridhar) Date: Wed, 5 Oct 2011 12:53:46 +0530 Subject: [BangPypers] Python3's Most Wanted! In-Reply-To: References: Message-ID: No, don't think so! Need to find another venue depending on number of people. On Wed, Oct 5, 2011 at 12:42 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Hi Chetan, > > On Wed, Oct 5, 2011 at 11:09 AM, chetan giridhar >wrote: > > > Hi Anand, > > > > How are you doing? When and where do you guys meet for all the > discussions > > on Python? Please let me know, I would like to join. > > > > Discussions are pretty rare now a days. We have this pypy thread running > for a while, but so far no concrete discussion plans yet. > > Maybe we need a change of venue :) Is NetApp a possibility ? > > Regards > > --Anand > > > > > > On Tue, Oct 4, 2011 at 10:42 PM, Anand Balachandran Pillai < > > abpillai at gmail.com> wrote: > > > > > Did anyone see this ? > > > > > > http://www.python.org/3kpoll > > > > > > -- > > > --Anand > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > Regards, > > Chetan > > http://technobeans.com > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Chetan http://technobeans.com From senthil at uthcode.com Wed Oct 5 13:24:36 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 5 Oct 2011 19:24:36 +0800 Subject: [BangPypers] Using Facebook graph api in a page tab application In-Reply-To: References: Message-ID: <20111005112436.GA1954@mathmagic> On Mon, Oct 03, 2011 at 09:50:00PM +0530, Amit Sethi wrote: > This is a page tab application running inside iframe . This seems to > be quite a used workflow I did not quite get this, if you have pointer to the app it would be helpful. > As the documentation say "As with a Canvas Page, you will not receive > all the user information accessible to your app in the signed_request > until the user authorizes your app." This is straight forward. All it says is the user should be authenticated via facebook api. > Can someone tell me what I have missed in this workflow and how I can > get data/signed_request in relation to the changed permission status. Here is a simple facebook demo application. https://apps.facebook.com/gexplvl/ It uses the facebook api for appengine and authenticates itself using api and redirects the user back to the application running in the canvas element. Here is the code if it is of any help. http://uthcode.googlecode.com/svn/trunk/languages/python/appengine/appexplevl/ -- Senthil From gethemant at gmail.com Wed Oct 5 15:19:04 2011 From: gethemant at gmail.com (hemant) Date: Wed, 5 Oct 2011 18:49:04 +0530 Subject: [BangPypers] Code Retreat on October 22nd Message-ID: My friend Prakash and folks at SupportBee are organizing a long day , code retreat on October 22nd. Forwarding it here, if folks find it interesting. -------- Hi All, I am facilitating a day-long code retreat in Bangalore on Saturday Oct 22nd. Please find more information and registration details at http://blr-code-retreat.doattend.com/ It is limited to 20 participants; do register at the earliest. We are also looking for sponsors to cover the expenses of the event; the expenses involved are for arranging lunch, coffee / snacks & location rental fee. Please let us know if you want to be a sponsor of the event. Please address all inquiries related to this event to Nithya Dayal ( at nithya at supportbee.com ) as I will not have access to email regularly over the next few days. Also, please spread the word among the other user groups in Bangalore; I am informing only the Ruby user group - the event will be language-agnostic - participants can program in the language of their preference. See you on Sat Oct 22nd! Prakash Murthu http://twitter.com/_prakash From venkat83 at gmail.com Wed Oct 5 15:20:25 2011 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 5 Oct 2011 18:50:25 +0530 Subject: [BangPypers] Fwd: [Bangalore RUG] Code Retreat Bangalore on Sat Oct 22nd at Jaaga In-Reply-To: References: Message-ID: FYI: -V http://about.me/venkasub ---------- Forwarded message ---------- From: Prakash Murthy Date: Wed, Oct 5, 2011 at 6:41 PM Subject: [Bangalore RUG] Code Retreat Bangalore on Sat Oct 22nd at Jaaga To: bangalorerug at googlegroups.com Cc: Nithya Dayal Hi All, Am facilitating a day-long code retreat in Bangalore on Saturday Oct 22nd. Please find more information and registration details at http://blr-code-retreat.doattend.com/ It is limited to 20 participants; do register at the earliest. We are also looking for sponsors to cover the expenses of the event; the expenses involved are for arranging lunch, coffee / snacks & location rental fee. Please let us know if you want to be a sponsor of the event. Please address all enquiries related to this event to Nithya Dayal ( at nithya at supportbee.com ) as I will not have access to email regularly over the next few days. Also, please spread the word among the other user groups in Bangalore; I am informing only the Ruby user group - the event will be language-agnostic - participants can program in the language of their preference. See you on Sat Oct 22nd! -- Thanks, Prakash N Murthy http://twitter.com/_prakash From noufal at gmail.com Wed Oct 5 17:41:07 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 05 Oct 2011 21:11:07 +0530 Subject: [BangPypers] Python3's Most Wanted! In-Reply-To: (chetan giridhar's message of "Wed, 5 Oct 2011 12:53:46 +0530") References: Message-ID: <87obxv78fg.fsf@sanitarium.localdomain> chetan giridhar writes: > No, don't think so! Need to find another venue depending on number of > people. > > On Wed, Oct 5, 2011 at 12:42 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > >> Hi Chetan, >> >> On Wed, Oct 5, 2011 at 11:09 AM, chetan giridhar > >wrote: >> >> > Hi Anand, >> > >> > How are you doing? When and where do you guys meet for all the >> discussions >> > on Python? Please let me know, I would like to join. >> > >> >> Discussions are pretty rare now a days. We have this pypy thread running >> for a while, but so far no concrete discussion plans yet. >> >> Maybe we need a change of venue :) Is NetApp a possibility ? >> >> Regards >> >> --Anand >> >> >> > >> > On Tue, Oct 4, 2011 at 10:42 PM, Anand Balachandran Pillai < >> > abpillai at gmail.com> wrote: >> > >> > > Did anyone see this ? >> > > >> > > http://www.python.org/3kpoll >> > > >> > > -- >> > > --Anand >> > > _______________________________________________ >> > > BangPypers mailing list >> > > BangPypers at python.org >> > > http://mail.python.org/mailman/listinfo/bangpypers >> > > >> > >> > >> > >> > -- >> > Regards, >> > Chetan >> > http://technobeans.com >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> >> -- >> --Anand >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> -- ~noufal http://nibrahim.net.in Gentlemen, I want you to know that I am not always right, but I am never wrong. -Samuel Goldwyn From noufal at gmail.com Wed Oct 5 17:42:22 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 05 Oct 2011 21:12:22 +0530 Subject: [BangPypers] Python3's Most Wanted! In-Reply-To: (chetan giridhar's message of "Wed, 5 Oct 2011 12:53:46 +0530") References: Message-ID: <87lisz78dd.fsf@sanitarium.localdomain> chetan giridhar writes: > No, don't think so! Need to find another venue depending on number of > people. [...] I think we can find a venue. It's not *too* hard. The problem is people to fill the place. -- ~noufal http://nibrahim.net.in Gentlemen, I want you to know that I am not always right, but I am never wrong. -Samuel Goldwyn From sajuptpm at gmail.com Thu Oct 6 06:53:17 2011 From: sajuptpm at gmail.com (Saju M) Date: Thu, 6 Oct 2011 10:23:17 +0530 Subject: [BangPypers] selenium pyvirtualdisplay script on remote server Message-ID: Hi friends, selenium pyvirtualdisplay script on remote server Here the isuue is i can't find the "li" element. that is because that element is out of display, so i adjust scroll bar or do focus around that area to get that element via find_element_by_id("loc_opt") I already tested with scroll bar and focus and its working finw in my laptop. But when i run this script on Remote Server, it can't find that element.?????? Note: Here i am using pyvirtualdisplay, Xvfb and Xephyr, because server don't have Xserver. Its also working fine with pyvirtualdisplay in my laptop. but the issue is in Remote Server. Has anyone faced this problem before ? Please suggest a solution. class Search: def __init__(self): """ """ self.display = Display(visible=0, size=(800, 600)) self.display.start() self.url ='http://www.google.com' self.search_url = None self.driver = webdriver().Firefox() def search(self, search_query, search_location=None): """ """ if search_query: self.search_url = "%s/search?q=%s" %(self.url, search_query) print "\nURL : ", self.search_url self.driver.get(self.search_url) self.submit_search() #self.driver.execute_script("window.scrollBy(0,200)") self.driver.execute_script("document.getElementById('tbpi').focus();") more_search_tools_link = self.driver.find_element_by_id("tbpi") more_search_tools_link.click() self.driver.execute_script("window.scrollBy(0,200)") loc_li = self.driver.find_element_by_id("loc_opt") From senthil at uthcode.com Thu Oct 6 15:34:42 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Thu, 6 Oct 2011 21:34:42 +0800 Subject: [BangPypers] selenium click not working fot some links In-Reply-To: References: Message-ID: <20111006133442.GB1946@mathmagic> On Tue, Oct 04, 2011 at 07:01:07PM +0530, Saju M wrote: > I could find that some padding is given for that link, is that the issue ?? Could be. But if you can help by send the full script for others to try or share the exception that would be helpful so that we can understand the problem better. Thanks, Senthil From senthil at uthcode.com Thu Oct 6 15:38:58 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Thu, 6 Oct 2011 21:38:58 +0800 Subject: [BangPypers] selenium pyvirtualdisplay script on remote server In-Reply-To: References: Message-ID: <20111006133858.GC1946@mathmagic> On Thu, Oct 06, 2011 at 10:23:17AM +0530, Saju M wrote: > I already tested with scroll bar and focus and its working finw in my laptop. > But when i run this script on Remote Server, it can't find that element.?????? You could try putting some debugging prints in this script and what the values are on local vs remote server. Personally, I could not see any problem with the below script. Print the values of display, driver and focus values. Introspect the objects that you get. Thanks, Senthil From sajuptpm at gmail.com Fri Oct 7 07:50:46 2011 From: sajuptpm at gmail.com (Saju M) Date: Fri, 7 Oct 2011 11:20:46 +0530 Subject: [BangPypers] Selenium pyvirtualdisplay Script suggestions to improve Message-ID: Hi Friends, Here is the code for change "Custom Location" in google search page http://dpaste.com/629298/ log http://dpaste.com/629304/ I could run it on Remote Server. But its not working sometimes, because selenium can't find some elements on the page, So that i added a "while" loop for retry if can't find some elements. Please check this code and give me some suggestion to improve. From noufal at gmail.com Fri Oct 7 10:29:05 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 07 Oct 2011 13:59:05 +0530 Subject: [BangPypers] [OT] Git training course Message-ID: <878voxi4ry.fsf@sanitarium.localdomain> Hello everyone, This is OT for the list but a lot of people expressed interest in this when I spoke to them at PyCon in Pune. I am offering a training on git on the 22nd and 23rd of October in Bangalore. The details are at http://nibrahim.net.in/2011/10/07/git_training.html Please spread the word. Thanks -- ~noufal http://nibrahim.net.in "I always avoid prophesying beforehand because it is much better to prophesy after the event has already taken place. " - Winston Churchill From lawgon at gmail.com Fri Oct 7 11:49:36 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Fri, 07 Oct 2011 15:19:36 +0530 Subject: [BangPypers] [OT] Git training course In-Reply-To: <878voxi4ry.fsf@sanitarium.localdomain> References: <878voxi4ry.fsf@sanitarium.localdomain> Message-ID: <1317980980.1898.27.camel@xlquest.web> On Fri, 2011-10-07 at 13:59 +0530, Noufal Ibrahim wrote: > This is OT for the list but a lot of people expressed interest > in this when I spoke to them at PyCon in Pune. > > I am offering a training on git on the 22nd and 23rd of > October > in Bangalore. > > The details are at > http://nibrahim.net.in/2011/10/07/git_training.html > > Please spread the word. if you were to include something on mercurial, it would no longer be OT -- regards Kenneth Gonsalves From noufal at gmail.com Fri Oct 7 11:53:02 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 07 Oct 2011 15:23:02 +0530 Subject: [BangPypers] [OT] Git training course In-Reply-To: <1317980980.1898.27.camel@xlquest.web> (Kenneth Gonsalves's message of "Fri, 07 Oct 2011 15:19:36 +0530") References: <878voxi4ry.fsf@sanitarium.localdomain> <1317980980.1898.27.camel@xlquest.web> Message-ID: <8739f5gmbl.fsf@sanitarium.localdomain> Kenneth Gonsalves writes: > On Fri, 2011-10-07 at 13:59 +0530, Noufal Ibrahim wrote: [...] > if you were to include something on mercurial, it would no longer be > OT Arguably but I don't use hg. -- ~noufal http://nibrahim.net.in I distinctly remember forgetting that. -Clara Barton From lawgon at gmail.com Fri Oct 7 11:59:57 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Fri, 07 Oct 2011 15:29:57 +0530 Subject: [BangPypers] [OT] Git training course In-Reply-To: <8739f5gmbl.fsf@sanitarium.localdomain> References: <878voxi4ry.fsf@sanitarium.localdomain> <1317980980.1898.27.camel@xlquest.web> <8739f5gmbl.fsf@sanitarium.localdomain> Message-ID: <1317981600.1898.32.camel@xlquest.web> On Fri, 2011-10-07 at 15:23 +0530, Noufal Ibrahim wrote: > > if you were to include something on mercurial, it would no longer be > > OT > > Arguably but I don't use hg. I see some repos on bitbucket - you maintain them with hg-git? (a good topic that you could add) -- regards Kenneth Gonsalves From noufal at gmail.com Fri Oct 7 12:06:58 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 07 Oct 2011 15:36:58 +0530 Subject: [BangPypers] [OT] Git training course In-Reply-To: <1317981600.1898.32.camel@xlquest.web> (Kenneth Gonsalves's message of "Fri, 07 Oct 2011 15:29:57 +0530") References: <878voxi4ry.fsf@sanitarium.localdomain> <1317980980.1898.27.camel@xlquest.web> <8739f5gmbl.fsf@sanitarium.localdomain> <1317981600.1898.32.camel@xlquest.web> Message-ID: <87y5wxf73x.fsf@sanitarium.localdomain> Kenneth Gonsalves writes: [...] > I see some repos on bitbucket - you maintain them with hg-git? (a good > topic that you could add) No. I can use basic hg (which is what I did to get those repositories). They were basically just bug fixes and things to send back to the original authors. Thanks for the suggestion. -- ~noufal http://nibrahim.net.in Some bachelors want a meaningful overnight relationship. From dg288_mits at yahoo.co.in Fri Oct 7 15:01:01 2011 From: dg288_mits at yahoo.co.in (deepak gupta) Date: Fri, 7 Oct 2011 18:31:01 +0530 (IST) Subject: [BangPypers] How to create HTTPS Proxy server In-Reply-To: <87y5wxf73x.fsf@sanitarium.localdomain> References: <878voxi4ry.fsf@sanitarium.localdomain> <1317980980.1898.27.camel@xlquest.web> <8739f5gmbl.fsf@sanitarium.localdomain> <1317981600.1898.32.camel@xlquest.web> <87y5wxf73x.fsf@sanitarium.localdomain> Message-ID: <1317992461.88159.YahooMailNeo@web137305.mail.in.yahoo.com> Hi All, ? Do any one know , how to create?reverse proxy server over HTTPS? ? We want to create one HTTPS proxy server: ? 1. Proxy server (192.168.1.1)?: HTTPS port (8000)?binding on this server and user will access this server and browse some url's.for ex https://192.168.1.1:8000/xyz 2. This (proxy)?server 192.168.1.1 will talk to another web server actual backend server?(192.168.1.2: 8000)?over HTTP/HTTPS . HTTPS proxy server will forward the request to the backend server and get back the response and then return to client browser. ? We have created but it is hanging and sometime not?returning full data.If anyone knows any stable proxy server over HTTPS then please let me know. ? Thanks, Deepak From sriramnrn at gmail.com Sat Oct 8 07:17:15 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Sat, 8 Oct 2011 10:47:15 +0530 Subject: [BangPypers] Test Driven Django Development Message-ID: https://github.com/hjwp/Test-Driven-Django-Tutorial -- Sriram From nikunjbadjatya at gmail.com Sat Oct 8 07:25:00 2011 From: nikunjbadjatya at gmail.com (Nikunj Badjatya) Date: Sat, 8 Oct 2011 10:55:00 +0530 Subject: [BangPypers] How to create HTTPS Proxy server In-Reply-To: <1317992461.88159.YahooMailNeo@web137305.mail.in.yahoo.com> References: <878voxi4ry.fsf@sanitarium.localdomain> <1317980980.1898.27.camel@xlquest.web> <8739f5gmbl.fsf@sanitarium.localdomain> <1317981600.1898.32.camel@xlquest.web> <87y5wxf73x.fsf@sanitarium.localdomain> <1317992461.88159.YahooMailNeo@web137305.mail.in.yahoo.com> Message-ID: 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 "Apache forward proxy". You just need to configure httpd.conf file. On Fri, Oct 7, 2011 at 6:31 PM, deepak gupta wrote: > Hi All, > > Do any one know , how to create reverse proxy server over HTTPS? > > We want to create one HTTPS proxy server: > > 1. Proxy server (192.168.1.1) : HTTPS port (8000) binding on this server > and user will access this server and browse some url's.for ex > https://192.168.1.1:8000/xyz > 2. This (proxy) server 192.168.1.1 will talk to another web server actual > backend server (192.168.1.2: 8000) over HTTP/HTTPS . HTTPS proxy server > will forward the request to the backend server and get back the response and > then return to client browser. > > We have created but it is hanging and sometime not returning full data.If > anyone knows any stable proxy server over HTTPS then please let me know. > > Thanks, > Deepak > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sriramnrn at gmail.com Sat Oct 8 09:59:37 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Sat, 8 Oct 2011 13:29:37 +0530 Subject: [BangPypers] An interesting post on "the next web app language" Message-ID: http://seldo.com/weblog/2011/08/11/php_needs_to_die_what_will_replace_it -- Sriram From vishnuprasadgaddam at gmail.com Sat Oct 8 10:51:19 2011 From: vishnuprasadgaddam at gmail.com (vishnu prasad) Date: Sat, 8 Oct 2011 14:21:19 +0530 Subject: [BangPypers] When and where the user group meet will be held ? Message-ID: When and where the user group meet held in bangalore ? what about the cost of the registration fees ? From lawgon at gmail.com Sat Oct 8 11:17:11 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 08 Oct 2011 14:47:11 +0530 Subject: [BangPypers] An interesting post on "the next web app language" In-Reply-To: References: Message-ID: <1318065435.1852.5.camel@xlquest.web> On Sat, 2011-10-08 at 13:29 +0530, Sriram Narayanan wrote: > http://seldo.com/weblog/2011/08/11/php_needs_to_die_what_will_replace_it the guy seems to be a bit confused at the difference between a language and a framework - hardly surprising given his core competency. -- regards Kenneth Gonsalves From noufal at gmail.com Sat Oct 8 12:59:00 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 08 Oct 2011 16:29:00 +0530 Subject: [BangPypers] When and where the user group meet will be held ? In-Reply-To: (vishnu prasad's message of "Sat, 8 Oct 2011 14:21:19 +0530") References: Message-ID: <87fwj3da17.fsf@sanitarium.localdomain> vishnu prasad writes: > When and where the user group meet held in bangalore ? They're discussed and decided on this list. If you're a member, you'll know. > what about the cost of the registration fees ? There is none. [...] -- ~noufal http://nibrahim.net.in Parting is such sweet sorrow. -William Shakespeare From noufal at gmail.com Sat Oct 8 13:12:28 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 08 Oct 2011 16:42:28 +0530 Subject: [BangPypers] An interesting post on "the next web app language" In-Reply-To: (Sriram Narayanan's message of "Sat, 8 Oct 2011 13:29:37 +0530") References: Message-ID: <874nzjd9er.fsf@sanitarium.localdomain> Sriram Narayanan writes: > http://seldo.com/weblog/2011/08/11/php_needs_to_die_what_will_replace_it [...] Thanks for the article. He does make some interesting points. I'm reminded though of Ian Bicking's old article on PHP http://blog.ianbicking.org/2008/01/12/what-php-deployment-gets-right/ and while I dislike many parts of PHP, there's no denying that many (if not most)[1] of the high traffic websites on the net are powered by it. I don't see it going away anytime soon and when starting on a new project, I can see some sense in deciding to use it. Footnotes: [1] http://www.alexa.com/topsites -- ~noufal http://nibrahim.net.in We're overpaying him, but he's worth it. -Samuel Goldwyn From senthil at uthcode.com Sun Oct 9 03:54:04 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 9 Oct 2011 09:54:04 +0800 Subject: [BangPypers] How to create HTTPS Proxy server In-Reply-To: <1317992461.88159.YahooMailNeo@web137305.mail.in.yahoo.com> References: <878voxi4ry.fsf@sanitarium.localdomain> <1317980980.1898.27.camel@xlquest.web> <8739f5gmbl.fsf@sanitarium.localdomain> <1317981600.1898.32.camel@xlquest.web> <87y5wxf73x.fsf@sanitarium.localdomain> <1317992461.88159.YahooMailNeo@web137305.mail.in.yahoo.com> Message-ID: <20111009015404.GA1901@mathmagic> Hello Deepak, On Fri, Oct 07, 2011 at 06:31:01PM +0530, deepak gupta wrote: > 1. Proxy server (192.168.1.1)?: HTTPS port (8000)?binding on this > server and user will access this server and browse some url's.for ex > https://192.168.1.1:8000/xyz > 2. This (proxy)?server 192.168.1.1 will talk to another web server > actual backend server?(192.168.1.2: 8000)?over HTTP/HTTPS . HTTPS > proxy server will forward the request to the backend server and get > back the response and then return to client browser. This is slightly involved task. What kind of libraries have look at? >From your description, it looks to me that you are interested in a "Reverse" Proxy server than the forward proxy. If you use twisted to build servers, then you could use twisted.web to write the https proxy server which would be forwarding the requests to another resource. http://twistedmatrix.com/documents/11.0.0/api/twisted.web.html Apart from that there seems to be plethora of libraries and tools trying to do that, which you can use. Squid reverse proxy also is easy to configure if you would like to for an out of box solution. > We have created but it is hanging and sometime not?returning full > data. Details? -- Senthil From steve at lonetwin.net Sun Oct 9 09:34:08 2011 From: steve at lonetwin.net (steve) Date: Sun, 09 Oct 2011 13:04:08 +0530 Subject: [BangPypers] How to create HTTPS Proxy server In-Reply-To: <1317992461.88159.YahooMailNeo@web137305.mail.in.yahoo.com> References: <878voxi4ry.fsf@sanitarium.localdomain> <1317980980.1898.27.camel@xlquest.web> <8739f5gmbl.fsf@sanitarium.localdomain> <1317981600.1898.32.camel@xlquest.web> <87y5wxf73x.fsf@sanitarium.localdomain> <1317992461.88159.YahooMailNeo@web137305.mail.in.yahoo.com> Message-ID: <4E914E70.7070306@lonetwin.net> Hi, On 10/07/2011 06:31 PM, deepak gupta wrote: > Hi All, > > Do any one know , how to create reverse proxy server over HTTPS? > > We want to create one HTTPS proxy server: > > 1. Proxy server (192.168.1.1) : HTTPS port (8000) binding on this server and > user will access this server and browse some url's.for ex > https://192.168.1.1:8000/xyz > 2. This (proxy) server 192.168.1.1 will talk to another web server actual > backend server (192.168.1.2: 8000) over HTTP/HTTPS . HTTPS proxy server will > forward the request to the backend server and get back the response and then > return to client browser. > > We have created but it is hanging and sometime not returning full data.If > anyone knows any stable proxy server over HTTPS then please let me know. > Could you give some more details ? Like, OS, webserver, and app. server you are using ? I recently had to do this using Apache with mod_wsgi on Linux and it turned out easier than I assumed initially. If yours is a similar setup, it basically boils down to just these few directives on your proxy: # Setup SSL SSLEngine On SSLCertificateFile /path/to/your/ssl/cert SSLCertificateKeyFile /path/to/the/private/key # Turn on Proxying for SSL SSLProxyEngine On # Prevent Apache from acting like a forward proxy ProxyRequests Off # Map proxy URLs to backend server URL ProxyPass / https://192.168.1.1:800/ # Ensure that responses from the backend server have correct # headers when being returned ProxyPassReverse / https://192.168.1.1:8000/ Note: a. I've assumed here that you know how to enable and load modules and do the rest of the virthost setup. One non-intuitive thing is you'd have to enable both mod_proxy and mod_prox_http to make this work. b. The same can also be achieved with RewriteRules, which is terser and more flexible (for example, conditional proxying), explaining that tho' would take more time so please send details first. cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From sriramnrn at gmail.com Sun Oct 9 11:16:33 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Sun, 9 Oct 2011 14:46:33 +0530 Subject: [BangPypers] How to create HTTPS Proxy server In-Reply-To: <4E914E70.7070306@lonetwin.net> References: <878voxi4ry.fsf@sanitarium.localdomain> <1317980980.1898.27.camel@xlquest.web> <8739f5gmbl.fsf@sanitarium.localdomain> <1317981600.1898.32.camel@xlquest.web> <87y5wxf73x.fsf@sanitarium.localdomain> <1317992461.88159.YahooMailNeo@web137305.mail.in.yahoo.com> <4E914E70.7070306@lonetwin.net> Message-ID: On Sun, Oct 9, 2011 at 1:04 PM, steve wrote: > > # Map proxy URLs to backend server URL > ProxyPass / https://192.168.1.1:800/ > A correction -> The port number in this example should be 8000 instead of 800. > cheers, > - steve > > -- > random spiel: http://lonetwin.net/ > what i'm stumbling into: http://lonetwin.stumbleupon.com/ -- Sriram ================== Belenix: www.belenix.org From noufal at gmail.com Mon Oct 10 20:51:20 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 11 Oct 2011 00:21:20 +0530 Subject: [BangPypers] PyCon tutorial submission deadlines Message-ID: <871uuk4r4n.fsf@sanitarium.localdomain> Hello everyone, There's 2 days left for the tutorial submission deadline for PyCon this year. It's a really great conference that's completely community driven and something worth attending if you're a pythonista. Accepted instructors receive an honorarium for their tutorials which goes some way in covering expenses for the trip so it'd doubly worth it. Do consider submitting one or more. http://us.pycon.org/2012/tutorials/proposals/ http://us.pycon.org/2012/tutorials/instructors/ Thanks! -- ~noufal http://nibrahim.net.in I'll give you a definite maybe. -Samuel Goldwyn From director at guruprevails.com Mon Oct 10 21:27:45 2011 From: director at guruprevails.com (director guruprevails) Date: Tue, 11 Oct 2011 00:57:45 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK Message-ID: Dear Python Group, Greetings from GuRu Prevails! A project based training organization based in Bangalore into Machine Learning. We are looking for a guest speaker on Python, NLTK and NLP for our upcoming Python work-shop in Bangalore. The dates of the work-shop are 22nd, 23rd, 29th and 30th October 2011. Time Allocated for guest session: 30 - 40 mins We are looking for a session on the following 1. NLTK, Micro-blog/ content Categorizations/Classification 2. Current NLP challenges in Social Media ( limitations of Python if any for NLP) 3. Common mistakes of developers 4. Some pointers on data-structures for Information retrieval. *What is there in it for you* 1. Have pizza and coke with our Participants 2. Token of Appreciation (Stipend) for the session Note: We are social entrepreneurs into education, we do understand the benefits may not be much for a professional who is into NLP and Python for long. But we assure you that you will have a great time with our participants who have loads fire to come up with technology solutions for India. If this is interesting to you, please mail us back. P.S. Please avoid mailing to the entire group. -Thanks Dattatreya 9972952810 From admin.nitjece at gmail.com Tue Oct 11 06:53:20 2011 From: admin.nitjece at gmail.com (Diptanu Choudhury) Date: Tue, 11 Oct 2011 10:23:20 +0530 Subject: [BangPypers] Thoughts about Requests? Message-ID: https://github.com/kennethreitz/requests -- Thanks, Diptanu Choudhury Mobile - +919686602153 Web - www.linkedin.com/in/diptanu Twitter - @diptanu From senthil at uthcode.com Tue Oct 11 08:07:01 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Tue, 11 Oct 2011 14:07:01 +0800 Subject: [BangPypers] Thoughts about Requests? In-Reply-To: References: Message-ID: It is a wrapper over urllib2 and is gaining popularity. It is very easy to use and it intuitive in some sense. If all you require is using urllib like facilities, then request is helpful. But if you would like to extend it, then I am not sure of the facilities (or the pattern) it uses. On the whole, it looks like a positive thing which has caught attention. On Tue, Oct 11, 2011 at 12:53 PM, Diptanu Choudhury wrote: > https://github.com/kennethreitz/requests From subhodipbiswas at gmail.com Tue Oct 11 09:36:23 2011 From: subhodipbiswas at gmail.com (Subhodip Biswas) Date: Tue, 11 Oct 2011 13:06:23 +0530 Subject: [BangPypers] BeautifulSoup in Jython required in Java faced Problem Message-ID: Hi all, I wrote few codes in Jython for reading xmls. Everything was working fine until one fine day my client asks for a java interoperability. I dig up the internet and landed up here: http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html This is however is not the problem. The problem is I used beautifulsoup because of b0rked XML responses. Considering that for different request there will be different response which in turn(in beautifulsoup) results in something like ns#:somename (where # is a number and Some name is a node name). I will be lost with random combinations every time a different response comes. One way of thinking is to generalize the beautifulsoup code(but will face the problem above) and then use the Java Jython patching. Another way is to use something else similar to Beautifulsoup (e.g. JSoup maybe). Beautiful soup is powerful and I am helpless. Please help with your thoughts and ideas. ------------- Regards Subhodip Biswas GPG key : FAEA34AB Server : pgp.mit.edu http://subhodipbiswas.wordpress.com http:/www.fedoraproject.org/wiki/SubhodipBiswas From anandology at gmail.com Tue Oct 11 10:50:28 2011 From: anandology at gmail.com (Anand Chitipothu) Date: Tue, 11 Oct 2011 14:20:28 +0530 Subject: [BangPypers] BeautifulSoup in Jython required in Java faced Problem In-Reply-To: References: Message-ID: 2011/10/11 Subhodip Biswas : > Hi all, > > I wrote few codes in Jython for reading xmls. Everything was working > fine until one fine day my client asks for a java interoperability. > I dig up the internet and landed up here: > http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html > This is however is not the problem. The problem is I used > beautifulsoup because of b0rked XML responses. Considering that for > different request there will be different response which in turn(in > beautifulsoup) results in something like ns#:somename (where # is a > number and Some name is a node name). I will be lost with random > combinations every time a different response comes. > > One way of thinking is to generalize the beautifulsoup code(but will > face the problem above) and then use the Java Jython patching. > Another way is to use something else similar to Beautifulsoup (e.g. > JSoup maybe). > > Beautiful soup is powerful and I am helpless. Please help with your > thoughts and ideas. You can take the BeautifulSoup.py and compile it to .class file and put it in a jar. That should allow you to use it from Java with ease. Anand From supr.e.etsethi at gmail.com Tue Oct 11 13:12:36 2011 From: supr.e.etsethi at gmail.com (s|s) Date: Tue, 11 Oct 2011 16:42:36 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: Message-ID: I would have loved to conduct the session. Unfortunately, I am in Delhi and also I am conducting a session on databases on 22nd. I am sending some important links in this context. http://pypi.python.org/pypi/Fuzzy http://pypi.python.org/pypi/python-Levenshtein/ http://www.nltk.org/ http://streamhacker.com/2010/05/10/text-classification-sentiment-analysis-naive-bayes-classifier/ http://nlp.lsi.upc.edu/freeling/ https://github.com/djinn/freeling-python As criticism of NLP http://teddziuba.com/2008/11/avoiding-nlp-at-all-costs.html Hope you guys have a great session. -- Supreet Sethi Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From abdulmuneer at gmail.com Tue Oct 11 13:16:45 2011 From: abdulmuneer at gmail.com (Abdul Muneer) Date: Tue, 11 Oct 2011 16:46:45 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: Message-ID: Hi, Some course from stanford on ml and ai. ml-class.org ai-class.org Join last date is already gone, but my friends are able to join even now.. Regards, Abdul Muneer -- Whom I'm Lookin' for is The One who sees!! On Tue, Oct 11, 2011 at 4:42 PM, s|s wrote: > I would have loved to conduct the session. Unfortunately, I am in > Delhi and also I am conducting a session on databases on 22nd. I am > sending some important links in this context. > > > http://pypi.python.org/pypi/Fuzzy > http://pypi.python.org/pypi/python-Levenshtein/ > http://www.nltk.org/ > > http://streamhacker.com/2010/05/10/text-classification-sentiment-analysis-naive-bayes-classifier/ > http://nlp.lsi.upc.edu/freeling/ > https://github.com/djinn/freeling-python > > As criticism of NLP > > http://teddziuba.com/2008/11/avoiding-nlp-at-all-costs.html > > > Hope you guys have a great session. > > > > > > > > -- > Supreet Sethi > > Ph IN: +919811143517 > Ph Skype: d_j_i_n_n > Profile: http://www.google.com/profiles/supreet.sethi > Twt: http://twitter.com/djinn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From aashutoshnarayan at gmail.com Tue Oct 11 13:36:31 2011 From: aashutoshnarayan at gmail.com (Ashutosh Narayan) Date: Tue, 11 Oct 2011 17:06:31 +0530 Subject: [BangPypers] Interesting library Message-ID: Hi, Came across this interesting library for sys-ad stuffs. http://docs.fabfile.org/en/1.2.2/index.html -- Ashutosh Narayan http://ashutoshn.wordpress.com | Twitter: @narayanashutosh From supr.e.etsethi at gmail.com Tue Oct 11 14:01:34 2011 From: supr.e.etsethi at gmail.com (s|s) Date: Tue, 11 Oct 2011 17:31:34 +0530 Subject: [BangPypers] Interesting library In-Reply-To: References: Message-ID: Great starting point for writing a remote app installer. On Tue, Oct 11, 2011 at 5:06 PM, Ashutosh Narayan wrote: > Hi, > > Came across this interesting library for sys-ad stuffs. > > http://docs.fabfile.org/en/1.2.2/index.html > > > -- > Ashutosh Narayan > > http://ashutoshn.wordpress.com | Twitter: @narayanashutosh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From noufal at gmail.com Tue Oct 11 14:11:33 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 11 Oct 2011 17:41:33 +0530 Subject: [BangPypers] Interesting library In-Reply-To: (s|s's message of "Tue, 11 Oct 2011 17:31:34 +0530") References: Message-ID: <87pqi320ei.fsf@sanitarium.localdomain> It does solve a problem but it's got it's own limitations which are sometimes annoying. "s|s" writes: > Great starting point for writing a remote app installer. > > On Tue, Oct 11, 2011 at 5:06 PM, Ashutosh Narayan > wrote: >> Hi, >> >> Came across this interesting library for sys-ad stuffs. >> >> http://docs.fabfile.org/en/1.2.2/index.html >> >> >> -- >> Ashutosh Narayan >> >> http://ashutoshn.wordpress.com | Twitter: @narayanashutosh >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> -- ~noufal http://nibrahim.net.in Honk if you are against noise pollution! From director at guruprevails.com Tue Oct 11 17:14:56 2011 From: director at guruprevails.com (director guruprevails) Date: Tue, 11 Oct 2011 20:44:56 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: Message-ID: Thank you for responding ...stay in touch On Tue, Oct 11, 2011 at 4:46 PM, Abdul Muneer wrote: > Hi, > Some course from stanford on ml and ai. > ml-class.org > ai-class.org > > Join last date is already gone, but my friends are able to join even now.. > Regards, > Abdul Muneer > > -- > Whom I'm Lookin' for is The One who sees!! > > > On Tue, Oct 11, 2011 at 4:42 PM, s|s wrote: > > > I would have loved to conduct the session. Unfortunately, I am in > > Delhi and also I am conducting a session on databases on 22nd. I am > > sending some important links in this context. > > > > > > http://pypi.python.org/pypi/Fuzzy > > http://pypi.python.org/pypi/python-Levenshtein/ > > http://www.nltk.org/ > > > > > http://streamhacker.com/2010/05/10/text-classification-sentiment-analysis-naive-bayes-classifier/ > > http://nlp.lsi.upc.edu/freeling/ > > https://github.com/djinn/freeling-python > > > > As criticism of NLP > > > > http://teddziuba.com/2008/11/avoiding-nlp-at-all-costs.html > > > > > > Hope you guys have a great session. > > > > > > > > > > > > > > > > -- > > Supreet Sethi > > > > Ph IN: +919811143517 > > Ph Skype: d_j_i_n_n > > Profile: http://www.google.com/profiles/supreet.sethi > > Twt: http://twitter.com/djinn > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From goldkeshava.88 at gmail.com Tue Oct 11 19:08:11 2011 From: goldkeshava.88 at gmail.com (keshava M) Date: Tue, 11 Oct 2011 22:38:11 +0530 Subject: [BangPypers] BeautifulSoup in Jython required in Java faced Problem In-Reply-To: References: Message-ID: how to create database and to establish connection or path between files to database and webpage in python. what all d nessary softwares........... plz help me. On 11 October 2011 14:20, Anand Chitipothu wrote: > 2011/10/11 Subhodip Biswas : > > Hi all, > > > > I wrote few codes in Jython for reading xmls. Everything was working > > fine until one fine day my client asks for a java interoperability. > > I dig up the internet and landed up here: > > > http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html > > This is however is not the problem. The problem is I used > > beautifulsoup because of b0rked XML responses. Considering that for > > different request there will be different response which in turn(in > > beautifulsoup) results in something like ns#:somename (where # is a > > number and Some name is a node name). I will be lost with random > > combinations every time a different response comes. > > > > One way of thinking is to generalize the beautifulsoup code(but will > > face the problem above) and then use the Java Jython patching. > > Another way is to use something else similar to Beautifulsoup (e.g. > > JSoup maybe). > > > > Beautiful soup is powerful and I am helpless. Please help with your > > thoughts and ideas. > > You can take the BeautifulSoup.py and compile it to .class file and > put it in a jar. That should allow you to use it from Java with ease. > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From larryt at winfirst.com Wed Oct 12 05:00:49 2011 From: larryt at winfirst.com (larryt at winfirst.com) Date: Tue, 11 Oct 2011 20:00:49 -0700 (PDT) Subject: [BangPypers] Interesting library In-Reply-To: <87pqi320ei.fsf@sanitarium.localdomain> References: <87pqi320ei.fsf@sanitarium.localdomain> Message-ID: <20111011200049.BRQ97917@ms1.mc.surewest.net> Some of those limitations have been addressed here: https://github.com/tav/blog/blob/master/fabric-python-with-cleaner-api-and-parallel-deployment-support.txt And the same author has apparently forked the project as well, but I haven't looked into that. ---- Original message ---- >Date: Tue, 11 Oct 2011 17:41:33 +0530 >From: bangpypers-bounces+larryt=winfirst.com at python.org (on behalf of Noufal Ibrahim ) >Subject: Re: [BangPypers] Interesting library >To: Bangalore Python Users Group - India > > >It does solve a problem but it's got it's own limitations which are >sometimes annoying. > >"s|s" writes: > >> Great starting point for writing a remote app installer. >> >> On Tue, Oct 11, 2011 at 5:06 PM, Ashutosh Narayan >> wrote: >>> Hi, >>> >>> Came across this interesting library for sys-ad stuffs. >>> >>> http://docs.fabfile.org/en/1.2.2/index.html >>> >>> -larry From kunal.t2 at gmail.com Wed Oct 12 05:21:38 2011 From: kunal.t2 at gmail.com (kunal ghosh) Date: Wed, 12 Oct 2011 08:51:38 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: Message-ID: Thanks a LOT for these links ! On Tue, Oct 11, 2011 at 4:46 PM, Abdul Muneer wrote: > Hi, > Some course from stanford on ml and ai. > ml-class.org > ai-class.org > > Join last date is already gone, but my friends are able to join even now.. > Regards, > Abdul Muneer > > -- > Whom I'm Lookin' for is The One who sees!! > > > On Tue, Oct 11, 2011 at 4:42 PM, s|s wrote: > > > I would have loved to conduct the session. Unfortunately, I am in > > Delhi and also I am conducting a session on databases on 22nd. I am > > sending some important links in this context. > > > > > > http://pypi.python.org/pypi/Fuzzy > > http://pypi.python.org/pypi/python-Levenshtein/ > > http://www.nltk.org/ > > > > > http://streamhacker.com/2010/05/10/text-classification-sentiment-analysis-naive-bayes-classifier/ > > http://nlp.lsi.upc.edu/freeling/ > > https://github.com/djinn/freeling-python > > > > As criticism of NLP > > > > http://teddziuba.com/2008/11/avoiding-nlp-at-all-costs.html > > > > > > Hope you guys have a great session. > > > > > > > > > > > > > > > > -- > > Supreet Sethi > > > > Ph IN: +919811143517 > > Ph Skype: d_j_i_n_n > > Profile: http://www.google.com/profiles/supreet.sethi > > Twt: http://twitter.com/djinn > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- regards, Kunal Ghosh From vsapre80 at gmail.com Wed Oct 12 07:43:24 2011 From: vsapre80 at gmail.com (Vishal) Date: Wed, 12 Oct 2011 11:13:24 +0530 Subject: [BangPypers] Creating windows installer In-Reply-To: References: Message-ID: Hello Shashidhar, I have found the following path to be platform independent and highly stable. Windows: Python App --> *bbfreeze *--> InnoSetup Linux or MacOSX: Python App --> *bbfreeze *--> gz or bz2 or zip Hope this helps... Vishal Sapre On Mon, Sep 26, 2011 at 11:24 AM, Shashidhar Paragonda < shashidhar85 at gmail.com> wrote: > Hello Python hackers, > > I want to create windows installer (one) file which is > combination of, Python v.2.4.4, Zope v2.8.11, Postgresql v8.1.x, and some > Python dependency packages and Zope dependency packages. > With inclusion of all these above packages I need one single > executable file to install at one shot. > Any resources how to do this, thank you in advance for the > help!!!!!!!!!! > > > -- > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919449073835 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else." "Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." "????? ?????, ????? ????? (Benefit for most people, Happiness for most people.)" The difference between "*ordinary*" and "*extraordinary*" is that "extra". Its called by another name, "*preparation*". Extraordinary people prepare themselves for situations that ordinary people choose to ignore. From lawgon at gmail.com Wed Oct 12 14:05:45 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 12 Oct 2011 17:35:45 +0530 Subject: [BangPypers] webmail server Message-ID: <1318421148.1958.14.camel@xlquest.web> hi, anyone know of a webmail server in python - I remember using one some years back, but cannot recall the name. -- regards Kenneth Gonsalves From b.ghose at gmail.com Wed Oct 12 14:31:45 2011 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Wed, 12 Oct 2011 18:01:45 +0530 Subject: [BangPypers] webmail server In-Reply-To: <1318421148.1958.14.camel@xlquest.web> References: <1318421148.1958.14.camel@xlquest.web> Message-ID: Lamson - http://lamsonproject.org/ Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From supr.e.etsethi at gmail.com Thu Oct 13 05:18:23 2011 From: supr.e.etsethi at gmail.com (s|s) Date: Thu, 13 Oct 2011 08:48:23 +0530 Subject: [BangPypers] webmail server In-Reply-To: References: <1318421148.1958.14.camel@xlquest.web> Message-ID: Looks great On Wed, Oct 12, 2011 at 6:01 PM, Baishampayan Ghose wrote: > Lamson - http://lamsonproject.org/ > > Regards, > BG > > -- > Baishampayan Ghose > b.ghose at gmail.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From lawgon at gmail.com Thu Oct 13 07:31:46 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 13 Oct 2011 11:01:46 +0530 Subject: [BangPypers] webmail server In-Reply-To: References: <1318421148.1958.14.camel@xlquest.web> Message-ID: <1318483909.1958.27.camel@xlquest.web> On Wed, 2011-10-12 at 18:01 +0530, Baishampayan Ghose wrote: > Lamson - http://lamsonproject.org/ sorry - wrong question - I meant webmail client - like openwebmail. -- regards Kenneth Gonsalves From b.ghose at gmail.com Thu Oct 13 07:38:55 2011 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Thu, 13 Oct 2011 11:08:55 +0530 Subject: [BangPypers] webmail server In-Reply-To: <1318483909.1958.27.camel@xlquest.web> References: <1318421148.1958.14.camel@xlquest.web> <1318483909.1958.27.camel@xlquest.web> Message-ID: > On Wed, 2011-10-12 at 18:01 +0530, Baishampayan Ghose wrote: >> Lamson - http://lamsonproject.org/ > > sorry - wrong question - I meant webmail client - like openwebmail. PyWebmail? - http://code.google.com/p/webpymail/ Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From noufal at gmail.com Thu Oct 13 07:43:20 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 13 Oct 2011 11:13:20 +0530 Subject: [BangPypers] webmail server In-Reply-To: <1318483909.1958.27.camel@xlquest.web> (Kenneth Gonsalves's message of "Thu, 13 Oct 2011 11:01:46 +0530") References: <1318421148.1958.14.camel@xlquest.web> <1318483909.1958.27.camel@xlquest.web> Message-ID: <87r52hsayv.fsf@sanitarium.localdomain> Kenneth Gonsalves writes: > On Wed, 2011-10-12 at 18:01 +0530, Baishampayan Ghose wrote: >> Lamson - http://lamsonproject.org/ > > sorry - wrong question - I meant webmail client - like openwebmail. There was posterity[1] but it's no longer maintained. There are http://www.squirrelmail.org/ and http://www.roundcube.net/ which are maintained but both are in PHP. Footnotes: [1] http://posterity.edgewall.org/ -- ~noufal http://nibrahim.net.in His honour rooted in dishonour stood, And faith unfaithful kept him falsely true. -- Alfred Lord Tennyson From lawgon at gmail.com Thu Oct 13 08:11:56 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 13 Oct 2011 11:41:56 +0530 Subject: [BangPypers] webmail server In-Reply-To: <87r52hsayv.fsf@sanitarium.localdomain> References: <1318421148.1958.14.camel@xlquest.web> <1318483909.1958.27.camel@xlquest.web> <87r52hsayv.fsf@sanitarium.localdomain> Message-ID: <1318486320.1958.32.camel@xlquest.web> On Thu, 2011-10-13 at 11:13 +0530, Noufal Ibrahim wrote: > > sorry - wrong question - I meant webmail client - like openwebmail. > > > There was posterity[1] but it's no longer maintained. > > There are http://www.squirrelmail.org/ and http://www.roundcube.net/ > which are maintained but both are in PHP. > > that is my problem - the default for roundcube is mysql, and am unable to configure it for postgresql without spending time on understanding how installing drivers for PHP works. And I do not want to spend that time for a one-off thing like this. -- regards Kenneth Gonsalves From lawgon at gmail.com Thu Oct 13 08:12:34 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 13 Oct 2011 11:42:34 +0530 Subject: [BangPypers] webmail server In-Reply-To: References: <1318421148.1958.14.camel@xlquest.web> <1318483909.1958.27.camel@xlquest.web> Message-ID: <1318486357.1958.33.camel@xlquest.web> On Thu, 2011-10-13 at 11:08 +0530, Baishampayan Ghose wrote: > > On Wed, 2011-10-12 at 18:01 +0530, Baishampayan Ghose wrote: > >> Lamson - http://lamsonproject.org/ > > > > sorry - wrong question - I meant webmail client - like openwebmail. > > PyWebmail? - http://code.google.com/p/webpymail/ not mature enough -- regards Kenneth Gonsalves From noufal at gmail.com Thu Oct 13 08:17:21 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 13 Oct 2011 11:47:21 +0530 Subject: [BangPypers] webmail server In-Reply-To: <1318486320.1958.32.camel@xlquest.web> (Kenneth Gonsalves's message of "Thu, 13 Oct 2011 11:41:56 +0530") References: <1318421148.1958.14.camel@xlquest.web> <1318483909.1958.27.camel@xlquest.web> <87r52hsayv.fsf@sanitarium.localdomain> <1318486320.1958.32.camel@xlquest.web> Message-ID: <87pqi1qutq.fsf@sanitarium.localdomain> Kenneth Gonsalves writes: [...] > that is my problem - the default for roundcube is mysql, and am unable > to configure it for postgresql without spending time on understanding > how installing drivers for PHP works. And I do not want to spend that > time for a one-off thing like this. If it's one off and you're not going to use it for long, you can try posterity. -- ~noufal http://nibrahim.net.in Some bird populations soaring down -Headline of an article in Science News, page 126, February 20, 1993. From lawgon at gmail.com Thu Oct 13 08:50:08 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 13 Oct 2011 12:20:08 +0530 Subject: [BangPypers] webmail server In-Reply-To: <87pqi1qutq.fsf@sanitarium.localdomain> References: <1318421148.1958.14.camel@xlquest.web> <1318483909.1958.27.camel@xlquest.web> <87r52hsayv.fsf@sanitarium.localdomain> <1318486320.1958.32.camel@xlquest.web> <87pqi1qutq.fsf@sanitarium.localdomain> Message-ID: <1318488618.1958.44.camel@xlquest.web> On Thu, 2011-10-13 at 11:47 +0530, Noufal Ibrahim wrote: > > that is my problem - the default for roundcube is mysql, and am > unable > > to configure it for postgresql without spending time on > understanding > > how installing drivers for PHP works. And I do not want to spend > that > > time for a one-off thing like this. > > If it's one off and you're not going to use it for long, you can try > posterity. *I* am not going to use it, and since it is not going to live on *my* server, I went with roundcube/mysql. I now need to purify my laptop. -- regards Kenneth Gonsalves From asif.jamadar at rezayat.net Thu Oct 13 10:55:01 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Thu, 13 Oct 2011 08:55:01 +0000 Subject: [BangPypers] Read barcode input Message-ID: I have django form which consist of input field (CharField). How can I read barcode input directly into this form field. Any suggestions? From gora at mimirtech.com Thu Oct 13 11:56:33 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 13 Oct 2011 15:26:33 +0530 Subject: [BangPypers] Read barcode input In-Reply-To: References: Message-ID: On Thu, Oct 13, 2011 at 2:25 PM, Asif Jamadar wrote: > I have django form which consist of input field (CharField). How can I read barcode input directly into this form field. Any suggestions? What does that mean? Read barcode input from where? Hold up the barcode to the screen? Regards, Gora From asif.jamadar at rezayat.net Thu Oct 13 11:59:57 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Thu, 13 Oct 2011 09:59:57 +0000 Subject: [BangPypers] (no subject) Message-ID: I have django form which consist of input field (CharField). How can I read barcode input directly into this form field. Any suggestions? From asif.jamadar at rezayat.net Thu Oct 13 12:01:49 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Thu, 13 Oct 2011 10:01:49 +0000 Subject: [BangPypers] Read barcode input In-Reply-To: References: Message-ID: Where can I get examples on zbar to read barcode input directly to my django App. -----Original Message----- From: bangpypers-bounces+asif.jamadar=rezayat.net at python.org [mailto:bangpypers-bounces+asif.jamadar=rezayat.net at python.org] On Behalf Of Asif Jamadar Sent: Thursday, October 13, 2011 11:55 AM To: bangpypers at python.org Subject: [BangPypers] Read barcode input I have django form which consist of input field (CharField). How can I read barcode input directly into this form field. Any suggestions? _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From asif.jamadar at rezayat.net Thu Oct 13 12:08:33 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Thu, 13 Oct 2011 10:08:33 +0000 Subject: [BangPypers] Read barcode input In-Reply-To: References: Message-ID: >From the scanner. -----Original Message----- From: bangpypers-bounces+asif.jamadar=rezayat.net at python.org [mailto:bangpypers-bounces+asif.jamadar=rezayat.net at python.org] On Behalf Of Gora Mohanty Sent: Thursday, October 13, 2011 12:57 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Read barcode input On Thu, Oct 13, 2011 at 2:25 PM, Asif Jamadar wrote: > I have django form which consist of input field (CharField). How can I read barcode input directly into this form field. Any suggestions? What does that mean? Read barcode input from where? Hold up the barcode to the screen? Regards, Gora _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From noufal at gmail.com Thu Oct 13 12:17:21 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 13 Oct 2011 15:47:21 +0530 Subject: [BangPypers] Read barcode input In-Reply-To: (Asif Jamadar's message of "Thu, 13 Oct 2011 10:08:33 +0000") References: Message-ID: <877h49qjpq.fsf@sanitarium.localdomain> Asif Jamadar writes: >>From the scanner. [...] This is not something django specific is it? My understanding is that 1. You'll have to configure your device to work with whatever OS your web client is running on. Not the machine where the Django app is running. 2. You'll have to read the data and decode it using (possibly) the zbar libraries. Skimming over the docs says that it can read directly from the scanners. 3. Now you have the code and a decoded number. This needs to be put into the web browser. I'm not sure what's the "right" way to do this. You can cook up something with MozRepl but that doesn't sound "professional". Now it's in the browser. 4. Submit the form. Django doesn't come into the picture at all. -- ~noufal http://nibrahim.net.in I am a deeply superficial person. -Andy Warhol From supr.e.etsethi at gmail.com Thu Oct 13 12:32:11 2011 From: supr.e.etsethi at gmail.com (s|s) Date: Thu, 13 Oct 2011 16:02:11 +0530 Subject: [BangPypers] Read barcode input In-Reply-To: <877h49qjpq.fsf@sanitarium.localdomain> References: <877h49qjpq.fsf@sanitarium.localdomain> Message-ID: I possible way is for barcode scanner to put the barcode into he browser field which has focus. Frankly there is no right answer. Chances are you will end up with browser specific solution. Like Noufal said before, Django has not part to play. On Thu, Oct 13, 2011 at 3:47 PM, Noufal Ibrahim wrote: > Asif Jamadar writes: > >>>From the scanner. > > [...] > > This is not something django specific is it? > I possible way is for barcode scanner to put the barcode into he browser field which has focus. Frankly there is no right answer. Chances are you will end up with browser specific solution. Like Noufal said before, Django has not part to play. > -- > ~noufal > http://nibrahim.net.in > > I am a deeply superficial person. -Andy Warhol > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From rajeev.sebastian at gmail.com Thu Oct 13 13:16:25 2011 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Thu, 13 Oct 2011 16:46:25 +0530 Subject: [BangPypers] Read barcode input In-Reply-To: References: <877h49qjpq.fsf@sanitarium.localdomain> Message-ID: Normally, this kind of stuff is done by writing a pseudo-keyboard driver for the scanner. Then, when scanning it outputs the value into the currently focused field. Usually, the scanner will come with a driver for this specific purpose. Maybe you may have to write a custom one. Typically, the driver is generic and doesn't care if the input field is in the browser or some GUI app. Regards Rajeev J Sebastian On Thu, Oct 13, 2011 at 4:02 PM, s|s wrote: > I possible way is for barcode scanner to put the barcode into he > browser field which has focus. Frankly there is no right answer. > Chances are you will end up with browser specific solution. Like > Noufal said before, Django has not part to play. > > On Thu, Oct 13, 2011 at 3:47 PM, Noufal Ibrahim wrote: >> Asif Jamadar writes: >> >>>>From the scanner. >> >> [...] >> >> This is not something django specific is it? >> > I possible way is for barcode scanner to put the barcode into he > browser field which has focus. Frankly there is no right answer. > Chances are you will end up with browser specific solution. Like > Noufal said before, Django has not part to play. > > >> -- >> ~noufal >> http://nibrahim.net.in >> >> I am a deeply superficial person. -Andy Warhol >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > Supreet Sethi > Ph UK: +447859172473 > Ph IN: +919811143517 > Ph Skype: d_j_i_n_n > Profile: http://www.google.com/profiles/supreet.sethi > Twt: http://twitter.com/djinn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From senthil at uthcode.com Sat Oct 15 02:53:04 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Sat, 15 Oct 2011 08:53:04 +0800 Subject: [BangPypers] Selenium pyvirtualdisplay Script suggestions to improve In-Reply-To: References: Message-ID: <20111015005304.GA1935@mathmagic> On Fri, Oct 07, 2011 at 11:20:46AM +0530, Saju M wrote: > Here is the code for change "Custom Location" in google search page > http://dpaste.com/629298/ > log > http://dpaste.com/629304/ > > I could run it on Remote Server. > But its not working sometimes, because selenium can't find some The problem seems not with your code, but with google page which does not the geolocation based redirection to appropriate page. The remote server is obviously is not at the same spot as yours and is presented with a different page which does not have Change Location link. Look for the link which does not do the redirection. HTH, Senthil From dg288_mits at yahoo.co.in Sat Oct 15 10:54:08 2011 From: dg288_mits at yahoo.co.in (deepak gupta) Date: Sat, 15 Oct 2011 14:24:08 +0530 (IST) Subject: [BangPypers] + SSL Error , while making HTTPS server In-Reply-To: References: <877h49qjpq.fsf@sanitarium.localdomain> Message-ID: <1318668848.87143.YahooMailNeo@web137308.mail.in.yahoo.com> Hi All, ? I am getting? "no OPENSSL_Applink" while creating context for HTTPS server, It occur in the line? 'ctx.set_tmp_dh('dh1024.pem')'. Do any one knows why this error occured and what will happen if I will comment 'ctx.set_tmp_dh('dh1024.pem')' line and proceed. ? 2nd problem is I am getting SSL.error : unexpected eof error, If I comment and proceed. ? import string, os from M2Crypto import Err, Rand, SSL, threading from M2Crypto.SSL.SSLServer import ThreadingSSLServer import maxInputStats class HTTPS_Server(ThreadingSSLServer): ??? def __init__(self, server_addr, handler): ??? ?ssl_ctx = self.create_ctx()?? ? ??? ?ThreadingSSLServer.__init__(self, server_addr, handler, ssl_ctx) ??? def finish(self): ??????? self.request.set_shutdown(SSL.SSL_RECEIVED_SHUTDOWN | SSL.SSL_SENT_SHUTDOWN) ??????? self.request.close() ??? def handle_error(self, request, client_address): ?pass ??? def create_ctx(self): ?try: ??sslFile = maxInputStats.CRT_FILE ?except: ??sslFile = 'maxims.crt' ?if not os.path.isfile(sslFile) : ??print("Open certificate error. The certificate (%s) cannot find!" %sslFile) ??return ??? ? ??? ?ctx=SSL.Context('sslv23') ??? ?ctx.load_cert(sslFile) ??? ?ctx.load_client_ca('') ??? ?ctx.load_verify_info('') ??? ?ctx.set_verify(SSL.verify_none, 10) ??? ?ctx.set_allow_unknown_ca(1) ??? ?ctx.set_session_id_ctx('https_srv') ??? ?ctx.set_tmp_dh('dh1024.pem') ??? ?return ctx ? ? Thanks, Deepak G. From abpillai at gmail.com Sat Oct 15 18:49:17 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sat, 15 Oct 2011 22:19:17 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: Message-ID: On Tue, Oct 11, 2011 at 4:46 PM, Abdul Muneer wrote: > Hi, > Some course from stanford on ml and ai. > ml-class.org > I have enrolled for this and I am currently taking the basic course lessons online. It is pretty good, I have an assignment on linear regression due tomorrow :) > ai-class.org > > Join last date is already gone, but my friends are able to join even now.. > Regards, > Abdul Muneer > > -- > Whom I'm Lookin' for is The One who sees!! > > > On Tue, Oct 11, 2011 at 4:42 PM, s|s wrote: > > > I would have loved to conduct the session. Unfortunately, I am in > > Delhi and also I am conducting a session on databases on 22nd. I am > > sending some important links in this context. > > > > > > http://pypi.python.org/pypi/Fuzzy > > http://pypi.python.org/pypi/python-Levenshtein/ > > http://www.nltk.org/ > > > > > http://streamhacker.com/2010/05/10/text-classification-sentiment-analysis-naive-bayes-classifier/ > > http://nlp.lsi.upc.edu/freeling/ > > https://github.com/djinn/freeling-python > > > > As criticism of NLP > > > > http://teddziuba.com/2008/11/avoiding-nlp-at-all-costs.html > > > > > > Hope you guys have a great session. > > > > > > > > > > > > > > > > -- > > Supreet Sethi > > > > Ph IN: +919811143517 > > Ph Skype: d_j_i_n_n > > Profile: http://www.google.com/profiles/supreet.sethi > > Twt: http://twitter.com/djinn > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From senthil at uthcode.com Sat Oct 15 20:24:51 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 16 Oct 2011 02:24:51 +0800 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: Message-ID: <20111015182451.GA1945@mathmagic> On Sat, Oct 15, 2011 at 10:19:17PM +0530, Anand Balachandran Pillai wrote: > > Some course from stanford on ml and ai. > > ml-class.org > > > > I have enrolled for this and I am currently taking the basic course > lessons online. It is pretty good, > > I have an assignment on linear regression due tomorrow :) > > > > ai-class.org > > I am doing this. Just completed the assignment as well. It is pretty good. -- Senthil From senthil at uthcode.com Sat Oct 15 20:35:26 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 16 Oct 2011 02:35:26 +0800 Subject: [BangPypers] + SSL Error , while making HTTPS server In-Reply-To: <1318668848.87143.YahooMailNeo@web137308.mail.in.yahoo.com> References: <877h49qjpq.fsf@sanitarium.localdomain> <1318668848.87143.YahooMailNeo@web137308.mail.in.yahoo.com> Message-ID: <20111015183526.GB1945@mathmagic> On Sat, Oct 15, 2011 at 02:24:08PM +0530, deepak gupta wrote: > I am getting? "no OPENSSL_Applink" while creating context for HTTPS > server, It occur in the line? 'ctx.set_tmp_dh('dh1024.pem')'. Do > any one knows why this error occured and what will happen if I will > comment 'ctx.set_tmp_dh('dh1024.pem')' line and proceed. Some explanation first. When dealing with SSL, you create an SSL Context object and then feed in the required certs, passphrases, keys etc and then give callbacks and actions to that. That is most of the systems are designed to work. In your case, you are using M2Crypto library to provide the SSL functionality. M2Crypto seem to have this method called set_tmp_dh and the dh stands for the diffee hellman algorithm and consuming the .pem certificate to be associated with the your ssl context object. If you the .pem certificate is of the format which is not applicable to the algorithm you are using, then you might get some errors. http://nullege.com/codes/search/M2Crypto.SSL.Context.set_tmp_dh http://www.openssl.org/docs/apps/dhparam.html My question is, how did you decide to use the set_tmp_dh method? Depending upon the requirement, you may choose to use it correctly or ignore it. > 2nd problem is I am getting SSL.error : unexpected eof error, If I comment and proceed. You mean, if you ignore the set_tmp_dh method and then proceed? -- Senthil From anandology at gmail.com Sun Oct 16 03:02:58 2011 From: anandology at gmail.com (Anand Chitipothu) Date: Sun, 16 Oct 2011 06:32:58 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: <20111015182451.GA1945@mathmagic> References: <20111015182451.GA1945@mathmagic> Message-ID: 2011/10/15 Senthil Kumaran : > On Sat, Oct 15, 2011 at 10:19:17PM +0530, Anand Balachandran Pillai wrote: >> > Some course from stanford on ml and ai. >> > ml-class.org >> > >> >> I have enrolled for this and I am currently taking the basic course >> lessons online. It is pretty good, >> >> I have an assignment on linear regression due tomorrow :) >> >> >> > ai-class.org >> > > > I am doing this. Just completed the assignment as well. > It is pretty good. Even I'm doing that ai-class. Its very good. Anand From abpillai at gmail.com Sun Oct 16 18:14:14 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 16 Oct 2011 21:44:14 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: <20111015182451.GA1945@mathmagic> Message-ID: On Sun, Oct 16, 2011 at 6:32 AM, Anand Chitipothu wrote: > 2011/10/15 Senthil Kumaran : > > On Sat, Oct 15, 2011 at 10:19:17PM +0530, Anand Balachandran Pillai > wrote: > >> > Some course from stanford on ml and ai. > >> > ml-class.org > >> > > >> > >> I have enrolled for this and I am currently taking the basic course > >> lessons online. It is pretty good, > >> > >> I have an assignment on linear regression due tomorrow :) > >> > >> > >> > ai-class.org > >> > > > > > I am doing this. Just completed the assignment as well. > > It is pretty good. > > Even I'm doing that ai-class. Its very good. > Great. We should all catch up sometime on the course topics. I just finished submitting the review questions. Felt nice trying calculus / algebra after ages and getting it right :) > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From kunal.t2 at gmail.com Sun Oct 16 19:45:09 2011 From: kunal.t2 at gmail.com (kunal ghosh) Date: Sun, 16 Oct 2011 23:15:09 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: <20111015182451.GA1945@mathmagic> Message-ID: +1 On Sun, Oct 16, 2011 at 9:44 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Sun, Oct 16, 2011 at 6:32 AM, Anand Chitipothu >wrote: > > > 2011/10/15 Senthil Kumaran : > > > On Sat, Oct 15, 2011 at 10:19:17PM +0530, Anand Balachandran Pillai > > wrote: > > >> > Some course from stanford on ml and ai. > > >> > ml-class.org > > >> > > > >> > > >> I have enrolled for this and I am currently taking the basic course > > >> lessons online. It is pretty good, > > >> > > >> I have an assignment on linear regression due tomorrow :) > > >> > > >> > > >> > ai-class.org > > >> > > > > > > > I am doing this. Just completed the assignment as well. > > > It is pretty good. > > > > Even I'm doing that ai-class. Its very good. > > > > Great. We should all catch up sometime on the course topics. > > I just finished submitting the review questions. Felt nice > trying calculus / algebra after ages and getting it right :) > > > > > > Anand > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- regards, Kunal Ghosh From vishnuprasadgaddam at gmail.com Mon Oct 17 04:59:56 2011 From: vishnuprasadgaddam at gmail.com (vishnu prasad) Date: Mon, 17 Oct 2011 08:29:56 +0530 Subject: [BangPypers] Please update venue details Message-ID: Hi to all when and where the venue details of this user group will conduct please update ? From abpillai at gmail.com Mon Oct 17 09:32:45 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 17 Oct 2011 13:02:45 +0530 Subject: [BangPypers] Interesting library In-Reply-To: References: Message-ID: On Tue, Oct 11, 2011 at 5:06 PM, Ashutosh Narayan < aashutoshnarayan at gmail.com> wrote: > Hi, > > Came across this interesting library for sys-ad stuffs. > > http://docs.fabfile.org/en/1.2.2/index.html > Isn't paramiko enough for most remote scripting tasks ? > > > -- > Ashutosh Narayan > > http://ashutoshn.wordpress.com | Twitter: @narayanashutosh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Mon Oct 17 10:00:46 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 17 Oct 2011 13:30:46 +0530 Subject: [BangPypers] Please update venue details In-Reply-To: (vishnu prasad's message of "Mon, 17 Oct 2011 08:29:56 +0530") References: Message-ID: <87k484gi8h.fsf@sanitarium.localdomain> vishnu prasad writes: > Hi to all > > when and where the venue details of this user group will conduct please > update ? [...] Nothing decided yet. -- ~noufal http://nibrahim.net.in Smoking is the leading cause of statistics. From noufal at gmail.com Mon Oct 17 10:18:04 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 17 Oct 2011 13:48:04 +0530 Subject: [BangPypers] Interesting library In-Reply-To: (Anand Balachandran Pillai's message of "Mon, 17 Oct 2011 13:02:45 +0530") References: Message-ID: <8762joghfn.fsf@sanitarium.localdomain> Anand Balachandran Pillai writes: > On Tue, Oct 11, 2011 at 5:06 PM, Ashutosh Narayan < > aashutoshnarayan at gmail.com> wrote: > >> Hi, >> >> Came across this interesting library for sys-ad stuffs. >> >> http://docs.fabfile.org/en/1.2.2/index.html >> > > Isn't paramiko enough for most remote scripting tasks ? [...] fabric is an abstraction over paramiko that's a lot more "domain specific" than just an ssh connection. It's similar to make in invocation. You say things like "fab deploy" "fab rollback" etc. -- ~noufal http://nibrahim.net.in An empty cab drove up and Sarah Bernhardt got out. -Arthur Baer, American comic and columnist From ppc.lists at gmail.com Mon Oct 17 10:36:26 2011 From: ppc.lists at gmail.com (Pradip Caulagi) Date: Mon, 17 Oct 2011 14:06:26 +0530 Subject: [BangPypers] Looking for Guest Speaker on Python and NLTK In-Reply-To: References: <20111015182451.GA1945@mathmagic> Message-ID: <4E9BE90A.60303@gmail.com> On 10/16/2011 09:44 PM, Anand Balachandran Pillai wrote: > On Sun, Oct 16, 2011 at 6:32 AM, Anand Chitipothuwrote: >> >> Even I'm doing that ai-class. Its very good. >> > > Great. We should all catch up sometime on the course topics. There is a group of people who are meeting at Jaaga to discuss this course - http://groups.google.com/group/jaaga-ai/browse_thread/thread/5eea824315089543 From asif.jamadar at rezayat.net Mon Oct 17 13:58:48 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Mon, 17 Oct 2011 11:58:48 +0000 Subject: [BangPypers] Reportlab tool with SAP Message-ID: Is it possible to integrate Reportlab tool with SAP? I want to generate graphs or charts for the data which is present in SAPDB. How can I achieve this? From senthil at uthcode.com Mon Oct 17 15:24:01 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Mon, 17 Oct 2011 21:24:01 +0800 Subject: [BangPypers] Interesting library In-Reply-To: <8762joghfn.fsf@sanitarium.localdomain> References: <8762joghfn.fsf@sanitarium.localdomain> Message-ID: <20111017132401.GB1871@mathmagic> On Mon, Oct 17, 2011 at 01:48:04PM +0530, Noufal Ibrahim wrote: > >> Came across this interesting library for sys-ad stuffs. > >> > >> http://docs.fabfile.org/en/1.2.2/index.html > >> > > > > Isn't paramiko enough for most remote scripting tasks ? > > fabric is an abstraction over paramiko that's a lot more "domain > specific" than just an ssh connection. > > It's similar to make in invocation. You say things like "fab deploy" > "fab rollback" etc. Under lot of circumstances, I found wrapping ssh (with it's zillion options) far more flexible than using the libraries for remote scripting. This is applicable to even multi-threaded servers. I for one, yet to stumble upon a case where the above wrapper would fail. Thanks. Senthil From senthil at uthcode.com Mon Oct 17 15:26:01 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Mon, 17 Oct 2011 21:26:01 +0800 Subject: [BangPypers] Reportlab tool with SAP In-Reply-To: References: Message-ID: <20111017132601.GC1871@mathmagic> On Mon, Oct 17, 2011 at 11:58:48AM +0000, Asif Jamadar wrote: > Is it possible to integrate Reportlab tool with SAP? Integrate is a vague term. So the answer is yes!. :-) > I want to generate graphs or charts for the data which is present in SAPDB. Don't know about SAPDB, but you can generate pdf or process text using Reportlab. I hope you can store those in SAPDB. -- Senthil From rmathews at gmail.com Tue Oct 18 09:14:58 2011 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 18 Oct 2011 12:44:58 +0530 Subject: [BangPypers] [JOB] Clay Labs - Chennai Message-ID: Hey, Clay Labs < http://claylabs.com/ > is a startup in Chennai that is looking for Python programmers, we have a blog post about this at http://blog.claylabs.com/post/11565942884/clay-labs-is-hiring If you are a Python or Django programmer, or would be interested in being one, please do drop us a line at jobs at claylabs.com If you know someone who would be interested in this, please pass this mail on to them. Regards, Roshan Mathews roshan at claylabs.com -- http://about.me/rosh From asif.jamadar at rezayat.net Tue Oct 18 10:27:31 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Tue, 18 Oct 2011 08:27:31 +0000 Subject: [BangPypers] Abstract base class in Djangi forms Message-ID: How can I use abstraction of base class in django forms? In models we need to set "abstract=True" so that we can access the base class fields, similarly what concept I should follow to use abstraction in django forms. Regards Asif From noufal at gmail.com Tue Oct 18 10:44:17 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 18 Oct 2011 14:14:17 +0530 Subject: [BangPypers] Abstract base class in Djangi forms In-Reply-To: (Asif Jamadar's message of "Tue, 18 Oct 2011 08:27:31 +0000") References: Message-ID: <87hb363d0e.fsf@sanitarium.localdomain> Asif Jamadar writes: > How can I use abstraction of base class in django forms? In models we > need to set "abstract=True" so that we can access the base class > fields, similarly what concept I should follow to use abstraction in > django forms. I might be off on this since it's been a while but here is what I remember. The abstract = True in Django is not *really* abstract base classes. It's just a way of telling the ORM to not make tables for the class and that it will only be subclassed. This is useful to build your hierarchy properly without making unnecessary tables. However, this doesn't have anything to with being "abstract" in the "abstract base class sense". Otherwise, Python has it's own models of inheritance and it's own scheme for method resolution. Variables are in the object so it doesn't make sense accessing the base class instances for these. Methods are different and you can delegate to the base class methods using the `super` keyword. There is also an abstract base class module[1] but I haven't ever used it so I can't comment on that. [...] Footnotes: [1] http://docs.python.org/library/abc.html -- ~noufal http://nibrahim.net.in "Triumph without Victory, The Unreported History of the Persian Gulf War", -Headline published in the U.S. News & World Report, 1992. From asif.jamadar at rezayat.net Tue Oct 18 11:05:54 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Tue, 18 Oct 2011 09:05:54 +0000 Subject: [BangPypers] Abstract base class in Djangi forms In-Reply-To: <87hb363d0e.fsf@sanitarium.localdomain> References: <87hb363d0e.fsf@sanitarium.localdomain> Message-ID: Thank you. Now I got the solution From shashidhar85 at gmail.com Wed Oct 19 12:13:58 2011 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Wed, 19 Oct 2011 15:43:58 +0530 Subject: [BangPypers] File operations Message-ID: Dear Python hackers, I have a text file and the contents are like : #( #resultToExportToCurveDistDialog ' ->' #off) like same structure many lines exists. My requirement is I want to find line where "resultToExportCurveDistDialog" and other pattern exist. After that I need to fetch the value of it. in above example value for "resultToExportCurveDistDialog" is "off" how to move file pointer to next line and fetch value as soon as i find my required patterns. Thank you in advance for the help. -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From noufal at gmail.com Wed Oct 19 12:22:35 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 19 Oct 2011 15:52:35 +0530 Subject: [BangPypers] File operations In-Reply-To: (Shashidhar Paragonda's message of "Wed, 19 Oct 2011 15:43:58 +0530") References: Message-ID: <87botdz3f8.fsf@sanitarium.localdomain> Shashidhar Paragonda writes: > Dear Python hackers, > > I have a text file and the contents are like : > > #( > #resultToExportToCurveDistDialog ' ->' > #off) > > like same structure many lines exists. > My requirement is I want to find line where > "resultToExportCurveDistDialog" and other pattern exist. After that I need > to fetch the value of it. in above example value > for "resultToExportCurveDistDialog" is "off" how to move file > pointer to next line and fetch value as soon as i find my required patterns. > Thank you in advance for the help. Something like this? Untested. keywords = set(["resultToExportToCurveDistDialog", "resultToExportCurveDistDialog2"...]) with open("file.txt", r) as f: for line in f: keyword = line.strip("#").split()[0].strip() if keyword in keywords: value = f.next() print "%s : %s"%(keyword, value) -- ~noufal http://nibrahim.net.in A verbal contract isn't worth the paper it's written on. Include me out. -Samuel Goldwyn From mahendra0203 at gmail.com Wed Oct 19 13:16:25 2011 From: mahendra0203 at gmail.com (mahendra N) Date: Wed, 19 Oct 2011 16:46:25 +0530 Subject: [BangPypers] File operations In-Reply-To: References: Message-ID: Have you thought of using regular expressions? You can get all the values at once.. Thanks and Regards, Mahendra Naik 2011/10/19 Shashidhar Paragonda > Dear Python hackers, > > I have a text file and the contents are like : > > #( > #resultToExportToCurveDistDialog ' ->' > #off) > > like same structure many lines exists. > My requirement is I want to find line where > "resultToExportCurveDistDialog" and other pattern exist. After that I need > to fetch the value of it. in above example value > for "resultToExportCurveDistDialog" is "off" how to move file > pointer to next line and fetch value as soon as i find my required > patterns. > Thank you in advance for the help. > > -- > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919449073835 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From shashidhar85 at gmail.com Wed Oct 19 13:41:02 2011 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Wed, 19 Oct 2011 17:11:02 +0530 Subject: [BangPypers] File operations In-Reply-To: References: Message-ID: Hello Mahendra thanks for replying Sorry I have really not thought of regular expression do you know the solution or method to resolve this On Wed, Oct 19, 2011 at 4:46 PM, mahendra N wrote: > Have you thought of using regular expressions? You can get all the values > at > once.. > > Thanks and Regards, > Mahendra Naik > > 2011/10/19 Shashidhar Paragonda > > > Dear Python hackers, > > > > I have a text file and the contents are like : > > > > #( > > #resultToExportToCurveDistDialog ' ->' > > #off) > > > > like same structure many lines exists. > > My requirement is I want to find line where > > "resultToExportCurveDistDialog" and other pattern exist. After that I > need > > to fetch the value of it. in above example value > > for "resultToExportCurveDistDialog" is "off" how to move file > > pointer to next line and fetch value as soon as i find my required > > patterns. > > Thank you in advance for the help. > > > > -- > > ----------------------------------- > > Regards, > > > > Shashidhar N.Paragonda > > shashidhar85 at gmail.com > > +919449073835 > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From shashidhar85 at gmail.com Wed Oct 19 13:48:03 2011 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Wed, 19 Oct 2011 17:18:03 +0530 Subject: [BangPypers] File operations In-Reply-To: <87botdz3f8.fsf@sanitarium.localdomain> References: <87botdz3f8.fsf@sanitarium.localdomain> Message-ID: Dear Noufal, Thanks for your reply I did in this way is it efficient way to achieve the same requirement all_lines_in_file = open("file.txt", "r").readlines() >> for line in range(0, len(all_lines_in_file)-1): >> if "resultsToPDFFile" in all_lines_in_file[line]: >> if all_lines_in_file[line].split('->')[1].split(')')[0].split("'")[1].strip() == 'true': >> self.cnc_parameters['PDF'] = "ON" >> elif "resultToExportToPDFDialog" in all_lines_in_file[line]: >> if all_lines_in_file[line+1].split(')')[0].split('#')[1] == 'off': >> self.cnc_parameters['PDF'] = "OFF" >> else: >> self.cnc_parameters['PDF'] = "ASK" On Wed, Oct 19, 2011 at 3:52 PM, Noufal Ibrahim wrote: > Shashidhar Paragonda writes: > > > Dear Python hackers, > > > > I have a text file and the contents are like : > > > > #( > > #resultToExportToCurveDistDialog ' ->' > > #off) > > > > like same structure many lines exists. > > My requirement is I want to find line where > > "resultToExportCurveDistDialog" and other pattern exist. After that I > need > > to fetch the value of it. in above example value > > for "resultToExportCurveDistDialog" is "off" how to move file > > pointer to next line and fetch value as soon as i find my required > patterns. > > Thank you in advance for the help. > > Something like this? Untested. > > keywords = set(["resultToExportToCurveDistDialog", > "resultToExportCurveDistDialog2"...]) > > with open("file.txt", r) as f: > for line in f: > keyword = line.strip("#").split()[0].strip() > if keyword in keywords: > value = f.next() > print "%s : %s"%(keyword, value) > > > -- > ~noufal > http://nibrahim.net.in > > A verbal contract isn't worth the paper it's written on. Include me out. > -Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From noufal at gmail.com Wed Oct 19 13:58:13 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 19 Oct 2011 17:28:13 +0530 Subject: [BangPypers] File operations In-Reply-To: (Shashidhar Paragonda's message of "Wed, 19 Oct 2011 17:18:03 +0530") Message-ID: <871uu9yyzu.fsf@sanitarium.localdomain> Shashidhar Paragonda writes: > Dear Noufal, > > Thanks for your reply > I did in this way is it efficient way to achieve the same requirement Doesn't seem so to me. You're going over the lines of the file once without and two times within for each of those iterations. You should use a set or a dictionary rather than lists if you want to do membership tests. Also, this all_lines_in_file[line].split('->')[1].split(')')[0].split("'")[1].strip() is liable to bite you later. I'd suggest you try to simplify it or atleast wrap it up in a function with a nice name. [...] -- ~noufal http://nibrahim.net.in This report is filled with omissions. From mahendra0203 at gmail.com Wed Oct 19 14:04:32 2011 From: mahendra0203 at gmail.com (mahendra N) Date: Wed, 19 Oct 2011 17:34:32 +0530 Subject: [BangPypers] File operations In-Reply-To: <871uu9yyzu.fsf@sanitarium.localdomain> References: <871uu9yyzu.fsf@sanitarium.localdomain> Message-ID: something like re.findall("resultToExportToCurveDistDialog ' ->' \ #(.*?)),RE.MULTILINE) the syntax maybe a little wrong :) 2011/10/19 Noufal Ibrahim > Shashidhar Paragonda writes: > > > Dear Noufal, > > > > Thanks for your reply > > I did in this way is it efficient way to achieve the same requirement > > Doesn't seem so to me. You're going over the lines of the file once > without and two times within for each of those iterations. You should > use a set or a dictionary rather than lists if you want to do membership > tests. > > Also, this > > > all_lines_in_file[line].split('->')[1].split(')')[0].split("'")[1].strip() > > is liable to bite you later. I'd suggest you try to simplify it or > atleast wrap it up in a function with a nice name. > > > [...] > > > -- > ~noufal > http://nibrahim.net.in > > This report is filled with omissions. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From shashidhar85 at gmail.com Wed Oct 19 14:39:22 2011 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Wed, 19 Oct 2011 18:09:22 +0530 Subject: [BangPypers] File operations In-Reply-To: <87botdz3f8.fsf@sanitarium.localdomain> References: <87botdz3f8.fsf@sanitarium.localdomain> Message-ID: Hello Noufal I have tried your solution but i get invalid syntax for this line *with open(............) *I am using python 2.3.5 what could be the problem. On Wed, Oct 19, 2011 at 3:52 PM, Noufal Ibrahim wrote: > Shashidhar Paragonda writes: > > > Dear Python hackers, > > > > I have a text file and the contents are like : > > > > #( > > #resultToExportToCurveDistDialog ' ->' > > #off) > > > > like same structure many lines exists. > > My requirement is I want to find line where > > "resultToExportCurveDistDialog" and other pattern exist. After that I > need > > to fetch the value of it. in above example value > > for "resultToExportCurveDistDialog" is "off" how to move file > > pointer to next line and fetch value as soon as i find my required > patterns. > > Thank you in advance for the help. > > Something like this? Untested. > > keywords = set(["resultToExportToCurveDistDialog", > "resultToExportCurveDistDialog2"...]) > > with open("file.txt", r) as f: > for line in f: > keyword = line.strip("#").split()[0].strip() > if keyword in keywords: > value = f.next() > print "%s : %s"%(keyword, value) > > > -- > ~noufal > http://nibrahim.net.in > > A verbal contract isn't worth the paper it's written on. Include me out. > -Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From noufal at gmail.com Wed Oct 19 14:43:18 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 19 Oct 2011 18:13:18 +0530 Subject: [BangPypers] File operations In-Reply-To: (Shashidhar Paragonda's message of "Wed, 19 Oct 2011 18:09:22 +0530") References: <87botdz3f8.fsf@sanitarium.localdomain> Message-ID: <87vcrlxic9.fsf@sanitarium.localdomain> Shashidhar Paragonda writes: > Hello Noufal I have tried your solution but i get invalid syntax for this > line *with open(............) > *I am using python 2.3.5 what could be the problem. You could simply use f = open("file.txt","r") instead. The with statement was added only later. 2.3.5 is quite old. Why don't you upgrade? [...] -- ~noufal http://nibrahim.net.in May I ask a question? From shashidhar85 at gmail.com Wed Oct 19 15:01:03 2011 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Wed, 19 Oct 2011 18:31:03 +0530 Subject: [BangPypers] File operations In-Reply-To: <87vcrlxic9.fsf@sanitarium.localdomain> References: <87botdz3f8.fsf@sanitarium.localdomain> <87vcrlxic9.fsf@sanitarium.localdomain> Message-ID: Our customer wants some addon and our tool at customer place is still running with Python v2.3.5 & Zope v2.7.X I dont have option to change now ,ya in near future I am migrating to newer version of python & zope. On Wed, Oct 19, 2011 at 6:13 PM, Noufal Ibrahim wrote: > Shashidhar Paragonda writes: > > > Hello Noufal I have tried your solution but i get invalid syntax for > this > > line *with open(............) > > *I am using python 2.3.5 what could be the problem. > > You could simply use f = open("file.txt","r") instead. > > The with statement was added only later. > 2.3.5 is quite old. Why don't you upgrade? > > > [...] > > > -- > ~noufal > http://nibrahim.net.in > > May I ask a question? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From lawgon at gmail.com Thu Oct 20 04:28:20 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 20 Oct 2011 07:58:20 +0530 Subject: [BangPypers] pyjamas Message-ID: <1319077705.1958.103.camel@xlquest.web> hi, I was looking at pyjamas - it seems a little unusual - has anyone used it and has feedback on it? -- regards Kenneth Gonsalves From noufal at gmail.com Thu Oct 20 09:25:47 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 20 Oct 2011 12:55:47 +0530 Subject: [BangPypers] [OT] Git training course In-Reply-To: <878voxi4ry.fsf@sanitarium.localdomain> (Noufal Ibrahim's message of "Fri, 07 Oct 2011 13:59:05 +0530") References: <878voxi4ry.fsf@sanitarium.localdomain> Message-ID: <8739eoxgxw.fsf@sanitarium.localdomain> Hello everyone, There are few more seats left for the course. If anyone here uses git or is interested in starting, do sign up and join us this weekend. The registration link is at http://git-training.doattend.com/ Thanks. Noufal Ibrahim writes: > Hello everyone, > This is OT for the list but a lot of people expressed interest > in this when I spoke to them at PyCon in Pune. > > I am offering a training on git on the 22nd and 23rd of October > in Bangalore. > > The details are at > http://nibrahim.net.in/2011/10/07/git_training.html > > Please spread the word. > > Thanks -- ~noufal http://nibrahim.net.in Referring to a book: I read part of it all the way through. -- Samuel Goldwyn From punchagan at gmail.com Thu Oct 20 11:33:35 2011 From: punchagan at gmail.com (Puneeth Chaganti) Date: Thu, 20 Oct 2011 15:03:35 +0530 Subject: [BangPypers] [X-POST] [Announcement] SciPy India 2011 Call for Presentations In-Reply-To: References: Message-ID: Forwarding FYI. -- Puneeth ---------- Forwarded message ---------- From: Parth Buch Date: Mon, Oct 3, 2011 at 9:18 PM Subject: [MumPy] [Announcement] SciPy India 2011 Call for Presentations To: null-co-in at googlegroups.com, mumpy at googlegroups.com =============================== SciPy 2011 India Call for Papers =============================== The third `SciPy India Conference `_ will be held from December 4th through the 7th at the `Indian Institute of Technology, Bombay (IITB) `_ in Mumbai, Maharashtra India. At this conference, novel applications and breakthroughs made in the pursuit of science using Python are presented. ?Attended by leading figures from both academia and industry, it is an excellent opportunity to experience the cutting edge of scientific software development. The conference is followed by two days of tutorials and a code sprint, during which community experts provide training on several scientific Python packages. We invite you to take part by submitting a talk abstract on the conference website at: ? ? http://scipy.in Talk/Paper Submission --------------------- We solicit talks and accompanying papers (either formal academic or magazine-style articles) that discuss topics regarding scientific computing using Python, including applications, teaching, development and research. ?We welcome contributions from academia as well as industry. Keynote Speaker --------------- Eric Jones will deliver the keynote address this year. ?Eric has a broad background in engineering and software development and leads Enthought's product engineering and software design. Prior to co-founding Enthought, Eric worked with numerical electromagnetics and genetic optimization in the Department of Electrical Engineering at Duke University. He has taught numerous courses on the use of Python for scientific computing and serves as a member of the Python Software Foundation. He holds M.S. and Ph.D. degrees from Duke University in electrical engineering and a B.S.E. in mechanical engineering from Baylor University. Eric was the Keynote Speaker at SciPy US 2011. Important Dates --------------- October 26, 2011, Wednesday: Abstracts Due October 31, 2011, Monday: Schedule announced November 21, 2011, Monday: Proceedings paper submission due December 4-5, 2011, Sunday-Monday: Conference December 6-7 2011, Tuesday-Wednesday: Tutorials/Sprints Registration ---------------- Registration now open. Register on or before 16th October 2011 and avail early bird discount Organizers ---------- * Jarrod Millman, Neuroscience Institute, UC Berkeley, USA (Conference Co-Chair) * Prabhu Ramachandran, Department of Aerospace Engineering, IIT Bombay, India (Conference Co-Chair) * FOSSEE Team Regards Parth Buch Research Assistant FOSSEE Project IIT Bombay From asif.jamadar at rezayat.net Thu Oct 20 20:40:17 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Thu, 20 Oct 2011 18:40:17 +0000 Subject: [BangPypers] Generate Dynamic lists Message-ID: So I'm trying to generate dynamic choices for django form. Here i'm usig formset concept (CODE is mentioned below) Suppose i have list called criteria_list = ['education', 'know how', 'managerial', 'interpersonal', ] now i need to generate choices as follows list1 = [('education', 1), ('education', 2), ('education', 3), (''education' , 4) , ('know how', 1) ('know ho', 2), ('know ho', 3), ('know ho', 4)] list2 = [('education', 1), ('education', 2), ('education', 3), (''education' , 4) , ('managerial', 1) ('managerial', 2), ('managerial', 3), ('managerial', 4)] list3 = [('education', 1), ('education', 2), ('education', 3), (''education' , 4) , ('interpersonal', 1) ('interpersonal', 2), ('interpersonal', 3), ('interpersonal', 4)] list4 = [('know how', 1), ('know how', 2), ('know how ', 3), ('know how' , 4) , ('managerial', 1) ('managerial', 2), ('managerial', 3), ('managerial', 4)] list5 = [('know how', 1), ('know how', 2), ('know how ', 3), ('know how' , 4) , ('interpersonal', 1) ('interpersonal', 2), ('interpersonal', 3), ('interpersonal', 4)] list6= [('managerial', 1), ('managerial', 2), ('managerial ', 3), ('managerial' , 4) , ('interpersonal', 1) ('interpersonal', 2), ('interpersonal', 3), ('interpersonal', 4)] How can i achive this in python? The above all eachh list become the choices for each form. Suppose i have formset of 6 forms. Then how can i assign above dynamic generates list to the choice field of each form. I tried by using this following code but no luck view.py def evaluation(request): evaluation_formset = formset_factory(EvaluationForm, formset=BaseEvaluationFormset, extra=6) if request.POST: formset = evaluation_formset(request.POST) ##validation and save else: formset = evaluation_formset() render_to_response(formset) forms.py class EvaluationForm(forms.Form): value = forms.ChoiceField(widget=forms.RadioSelect(renderer=HorizontalRadioRenderer)) class BaseEvaluationFormSet(BaseFormSet): def __init__(self, *args, **kwargs): super(BaseEvaluationFormSet, self).__init__(*args, **kwargs) for form_index, form in enumerate(self.forms): form.fields["value"].choices = self.choice_method(form_index) def choice_method(self, form_index): list = [] item_list = [] criteria_list = [] criteria_length = len(sub_criterias)-1 for criteria_index in range(criteria_length): counter = 1 if criteria_index == form_index: for j in range(criteria_length-counter): x = 1 for i in range(6): criteria_list.append((sub_criterias[criteria_index], sub_criterias[criteria_index])) item_list.append((sub_criterias[criteria_index+ 1], sub_criterias[criteria_index+1])) list = criteria_list +item_list counter = counter + 1 if x != criteria_length: x = x + 1 return list From gora at mimirtech.com Thu Oct 20 21:08:54 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Fri, 21 Oct 2011 00:38:54 +0530 Subject: [BangPypers] Generate Dynamic lists In-Reply-To: References: Message-ID: On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar wrote: > So I'm trying to generate dynamic choices for ?django form. Here i'm usig formset concept (CODE is mentioned below) Sorry, but your examples do not quite make sense, at least not to me. Your Django example is too confused, and has at least one off-by-one error. I also strongly suspect that your design needs revisiting. > Suppose i have list called criteria_list = ['education', 'know how', 'managerial', 'interpersonal', ] > now i need to generate choices as follows > list1 = [('education', 1), ('education', 2), ('education', 3), (''education' , 4) , ('know how', 1) ('know ho', 2), ('know ho', 3), ('know ho', 4)] > What are the 1, 2, 3, and 4 values above? Simply these four fixed values, or are they something like IDs of Django model instances. Assuming the former (though I really do not then understand your use case), here is a straightforward way: list1 = [] for i in criteria_list[:2]: for j in range(4): l.append( ( i, j + 1 ) ) This could be made more "Pythonic" with list expressions, but IMHO, these would only make the logic harder to follow? Regards, Gora From gora at mimirtech.com Thu Oct 20 21:10:05 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Fri, 21 Oct 2011 00:40:05 +0530 Subject: [BangPypers] Generate Dynamic lists In-Reply-To: References: Message-ID: On Fri, Oct 21, 2011 at 12:38 AM, Gora Mohanty wrote: > On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar wrote: [...] > list1 = [] > for i in criteria_list[:2]: > ? ?for j in range(4): > ? ? ? ?l.append( ( i, j + 1 ) ) Oops, that last line should be list1.append(...) instead of l.append(...) Regards, Gora From parth at fossee.in Thu Oct 20 21:53:42 2011 From: parth at fossee.in (Parth Buch) Date: Fri, 21 Oct 2011 01:23:42 +0530 Subject: [BangPypers] Fwd: [Announcement] SciPy India 2011 Call for Presentations In-Reply-To: References: Message-ID: =============================== SciPy 2011 India Call for Papers =============================== The third `SciPy India Conference `_ will be held from December 4th through the 7th at the `Indian Institute of Technology, Bombay (IITB) `_ in Mumbai, Maharashtra India. At this conference, novel applications and breakthroughs made in the pursuit of science using Python are presented. Attended by leading figures from both academia and industry, it is an excellent opportunity to experience the cutting edge of scientific software development. The conference is followed by two days of tutorials and a code sprint, during which community experts provide training on several scientific Python packages. We invite you to take part by submitting a talk abstract on the conference website at: http://scipy.in Talk/Paper Submission --------------------- We solicit talks and accompanying papers (either formal academic or magazine-style articles) that discuss topics regarding scientific computing using Python, including applications, teaching, development and research. We welcome contributions from academia as well as industry. Keynote Speaker --------------- Eric Jones will deliver the keynote address this year. Eric has a broad background in engineering and software development and leads Enthought's product engineering and software design. Prior to co-founding Enthought, Eric worked with numerical electromagnetics and genetic optimization in the Department of Electrical Engineering at Duke University. He has taught numerous courses on the use of Python for scientific computing and serves as a member of the Python Software Foundation. He holds M.S. and Ph.D. degrees from Duke University in electrical engineering and a B.S.E. in mechanical engineering from Baylor University. Eric was the Keynote Speaker at SciPy US 2011. Important Dates --------------- October 26, 2011, Wednesday: Abstracts Due October 31, 2011, Monday: Schedule announced November 21, 2011, Monday: Proceedings paper submission due December 4-5, 2011, Sunday-Monday: Conference December 6-7 2011, Tuesday-Wednesday: Tutorials/Sprints Registration ---------------- Registration now open. Register on or before 16th October 2011 and avail early bird discount Organizers ---------- * Jarrod Millman, Neuroscience Institute, UC Berkeley, USA (Conference Co-Chair) * Prabhu Ramachandran, Department of Aerospace Engineering, IIT Bombay, India (Conference Co-Chair) * FOSSEE Team -- Regards Parth buch - FOSSEE Team Research Assistant FOSSEE Project IIT Bombay http://fossee.in From saager.mhatre at gmail.com Fri Oct 21 02:42:29 2011 From: saager.mhatre at gmail.com (Saager Mhatre) Date: Fri, 21 Oct 2011 06:12:29 +0530 Subject: [BangPypers] Generate Dynamic lists In-Reply-To: References: Message-ID: On Fri, Oct 21, 2011 at 12:40 AM, Gora Mohanty wrote: > On Fri, Oct 21, 2011 at 12:38 AM, Gora Mohanty wrote: > > On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar > wrote: > [...] > > list1 = [] > > for i in criteria_list[:2]: > > for j in range(4): > > l.append( ( i, j + 1 ) ) > > Oops, that last line should be list1.append(...) instead of l.append(...) > While I'd usually suggest a list comprehension like... [(criteria, level) for level in range(1, 4) for criteria in criteria_list[:2]] ... I'd say a zip'd do the trick as well... zip(criteria[:2], range(1, 4)) just my 2c - d From shashidhar85 at gmail.com Fri Oct 21 09:07:21 2011 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Fri, 21 Oct 2011 12:37:21 +0530 Subject: [BangPypers] remove svn checkout folder Message-ID: Dear Python hackers >> I checkout folder from repository to sat c:/MY/Application/TEMP folder (TEMP folder i create) >> I read a file from destination folder and perform some task and close it >> Now after performing task I need to delete entire checkout folder from TEMP >> I tried first changing the mod of respective folder using *os.chmod(path/to/folder, 0666) >>* Then i tried *shutil.rmtree(path/to/folder/) but here I am facing permission denied error code : os.chmod(path/to/folder, 0777) if os.access(path/to/folder, os.R_OK): shutil.rmtree(path/to/folder/) is there any problem in this code or which is best solution for the above requirement. * Thank you for help in advance. -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From asif.jamadar at rezayat.net Fri Oct 21 17:40:56 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Fri, 21 Oct 2011 15:40:56 +0000 Subject: [BangPypers] Generate Dynamic lists Message-ID: The numbers are just fixed values. But see I want to generate multiple lists from that one criteria list From asif.jamadar at rezayat.net Sat Oct 22 08:35:24 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Sat, 22 Oct 2011 06:35:24 +0000 Subject: [BangPypers] Getting label of the choicefield in django form Message-ID: I have django form which consist of one choice field with following choices Choices = [('attr1', 1), ('attr1', 2), ('attr3',3), ('attr2',1), ('attr2',2), ('attr2', 3)] If I do value = form.cleaned_data('value') It is returning the value ( I,e attr1 or attr2) .in this case how can I get the label(or name) of the choicefield. I tried for val in cf.fields['value'].choices: if val[0] == cf.cleaned_data['value']: print val[1] break From gora at mimirtech.com Sat Oct 22 08:58:04 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Sat, 22 Oct 2011 12:28:04 +0530 Subject: [BangPypers] Getting label of the choicefield in django form In-Reply-To: References: Message-ID: +On Sat, Oct 22, 2011 at 12:05 PM, Asif Jamadar wrote: [...] > It is returning the value ( I,e attr1 or attr2) .in this case how can I get the label(or name) of the choicefield. > > > I tried > > for val in cf.fields['value'].choices: [...] Since you created the form, would you not already know the labels? In any case, what you are after is probably cf.fields['value'].label.title() Regards, Gora From asif.jamadar at rezayat.net Sat Oct 22 09:15:36 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Sat, 22 Oct 2011 07:15:36 +0000 Subject: [BangPypers] Getting label of the choicefield in django form Message-ID: But I have same lables( or names) in my choice list Choices = [ ('attr1', 1), ('attr1', 2), ('attr1' , 3) , ('attr2', 1), ('attr2', 2), ('attr2', 3) ] All these are displayed as radio buttons. When I select 2 then it is returning me "attr1". But how should I get the value itself that is "2"? From gora at mimirtech.com Sat Oct 22 09:20:25 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Sat, 22 Oct 2011 12:50:25 +0530 Subject: [BangPypers] Getting label of the choicefield in django form In-Reply-To: References: Message-ID: On Sat, Oct 22, 2011 at 12:45 PM, Asif Jamadar wrote: > But I have same lables( or names) in my choice list > > Choices = [ ('attr1', 1), ('attr1', 2), ('attr1' , 3) , ('attr2', 1), ('attr2', 2), ('attr2', 3) ] > > All these are displayed as radio buttons. > > When I select 2 then it is returning me "attr1". But how should I get the value itself that is "2"? Umm, this is not the label. Please be clear about what you want. I don't think that you can get that from form.cleaned_data, but again, given the value from form.cleaned_data, and given that you already know the choices themselves, can't you simply look these up. Regards, Gora From asif.jamadar at rezayat.net Sat Oct 22 10:02:55 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Sat, 22 Oct 2011 08:02:55 +0000 Subject: [BangPypers] Getting label of the choicefield in django form Message-ID: Can you explain this with example so that I can understand? From gora at mimirtech.com Sat Oct 22 11:37:26 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Sat, 22 Oct 2011 15:07:26 +0530 Subject: [BangPypers] Getting label of the choicefield in django form In-Reply-To: References: Message-ID: On Sat, Oct 22, 2011 at 1:32 PM, Asif Jamadar wrote: > Can you explain this with example so that I can understand? GENDERS = ( ('U', 'Unspecified',), ('M', 'Male',), ('F', 'Female'), ) Now, say you have a gender = forms.ChoiceField( label='Gender', choices=GROUPS ) after validating a form containing this, you might get gender_in = form.cleaned_data['gender'] to be equal to 'M'. If I understood you correctly, you would want to get 'Male' from this. As you know that the choices of the form field came from choices, the straightforward way to do this would be: for g in GENDERS: if g[0] == gender_in: gender_out = g[1] gender_out now has what you need. Regards, Gora From nitin.nitp at gmail.com Sun Oct 23 20:20:45 2011 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Sun, 23 Oct 2011 23:50:45 +0530 Subject: [BangPypers] remove svn checkout folder In-Reply-To: References: Message-ID: There are .svn hidden files which create this error. Your need to use: shutil.rmtree(path,ignore_errors=True) Thanks Nitin K On Fri, Oct 21, 2011 at 12:37 PM, Shashidhar Paragonda < shashidhar85 at gmail.com> wrote: > Dear Python hackers > > >> I checkout folder from repository to sat c:/MY/Application/TEMP > folder (TEMP folder i create) > >> I read a file from destination folder and perform some task and > close it > >> Now after performing task I need to delete entire checkout > folder from TEMP > >> I tried first changing the mod of respective folder using > *os.chmod(path/to/folder, > 0666) > >>* Then i tried *shutil.rmtree(path/to/folder/) but here I am > facing permission denied error > > code : os.chmod(path/to/folder, 0777) > if os.access(path/to/folder, os.R_OK): > shutil.rmtree(path/to/folder/) > is there any problem in this code or which is best solution for the > above requirement. > * > Thank you for help in advance. > > -- > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919449073835 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From sweetnivi88 at gmail.com Mon Oct 24 05:42:55 2011 From: sweetnivi88 at gmail.com (nivedita datta) Date: Mon, 24 Oct 2011 09:12:55 +0530 Subject: [BangPypers] Reg. current work in pycrypto In-Reply-To: References: Message-ID: Hi all, Can anyone tell me about some projects or applications which has been built using pycrypto. Also I would like to know about any ongoing/past project or application development in pycrypto. I would like to have the following information on pycrypto : 1. some attention grabbing fact/detail related to past progress in the work or related to the usability.**** 2. the future work or possible extension.**** 3. some references of some existing paper or book on the same. Regards, Nivedita Datta From senthil at uthcode.com Mon Oct 24 16:55:15 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Mon, 24 Oct 2011 22:55:15 +0800 Subject: [BangPypers] Reg. current work in pycrypto In-Reply-To: References: Message-ID: <20111024145515.GB1940@mathmagic> Hello Nivedita, On Mon, Oct 24, 2011 at 09:12:55AM +0530, nivedita datta wrote: > Can anyone tell me about some projects or applications which has been built > using pycrypto. Also I would like to know about any ongoing/past project or > application development in pycrypto. Just check the PyCrypto website for all the information that you need. BTW, the last time I had an idea of using it, I felt it was not maintained properly, so I choose not to use it and instead build using the standard ssl support in the libraries/packages. -- Senthil From asif.jamadar at rezayat.net Thu Oct 27 10:32:40 2011 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Thu, 27 Oct 2011 08:32:40 +0000 Subject: [BangPypers] Dynamic choices for django modelformset Message-ID: How can I add dynamic choices for model formset? Suppose I have model called TestModel Class TestModel(models.Model) dropdown_field = models.CharField(max_length=70, blank=True, null=True, choices=' What to write here because my choices are dynamic') And from this model I want to generate modelformset of 8 forms. So I will generate 8 dropdownfields, those will have different choices. I tried overriding the init method of BaseModelFormset and I generated dynamic choices. But when I'm trying to submit these 8 forms I'm getting validation error that "choices are not valid" because my model doesn't know about these choices. So can I define choices for model? From sateeshpyper at gmail.com Fri Oct 28 06:35:34 2011 From: sateeshpyper at gmail.com (Sateesh Kumar) Date: Fri, 28 Oct 2011 10:05:34 +0530 Subject: [BangPypers] remove svn checkout folder In-Reply-To: References: Message-ID: On Fri, Oct 21, 2011 at 12:37 PM, Shashidhar Paragonda < shashidhar85 at gmail.com> wrote: * Then i tried *shutil.rmtree(path/to/folder/) but here I am > facing permission denied error > > code : os.chmod(path/to/folder, 0777) > if os.access(path/to/folder, os.R_OK): > shutil.rmtree(path/to/folder/) > is there any problem in this code or which is best solution for the > above requirement. > What you are doing is changing the permission of the folder, but if there are files inside that folder which have the 'Read-Only' attribute set then their removal would fail and an exception thrown. If you examine the stack trace you can find the file whose removal attempt failed. shutil.rmtree can take a function as a callback and you can make use of that feature to handle failures in file/subfolder removal and to remove them. Such an approach is explained here: http://stackoverflow.com/questions/1213706/what-user-do-python-scripts-run-as-in-windows http://stackoverflow.com/questions/2656322/python-shutil-rmtree-fails-on-windows-with-access-is-denied Also when you are passing windows path as an argument to Python functions it is better to pass them as raw strings[1]. Your invocation should be in the form: os.listdir(r'c:\temp') and so on. HTH, sateesh 1. http://docs.python.org/tutorial/introduction.html (Section 3.1.2 Strings) From srp at ideadevice.com Fri Oct 28 08:58:02 2011 From: srp at ideadevice.com (Saju Pillai) Date: Fri, 28 Oct 2011 12:28:02 +0530 Subject: [BangPypers] Reg. current work in pycrypto In-Reply-To: <20111024145515.GB1940@mathmagic> References: <20111024145515.GB1940@mathmagic> Message-ID: I use pycrypto for some symmetric ciphering and indirectly through paramiko (ssl lib) in my commercial product. No complaints yet. -srp On Mon, Oct 24, 2011 at 8:25 PM, Senthil Kumaran wrote: > Hello Nivedita, > > On Mon, Oct 24, 2011 at 09:12:55AM +0530, nivedita datta wrote: > > Can anyone tell me about some projects or applications which has been > built > > using pycrypto. Also I would like to know about any ongoing/past project > or > > application development in pycrypto. > > Just check the PyCrypto website for all the information that you need. > BTW, the last time I had an idea of using it, I felt it was not > maintained properly, so I choose not to use it and instead build using > the standard ssl support in the libraries/packages. > > -- > Senthil > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Idea Device Automation Technologies www.ideadevice.com +91 9945196516 From gopalakrishnan.subramani at gmail.com Mon Oct 31 07:00:21 2011 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Mon, 31 Oct 2011 11:30:21 +0530 Subject: [BangPypers] Python OCR Reader Message-ID: Dear Group, Anyone can give good advises on OCR tools in Python? Not necessarily native python tools even with python wrapper will be good. I would never tweak or change the source code or learn deep into OCR technology. I just want a lib sort of things and Python wrapper to know. I found http://code.google.com/p/pytesser/ and playing a little. But not sure how good it is. I want one great OCR tool to be added to my Python skill set this week. I mostly work on Windows. Thanks, Gopalakrishnan From kunalkantsen at gmail.com Mon Oct 31 11:22:00 2011 From: kunalkantsen at gmail.com (kunalkant sen) Date: Mon, 31 Oct 2011 15:52:00 +0530 Subject: [BangPypers] [Event] Pluggd.in's Hackathon- schedule for 4th, 5th & 6th November at Bangalore Message-ID: Dear Friends, Since i am part of this group, i can give away few free pass to the fellow group member, who would like to join us this weekend. Mail me your interest. We do have twitter contest, participate to get free ticket. Details @ http://bit.ly/PiHackathon. If you have been sitting on an idea for a very long time ? this is your chance to give a shape to it. Pitch. Ideate. Create. Spot Cofounders, Team Members @ Pluggd.in?s Hackathon - a 2.5 day event which brings together designers/geeks all under one roof. Organized by Pluggd.in, Hackathon will provide you with everything necessary (Mentor, Experts, Food & Infrastructure) for you to build an awesome product/Hack. And now the fun part: The hack winner gets an iPad for free! Details: Hackthon : 4th (5 PM onwards), 5th & 6th November, Bangalore Venue: Jaaga, KH double Road, Next to bus stop, ShantiNagar, Bangalore Details: http://www.Pluggd.in/hackathon Regards *Kunal Kant Sen* Technology & Innovation Evangelist, Unpluggd | Linkedin| Twitter "Start where you are. Use what you have. Do what you can." -- Arthur Ashe, Tennis Player From rahul8590 at gmail.com Mon Oct 31 12:18:17 2011 From: rahul8590 at gmail.com (Rahul R) Date: Mon, 31 Oct 2011 16:48:17 +0530 Subject: [BangPypers] [Event] Pluggd.in's Hackathon- schedule for 4th, 5th & 6th November at Bangalore In-Reply-To: References: Message-ID: I will be more than happy to be a part of this event. Regards, Rahul On Mon, Oct 31, 2011 at 3:52 PM, kunalkant sen wrote: > Dear Friends, > > Since i am part of this group, i can give away few free pass to the fellow > group member, who would like to join us this weekend. Mail me your > interest. We do have twitter contest, participate to get free ticket. > Details @ http://bit.ly/PiHackathon. > > If you have been sitting on an idea for a very long time ? this is your > chance to give a shape to it. > > Pitch. Ideate. Create. Spot Cofounders, Team Members @ Pluggd.in?s > Hackathon - a 2.5 day event which brings together designers/geeks all > under one roof. > > Organized by Pluggd.in, Hackathon will provide you with everything > necessary (Mentor, Experts, Food & Infrastructure) for you to build an > awesome product/Hack. > > And now the fun part: The hack winner gets an iPad for free! > > Details: > Hackthon : 4th (5 PM onwards), 5th & 6th November, Bangalore > Venue: Jaaga, KH double Road, Next to bus stop, ShantiNagar, Bangalore > > Details: http://www.Pluggd.in/hackathon > > Regards > *Kunal Kant Sen* > Technology & Innovation Evangelist, > Unpluggd | > Linkedin| > Twitter > > "Start where you are. Use what you have. Do what you can." -- Arthur Ashe, > Tennis Player > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From vsapre80 at gmail.com Mon Oct 31 13:12:16 2011 From: vsapre80 at gmail.com (Vishal) Date: Mon, 31 Oct 2011 17:42:16 +0530 Subject: [BangPypers] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective Message-ID: Hello Everyone, I have a friend, who's finished his education and looking for work. He asked me about freelance programming and I had nothing to share with him. Thought of getting to know this mode of professional programming. I am trying to get a feel of how it is to do freelance programming...in Python..in India ? What are the (good) websites that a person in India can approach ? What is the usual pay structure (as in you being in India, and the payment happening in some international currency), share with website etc ? How successful have you been at getting projects where Python is required ? (You can say the truth here...its not going to be made public and its not going to increase your competition :) ) Suggestions, pointers for nu-bee freelancers etc ? Hope this would be an interesting topic to everyone :)) -- Thanks and best regards, Vishal Sapre From lorddaemon at gmail.com Mon Oct 31 14:12:26 2011 From: lorddaemon at gmail.com (Sidu Ponnappa) Date: Mon, 31 Oct 2011 18:42:26 +0530 Subject: [BangPypers] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective In-Reply-To: References: Message-ID: > I have a friend, who's finished his education and looking for work. I think the first thing a grad should be looking to do is to get better. I can't comment on the Py freelancing scene, but I will say that if he wants to make money he probably can, but that his software engineering skills will almost certainly suffer. His first priority should be to get into a situation where he has superb people to learn from. This is most easily solved by getting a job at an interesting place with interesting people. It could also be solved by finding a small yet popular open source project that has a lead that knows his/her stuff and where all his commits would receive feedback. Either way, his focus should remain on getting better at what he's doing or his career will almost certainly be impacted in a few years when his peers turn out to be better engineers than he is. Good sources of freelance work: odesk.com and elance.com Payments in non INR currencies can be taken via Paypal (with certain limitations) or direct wire transfers. The websites I mentioned also provide an escrow service that can be useful when dealing with potentially flaky clients. The important thing to remember that freelancing is a business, and should be run as such. At a minimum, register a sole proprietorship and get a business account with SBI. Mixing your personal and business finances is a good way to have all sorts of accounting and taxation problems. Best, Sidu. http://c42.in http://rubymonk.com On Mon, Oct 31, 2011 at 5:42 PM, Vishal wrote: > I have a friend, who's finished his education and looking for work. From umar43 at gmail.com Mon Oct 31 14:24:55 2011 From: umar43 at gmail.com (Umar Shah) Date: Mon, 31 Oct 2011 18:54:55 +0530 Subject: [BangPypers] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective In-Reply-To: References: Message-ID: On Mon, Oct 31, 2011 at 6:42 PM, Sidu Ponnappa wrote: > > I have a friend, who's finished his education and looking for work. > I think the first thing a grad should be looking to do is to get > better. I can't comment on the Py freelancing scene, but I will say > that if he wants to make money he probably can, but that his software > engineering skills will almost certainly suffer. > > This is the best thing to do for a fresher. You need to start in a team with some experienced people around to learn from. Freelancing is an independent venture and would limit the growth if there is no good experience to build on. His first priority should be to get into a situation where he has > superb people to learn from. This is most easily solved by getting a > job at an interesting place with interesting people. It could also be > solved by finding a small yet popular open source project that has a > lead that knows his/her stuff and where all his commits would receive > feedback. > > Either way, his focus should remain on getting better at what he's > doing or his career will almost certainly be impacted in a few years > when his peers turn out to be better engineers than he is. > > Good sources of freelance work: odesk.com and elance.com > > certainly best for freelancing, odesk has started wire transfers in INR also. paypal now requires registered PAN / Bank details to work in India. Payments in non INR currencies can be taken via Paypal (with certain > limitations) or direct wire transfers. The websites I mentioned also > provide an escrow service that can be useful when dealing with > potentially flaky clients. The important thing to remember that > freelancing is a business, and should be run as such. At a minimum, > register a sole proprietorship and get a business account with SBI. > Mixing your personal and business finances is a good way to have all > sorts of accounting and taxation problems. > > Best, > Sidu. > http://c42.in > http://rubymonk.com > > On Mon, Oct 31, 2011 at 5:42 PM, Vishal wrote: > > I have a friend, who's finished his education and looking for work. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gopalakrishnan.subramani at gmail.com Mon Oct 31 14:57:15 2011 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Mon, 31 Oct 2011 19:27:15 +0530 Subject: [BangPypers] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective In-Reply-To: References: Message-ID: "I have a friend, who's finished his education and looking for work." freelancing is stressful during startup days. It needs more discipline and skill than someone works in a corporate team. Until or unless he is extraordinary in taking business situation and executing them, don't recommend any freelancing especially for someone who needs money for survival and don't expect anything from parents situation. "Suggestions, pointers for nu-bee freelancers etc ?" It comes like how much time you need to generate money for your survival and living your own lifestyle in freelancing. During that time, whether you will be able to survive and managed to live a lifestyle you want for. If you don't have it, don't look for freelancing. Look for regular job and study and prepare well for interview. freelancing will distract at this stage. Once you find the job you like, then you can do freelancing as a side projects or hobby till it you get enough credit and reputations.In this case, advise him to study well, get participate on stackoverflow or usenet groups and put them in resume references. IT WORKS REALLY. Sidu gave a good website references. Generally there are more work on PHP than in Python on freelancing. I talk freelancing in terms like crowd-source (programming in variances). There are many skilled freelancers working for dedicated clients for long term. Basically they can be referred as an independent consultant in other words. On Mon, Oct 31, 2011 at 5:42 PM, Vishal wrote: > Hello Everyone, > > I have a friend, who's finished his education and looking for work. He > asked me about freelance programming and I had nothing to share with him. > Thought of getting to know this mode of professional programming. > > I am trying to get a feel of how it is to do freelance programming...in > Python..in India ? > > What are the (good) websites that a person in India can approach ? > > What is the usual pay structure (as in you being in India, and the payment > happening in some international currency), share with website etc ? > > How successful have you been at getting projects where Python is required ? > (You can say the truth here...its not going to be made public and its not > going to increase your competition :) ) > > Suggestions, pointers for nu-bee freelancers etc ? > > Hope this would be an interesting topic to everyone :)) > > -- > Thanks and best regards, > Vishal Sapre > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Mon Oct 31 15:38:05 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 31 Oct 2011 20:08:05 +0530 Subject: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective In-Reply-To: (Vishal's message of "Mon, 31 Oct 2011 17:42:16 +0530") References: Message-ID: <87r51tkz02.fsf@sanitarium.localdomain> Vishal writes: > Hello Everyone, > > I have a friend, who's finished his education and looking for work. He > asked me about freelance programming and I had nothing to share with > him. Thought of getting to know this mode of professional > programming. I wouldn't recommend it for a fresher. It's kind of harrowing and there's a lot of "non programming" stuff necessary to do it full time. I would recommend that she join a startup or a small company and get some real work experience before jumping into this. During my initial freelancing/moonlighting days, I spent time on odesk and other sites but didn't really get very far. All the projects I've really done came from contacts rather than websites. > I am trying to get a feel of how it is to do freelance > programming...in Python..in India ? It's not *hard* but it's not easy either. You need a reputation which you might have straight out of college but that's not very common. I'd recommend some time working for a regular (though small) company to cut your teeth before getting into this full time. [...] -- ~noufal http://nibrahim.net.in Evil isn't all bad. From senthil at uthcode.com Mon Oct 31 17:57:56 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Tue, 1 Nov 2011 00:57:56 +0800 Subject: [BangPypers] Python OCR Reader In-Reply-To: References: Message-ID: <20111031165756.GD1953@mathmagic> On Mon, Oct 31, 2011 at 11:30:21AM +0530, Gopalakrishnan Subramani wrote: > Anyone can give good advises on OCR tools in Python? Not necessarily native > python tools even with python wrapper will be good. I would never tweak or > change the source code or learn deep into OCR technology. I just want a lib > sort of things and Python wrapper to know. > > I found http://code.google.com/p/pytesser/ and playing a little. But not > sure how good it is. What is your purpose of using a tesseract client? Would you be extending it? The tesseract-ocr project (and it's binaries) is pretty well maintained and it works well on windows. I assume the python client to be good too. -- Senthil From senthil at uthcode.com Mon Oct 31 18:06:58 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Tue, 1 Nov 2011 01:06:58 +0800 Subject: [BangPypers] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective In-Reply-To: References: Message-ID: Hi Vishal, On Mon, Oct 31, 2011 at 8:12 PM, Vishal wrote: > I am trying to get a feel of how it is to do freelance programming...in > Python..in India ? I have some experience though not a good one, because I fared badly. I was in much need of money, so I had to return to corporate world. But, the brief time did give me some first hand experience. I feel, I am better equipped if I want to try that again. So, it would not be bad idea to try and learn for your friend. The best way to start would be get project from a known person who can trust you and deliver it. Good luck! Senthil From sudheer.s at sudheer.net Mon Oct 31 19:39:03 2011 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Tue, 01 Nov 2011 00:09:03 +0530 Subject: [BangPypers] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective In-Reply-To: References: Message-ID: <4EAEEB47.4090504@sudheer.net> On Monday 31 October 2011 05:42 PM, Vishal wrote: > Hello Everyone, > > I have a friend, who's finished his education and looking for work. He > asked me about freelance programming and I had nothing to share with him. > Thought of getting to know this mode of professional programming. Many people have already given good suggestions here. I agree with most of them. I'll write my opinion here. If the person is asking this question, it is best to not get into full time freelancing. > Since India is cons > > I am trying to get a feel of how it is to do freelance programming...in > Python..in India ? By and large, geographical region doesn't matter. Freelance programmers from almost every country get enough opportunities. > > What are the (good) websites that a person in India can approach ? There are many - , , . Although, I didn't earn a great deal of money directly from bidding, I acquired lot of customers from these websites. I started freelancing part time and eventually built a business that used these _freelancing_ websites to win contracts. > > What is the usual pay structure (as in you being in India, and the payment > happening in some international currency), share with website etc ? These websites can send payments to your PayPal account or a cheque after a certain minimum amount is reached. The commission is around 15% usually. > > How successful have you been at getting projects where Python is required ? When I was using those freelance websites, I was coding only in PHP. From time to time, I used to see bids requiring Django skills. I'm sure there are many python programming opportunities as well. > > Suggestions, pointers for nu-bee freelancers etc ? Jump into freelancing if you enjoy risk taking. The higher the risk, the larger the reward tends to be. Freelance programming is not just about programming. In addition to learning programming, you also have to learn other things like sales, customer service, book keeping etc. There are many websites dedicated to providing freelancing 'gyan'. From what I've seen, a tiny percentage of people who jump in, see the light at the end of the tunnel. This mostly because people give up too early. To measure your success, you have to pursue it for a few years. At least a couple. I have heard umpteen number of stories about a new freelancer calling it quits in six months. Six months is too short for this kind of venture, to measure success. In these two years, there will be lot of ups and downs. Don't expect smooth sailing all the way. Like others have noted, there's a steep learning curve ahead. It will require reading tons of articles on the Internet, books and many other learning activities. It also requires motivation and perseverance. You should be ready to scale this learning curve. Working in a company is not a requirement per say. A good mentor can possibly replace that requirement. Learning to work in a team is an important factor which you can easily overlook at this point. If you want to take the solo freelancing route, participating in open source software communities helps. A few words of advise: * Get involved in communities * Start a blog and continue blogging * Invest in improving communication skills * Don't give up soon * Learn to be productive early on. The right kind of habits go a long way. * Starting a new activity is easy. Finishing an already open task is difficult. Put your energies in finishing things. This applies to many things - projects, reading a book, learning a new technology, etc. > > Hope this would be an interesting topic to everyone :)) I hope so too. -- With warm regards, Sudheer. S Personal home page - http://www.sudheer.net/about Tech Chorus - http://www.techchorus.net From gora at mimirtech.com Mon Oct 31 22:00:59 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 1 Nov 2011 02:30:59 +0530 Subject: [BangPypers] [Commercial] Python/Django and other developers needed in Delhi/NCR Message-ID: Hello everyone, Mimir Technologies, Pvt. Ltd., India ( http://www.mimirtech.com ) has several positions open immediately for developers, QA and UX people in Delhi/NCR. o Job description * Our main focus currently is software services and product engineering for several companies based mostly on Django, Drupal and Apache Solr. * The major part of your time will go into working on one or more of these projects. You will also be expected to work with us, and our clients, in continually improving the value delivered by these projects. o Skills * Required: - At least one of the following languages: Python, PHP, Java - Capability to quickly pick up and use new technology, e..g, rapidly evaluating and integrating modules in the context of Drupal/Wordpress, or Django applications for - Unit and integration testing and continuous integration ( for QA ) * Preferred - Experience with at least one of Django, Drupal, Wordpress, HTML/CSS, Apache Solr, or in building, and operating large-scale sites. - Experience with HTML5 and Android/iOS development - Using distributed version control systems - The ability to set up Apache, and deploy websites - Understanding of Agile Methodologies We are looking for people who are are willing to look beyond sheer technical interests in order to solve real-life problems for our clients. Our expectation is not that you are already well-versed in the areas that we work in, but that you are willing to pick up new things, and able to do so. If interested, please email contact at mimirtech.com with your resume and preferred role. You can also address any questions to that address. If you are a fresher and interested in one of the above mentioned areas you can also apply to intern with MimirTech Regards, Gora