From subhodipbiswas at gmail.com Sat Sep 3 20:07:41 2011 From: subhodipbiswas at gmail.com (Subhodip Biswas) Date: Sat, 3 Sep 2011 23:37:41 +0530 Subject: [BangPypers] [Python][Hudson][Tests] Problems - help needed In-Reply-To: References: <20110828160635.GA2182@mathmagic> <20110830093006.GA23421@mathmagic> <20110830115900.GB24929@mathmagic> Message-ID: On Tue, Aug 30, 2011 at 6:06 PM, Subhodip Biswas wrote: > Hi Senthil, > > Thanks for the information. > > On Tue, Aug 30, 2011 at 5:29 PM, Senthil Kumaran wrote: >> On Tue, Aug 30, 2011 at 03:20:58PM +0530, Subhodip Biswas wrote: >>> What I did is : easy_install someModule. >>> So now in my eclipse install I can see these modules and use them accordingly. >>> If i am trying to build the same from a different machine. I need >>> these to be configured right in a way that normal jython mymodule.py >>> works. >> >> Well, if you can carry those modules along to new server that would >> resolve your dependencies. ?The other option is to create a >> virtualenv. I believe there is an option to create a virtualevn for >> jython interpreter too and in which case all your dependencies are >> installed within that environment. >> >> On anymachine that you want to execute, you have to create that setup. >> >>> In java we generally attach the libs in the classpath and build using >>> ant. What do i do in case of jython? write an ant file doing the >>> same(pyanttasks) or is there another way to do so? >> >> Yes, you can write an Ant task to build your project for Jython. Can you point me to some docs regarding this. I tried to write a build xml using pyanttasks but even after a lot of headbang the build.xml failed to compile. An ant -v says it cannot find my python executable. Is there a way I can point it to my jython executable. >> Even this seems interesting: >> https://wiki.jenkins-ci.org/display/JENKINS/Jython+Plugin >> >>> Can you point me to the some docs where i can look for the same? my >>> google search does not provide me any good results. My current hudson >>> successfully located the file but is unable to show me any reports >>> based the junit type xml files. >> >> Look at how pytest is being tested. >> >> http://hudson.testrun.org/view/pytest/job/pytest/ >> >> They are running py.test and with xdist plugin. py.test has an option >> to generate junit.xml style output. Once that is generated, >> jenkins/hudson is pointed to the xml and it can generate the report >> automatically. >> >> I am not sure why you went with Jython in the first place, but if it >> was just for interfacing with Hudson, then the above pytest example >> should convey a message that jython is NOT a requirement for >> building software/running tests and generating reports. >> If you would like to start small, then I would suggest you to write >> py.test test, execute it and get the junit xml output and then point >> it to your jenkins/hudson and see the report. If this works, then you >> can go ahead try for your task. >> > My main app is in java. I wrote few code in java but somehow I felt > python is better (lots of good libs). since there were few java > dependencies I finally settled for jython(best of both worlds). > > Everything were good until it came to produce some trending reports. I > thought of buildbot but system already has Hudson/Jenkins in place. So > I have to integrate the whole system to hudson and this is where I got > stuck. > > I will look into the information you gave and in case of any problem I > will bug the list even more :-) > > Thanks again for the information. > >> Thanks, >> Senthil >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > ------------- Regards Subhodip Biswas GPG key : FAEA34AB Server : pgp.mit.edu http://subhodipbiswas.wordpress.com http:/www.fedoraproject.org/wiki/SubhodipBiswas From subhodipbiswas at gmail.com Mon Sep 5 12:16:57 2011 From: subhodipbiswas at gmail.com (Subhodip Biswas) Date: Mon, 5 Sep 2011 15:46:57 +0530 Subject: [BangPypers] [Jython][CLASSPATH] Unable to set classpath/execute modules Message-ID: Hi all, Last few days of banging my head with Jenkins/Hudson, I finally got a solution. It is to execute with nosetests --xunit style reporting. I wrote a code that will look for nosetests and if not present it will install. However while trying to test nosetests on my windows(ofc provided this, I would have loved to use a linux box) machine, I ran into a problem. I set JYTHON_HOME = \path\to\jython and I set JYTHON_HOME\bin for all commands like pip, easy_install, etc. While basic jython is working fine. While trying to execute I get C:\pip 'pip' is not recognized as an internal command or external command........... error. What can possibly go wrong here. I double checked my directory setting and stuff and it looks good. I installed pip using the command "jython ez_setup pip" Is there a possiblity of installation getting corrupted? How do i check for such an issue. Any kind of help will be appreciated. My learning experience with hudson and jython is getting tough :-( ------------- Regards Subhodip Biswas GPG key : FAEA34AB Server : pgp.mit.edu http://subhodipbiswas.wordpress.com http:/www.fedoraproject.org/wiki/SubhodipBiswas From senthil at uthcode.com Mon Sep 5 16:32:46 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Mon, 5 Sep 2011 22:32:46 +0800 Subject: [BangPypers] [Jython][CLASSPATH] Unable to set classpath/execute modules In-Reply-To: References: Message-ID: <20110905143245.GA2166@mathmagic> On Mon, Sep 05, 2011 at 03:46:57PM +0530, Subhodip Biswas wrote: > While basic jython is working fine. While trying to execute I get That is because jython is your PATH or you executed jython from the same same directory as binary. > C:\pip > 'pip' is not recognized as an internal command or external command........... Is pip in your PATH? Restart the windows cmd.exe, because PATH settings take effect only at new cmd.exe session. > Is there a possiblity of installation getting corrupted? How do i > check for such an issue. No, I don't think so. It is just a PATH issue. In the Jython tutorial, there is a section on installation. Make sure that you have follow it appropriately. Note that you have JYTHONHOME ( is there any _ there?) and JYTHONPATH is set properly along with your system PATH which points to the correct binary. > Any kind of help will be appreciated. My learning experience with > hudson and jython is getting tough :-( It seems to me a PATH issue. If you still have problems, hang around #python or #jython in IRC and you may definitely get real time help as it is just a starting trouble. People may be more than willing to get you started. :-) Thanks, Senthil From senthil at uthcode.com Mon Sep 5 16:41:24 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Mon, 5 Sep 2011 22:41:24 +0800 Subject: [BangPypers] [Python][Hudson][Tests] Problems - help needed In-Reply-To: References: <20110828160635.GA2182@mathmagic> <20110830093006.GA23421@mathmagic> <20110830115900.GB24929@mathmagic> Message-ID: <20110905144124.GB2166@mathmagic> On Sat, Sep 03, 2011 at 11:37:41PM +0530, Subhodip Biswas wrote: > Can you point me to some docs regarding this. I tried to write a build > xml using pyanttasks but even after a lot of headbang the build.xml > failed to compile. http://www.jython.org/jythonbook/en/1.0/DeploymentTargets.html#deploying-a-single-jar http://ant.apache.org/manual/using.html I have not written an build.xml myself from scratch, but I believe, I have modified for some project. A friend with Java experience can help you. It seems to me that it more of PATH problem than anything else. HTH, Senthil From lorddaemon at gmail.com Mon Sep 5 21:30:18 2011 From: lorddaemon at gmail.com (Sidu Ponnappa) Date: Tue, 6 Sep 2011 01:00:18 +0530 Subject: [BangPypers] [Python][Hudson][Tests] Problems - help needed In-Reply-To: <20110905144124.GB2166@mathmagic> References: <20110828160635.GA2182@mathmagic> <20110830093006.GA23421@mathmagic> <20110830115900.GB24929@mathmagic> <20110905144124.GB2166@mathmagic> Message-ID: You may want to consider using make or rake FWIW - medium to long term, they are far easier to manage than ant, maven etc. Best, Sidu. http://c42.in On Mon, Sep 5, 2011 at 8:11 PM, Senthil Kumaran wrote: > On Sat, Sep 03, 2011 at 11:37:41PM +0530, Subhodip Biswas wrote: > >> Can you point me to some docs regarding this. I tried to write a build >> xml using pyanttasks but even after a lot of headbang the build.xml >> failed to compile. > > http://www.jython.org/jythonbook/en/1.0/DeploymentTargets.html#deploying-a-single-jar > > http://ant.apache.org/manual/using.html > > I have not written an build.xml myself from scratch, but I believe, I > have modified for some project. A friend with Java experience can help > you. It seems to me that it more of PATH problem than anything else. > > HTH, > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From akm.mail at gmail.com Tue Sep 6 14:23:17 2011 From: akm.mail at gmail.com (akm) Date: Tue, 6 Sep 2011 17:53:17 +0530 Subject: [BangPypers] [JOB] Python Jobs at Cognizant Cochin Message-ID: Hi All, Currently we are looking for candidates who are experienced Python Developer to join our centre in Cochin. If you are interested to explore this career opportunity, please send your resume for further discussions with us. See the Job descriptions below: Python Development Engineer: Required Qualifications ? 2+ Year of Python development experience ? Have at least an intermediate understanding of Linux, specifically when it comes to web hosting. Experience setting up, tuning, and serving web content with at least one web server. ? Demonstrated knowledge in and experience with industry best practices including unit testing, functional testing, continuous integration, code coverage, source control, automated reporting, coding standards, etc. TDD/TDM experience a plus ? Must be an extremely good communicator both verbally & written ? Strong technical ability Preferred Qualifications ? HTML, Django experience ? JSON/XML/XSD experience ? XQuery/XPath ? Subversion ? Memcached and Redis ? Distributed message queues Thanks, Abdul Kader M From vishnuprasadgaddam at gmail.com Mon Sep 12 07:25:32 2011 From: vishnuprasadgaddam at gmail.com (vishnu prasad) Date: Mon, 12 Sep 2011 10:55:32 +0530 Subject: [BangPypers] Can any one update the venue meet of user group meeting ? Message-ID: Greetings from Vishnu Prasad > Please anyone can update the venue details date and time ? they charge any registration fees ? how many members can attend ? thanks and regards vishnu prasad gaddam From akarsh.sanghi at gmail.com Mon Sep 12 16:04:26 2011 From: akarsh.sanghi at gmail.com (AKARSH SANGHI) Date: Mon, 12 Sep 2011 19:34:26 +0530 Subject: [BangPypers] (no subject) Message-ID: Hey, here's a great video with Python in it. http://youtu.be/1lBeungEnx4 Although it's also about matlab. -- Akarsh Sanghi Jaypee Institute of Information Technology University Undergraduate Student Class of 2013 Mob: (+91)-9818489945 Email: akarsh.sanghi at gmail.com From loksmail at yahoo.com Tue Sep 13 06:31:10 2011 From: loksmail at yahoo.com (Lokesh L) Date: Mon, 12 Sep 2011 21:31:10 -0700 (PDT) Subject: [BangPypers] [JOB] - Yahoo! Message-ID: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> Hi, ? I would like to introduce myself as Lokesh from Talent Acquisation - Yahoo! ? Yahoo! is the premier digital media company. We deliver your world, your way by creating deeply personal digital experiences that keep more than half a billion people connected to what matters most - across devices and around the globe. And it's the Yahoos behind the scenes who make this all possible. We are energetic, idea- driven people who are passionate about shaping the futher of the digital world. So if this sounds like you, come show us what you've got ? Yahoo! is currently looking for passionate professionals in the following areas: 1. Front End Engineers with strong Javascript, HTML & CSS with any of?the server side programming. 2. Principal Engineers with strong core Java or C++ , DS & Algos, Exposure on large scale or Distributed systems. 3. Principal Engineers, QE with strong white box testing experience - Java or C++ 4. Tech Lead, Perl development. ? If interesting do share this info within your network for getting some?potential references. ? For more details on the requirements, please feel free to get in touch with me on lokeshl at yahoo-inc.com or reach me on 97419 27419 ? -????????? Lokesh From noufal at gmail.com Tue Sep 13 07:32:24 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 13 Sep 2011 11:02:24 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> (Lokesh L.'s message of "Mon, 12 Sep 2011 21:31:10 -0700 (PDT)") References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> Message-ID: <87r53lc8if.fsf@sanitarium.localdomain> Lokesh, This post has nothing to do with Python. Why are you sending it to a Python list? Lokesh L writes: > Hi, > ? > I would like to introduce myself as Lokesh from Talent Acquisation - Yahoo! > ? > Yahoo! is the premier digital media company. We deliver your world, your way by creating deeply personal digital experiences that keep more than half a billion people connected to what matters most - across devices and around the globe. And it's the Yahoos behind the scenes who make this all possible. We are energetic, idea- driven people who are passionate about shaping the futher of the digital world. So if this sounds like you, come show us what you've got > ? > Yahoo! is currently looking for passionate professionals in the following areas: > > 1. Front End Engineers with strong Javascript, HTML & CSS with any of?the server side programming. > 2. Principal Engineers with strong core Java or C++ , DS & Algos, Exposure on large scale or Distributed systems. > 3. Principal Engineers, QE with strong white box testing experience - Java or C++ > 4. Tech Lead, Perl development. > ? > If interesting do share this info within your network for getting some?potential references. > ? > For more details on the requirements, please feel free to get in touch with me on lokeshl at yahoo-inc.com or reach me on 97419 27419 > ? > -????????? Lokesh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in I'll give you a definite maybe. -Samuel Goldwyn From gora at mimirtech.com Tue Sep 13 08:21:16 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 13 Sep 2011 11:51:16 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <87r53lc8if.fsf@sanitarium.localdomain> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 11:02 AM, Noufal Ibrahim wrote: > > Lokesh, > > This post has nothing to do with Python. Why are you sending it to a > Python list? [...] I hear that they have an opening for a CEO. Maybe that person could introduce Python to Y! Regards, Gora From ramkrsna at gmail.com Tue Sep 13 08:48:12 2011 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Tue, 13 Sep 2011 12:18:12 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 11:51 AM, Gora Mohanty wrote: > I hear that they have an opening for a CEO. Maybe that > person could introduce Python to Y! Too late, last I heard the Y! board was trying to rope in Homer Jay Simpson for the position. regards -- Ramakrishna Reddy? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? GPG Key ID:31FF0090 Fingerprint =? 18D7 3FC1 784B B57F C08F? 32B9 4496 B2A1 31FF 0090 From senthil at uthcode.com Tue Sep 13 09:01:13 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Tue, 13 Sep 2011 15:01:13 +0800 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> Message-ID: Guys, Let's keep it technical, they seem to look for perl guys and perhaps a python developers are useful for them too. Of course, any good company would think that good python programmers can be good (any language) programmers too. AFAIK, Y! is one such. -- Senthil >On Tue, Sep 13, 2011 at 2:48 PM, Ramakrishna Reddy wrote: > On Tue, Sep 13, 2011 at 11:51 AM, Gora Mohanty wrote: > >> I hear that they have an opening for a CEO. Maybe that >> person could introduce Python to Y! > > Too late, last I heard the Y! board was trying to rope in Homer Jay > Simpson for the position. > From sree at mahiti.org Tue Sep 13 09:15:00 2011 From: sree at mahiti.org (Sreekanth S Rameshaiah) Date: Tue, 13 Sep 2011 12:45:00 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> Message-ID: On 13 September 2011 12:31, Senthil Kumaran wrote: > Guys, > > Let's keep it technical, they seem to look for perl guys and perhaps a > python developers are useful for them too. > Of course, any good company would think that good python programmers > can be good (any language) programmers too. AFAIK, Y! is one such. > > That is not evident in their post. I think people should respect the list users when posting. In Python is not mentioned as a skill set, then this list should not be used for those wildcard job offers. - sree From lawgon at gmail.com Tue Sep 13 09:16:23 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Tue, 13 Sep 2011 12:46:23 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> Message-ID: <1315898186.1791.26.camel@xlquest.web> On Tue, 2011-09-13 at 12:45 +0530, Sreekanth S Rameshaiah wrote: > > Let's keep it technical, they seem to look for perl guys and perhaps > a > > python developers are useful for them too. > > Of course, any good company would think that good python programmers > > can be good (any language) programmers too. AFAIK, Y! is one such. > > > > That is not evident in their post. I think people should respect the > list > users when posting. In Python is not mentioned as a skill set, then > this > list should not be used for those wildcard job offers. +1 -- regards Kenneth Gonsalves From goldkeshava.88 at gmail.com Tue Sep 13 09:22:39 2011 From: goldkeshava.88 at gmail.com (keshava M) Date: Tue, 13 Sep 2011 12:52:39 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <1315898186.1791.26.camel@xlquest.web> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <1315898186.1791.26.camel@xlquest.web> Message-ID: Sir I am Keshava M, presently doing M.Sc(engg) in Biotechnology/Bio informatics at PESIT, Bangalore. my research work is based on protein x-ray crystallography files using python language. I need your help in finishing this project. If possible please give me your contact number so i will get more information and knowledge about the language and it will help me in finishing the project. Thanking you KESHAVA M On 13 September 2011 12:46, Kenneth Gonsalves wrote: > On Tue, 2011-09-13 at 12:45 +0530, Sreekanth S Rameshaiah wrote: > > > Let's keep it technical, they seem to look for perl guys and perhaps > > a > > > python developers are useful for them too. > > > Of course, any good company would think that good python programmers > > > can be good (any language) programmers too. AFAIK, Y! is one such. > > > > > > That is not evident in their post. I think people should respect the > > list > > users when posting. In Python is not mentioned as a skill set, then > > this > > list should not be used for those wildcard job offers. > > +1 > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Tue Sep 13 09:38:25 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 13 Sep 2011 13:08:25 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: (Senthil Kumaran's message of "Tue, 13 Sep 2011 15:01:13 +0800") References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> Message-ID: <87sjo0c2oe.fsf@sanitarium.localdomain> Senthil Kumaran writes: > Guys, > > Let's keep it technical, they seem to look for perl guys and perhaps a > python developers are useful for them too. Of course, any good > company would think that good python programmers can be good (any > language) programmers too. AFAIK, Y! is one such. Sorry. I don't buy that. If a general Python person like you or some of the other regulars on this list who contributes otherwise mails it asking for programmers in other languages, It's somewhat justified. If the HR person of a large company (who doesn't participate otherwise) uses a public mailing list (like this) to advertise job openings in their company, it's abuse and spamming. I'd hate for a place like this to become a hunting ground for these people. -- ~noufal http://nibrahim.net.in Some bird populations soaring down -Headline of an article in Science News, page 126, February 20, 1993. From senthil at uthcode.com Tue Sep 13 10:44:13 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Tue, 13 Sep 2011 16:44:13 +0800 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <87sjo0c2oe.fsf@sanitarium.localdomain> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 3:38 PM, Noufal Ibrahim wrote: >> Let's keep it technical, they seem to look for perl guys and perhaps a >> python developers are useful for them too. ?Of course, any good >> company would think that good python programmers can be good (any >> language) programmers too. AFAIK, Y! is one such. > > If the HR person of a large company (who doesn't participate otherwise) > uses a public mailing list (like this) to advertise job openings in I agree that the email was misdirected and I had no issues with your first question how it it was related with Python. Would have waited for the OP to answer. But that does not mean that we talk about business and ridicule a company. That IMO does not make a healthy environment. -- Senthil From noufal at gmail.com Tue Sep 13 10:47:42 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 13 Sep 2011 14:17:42 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: (Senthil Kumaran's message of "Tue, 13 Sep 2011 16:44:13 +0800") References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> Message-ID: <87y5xsakwh.fsf@sanitarium.localdomain> Senthil Kumaran writes: [...] > I agree that the email was misdirected and I had no issues with your > first question how it it was related with Python. Would have waited > for the OP to answer. But that does not mean that we talk about > business and ridicule a company. That IMO does not make a healthy > environment. Perhaps not but then again, this is an open list. Not a place where we have to unduly worry about political correctness. YMMV. -- ~noufal http://nibrahim.net.in Parting is such sweet sorrow. -William Shakespeare From b.ghose at gmail.com Tue Sep 13 11:04:48 2011 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Tue, 13 Sep 2011 14:34:48 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 2:14 PM, Senthil Kumaran wrote: > I agree that the email was misdirected and I had no issues with your > first question how it it was related with Python. Would have waited > for the OP to answer. > But that does not mean that we talk about business and ridicule a > company. ?That IMO does not make a healthy environment. In general, the posters of such emails will _never_ answer because they are not reading the list anyway. Even yesterday, someone sent a similar spam to the IPSS list. I sent a long email explaining why it's a malpractice and received an apology from the CEO. I am not sure if anyone from Y! will respond though... Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From abpillai at gmail.com Tue Sep 13 11:18:57 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 13 Sep 2011 14:48:57 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 2:34 PM, Baishampayan Ghose wrote: > On Tue, Sep 13, 2011 at 2:14 PM, Senthil Kumaran > wrote: > > I agree that the email was misdirected and I had no issues with your > > first question how it it was related with Python. Would have waited > > for the OP to answer. > > But that does not mean that we talk about business and ridicule a > > company. That IMO does not make a healthy environment. > > In general, the posters of such emails will _never_ answer because > they are not reading the list anyway. > > Even yesterday, someone sent a similar spam to the IPSS list. I sent a > long email explaining why it's a malpractice and received an apology > from the CEO. I am not sure if anyone from Y! will respond though... > > OK. Someone from Y! is responding now... To put the matter straight, Lokesh works in TA at Y! and he had asked my help to post an opening in the list. I mentioned that this is a Python list, but scripting languages like Perl, Python etc do have a lot of similarities (Ask me, I am a Python coder at heart but right now my bread is coming through Perl here). A lot of the skills at a high level are quite similar whether finally you end up coding in Python, Perl or PHP. My thinking in this was similar to Senthil's, I didn't expect this to be an emotional issue here. HTH. > Regards, > BG > > --Anand From lawgon at gmail.com Tue Sep 13 12:14:34 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Tue, 13 Sep 2011 15:44:34 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> Message-ID: <1315908877.1791.35.camel@xlquest.web> On Tue, 2011-09-13 at 14:48 +0530, Anand Balachandran Pillai wrote: > OK. Someone from Y! is responding now... > > To put the matter straight, Lokesh works in TA at Y! and > he had asked my help to post an opening in the list. I mentioned > that this is a Python list, but scripting languages like Perl, Python > etc do have a lot of similarities (Ask me, I am a Python coder at > heart but right now my bread is coming through Perl here). A lot > of the skills at a high level are quite similar whether finally you > end up coding in Python, Perl or PHP. seeing that it is perl which probably does not have an active India specific mailing list, in the interests of preserving an endangered species, maybe there is no harm in it. -- regards Kenneth Gonsalves From sudheer.s at sudheer.net Tue Sep 13 13:30:47 2011 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Tue, 13 Sep 2011 17:00:47 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> Message-ID: <4E6F3EE7.60100@sudheer.net> > To put the matter straight, Lokesh works in TA at Y! and > he had asked my help to post an opening in the list. I mentioned > that this is a Python list, but scripting languages like Perl, Python > etc do have a lot of similarities (Ask me, I am a Python coder at > heart but right now my bread is coming through Perl here). A lot > of the skills at a high level are quite similar whether finally you > end up coding in Python, Perl or PHP. Try posting a Python job ad to a Perl, Ruby or PHP list. On the other hand, try abstracting the concept. Someone who is good in one scripting language might be good in another. Someone good in one programming language might be good in another. By that argument, if you are looking for a Java programmer you can post your job ad in a C language list. If you extend the argument, you can post the ad in an technology related list for that matter. I agree with Noufal here. This is pure spam. There are enough job portals available for free. The OP should be directed to such websites. I don't want to see PHP, Ruby, Perl, C or other programming language related job ads here unless it is directly related to Python. -- With warm regards, Sudheer. S Personal home page - http://www.sudheer.net/about Tech Chorus - http://www.techchorus.net From abpillai at gmail.com Tue Sep 13 13:48:32 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 13 Sep 2011 17:18:32 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <4E6F3EE7.60100@sudheer.net> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> Message-ID: On Tue, Sep 13, 2011 at 5:00 PM, Sudheer Satyanarayana < sudheer.s at sudheer.net> wrote: > > To put the matter straight, Lokesh works in TA at Y! and >> he had asked my help to post an opening in the list. I mentioned >> that this is a Python list, but scripting languages like Perl, Python >> etc do have a lot of similarities (Ask me, I am a Python coder at >> heart but right now my bread is coming through Perl here). A lot >> of the skills at a high level are quite similar whether finally you >> end up coding in Python, Perl or PHP. >> > Try posting a Python job ad to a Perl, Ruby or PHP list. > Cut the heat. IMHO it was a problem with the wording of the posting by the OP. If he had been more diplomatic and sugar-coated his posting, most of you would have remained silent. See this post on the bangalore-rug list. It mentions ruby only once and among many other skills. https://groups.google.com/group/bangalorerug/browse_thread/thread/30d3e3dc6cdd8974/ead6b725a2c8e55e?hl=en&lnk=gst&q=job#ead6b725a2c8e55e Nobody cribbed. > > On the other hand, try abstracting the concept. Someone who is good in one > scripting language might be good in another. Someone good in one programming > language might be good in another. By that argument, if you are looking for > a Java programmer you can post your job ad in a C language list. If you > extend the argument, you can post the ad in an technology related list for > that matter. > > Actually you can if you word it carefully like the link I mentioned. > I agree with Noufal here. This is pure spam. There are enough job portals > available for free. The OP should be directed to such websites. I don't want > to see PHP, Ruby, Perl, C or other programming language related job ads here > unless it is directly related to Python. > Yes, he was not smart enough to say "Python" as one of the skills in his posting. That is what you are cribbing about ? Advocacy is good, it shouldn't turn into zealotry. > > -- > > With warm regards, > Sudheer. S > Personal home page - http://www.sudheer.net/about > Tech Chorus - http://www.techchorus.net > > > ______________________________**_________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/**mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Tue Sep 13 13:57:39 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 13 Sep 2011 17:27:39 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: (Anand Balachandran Pillai's message of "Tue, 13 Sep 2011 17:18:32 +0530") References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> Message-ID: <87hb4gac3w.fsf@sanitarium.localdomain> Anand Balachandran Pillai writes: [...] > Cut the heat. IMHO it was a problem with the wording of the posting by > the OP. If he had been more diplomatic and sugar-coated his posting, > most of you would have remained silent. Not me. I might have worded my response differently but unless he was looking for a Python programmer, I would have censured him. > See this post on the bangalore-rug list. It mentions ruby only once > and among many other skills. > > https://groups.google.com/group/bangalorerug/browse_thread/thread/30d3e3dc6cdd8974/ead6b725a2c8e55e?hl=en&lnk=gst&q=job#ead6b725a2c8e55e > > Nobody cribbed. It *does* atleast mention Ruby. The original email here conveyed the impression that the recruiter was using this list as a "hiring resource" and nothing more. Y! is not a Python startup, it's not really using Python (atleast the job posting didn't indicate it). I don't think the mail qualifies for the list but that's just my opinion. [...] -- ~noufal http://nibrahim.net.in The best cure for insomnia is to get a lot of sleep. -W. C. Fields From sriramnrn at gmail.com Tue Sep 13 14:36:15 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Tue, 13 Sep 2011 18:06:15 +0530 Subject: [BangPypers] About being a community Message-ID: All: I've started to read the book made available by Jono Bacon, the Ubuntu Community manager. The book is called "The Art of Community Online", and is available here: www.artofcommunityonline.org I find this to be a good book. -- Sriram ================== Belenix: www.belenix.org From sriramnrn at gmail.com Tue Sep 13 14:48:24 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Tue, 13 Sep 2011 18:18:24 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <87hb4gac3w.fsf@sanitarium.localdomain> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 5:27 PM, Noufal Ibrahim wrote: > Anand Balachandran Pillai writes: > > > [...] > > >> Cut the heat. IMHO it was a problem with the wording of the posting by >> the OP. If he had been more diplomatic and sugar-coated his posting, >> most of you would have remained silent. > > Not me. I might have worded my response differently but unless he was > looking for a Python programmer, I would have censured him. > >> See this post on the bangalore-rug list. It mentions ruby only once >> and among many other skills. >> >> https://groups.google.com/group/bangalorerug/browse_thread/thread/30d3e3dc6cdd8974/ead6b725a2c8e55e?hl=en&lnk=gst&q=job#ead6b725a2c8e55e >> >> Nobody cribbed. > > It *does* atleast mention Ruby. The original email here conveyed the > impression that the recruiter was using this list as a "hiring > resource" and nothing more. Y! is not a Python startup, it's not really > using Python (atleast the job posting didn't indicate it). > > I don't think the mail qualifies for the list but that's just my opinion. > I feel that poking fun at any company's business is in extremely disgusting taste. This was done once about Thoughtworks (the company I work with) on this very mailing list. I didn't see any apology then by the person who did that, nor do I see any apology here by the person poking fun at Yahoo on this list. Since then, I'm convinced that by and large, we all need to understand better how to make bangpypers a safer place for discussions. -- Sriram ================== Belenix: www.belenix.org From noufal at gmail.com Tue Sep 13 14:52:27 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 13 Sep 2011 18:22:27 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: (Sriram Narayanan's message of "Tue, 13 Sep 2011 18:18:24 +0530") References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> Message-ID: <877h5ca9kk.fsf@sanitarium.localdomain> Sriram Narayanan writes: [...] > I feel that poking fun at any company's business is in extremely > disgusting taste. This was done once about Thoughtworks (the company I > work with) on this very mailing list. Agreed but that is a separate issue. However, that doesn't address the issue of a recruitment person from a company using the list merely as a hiring resource for a non python job. [...] -- ~noufal http://nibrahim.net.in A little pain never hurt anyone. From noufal at gmail.com Tue Sep 13 14:58:00 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 13 Sep 2011 18:28:00 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <877h5ca9kk.fsf@sanitarium.localdomain> (Noufal Ibrahim's message of "Tue, 13 Sep 2011 18:22:27 +0530") References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: <8739g0a9bb.fsf@sanitarium.localdomain> Perhaps I'm being more vocal about this than is appropriate. I hold generally unpopular opinions about the relationship between corporate entities and free software/open source communities. That's probably where the bile comes from. -- ~noufal http://nibrahim.net.in Honk if you are against noise pollution! From abpillai at gmail.com Tue Sep 13 15:08:06 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 13 Sep 2011 18:38:06 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 6:18 PM, Sriram Narayanan wrote: > > > I feel that poking fun at any company's business is in extremely > disgusting taste. This was done once about Thoughtworks (the company I > work with) on this very mailing list. > I didn't see any apology then by the person who did that, nor do I see > any apology here by the person poking fun at Yahoo on this list. > > Since then, I'm convinced that by and large, we all need to understand > better how to make bangpypers a safer place for discussions. > +1 Please, love your language etc, but let us give the impression that we are not a bunch of amateur kids here, but professionals who are ready to give a bit of space for others to live amongst us. I made the mistake of telling OK to this guy on posting here, never going to repeat the mistake again. I had thought better of this list in fact. My bad. > -- Sriram > ================== > Belenix: www.belenix.org > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From sriramnrn at gmail.com Tue Sep 13 15:07:51 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Tue, 13 Sep 2011 18:37:51 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <877h5ca9kk.fsf@sanitarium.localdomain> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 6:22 PM, Noufal Ibrahim wrote: > Sriram Narayanan writes: > > > [...] > > >> I feel that poking fun at any company's business is in extremely >> disgusting taste. This was done once about Thoughtworks (the company I >> work with) on this very mailing list. > > Agreed but that is a separate issue. > I see Yahoo being made fun of, and I don't see that being addressed. As long as we encourage or worse, remain silent about corporates being made fun of, we're going to remain a community of hypocrites. Worse, we risk the brand image of Python itself (Note that this mailing list is hosted at python.org), claims to represent Python, and that this community is part of the overall Python community in India and across the globe. > However, that doesn't address the issue of a recruitment person from a > company using the list merely as a hiring resource for a non python job. > We have to then solve a problem to having a common understanding of what's fine and what's not. It appears to me that Anand Pillai was fine with such a post, and you're not, and there's some clarity needed on what's acceptable and what's not, and the rationale for what ever consensus we arrive at. > -- > ~noufal -- Sriram ================== Belenix: www.belenix.org From gethemant at gmail.com Tue Sep 13 15:09:13 2011 From: gethemant at gmail.com (hemant) Date: Tue, 13 Sep 2011 18:39:13 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <877h5ca9kk.fsf@sanitarium.localdomain> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: Hi, On Tue, Sep 13, 2011 at 6:22 PM, Noufal Ibrahim wrote: > Sriram Narayanan writes: > > > [...] > > >> I feel that poking fun at any company's business is in extremely >> disgusting taste. This was done once about Thoughtworks (the company I >> work with) on this very mailing list. > > Agreed but that is a separate issue. > > However, that doesn't address the issue of a recruitment person from a > company using the list merely as a hiring resource for a non python job. > As a Rubyist, I am really surprised at - so much anger for a legit job posting, just because it did not had 'Python' keyword in its description. I can't obviously speak for everyone, but I believe there is no such thing as Python Job or Ruby Job - for 90% of exciting programming jobs out there. Ideally, what the community should do is, set out a guideline for a legit job posting such as: - Does it have [JOB] or something in subject, so as people can steer clear if they want? - Does it exactly say, what the requirements are and for which company? - Does it mention location? - It should not sound phony. If a job posting matches all of the above, it is all good. However, as a community if everyone agrees, one can add: - Must mention Python as keyword in job posting. But then, every recruiter will add that anyways. What does a recruiter want, more keywords! From noufal at gmail.com Tue Sep 13 16:06:10 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 13 Sep 2011 19:36:10 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: (Sriram Narayanan's message of "Tue, 13 Sep 2011 18:37:51 +0530") References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: <878vps8rl9.fsf@sanitarium.localdomain> Sriram Narayanan writes: [...] > It appears to me that Anand Pillai was fine with such a post, and > you're not, and there's some clarity needed on what's acceptable and > what's not, and the rationale for what ever consensus we arrive at. [...] I don't agree with Anand on this matter. I'll state my opinion (and it is an opinion). Firstly, I agree with you about the making fun of companies thing. I don't feel that strongly about it as you but nevertheless. You'll notice that I didn't do that on this thread. I'm not above it though. I do sometimes find thing that are "mock worthy" about companies (including Yahoo and ThoughtWorks) but those are reserved for dinner time conversations with friends rather than public mailing lists. However, I'm not concerned about that here. I'm concerned about someone from a large company with a lot of resources using a public mailing list like this as a general hiring resource. They're not hosting it, they're not paying for it, they're not contributing to it (their employees might be but that's just incidental). If the job targetted Python developers, it'd be be "contributing" and okay. It didn't and I object to that. If you or Anand or any of the other regulars sent a mail asking for, say, Ruby developers (as Sidu of C42 did some time ago), I wouldn't object. Why? Because the person in question has generally been valuable to the list and their presence has improved it. They're not just using this as a random free hiring resource. I didn't originally know that the OP was sanctioned by Anand. That would have toned down my response but I still feel that that the original posting was at best OT for this list. I'd like this to be a "no exception" thing since, from my experience of hiring professionals, they tend to be indiscriminate and overly aggressive in their attempts to get people and having a few them overrun this list would do it more harm than good. I'm not a list moderator so if we have an official policy on this somewhere, I'd like to see it to know if I don't have grounds to stand on. -- ~noufal http://nibrahim.net.in Monotheism is a gift from the gods. From ichattopadhyaya at gmail.com Tue Sep 13 17:49:43 2011 From: ichattopadhyaya at gmail.com (Ishan Chattopadhyaya) Date: Tue, 13 Sep 2011 21:19:43 +0530 Subject: [BangPypers] [JOB] - Yahoo! Message-ID: Gentlemen, Python is so easy (read beginner-friendly), that its not worth mentioning in skills. People don't ask for the ability to arrange A to Z in ascending order for a communication job. Its only the cryptic languages (read Java or other languages that you guys hate and was mentioned in the job skills) that needs to be learnt, not Python. ;-) On a more serious note, Python could be "learnt" or used on the job. Having said this, I feel the whole concept of a "java job" or a "python job", no matter how much you language lovers might like, is a dated concept. I would be extremely surprised if Yahoo! would hire a candidate strong in Java or Perl and then stop him from working in Python if the project that he chooses to work on really requires Python. Just my 2 cents ;-) God bless one and all of you, Regards, Ishan Chattopadhyaya Sr. Software Engineer, Search, Yahoo! From rmathews at gmail.com Tue Sep 13 18:10:29 2011 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 13 Sep 2011 21:40:29 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: On Tue, Sep 13, 2011 at 18:37, Sriram Narayanan wrote: >> Sriram Narayanan writes: >>> I feel that poking fun at any company's business is in extremely >>> disgusting taste. This was done once about Thoughtworks (the company I >>> work with) on this very mailing list. >> [...] > As long as we encourage or worse, remain silent about corporates being > made fun of, we're going to remain a community of hypocrites. > FWIW, I didn't have an opinion on the OT job posting because I didn't read it. But I must add that, it would be hypocritical to *not* poke fun at companies, especially bumbling, incompetent, soon to be extinct lumbering dinosaurs, (that don't do much beyond pooping all over the techworld) such as Yahoo! and ThoughtWorks! (see what I did there?) Now if Anand's or your self-image was so tied to your place of employment that it would send you into a deep depression that someone made fun of it, then I'd probably be disheartened (since that wasn't my intention) but that wouldn't stop me from doing it. We really should have fewer holy cows that are too sacred to be made fun of. Especially fat, methane producing ones like Y! and T! Ol?! Roshan Mathews PS - django/python/computer-software programmers who are looking for a job, or are interested in being wooed may mail roshan at claylabs.com ... and I'll ask the big boss man to call you himself. -- http://about.me/rosh From senthil at uthcode.com Tue Sep 13 16:46:23 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Tue, 13 Sep 2011 22:46:23 +0800 Subject: [BangPypers] About being a community In-Reply-To: References: Message-ID: <20110913144622.GA2954@mathmagic> On Tue, Sep 13, 2011 at 06:06:15PM +0530, Sriram Narayanan wrote: > > The book is called "The Art of Community Online", and is available > here: www.artofcommunityonline.org > Pretty interesting. There is another book along the same lines which has good many chapters devoted to community - It is http://producingoss.com/ by Karl Fogel. When I first read that book, I was surprised at the kind of importance Karl game on non-technical, user behavior, developer behavior and community aspects in the Open Source project. Later when I do reflect upon it, I found that book was very insightful. Thanks, Senthil From sudheer.s at sudheer.net Wed Sep 14 04:31:34 2011 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 14 Sep 2011 08:01:34 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> Message-ID: <4E701206.1060300@sudheer.net> Noufal has already replied to this. My response is to those parts that weren't addressed. > Cut the heat. Sorry? I do not understand what heat you are referring to. > IMHO it was a problem with the wording of the posting > by the OP. If he had been more diplomatic and sugar-coated his > posting, most of you would have remained silent. Perhaps. > See this post on the bangalore-rug list. It mentions ruby only once > and among many other skills. > > https://groups.google.com/group/bangalorerug/browse_thread/thread/30d3e3dc6cdd8974/ead6b725a2c8e55e?hl=en&lnk=gst&q=job#ead6b725a2c8e55e > > Nobody cribbed. We're saying the job ad was unrelated to Python and this spam. 'Cribbed' is a strong word. I'd be careful in my choice of words. > > Actually you can if you word it carefully like the link I mentioned. You should be telling this to the OP. > Yes, he was not smart enough to say "Python" as one of the skills in his > posting. > That is what you are cribbing about ? Looks like it is someone else that is _cribbing_. The point I'm trying to raise here is relevancy to Python. Expressing opinions and debating doesn't mean cribbing. > Advocacy is good, it shouldn't turn into zealotry. Now you are accusing me of zealotry? Interesting. Would you justify your accusation? -- With warm regards, Sudheer. S Personal home page - http://www.sudheer.net/about Tech Chorus - http://www.techchorus.net From sudheer.s at sudheer.net Wed Sep 14 04:33:51 2011 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 14 Sep 2011 08:03:51 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <8739g0a9bb.fsf@sanitarium.localdomain> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> <8739g0a9bb.fsf@sanitarium.localdomain> Message-ID: <4E70128F.7020702@sudheer.net> On Tuesday 13 September 2011 06:28 PM, Noufal Ibrahim wrote: > Perhaps I'm being more vocal about this than is appropriate. I hold > generally unpopular opinions about the relationship between corporate > entities and free software/open source communities. That's probably > where the bile comes from. > Noufal, you did the right thing by bringing up this topic for discussion. I cannot speak about your generally unpopular opinions. But I'm totally with you on this one. -- With warm regards, Sudheer. S Personal home page - http://www.sudheer.net/about Tech Chorus - http://www.techchorus.net From benignbala at gmail.com Wed Sep 14 07:03:53 2011 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Wed, 14 Sep 2011 10:33:53 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: Hi, On Tue, Sep 13, 2011 at 9:40 PM, Roshan Mathews wrote: > On Tue, Sep 13, 2011 at 18:37, Sriram Narayanan wrote: > > FWIW, I didn't have an opinion on the OT job posting because I didn't > read it. ?But I must add that, it would be hypocritical to *not* poke > fun at companies, especially bumbling, incompetent, soon to be extinct > lumbering dinosaurs, (that don't do much beyond pooping all over the I am not sure about the hypocritical part, but it sure would show how immature the person is. You can criticize a company for its policies, but cannot poke fun at it. And they do what they like, and need not comply with someone else definition of "being competent". I really am completely surprised at people disagreeing with the opinion that it is bad to poke fun at companies. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From lawgon at gmail.com Wed Sep 14 08:09:02 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 14 Sep 2011 11:39:02 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> Message-ID: <1315980545.1791.41.camel@xlquest.web> On Tue, 2011-09-13 at 18:38 +0530, Anand Balachandran Pillai wrote: > Please, love your language etc, but let us give the impression that > we are not a bunch of amateur kids here, but professionals who > are ready to give a bit of space for others to live amongst us. > > I made the mistake of telling OK to this guy on posting here, never > going to repeat the mistake again. I had thought better of this list > in fact. My bad. love of language is not the issue - this list has a specific focus, and we need to respect that. -- regards Kenneth Gonsalves From lawgon at gmail.com Wed Sep 14 08:11:00 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 14 Sep 2011 11:41:00 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: <1315980663.1791.43.camel@xlquest.web> On Tue, 2011-09-13 at 18:37 +0530, Sriram Narayanan wrote: > We have to then solve a problem to having a common understanding of > what's fine and what's not. python is fine - non python is not fine. Lighthearted banter is fine. -- regards Kenneth Gonsalves From lawgon at gmail.com Wed Sep 14 08:15:54 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 14 Sep 2011 11:45:54 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: <1315980957.1791.46.camel@xlquest.web> On Tue, 2011-09-13 at 18:39 +0530, hemant wrote: > - Does it have [JOB] or something in subject, so as people can steer > clear if they want? > - Does it exactly say, what the requirements are and for which > company? > - Does it mention location? > - It should not sound phony. > > If a job posting matches all of the above, it is all good. However, as > a community if everyone agrees, one can add: > > - Must mention Python as keyword in job posting. an advertisement for a job in a zoo involving cleaning the reptile enclosure would fulfill your criteria. -- regards Kenneth Gonsalves From abpillai at gmail.com Wed Sep 14 12:32:48 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 14 Sep 2011 16:02:48 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <4E701206.1060300@sudheer.net> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <4E701206.1060300@sudheer.net> Message-ID: On Wed, Sep 14, 2011 at 8:01 AM, Sudheer Satyanarayana < sudheer.s at sudheer.net> wrote: > > Noufal has already replied to this. My response is to those parts that > weren't addressed. > >> Cut the heat. >> > Sorry? I do not understand what heat you are referring to. Dont take it personally. It was not directed only to your response, but to all the responses that seem to notch up the temperature by a few degrees here. > > IMHO it was a problem with the wording of the posting >> by the OP. If he had been more diplomatic and sugar-coated his >> posting, most of you would have remained silent. >> > Perhaps. > > See this post on the bangalore-rug list. It mentions ruby only once >> and among many other skills. >> >> https://groups.google.com/**group/bangalorerug/browse_**thread/thread/** >> 30d3e3dc6cdd8974/**ead6b725a2c8e55e?hl=en&lnk=** >> gst&q=job#ead6b725a2c8e55e >> >> Nobody cribbed. >> > We're saying the job ad was unrelated to Python and this spam. 'Cribbed' is > a strong word. I'd be careful in my choice of words. Cribbing means complaining. Fairly light word. A strong word would be something like "shouted" or "exploded" in this case. I am quite pedagogical when it comes to my knowledge of English, so here is some reference. >From urban dictionary online, http://www.urbandictionary.com/define.php?term=cribbing Cribbing: "Complaining, A mild form of whining". Not much strength there. > > >> Actually you can if you word it carefully like the link I mentioned. >> > You should be telling this to the OP. > > Yes, he was not smart enough to say "Python" as one of the skills in his >> posting. >> That is what you are cribbing about ? >> > Looks like it is someone else that is _cribbing_. > > The point I'm trying to raise here is relevancy to Python. Expressing > opinions and debating doesn't mean cribbing. > > Of course not, but IMHO, which I am entitled to, the eruptions of self-righteous objections, were complaints which I felt didn't have much ground. Hence the use of "cribbing". > > Advocacy is good, it shouldn't turn into zealotry. >> > Now you are accusing me of zealotry? Interesting. Would you justify your > accusation? > > As I said, it was not a personal comment. I happened to choose your email to reply to the thread in general. The list is for healthy discussions. When someone says "you", it needn't be directed against a particular person, but to a group who express an opinion. You seem to be taking all this too personally. Chill. > > > -- > > With warm regards, > Sudheer. S > Personal home page - http://www.sudheer.net/about > Tech Chorus - http://www.techchorus.net > > -- --Anand From sajuptpm at gmail.com Wed Sep 14 13:01:49 2011 From: sajuptpm at gmail.com (Saju M) Date: Wed, 14 Sep 2011 16:31:49 +0530 Subject: [BangPypers] Python mechanize Change the Location of Google search Message-ID: I want to open Google search page and Change the Location link in the left hand nav of Google) from the users current location to a different location, then return the results of the updated search. I done following coding. Issue is, Left side Change Location form of google is javacript driven, So br.submit() not working . Have any way to solve this issue ??? import re from mechanize import Browser LOGIN_URL = "http://www.google.co.in/search?q=new+york+locksmith&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a" br = Browser() br.set_handle_robots(False) br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')] s_page = br.open(LOGIN_URL) loc_form = br.select_form(nr=1) loc_text_fld = br.form.find_control(id='lc-input') loc_text_fld.__dict__['_value'] = 'kerala' #Change the Location resp = br.submit() print "\n\n----------resp----------", resp.read() #Returning blank google search page. From jace at pobox.com Wed Sep 14 14:00:04 2011 From: jace at pobox.com (Kiran Jonnalagadda) Date: Wed, 14 Sep 2011 17:30:04 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> Message-ID: <0A35DE4F-C6CE-44BA-B10C-79B8EBCCBD56@pobox.com> On 13-Sep-2011, at 9:40 PM, Roshan Mathews wrote: > FWIW, I didn't have an opinion on the OT job posting because I didn't > read it. But I must add that, it would be hypocritical to *not* poke > fun at companies, especially bumbling, incompetent, soon to be extinct > lumbering dinosaurs, (that don't do much beyond pooping all over the > techworld) such as Yahoo! and ThoughtWorks! (see what I did there?) +1. Censoring opinion does no one any good. I'm with Noufal and Roshan on this thread. Public criticism can help companies get unstuck *really fast*, as I learnt about Y! last month in a separate incident. If, as in this case, any company wants to use a public resource to recruit, they should also be willing to explain why they are a good place to work. This is a fair expectation for their use of the resource. Instead, there's only been objection to criticism, which makes the company look all the worse. Kiran From b.ghose at gmail.com Wed Sep 14 14:04:31 2011 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Wed, 14 Sep 2011 17:34:31 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <0A35DE4F-C6CE-44BA-B10C-79B8EBCCBD56@pobox.com> References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> <0A35DE4F-C6CE-44BA-B10C-79B8EBCCBD56@pobox.com> Message-ID: On Wed, Sep 14, 2011 at 5:30 PM, Kiran Jonnalagadda wrote: > +1. Censoring opinion does no one any good. I'm with Noufal and Roshan on this thread. > > Public criticism can help companies get unstuck *really fast*, as I learnt about Y! last month in a separate incident. If, as in this case, any company wants to use a public resource to recruit, they should also be willing to explain why they are a good place to work. This is a fair expectation for their use of the resource. Instead, there's only been objection to criticism, which makes the company look all the worse. +1 to Kiran and Noufal here. +1 Trillion to Roshan (of which a few Billions are just for the style). Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From venkat83 at gmail.com Wed Sep 14 14:11:30 2011 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 14 Sep 2011 17:41:30 +0530 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: References: <1315888270.92569.YahooMailNeo@web121018.mail.ne1.yahoo.com> <87r53lc8if.fsf@sanitarium.localdomain> <87sjo0c2oe.fsf@sanitarium.localdomain> <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> <0A35DE4F-C6CE-44BA-B10C-79B8EBCCBD56@pobox.com> Message-ID: On Wed, Sep 14, 2011 at 5:34 PM, Baishampayan Ghose wrote: > +1 Trillion to Roshan (of which a few Billions are just for the style). > Roshan is otherwise known as as 'Wally' ...Scott Adams inspiration. Hic! -V From noufal at gmail.com Wed Sep 14 14:40:14 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 14 Sep 2011 18:10:14 +0530 Subject: [BangPypers] List guidelines (was: [JOB] - Yahoo!) In-Reply-To: (Ishan Chattopadhyaya's message of "Tue, 13 Sep 2011 21:19:43 +0530") References: Message-ID: <87mxe747rl.fsf@sanitarium.localdomain> This is obviously dividing the list into camps and that's not healthy. What is the official stance of the list owners on this kind of post? It would be good to know and state it so that this kind of thing is avoided again. I hear from others (BRUG, BarCamp Bangalore) that first time posters who send recruitment mails are simply rejected. That sounds like a sane policy to me. -- ~noufal http://nibrahim.net.in The scene is dull. Tell him to put more life into his dying. -- Samuel Goldwyn From senthil at uthcode.com Wed Sep 14 14:47:34 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 14 Sep 2011 20:47:34 +0800 Subject: [BangPypers] [JOB] - Yahoo! In-Reply-To: <0A35DE4F-C6CE-44BA-B10C-79B8EBCCBD56@pobox.com> References: <4E6F3EE7.60100@sudheer.net> <87hb4gac3w.fsf@sanitarium.localdomain> <877h5ca9kk.fsf@sanitarium.localdomain> <0A35DE4F-C6CE-44BA-B10C-79B8EBCCBD56@pobox.com> Message-ID: <20110914124734.GA2507@mathmagic> On Wed, Sep 14, 2011 at 05:30:04PM +0530, Kiran Jonnalagadda wrote: > On 13-Sep-2011, at 9:40 PM, Roshan Mathews wrote: > > > FWIW, I didn't have an opinion on the OT job posting because I didn't > > read it. But I must add that, it would be hypocritical to *not* poke > > fun at companies, especially bumbling, incompetent, soon to be extinct > > lumbering dinosaurs, (that don't do much beyond pooping all over the > > techworld) such as Yahoo! and ThoughtWorks! (see what I did there?) > > +1. Censoring opinion does no one any good. I'm with Noufal and Roshan on this thread. Except that this may not be the place. You could use better forums for that. This is technical list and community where mutual respect is valued. So, please don't deviate from that. If one makes mistakes, it is better to point out and correct rather than ridicule. -- Senthil From senthil at uthcode.com Wed Sep 14 14:50:20 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 14 Sep 2011 20:50:20 +0800 Subject: [BangPypers] List guidelines (was: [JOB] - Yahoo!) In-Reply-To: <87mxe747rl.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> Message-ID: <20110914125020.GB2507@mathmagic> On Wed, Sep 14, 2011 at 06:10:14PM +0530, Noufal Ibrahim wrote: > What is the official stance of the list owners on this kind of post? It > would be good to know and state it so that this kind of thing is avoided > again. If there is a mistake, correct it. Don't ridicule. > > I hear from others (BRUG, BarCamp Bangalore) that first time posters who > send recruitment mails are simply rejected. That sounds like a sane > policy to me. No. First time posters are welcome. Spammers are not. -- Senthil From umar43 at gmail.com Wed Sep 14 14:55:50 2011 From: umar43 at gmail.com (Umar Shah) Date: Wed, 14 Sep 2011 18:25:50 +0530 Subject: [BangPypers] List guidelines (was: [JOB] - Yahoo!) In-Reply-To: <20110914125020.GB2507@mathmagic> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> Message-ID: On Wed, Sep 14, 2011 at 6:20 PM, Senthil Kumaran wrote: > On Wed, Sep 14, 2011 at 06:10:14PM +0530, Noufal Ibrahim wrote: > > What is the official stance of the list owners on this kind of post? It > > would be good to know and state it so that this kind of thing is avoided > > again. > > If there is a mistake, correct it. Don't ridicule. > > > > > I hear from others (BRUG, BarCamp Bangalore) that first time posters who > > send recruitment mails are simply rejected. That sounds like a sane > > policy to me. > > No. First time posters are welcome. Spammers are not. > I think first time job post is also ok but it should be relevant to the group. Can we expect all job poster to post otherwise also? > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Wed Sep 14 14:57:10 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 14 Sep 2011 18:27:10 +0530 Subject: [BangPypers] List guidelines In-Reply-To: <20110914125020.GB2507@mathmagic> (Senthil Kumaran's message of "Wed, 14 Sep 2011 20:50:20 +0800") References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> Message-ID: <87fwjz46zd.fsf@sanitarium.localdomain> Senthil Kumaran writes: > On Wed, Sep 14, 2011 at 06:10:14PM +0530, Noufal Ibrahim wrote: >> What is the official stance of the list owners on this kind of post? It >> would be good to know and state it so that this kind of thing is avoided >> again. > > If there is a mistake, correct it. Don't ridicule. Absolutely no light hearted jabs. Total shrink wrapped politeness would make for a very dull corporate atmosphere. I don't like it myself but if that is the position of the list, I won't violate it. >> I hear from others (BRUG, BarCamp Bangalore) that first time posters who >> send recruitment mails are simply rejected. That sounds like a sane >> policy to me. > > No. First time posters are welcome. Spammers are not. Every poster has a first time. A job posting by a first timer for a non Python job is pretty much spam (for this list) in my opinion but there needs to be an "official" stance on this as well. -- ~noufal http://nibrahim.net.in The first condition of immortality is death. -Stanislaw Lec From ramkrsna at gmail.com Wed Sep 14 15:01:03 2011 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Wed, 14 Sep 2011 18:31:03 +0530 Subject: [BangPypers] List guidelines (was: [JOB] - Yahoo!) In-Reply-To: <87mxe747rl.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> Message-ID: On Wed, Sep 14, 2011 at 6:10 PM, Noufal Ibrahim wrote: > > This is obviously dividing the list into camps and that's not healthy. Nothing wrong in one expressing their opinion, I would not take it as unhealthy or it would divide camps. Its an open mailing list. OTOH People being open about their views is a healthy sign. > What is the official stance of the list owners on this kind of post? It > would be good to know and state it so that this kind of thing is avoided > again. I'm okay with first time posters, even recruitment / commercial posting is fine, as long as basic job email etiquettes. If we would want to channel out all the commercial postings from the list, we could ask the recruiters to post their requirement to the http://www.python.org/community/jobs/ . regards -- Ramakrishna Reddy? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? GPG Key ID:31FF0090 Fingerprint =? 18D7 3FC1 784B B57F C08F? 32B9 4496 B2A1 31FF 0090 From senthil at uthcode.com Wed Sep 14 15:14:03 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 14 Sep 2011 21:14:03 +0800 Subject: [BangPypers] List guidelines In-Reply-To: <87fwjz46zd.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> Message-ID: <20110914131403.GC2507@mathmagic> On Wed, Sep 14, 2011 at 06:27:10PM +0530, Noufal Ibrahim wrote: > Senthil Kumaran writes: > > If there is a mistake, correct it. Don't ridicule. > > Absolutely no light hearted jabs. Total shrink wrapped politeness would > make for a very dull corporate atmosphere. I don't like it myself but if > that is the position of the list, I won't violate it. Pretty good interpretation of what 'ridicule' means. :-) > Python job is pretty much spam (for this list) in my opinion but there > needs to be an "official" stance on this as well. My recollection from history is, it needs to be prefixed with [JOB] and jobs are not considered spam by many. I think, prefixing with JOB can help also people to filter them to spam folder, if they prefer it that way. -- Senthil From noufal at gmail.com Wed Sep 14 15:17:58 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 14 Sep 2011 18:47:58 +0530 Subject: [BangPypers] List guidelines In-Reply-To: <20110914131403.GC2507@mathmagic> (Senthil Kumaran's message of "Wed, 14 Sep 2011 21:14:03 +0800") References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> Message-ID: <878vpr460p.fsf@sanitarium.localdomain> Senthil Kumaran writes: [...] > My recollection from history is, it needs to be prefixed with [JOB] > and jobs are not considered spam by many. I think, prefixing with JOB > can help also people to filter them to spam folder, if they prefer it > that way. So, job postings not at all related to Python are fine as long as they're prefixed with [JOB]? -- ~noufal http://nibrahim.net.in The first condition of immortality is death. -Stanislaw Lec From umar43 at gmail.com Wed Sep 14 15:21:43 2011 From: umar43 at gmail.com (Umar Shah) Date: Wed, 14 Sep 2011 18:51:43 +0530 Subject: [BangPypers] List guidelines In-Reply-To: <878vpr460p.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> Message-ID: On Wed, Sep 14, 2011 at 6:47 PM, Noufal Ibrahim wrote: > Senthil Kumaran writes: > > > [...] > > > My recollection from history is, it needs to be prefixed with [JOB] > > and jobs are not considered spam by many. I think, prefixing with JOB > > can help also people to filter them to spam folder, if they prefer it > > that way. > > So, job postings not at all related to Python are fine as long as > they're prefixed with [JOB]? > > People who are interested in just python jobs as most of guys here would be cant easily filter out non python ones. > -- > ~noufal > http://nibrahim.net.in > > The first condition of immortality is death. -Stanislaw Lec > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Wed Sep 14 15:26:07 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 14 Sep 2011 18:56:07 +0530 Subject: [BangPypers] List guidelines In-Reply-To: (Umar Shah's message of "Wed, 14 Sep 2011 18:51:43 +0530") References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> Message-ID: <874o0f45n4.fsf@sanitarium.localdomain> Umar Shah writes: [...] > People who are interested in just python jobs as most of guys here > would be cant easily filter out non python ones. [...] So, random headhunters/recruiters are free to use this list to post for any job postings but the onus is on the list members to filter out the Python related postings from the non python ones. Correct? Am I the only one who thinks this is backward? -- ~noufal http://nibrahim.net.in A verbal contract isn't worth the paper it's written on. Include me out. -Samuel Goldwyn From sree at mahiti.org Wed Sep 14 15:27:33 2011 From: sree at mahiti.org (Sreekanth S Rameshaiah) Date: Wed, 14 Sep 2011 18:57:33 +0530 Subject: [BangPypers] List guidelines (was: [JOB] - Yahoo!) In-Reply-To: <87mxe747rl.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> Message-ID: On 14 September 2011 18:10, Noufal Ibrahim wrote: My thoughts, This is Python mailing list. The mails should be wither around the topic. If a recruiter sends a mail for job XYZ which explicitly not invites people with python skils to apply, this list should treat it as spam. If some asks a Java or PHP relevant question, will we not treat that as irreverent? - sree From senthil at uthcode.com Wed Sep 14 15:33:16 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 14 Sep 2011 21:33:16 +0800 Subject: [BangPypers] List guidelines In-Reply-To: <878vpr460p.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> Message-ID: <20110914133316.GD2507@mathmagic> On Wed, Sep 14, 2011 at 06:47:58PM +0530, Noufal Ibrahim wrote: > So, job postings not at all related to Python are fine as long as > they're prefixed with [JOB]? I thought the question was for Python jobs. If the question is for any job, then no. We may not expect irrelevant jobs to be posted here. But again, if someone makes a mistake, it is better to correct him and ask clarification as how it is relevant. It may either end up being useful or we can inform that this may not be right list. If someone abuses the list, then we can inform him. As he is a human, he may stand corrected. If it is a bot, then I think spambayes is doing a good job already and we can give a helping hand if required. -- Senthil From umar43 at gmail.com Wed Sep 14 15:35:37 2011 From: umar43 at gmail.com (Umar Shah) Date: Wed, 14 Sep 2011 19:05:37 +0530 Subject: [BangPypers] List guidelines In-Reply-To: <874o0f45n4.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> Message-ID: On Wed, Sep 14, 2011 at 6:56 PM, Noufal Ibrahim wrote: > Umar Shah writes: > > [...] > > > People who are interested in just python jobs as most of guys here > > would be cant easily filter out non python ones. > > [...] > > So, random headhunters/recruiters are free to use this list to post for > any job postings but the onus is on the list members to filter out the > Python related postings from the non python ones. Correct? > > :) I want list to be favorable to guys interested in python only, this is not a job list. So in my opinion a job post not relevant to python guys should be treated as spam. Am I the only one who thinks this is backward? > > > -- > ~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 > From pythonic at gmail.com Wed Sep 14 15:47:15 2011 From: pythonic at gmail.com (Shekhar Tiwatne) Date: Wed, 14 Sep 2011 19:17:15 +0530 Subject: [BangPypers] List guidelines In-Reply-To: References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> Message-ID: <4E70B063.8060005@gmail.com> On Wednesday 14 September 2011 07:05 PM, Umar Shah wrote: > On Wed, Sep 14, 2011 at 6:56 PM, Noufal Ibrahim wrote: > >> Umar Shah writes: >> >> [...] >> >>> People who are interested in just python jobs as most of guys here >>> would be cant easily filter out non python ones. >> [...] >> >> So, random headhunters/recruiters are free to use this list to post for >> any job postings but the onus is on the list members to filter out the >> Python related postings from the non python ones. Correct? >> >> > :) I want list to be favorable to guys interested in python only, this is > not a job list. So in my opinion a job post not relevant to python guys > should be treated as spam. > > Am I the only one who thinks this is backward? +1 I would also prefer to see relevant (python) job posts here. Shekhar From abhilash.pin2 at gmail.com Wed Sep 14 15:58:18 2011 From: abhilash.pin2 at gmail.com (=?UTF-8?B?YcOfbOC5gM6vbM6xc2zguYA=?=) Date: Wed, 14 Sep 2011 19:28:18 +0530 Subject: [BangPypers] wx.TreeCtrl ! Message-ID: Hi, need help to create a wx.TreeCtrl that can list all my memory Drive with all the folder in a hierarchical Tree structure, and can multiple folders can be selected to do task like copy/paste/delete.... need help on wx as how to go abt it... -- a?l??l?sl? From senthil at uthcode.com Wed Sep 14 15:52:05 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 14 Sep 2011 21:52:05 +0800 Subject: [BangPypers] List guidelines In-Reply-To: <874o0f45n4.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> Message-ID: On Wed, Sep 14, 2011 at 9:26 PM, Noufal Ibrahim wrote: > Am I the only one who thinks this is backward? No, definitely not. But you seem to be giving undue importance to this discussion by creating hypothetical scenarios. I think, we can tolerate some mistakes and just stay focused. -- Senthil From noufal at gmail.com Wed Sep 14 16:19:01 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 14 Sep 2011 19:49:01 +0530 Subject: [BangPypers] List guidelines In-Reply-To: (Senthil Kumaran's message of "Wed, 14 Sep 2011 21:52:05 +0800") References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> Message-ID: <87ty8f2omi.fsf@sanitarium.localdomain> Senthil Kumaran writes: > On Wed, Sep 14, 2011 at 9:26 PM, Noufal Ibrahim wrote: > >> Am I the only one who thinks this is backward? > > No, definitely not. But you seem to be giving undue importance to this > discussion by creating hypothetical scenarios. I think, we can > tolerate some mistakes and just stay focused. Well, it did cause a long thread. I merely censured the OP for the inappropriate post. I gather that most of you agree that it was not suited for this list. So that's sorted. The teasing issue, a few people teased the company a little. I don't think that was out of place. A little light hearted humour is, in my opnion, a good thing. Apparently, you and Sriram disagree and that's what spawned off this thread. This is getting too long for for my tastes. If there is a formal statement on what's allowed on the list and what's not, I'll abide. I personally don't like a strictly enforced code that keeps everyone artificially super polite but like I said, I'll abide. -- ~noufal http://nibrahim.net.in I distinctly remember forgetting that. -Clara Barton From sriramnrn at gmail.com Wed Sep 14 16:47:17 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Wed, 14 Sep 2011 20:17:17 +0530 Subject: [BangPypers] List guidelines In-Reply-To: <87ty8f2omi.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> <87ty8f2omi.fsf@sanitarium.localdomain> Message-ID: On 9/14/11, Noufal Ibrahim wrote: > Senthil Kumaran writes: > >> On Wed, Sep 14, 2011 at 9:26 PM, Noufal Ibrahim wrote: >> >>> Am I the only one who thinks this is backward? >> >> No, definitely not. But you seem to be giving undue importance to this >> discussion by creating hypothetical scenarios. I think, we can >> tolerate some mistakes and just stay focused. > > Well, it did cause a long thread. I merely censured the OP for the > inappropriate post. I gather that most of you agree that it was not > suited for this list. So that's sorted. > I have a different understanding. I really do feel that we need to sort out what we feel is acceptable by way of job postings. All these years I felt that we all had a similar understanding, but seeing the differences of opinion between Anand and yourself made me realize that we need to perhaps discuss and arrive at a formal understanding. > The teasing issue, a few people teased the company a little. I don't > think that was out of place. A little light hearted humour is, in my > opnion, a good thing. Apparently, you and Sriram disagree and that's > what spawned off this thread. Sorry, poking fun at a company's board of directors, etc, is in poor taste, and cannot be condoned off as light hearted humor. Poking fun at a company's practices, especially one which one may not yourself practice and therefore not be in a position to comment on, is also tells poorly poorly about that commentator. It has been only these two cases that I've raised concerns about. >From what I can see so far, we've only been discussing what qualifies as a valid job posting on this thread. > > This is getting too long for for my tastes. If there is a formal > statement on what's allowed on the list and what's not, I'll abide. I > personally don't like a strictly enforced code that keeps everyone > artificially super polite but like I said, I'll abide. > Noufal, I didn't ask for any straight jacketcode, etc. Please do not paint basic politeness and courtesy as strictly enforced code. I find your own strong arguments against that job posting to be strict enforcement, and I can't help but think that even the merest hint of the word "python" would have changed how you look at job postings, even though this was one where there were very many technologies related to what a python app would use. My own inputs related to job postings: - Permit a variety of tech job postings from people who are regulars. - Permit job postings from recruiters only of these are related to python. If these are related to Python, but not Python specific jobs, allow them anway. - Let us acknowledge and accept that Recruiters are not going to understand a community's ethos (I understood this word better from the art of community online book). Some or most of us who have dealt with them know how they think. We can at best educate them, at worst ban their posts. - Job offers for .NET, Cobol, AIX, etc should obviously not be permitted merely because of a a token mention of the word "python". My inputs at a larger level: - Clearly there are differences in understanding what politeness means. What may be light hearted fun for one, may not be so for the other. It is upon the recepient to decide if he does not like this so called fun, and others need to respect that. - Clearly, there are also differences in understanding on whether we should taunt corporates or not. Once again, anyone, especially a representative of an organization, has every right to step in with corrections. As I mentioned earlier on this response, I've myself stepped in twice so far. - We need to figure out where we stand with respect to corporates. If we feel that corporates by and large are the community's disinterests at heart, let us not approach them for help in cash or kind in the future. (This is what I'd meant by hypocrisy). > > -- > ~noufal > http://nibrahim.net.in > > I distinctly remember forgetting that. -Clara Barton > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ================== Belenix: www.belenix.org From sriramnrn at gmail.com Wed Sep 14 16:51:51 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Wed, 14 Sep 2011 20:21:51 +0530 Subject: [BangPypers] About pypy and bangpypers Message-ID: All: Some weeks ago, there was some discussion of a meetup to figure out what we could do with pypy. Have any list members conducted any investigations on that ? I'm asking because I'm interested. I'd like to see how I can package pypy for Belenix someday, and I want to pair with various python programmers and understand how people think about a platform when considering it for use. -- Sriram ================== Belenix: www.belenix.org From noufal at gmail.com Wed Sep 14 16:54:48 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 14 Sep 2011 20:24:48 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: (Sriram Narayanan's message of "Wed, 14 Sep 2011 20:21:51 +0530") References: Message-ID: <87boun2myv.fsf@sanitarium.localdomain> Sriram Narayanan writes: > All: > > Some weeks ago, there was some discussion of a meetup to figure out > what we could do with pypy. Have any list members conducted any > investigations on that ? > > I'm asking because I'm interested. I'd like to see how I can package > pypy for Belenix someday, and I want to pair with various python > programmers and understand how people think about a platform when > considering it for use. [...] I was hoping to resurrect this after PyCon India this weekend. I'm eager to get it going. -- ~noufal http://nibrahim.net.in The first condition of immortality is death. -Stanislaw Lec From sriramnrn at gmail.com Wed Sep 14 16:59:36 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Wed, 14 Sep 2011 20:29:36 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: <87boun2myv.fsf@sanitarium.localdomain> References: <87boun2myv.fsf@sanitarium.localdomain> Message-ID: On 9/14/11, Noufal Ibrahim wrote: > > I was hoping to resurrect this after PyCon India this weekend. I'm eager > to get it going. > Sounds good. I'll begin preparation for the meetup. For me, getting pypy to work will be a bit special, since I'll need to "port" it to run with what ever's available on the illumos platform. > -- > ~noufal > http://nibrahim.net.in > > The first condition of immortality is death. -Stanislaw Lec > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sriram ================== Belenix: www.belenix.org From abpillai at gmail.com Wed Sep 14 17:08:39 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 14 Sep 2011 20:38:39 +0530 Subject: [BangPypers] List guidelines (was: [JOB] - Yahoo!) In-Reply-To: References: <87mxe747rl.fsf@sanitarium.localdomain> Message-ID: On Wed, Sep 14, 2011 at 6:57 PM, Sreekanth S Rameshaiah wrote: > On 14 September 2011 18:10, Noufal Ibrahim wrote: > > My thoughts, > > This is Python mailing list. The mails should be wither around the topic. > If a recruiter sends a mail for job XYZ which explicitly not invites people > with python skils to apply, this list should treat it as spam. > > If some asks a Java or PHP relevant question, will we not treat that as > irreverent? > Need not be. If the Java or PHP question is generic enough and on a topic that is applicable to Python as well, it could be something worth answering. For example - if there is a question on multithreading in Java, I would answer it here since the Python threading module has a lot of similarity with Java. However, if the question is like "Which class in Java to use for byte stream input" then I would politely redirect him to a Java forum. After 12+ years of working in a wide number of programming languages from C to Java to Python to PHP and Perl, I keep a very open mind on this topic. This is a Python forum, but languages are inter-related and there is a lot to share and learn. We are not a Python "fan" forum IMHO but learned folks who chose to mostly center their discussions on Python and related topics. That shouldn't exclude related discussions in other languages, if there is an overlap with aspects of Python. I am sure this list is subscribed by a number of folks whose day job would be coding in languages other than Python. With respect to JOB posting, my only requirement is that the subject list contain [JOB] and it is somewhat relevant. I don't care if it is the first post of the member or 100th post. - sree > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Wed Sep 14 17:13:45 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 14 Sep 2011 20:43:45 +0530 Subject: [BangPypers] List guidelines In-Reply-To: References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> Message-ID: On Wed, Sep 14, 2011 at 7:22 PM, Senthil Kumaran wrote: > On Wed, Sep 14, 2011 at 9:26 PM, Noufal Ibrahim wrote: > > > Am I the only one who thinks this is backward? > > No, definitely not. But you seem to be giving undue importance to this > discussion by creating hypothetical scenarios. I think, we can > tolerate some mistakes and just stay focused. > As long as the list is not crawling with off-topic JOB posts and making our other discussions entirely impossible, I dont care if some one from Yahoo! or any other company posts a slightly off-topic JOB announcement. If we get to a stage where we are really swamped by non-Pythonic JOB posting robots, we can incrementally take a better stand. No need for worrying about hypothetical scenarios now. Show some flexibility. > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Wed Sep 14 17:19:31 2011 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 14 Sep 2011 20:49:31 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: References: <87boun2myv.fsf@sanitarium.localdomain> Message-ID: On Wed, Sep 14, 2011 at 8:29 PM, Sriram Narayanan wrote: > On 9/14/11, Noufal Ibrahim wrote: > > > > > I was hoping to resurrect this after PyCon India this weekend. I'm eager > > to get it going. > Same here. Looking fwd to meet up on this after Pycon India. > > > > Sounds good. I'll begin preparation for the meetup. For me, getting > pypy to work will be a bit special, since I'll need to "port" it to > run with what ever's available on the illumos platform. > > > -- > > ~noufal > > http://nibrahim.net.in > > > > The first condition of immortality is death. -Stanislaw Lec > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > -- Sriram > ================== > Belenix: www.belenix.org > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From jayneil.dalal at gmail.com Wed Sep 14 18:52:47 2011 From: jayneil.dalal at gmail.com (Jayneil Dalal) Date: Wed, 14 Sep 2011 22:22:47 +0530 Subject: [BangPypers] URGENT: problem using Pyserial in Python In-Reply-To: References: Message-ID: Dear Sir/Madam, I am currently trying to develop a GUI for serial communication based on Python. Following are my specs: OS:Linux( Ubuntu 11.04) Python version: 3.1.3 Pyserial version: 2.5 I did the following in IDLE : 1)import serial 2)import time 3)ser=serial.Serial() 4)ser.port="/dev/ttyS0" Note:- I have a laptop. So I have only USB ports. But when I tried dev/ttyUSB0 it gave me errors..So i did not use it 5)ser.baudrate=19200 Now this is where I get the errors: 6)ser.open() The error is: *Traceback (most recent call last):* * File "", line 1, in * * ser.open()* * File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 280, in open* * self._reconfigurePort()* * File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 308, in _reconfigurePort* * raise SerialException("Could not configure port: %s" % msg)* *serial.serialutil.SerialException: Could not configure port: (5, 'Input/output error')* * * So can you please suggest me how to avoid this. Looking forward to your positive response. Regards, Jayneil. From noufal at gmail.com Wed Sep 14 19:18:10 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 14 Sep 2011 22:48:10 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: (Sriram Narayanan's message of "Wed, 14 Sep 2011 20:29:36 +0530") References: <87boun2myv.fsf@sanitarium.localdomain> Message-ID: <8739fz2gbx.fsf@sanitarium.localdomain> Sriram Narayanan writes: > On 9/14/11, Noufal Ibrahim wrote: > >> >> I was hoping to resurrect this after PyCon India this weekend. I'm eager >> to get it going. >> > > Sounds good. I'll begin preparation for the meetup. For me, getting > pypy to work will be a bit special, since I'll need to "port" it to > run with what ever's available on the illumos platform. [...] That will probably give us a good chance to get our hands dirty. I'd be willing to pitch in. It'll probably have to be longer than a "normal" user group meeting but let's keep the dicussions till after PyCon. -- ~noufal http://nibrahim.net.in An empty cab drove up and Sarah Bernhardt got out. -Arthur Baer, American comic and columnist From noufal at gmail.com Wed Sep 14 19:20:09 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 14 Sep 2011 22:50:09 +0530 Subject: [BangPypers] List guidelines In-Reply-To: (Anand Balachandran Pillai's message of "Wed, 14 Sep 2011 20:43:45 +0530") References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> Message-ID: <87wrdb11o6.fsf@sanitarium.localdomain> Anand Balachandran Pillai writes: [...] > If we get to a stage where we are really swamped by non-Pythonic > JOB posting robots, we can incrementally take a better stand. > No need for worrying about hypothetical scenarios now. > Show some flexibility. [...] Fair enough. I don't think we'll ever arrive at an agreement about politeness and decorum so I'll personally stick to the common denominator and stay formal. -- ~noufal http://nibrahim.net.in I'd give my right arm to be ambidextrous. From sriramnrn at gmail.com Wed Sep 14 19:40:01 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Wed, 14 Sep 2011 23:10:01 +0530 Subject: [BangPypers] List guidelines In-Reply-To: <87wrdb11o6.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> <87wrdb11o6.fsf@sanitarium.localdomain> Message-ID: On Wed, Sep 14, 2011 at 10:50 PM, Noufal Ibrahim wrote: > > Fair enough. > > I don't think we'll ever arrive at an agreement about politeness and > decorum so I'll personally stick to the common denominator and stay > formal. > I'd say we should bring down this "formal" stuff a bit. > -- > ~noufal > http://nibrahim.net.in > > I'd give my right arm to be ambidextrous. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sriram ================== Belenix: www.belenix.org From ramkrsna at gmail.com Wed Sep 14 21:40:16 2011 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Thu, 15 Sep 2011 01:10:16 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: References: Message-ID: On Wed, Sep 14, 2011 at 8:21 PM, Sriram Narayanan wrote: > > I'm asking because I'm interested. I'd like to see how I can package > pypy for Belenix someday, and I want to pair with various python > programmers and understand how people think about a platform when > considering it for use. Fedora earlier this year proposed pypy as one of its supported runtimes, The project is work in progress, this is the tracker bug https://bugzilla.redhat.com/show_bug.cgi?id=588941. https://fedoraproject.org/wiki/Features/PyPyStack. Hopefully this picks up momentum. Could someone propose a lighting talk / Sprint(unofficial) regarding this at Pycon India ? -- Ramakrishna Reddy? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? GPG Key ID:31FF0090 Fingerprint =? 18D7 3FC1 784B B57F C08F? 32B9 4496 B2A1 31FF 0090 From noufal at gmail.com Thu Sep 15 06:53:27 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 15 Sep 2011 10:23:27 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: (Ramakrishna Reddy's message of "Thu, 15 Sep 2011 01:10:16 +0530") References: Message-ID: <877h5a1k54.fsf@sanitarium.localdomain> Ramakrishna Reddy writes: > On Wed, Sep 14, 2011 at 8:21 PM, Sriram Narayanan wrote: > >> >> I'm asking because I'm interested. I'd like to see how I can package >> pypy for Belenix someday, and I want to pair with various python >> programmers and understand how people think about a platform when >> considering it for use. > > Fedora earlier this year proposed pypy as one of its supported > runtimes, The project is work in progress, this is the tracker bug > https://bugzilla.redhat.com/show_bug.cgi?id=588941. > https://fedoraproject.org/wiki/Features/PyPyStack. Hopefully this > picks up momentum. Could someone propose a lighting talk / > Sprint(unofficial) regarding this at Pycon India ? It would be nice if someone who's worked on this proposed one. Is there anyone here? -- ~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 jace at pobox.com Thu Sep 15 07:28:38 2011 From: jace at pobox.com (Kiran Jonnalagadda) Date: Thu, 15 Sep 2011 10:58:38 +0530 Subject: [BangPypers] List guidelines (was: [JOB] - Yahoo!) In-Reply-To: <20110914125020.GB2507@mathmagic> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> Message-ID: On Wed, Sep 14, 2011 at 6:20 PM, Senthil Kumaran wrote: > > I hear from others (BRUG, BarCamp Bangalore) that first time posters who > > send recruitment mails are simply rejected. That sounds like a sane > > policy to me. > > No. First time posters are welcome. Spammers are not. > Our policy at Barcamp Bangalore is that any form of *advertising* from a first-time poster is not accepted. Participation in any ongoing discussion, or a new discussion that seeks opinion is welcome. Since Barcamp is a general forum with no specific topic for discussion, this policy helps filter out a lot of junk from posters who don't otherwise participate, while keeping the list useful for those who do, including as an advertising target. Kiran From sajuptpm at gmail.com Thu Sep 15 09:31:23 2011 From: sajuptpm at gmail.com (Saju M) Date: Thu, 15 Sep 2011 13:01:23 +0530 Subject: [BangPypers] RE : Python mechanize Change the Location of Google search Message-ID: Hi, I also tried to change google search location through http://www.google.co.in/preferences?hl=en#loc , but getting error mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found Here is the code i tried import re import cookielib from mechanize import Browser import mechanize br1= Browser() # Cookie Jar cj = cookielib.LWPCookieJar() br1.set_cookiejar(cj) br1.set_handle_robots(False) br1.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')] P_URL = "http://www.google.co.in/preferences?hl=en#loc" s_page = br1.open(P_URL) loc_form = br1.select_form(name="langform") br1.form['luul'] = u'bangaluru' # <------ New location resp = br1.submit() print "---------resp---------",resp.read() Output ======= $ python a11.py Traceback (most recent call last): File "a11.py", line 94, in ? resp = br1.submit() File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 541, in submit File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 203, in open File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 255, in _mech_open mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found =============================================== Date: Wed, 14 Sep 2011 16:31:49 +0530 From: Saju M To: bangpypers at python.org Subject: [BangPypers] Python mechanize Change the Location of Google search Message-ID: Content-Type: text/plain; charset=ISO-8859-1 I want to open Google search page and Change the Location link in the left hand nav of Google) from the users current location to a different location, then return the results of the updated search. I done following coding. Issue is, Left side Change Location form of google is javacript driven, So br.submit() not working . Have any way to solve this issue ??? import re from mechanize import Browser LOGIN_URL = "http://www.google.co.in/search?q=new+york+locksmith&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a" br = Browser() br.set_handle_robots(False) br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')] s_page = br.open(LOGIN_URL) loc_form = br.select_form(nr=1) loc_text_fld = br.form.find_control(id='lc-input') loc_text_fld.__dict__['_value'] = 'kerala' #Change the Location resp = br.submit() print "\n\n----------resp----------", resp.read() #Returning blank google search page. From senthil at uthcode.com Thu Sep 15 10:54:13 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Thu, 15 Sep 2011 16:54:13 +0800 Subject: [BangPypers] RE : Python mechanize Change the Location of Google search In-Reply-To: References: Message-ID: On Thu, Sep 15, 2011 at 3:31 PM, Saju M wrote: > I also tried to change google search location through > http://www.google.co.in/preferences?hl=en#loc , but getting error > mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found Mechanize does not support any action done via Javascript and there seems a javascript call involved in setting the location there. Turn Javascript off in your browser and try to change the location. You will notice that it throws errors. Perhaps it is the same which is happening when accessed via mechanize. BTW, do you really need mechanize for the task that you are trying to do? Would not their AJAX API (http://code.google.com/apis/websearch/docs/#fonje_snippets ) help you to accomplish the same with lesser hassle ? (at least until they retire it :)) --- Senthil From nikunjbadjatya at gmail.com Thu Sep 15 19:36:17 2011 From: nikunjbadjatya at gmail.com (Nikunj Badjatya) Date: Thu, 15 Sep 2011 23:06:17 +0530 Subject: [BangPypers] (no subject) In-Reply-To: References: Message-ID: +1 :) On Mon, Sep 12, 2011 at 7:34 PM, AKARSH SANGHI wrote: > Hey, here's a great video with Python in it. > > http://youtu.be/1lBeungEnx4 > > Although it's also about matlab. > > -- > > Akarsh Sanghi > Jaypee Institute of Information Technology University > Undergraduate Student Class of 2013 > Mob: (+91)-9818489945 > Email: akarsh.sanghi at gmail.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From senthil at uthcode.com Fri Sep 16 16:08:02 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Fri, 16 Sep 2011 22:08:02 +0800 Subject: [BangPypers] problem using Pyserial in Python In-Reply-To: References: Message-ID: <20110916140802.GB1966@mathmagic> On Wed, Sep 14, 2011 at 10:22:47PM +0530, Jayneil Dalal wrote: > * raise SerialException("Could not configure port: %s" % msg)* > *serial.serialutil.SerialException: Could not configure port: (5, > 'Input/output error')* > * Your Port is not attached to the program yet, or perhaps you are using a wrong socket. You might need to do some basis testing and identify what is happening. Try running the pyserial test suite or find how to to verify that serial communication is indeed happening. Also execute your program via terminal rather than IDLE. IDLE does not play well with sockets. -- Senthil From senthil at uthcode.com Fri Sep 16 16:10:50 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Fri, 16 Sep 2011 22:10:50 +0800 Subject: [BangPypers] wx.TreeCtrl ! In-Reply-To: References: Message-ID: <20110916141050.GC1966@mathmagic> On Wed, Sep 14, 2011 at 07:28:18PM +0530, a?l??l?sl? wrote: > with all the folder in a hierarchical Tree structure, and can multiple > folders can be selected to do task like copy/paste/delete.... > need help on wx as how to go abt it... I think, this is fairly common use-case when dealing with any GUI library. After starting with wxwidgets http://www.learningpython.com/2007/01/29/creating-a-gui-using-python-wxwidgets-and-wxpython/ You may just look for the example program here in the http://www.wxwidgets.org/ for directory nativagator and tree structure. Then you can deal with copy/paste/delete functions. -- Senthil From lawgon at gmail.com Sat Sep 17 05:53:20 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 17 Sep 2011 09:23:20 +0530 Subject: [BangPypers] List guidelines (was: [JOB] - Yahoo!) In-Reply-To: <87mxe747rl.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> Message-ID: <1316231604.1774.1.camel@xlquest.web> On Wed, 2011-09-14 at 18:10 +0530, Noufal Ibrahim wrote: > I hear from others (BRUG, BarCamp Bangalore) that first time posters > who > send recruitment mails are simply rejected. That sounds like a sane > policy to me. chennaipy rejects all recruitment mail that does not have any concrete reference to python. -- regards Kenneth Gonsalves From lawgon at gmail.com Sat Sep 17 05:56:24 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 17 Sep 2011 09:26:24 +0530 Subject: [BangPypers] List guidelines In-Reply-To: <878vpr460p.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> Message-ID: <1316231789.1774.3.camel@xlquest.web> On Wed, 2011-09-14 at 18:47 +0530, Noufal Ibrahim wrote: > So, job postings not at all related to Python are fine as long as > they're prefixed with [JOB]? no - unless it is a generic 'programmers wanted' post without specifying tools. -- regards Kenneth Gonsalves From lawgon at gmail.com Sat Sep 17 05:57:12 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 17 Sep 2011 09:27:12 +0530 Subject: [BangPypers] List guidelines In-Reply-To: <874o0f45n4.fsf@sanitarium.localdomain> References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> Message-ID: <1316231835.1774.4.camel@xlquest.web> On Wed, 2011-09-14 at 18:56 +0530, Noufal Ibrahim wrote: > So, random headhunters/recruiters are free to use this list to post > for > any job postings but the onus is on the list members to filter out the > Python related postings from the non python ones. Correct? > > Am I the only one who thinks this is backward? I am with you -- regards Kenneth Gonsalves From lawgon at gmail.com Sat Sep 17 06:00:51 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 17 Sep 2011 09:30:51 +0530 Subject: [BangPypers] List guidelines In-Reply-To: References: <87mxe747rl.fsf@sanitarium.localdomain> <20110914125020.GB2507@mathmagic> <87fwjz46zd.fsf@sanitarium.localdomain> <20110914131403.GC2507@mathmagic> <878vpr460p.fsf@sanitarium.localdomain> <874o0f45n4.fsf@sanitarium.localdomain> <87ty8f2omi.fsf@sanitarium.localdomain> Message-ID: <1316232054.1774.5.camel@xlquest.web> On Wed, 2011-09-14 at 20:17 +0530, Sriram Narayanan wrote: > Sorry, poking fun at a company's board of directors, etc, is in poor > taste, and cannot be condoned off as light hearted humor. Poking fun > at a company's practices, especially one which one may not yourself > practice and therefore not be in a position to comment on, is also > tells poorly poorly about that commentator. It has been only these two > cases that I've raised concerns about. nothing wrong with poking fun -- regards Kenneth Gonsalves From as1438 at msstate.edu Sat Sep 17 06:26:34 2011 From: as1438 at msstate.edu (Ananya Sharma) Date: Fri, 16 Sep 2011 23:26:34 -0500 Subject: [BangPypers] Parsing data Message-ID: Hey, I am just a beginner in python. I have to write a script to parse a data file I have written a script but it is not working. Can anybody please help me to fix it? Let me explain the task I want to accomplish using this script. I have 2 files A and B. File A has ~1450 names which have a corresponding value in file B. File B also has some extra data which I do not need in my result (there are ~2700 values in file B). Preview of these files and my script is given below -- *File A-* >PSUB.GBD61H402FPT34:0-372 >PSUB.GBD61H401EQ8PG:0-365 >PSUB.GBD61H401AV35C:0-423 >PSUB.GBD61H401EWL7A:0-442 >PSUB.GBD61H401CWYC8:0-284 *File B-* >PSUB.GBD61H402FPT34:0-372 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNCATTTCCTTGAGTATTAGGCCATTCATGCTGTCAATTTTCTTAACT ATTTGGAAATCCTAGTTGTACAAGATGGCCTTTTTCCCACCTGTATTTGC TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA TGTGGCGGGGGTGGGCTGACAG >PSUB.GBD61H401EQ8PG:0-365 GTTCTGTATTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXGTTGTGTATTAAAAACAATGCA ATTCTTGGGCAAAGCAGTATGATTGGTTGTGTTTAAGATATCATAGATTC TGCATACCAGAGCATTTGAGTAAGAAATGCATTTACTAGTAATTATTTTC ACCCCTTAAAGAAGT >PSUB.GBD61H401DZU65:0-306 TAAACCATGGAGATCAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXCAAAAGAGGGATATTTAGTTA GAAAAAAAACCCCACATGGAAGTAATTTTAAACGACCCTGTTGATTTGTT ATACAG >PSUB.GBD61H401DLDLT:0-387 ATTTTAAATGTACATCTCATTTAAAGGATTTTTTCCCTAAAGAATTGGAA ACCGXXXXXXXXXXXXXXX *Script-* * * f1=open('fileA','r') f2=open('fileB','r') a="" b="" for n in f1: while not b.startswith(n): b=f2.readline() if len(a)>0: print a b="" while not b.startswith(">"): a=a+f2.readline()+"__" Any help would be highly appreciated. Thanks. Ananya From gora at mimirtech.com Sat Sep 17 08:03:48 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Sat, 17 Sep 2011 11:33:48 +0530 Subject: [BangPypers] Parsing data In-Reply-To: References: Message-ID: On Sat, Sep 17, 2011 at 9:56 AM, Ananya Sharma wrote: [...] Could you explain the logic that you are trying to use in the code below, because it is not making much sense. Also, is this a homework problem? > *Script-* > * > * > f1=open('fileA','r') > f2=open('fileB','r') > a="" > b="" > for n in f1: > ? ?while not b.startswith(n): > ? ? ? ?b=f2.readline() > ? ?if len(a)>0: > ? ? ? ? ? ? print a a is always "" above, so len(a) is always zero. > ? ?b="" > ? ?while not b.startswith(">"): > ? ? ? a=a+f2.readline()+"__" [...] You just set b to "", so the if conditional is never entered. Regards, Gora From as1438 at msstate.edu Sat Sep 17 18:03:56 2011 From: as1438 at msstate.edu (Ananya Sharma) Date: Sat, 17 Sep 2011 11:03:56 -0500 Subject: [BangPypers] Parsing data In-Reply-To: References: Message-ID: I am trying to look up each value from file A and loop it through file B. As i already said that I am new in python programming so this is what I could come up with. And this is the output of an algorithm I use in my research so its not a part of any homework assignment. On Sat, Sep 17, 2011 at 1:03 AM, Gora Mohanty wrote: > On Sat, Sep 17, 2011 at 9:56 AM, Ananya Sharma wrote: > [...] > > Could you explain the logic that you are trying to use in the code > below, because it is not making much sense. Also, is this a > homework problem? > > > *Script-* > > * > > * > > f1=open('fileA','r') > > f2=open('fileB','r') > > a="" > > b="" > > for n in f1: > > while not b.startswith(n): > > b=f2.readline() > > if len(a)>0: > > print a > > a is always "" above, so len(a) is always zero. > > > b="" > > while not b.startswith(">"): > > a=a+f2.readline()+"__" > [...] > > You just set b to "", so the if conditional is never entered. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gora at mimirtech.com Sat Sep 17 21:22:05 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Sun, 18 Sep 2011 00:52:05 +0530 Subject: [BangPypers] Parsing data In-Reply-To: References: Message-ID: On Sat, Sep 17, 2011 at 9:33 PM, Ananya Sharma wrote: > I am trying to look up each value from file A and loop it through file B. As > i already said that I am new in python programming so this is what I could > come up with. Um, the code is quite far from accomplishing that. While I am sure that people could write this function for you, in order for you to learn, it would be best if you could explain your logic in words, or pseudo-code. You do not need to know Python in order to come up with this logic. > And this is the output of an algorithm I use in my research so > its not a part of any homework assignment. OK. Regards, Gora From as1438 at msstate.edu Sat Sep 17 22:49:40 2011 From: as1438 at msstate.edu (Ananya Sharma) Date: Sat, 17 Sep 2011 15:49:40 -0500 Subject: [BangPypers] Parsing data In-Reply-To: References: Message-ID: The logic is that i have file A which has some names and file B which has values for each name in file A and some extra values. I want to make a script which gives me the values from file B corresponding to all the names given in file A. My files look like - *File A-* >PSUB.GBD61H402FPT34:0-372 >PSUB.GBD61H401EQ8PG:0-365 >PSUB.GBD61H401AV35C:0-423 >PSUB.GBD61H401EWL7A:0-442 >PSUB.GBD61H401CWYC8:0-284 *File B-* >PSUB.GBD61H402FPT34:0-372 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNCATTTCCTTGAGTATTAGGCCATTCATGCTGTCAATTTTCTTAACT ATTTGGAAATCCTAGTTGTACAAGATGGCCTTTTTCCCACCTGTATTTGC TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA TGTGGCGGGGGTGGGCTGACAG >PSUB.GBD61H401EQ8PG:0-365 GTTCTGTATTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXGTTGTGTATTAAAAACAATGCA ATTCTTGGGCAAAGCAGTATGATTGGTTGTGTTTAAGATATCATAGATTC TGCATACCAGAGCATTTGAGTAAGAAATGCATTTACTAGTAATTATTTTC ACCCCTTAAAGAAGT >PSUB.GBD61H401DZU65:0-306 TAAACCATGGAGATCAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXCAAAAGAGGGATATTTAGTTA GAAAAAAAACCCCACATGGAAGTAATTTTAAACGACCCTGTTGATTTGTT ATACAG >PSUB.GBD61H401DLDLT:0-387 ATTTTAAATGTACATCTCATTTAAAGGATTTTTTCCCTAAAGAATTGGAA ACCGXXXXXXXXXXXXXXX Can anyone please help me write a script in python to accomplish this task. Thanks. Ananya On Sat, Sep 17, 2011 at 2:22 PM, Gora Mohanty wrote: > On Sat, Sep 17, 2011 at 9:33 PM, Ananya Sharma wrote: > > I am trying to look up each value from file A and loop it through file B. > As > > i already said that I am new in python programming so this is what I > could > > come up with. > > Um, the code is quite far from accomplishing that. While > I am sure that people could write this function for you, in > order for you to learn, it would be best if you could explain > your logic in words, or pseudo-code. You do not need to > know Python in order to come up with this logic. > > > And this is the output of an algorithm I use in my research so > > its not a part of any homework assignment. > > OK. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gora at mimirtech.com Sat Sep 17 23:05:06 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Sun, 18 Sep 2011 02:35:06 +0530 Subject: [BangPypers] Parsing data In-Reply-To: References: Message-ID: On Sun, Sep 18, 2011 at 2:19 AM, Ananya Sharma wrote: > The logic is that i have file A which has some names and file B which has > values for each name in file A and some extra values. I want to make a > script which gives me the values from file B corresponding to all the names > given in file A. [...] You already described that. I meant the logic of how you would go about implementing this. Describing this in words should help you in writing the code. Alternatively, if you do not really care about learning how to program, maybe some kind soul will write this trivial program for you. Regards, Gora From senthil at uthcode.com Sun Sep 18 03:49:29 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 18 Sep 2011 09:49:29 +0800 Subject: [BangPypers] Parsing data In-Reply-To: References: Message-ID: <20110918014929.GA1865@mathmagic> On Fri, Sep 16, 2011 at 11:26:34PM -0500, Ananya Sharma wrote: > > *File A-* > >PSUB.GBD61H402FPT34:0-372 > > *File B-* > >PSUB.GBD61H402FPT34:0-372 > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > XXXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN > NNNNCATTTCCTTGAGTATTAGGCCATTCATGCTGTCAATTTTCTTAACT > ATTTGGAAATCCTAGTTGTACAAGATGGCCTTTTTCCCACCTGTATTTGC > TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA > TGTGGCGGGGGTGGGCTGACAG Here is the simplest scenario of your case. In this what do you want to do Ignore XXX...CAG in File-B and print only the >PSUB.? If that is the case, you could iterate over file-b and look for lines starting with > and then put them to a list and then do your operations. In your code: > f1=open('fileA','r') > f2=open('fileB','r') > a="" > b="" > for n in f1: > while not b.startswith(n): > b=f2.readline() This loop will break when f2 has line starting with >PSUB. > if len(a)>0: > print a Won't have any effect. > b="" You are resetting b. > while not b.startswith(">"): > a=a+f2.readline()+"__" > Won't have any effect. > > Any help would be highly appreciated. Thanks. Do you see why your program is not working when reduced to the simplest case? If you are trying to find entities in B which are in A. Just recreate B so that you remove all the non > starting lines and then compare. -- Senthil From wah_meng at yahoo.com Sun Sep 18 11:15:31 2011 From: wah_meng at yahoo.com (Wah Meng Wong) Date: Sun, 18 Sep 2011 02:15:31 -0700 (PDT) Subject: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC In-Reply-To: References: Message-ID: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> Hello there, I am trying to build python 64-bit on HP Itanium platform with HP-UX Ansi C compiler. The python executable is successfully built however there are many errors generated when option +DD64 is passed in, many (more) modules failed to build (compared to 32-bit option is used).? I followed the instruction in README file to set and unset the enviornment variables like CC, CXX, LDFLAGS and BASECFLAGS like below, and remove Optimization option in the Makefile, however, many modules failed to build. There are warning messages on the compilation which I can ignore, however, there are fatal errors that "+DD64" is not a recognized flag in the linking process, with command ld. export CC=cc export CXX=aCC export BASECFLAGS="+DD64" export LDFLAGS="+DD64 -lxnet" # swlist -l product | grep Compiler ? ACXX????????????????? C.06.26.EVAL?? HP C/aC++ Compiler ? C-ANSI-C????????????? C.06.26.EVAL?? HP C/aC++ Compiler ? COMPLIBS????????????? B.11.31??????? Compiler Support Libraries Messages showing the linking process failed. I am not sure why the ld command cannot accept the flag while the Makefile contains this option when it is generated by "./configure --without-gcc" command with 64-bit options enabled.? ld -b +DD64 -lxnet build/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/mathmodule.o build/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/_math.o -L/usr/local/lib -lm -o build/lib.hp-ux-B.11.31-ia64-2.7/math.so ld: Unrecognized argument: +DD64 Fatal error. Here is the summary output of the build. I don't think I can use this python executable, so many important modules that I use failed to build. Compared to 32-bit build, I only have 2 modules . Python build finished, but the necessary bits to build these modules were not found: _bsddb???????????? _curses??????????? _curses_panel?? _sqlite3?????????? _ssl?????????????? _tkinter??????? bsddb185?????????? bz2??????????????? dl????????????? gdbm?????????????? imageop??????????? linuxaudiodev?? ossaudiodev??????? readline?????????? spwd??????????? sunaudiodev??????? zlib?????????????????????????????? To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _bisect??????????? _codecs_cn???????? _codecs_hk????? _codecs_iso2022??? _codecs_jp???????? _codecs_kr????? _codecs_tw???????? _collections?????? _csv??????????? _ctypes??????????? _ctypes_test?????? _elementtree??? _functools???????? _heapq???????????? _hotshot??????? _io??????????????? _json????????????? _locale???????? _lsprof??????????? _md5?????????????? _multibytecodec _multiprocessing?? _random??????????? _sha??????????? _socket??????????? _struct??????????? _testcapi?????? array????????????? audioop??????????? binascii??????? cmath????????????? cPickle??????????? crypt?????????? cStringIO????????? datetime?????????? dbm???????????? fcntl????????????? future_builtins??? grp???????????? itertools????????? math?????????????? mmap??????????? nis??????????????? operator?????????? parser????????? pyexpat??????????? resource?????????? select????????? strop????????????? syslog???????????? termios???????? time?????????????? unicodedata?????????????? Appreciate any input on this issue when 64-bit option is passed into aCC that cause so many errors on my server. Thanks! From senthil at uthcode.com Sun Sep 18 12:23:41 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 18 Sep 2011 18:23:41 +0800 Subject: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC In-Reply-To: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> References: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> Message-ID: <20110918102341.GA5546@mathmagic> On Sun, Sep 18, 2011 at 02:15:31AM -0700, Wah Meng Wong wrote: > I am trying to build python 64-bit on HP Itanium platform with HP-UX > Ansi C compiler. The python executable is successfully built however > there are many errors generated when option +DD64 is passed in, many > (more) modules failed to build (compared to 32-bit option is used).? You mean to say that python is building properly with all those modules properly with 32bit compiler and not in 64 bit? If that is the case, then it surely looks like a bug. You may want to file open a issue at bugs.python.org > Appreciate any input on this issue when 64-bit option is passed into > aCC that cause so many errors on my server. Thanks! Few pointers. - Can you use gcc instead of aCC in your machine and see if it can build? - I see at least one open bug with ctypes module not compiling with 64 bit HP-UX. - Try --enable-shared switch of configure and see if it helps. If nothing, please do open a bug report and you could get some pointers from people familiar with that platform. -- Senthil From gopalakrishnan.subramani at gmail.com Sun Sep 18 19:31:51 2011 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Sun, 18 Sep 2011 11:31:51 -0600 Subject: [BangPypers] Parsing data In-Reply-To: <20110918014929.GA1865@mathmagic> References: <20110918014929.GA1865@mathmagic> Message-ID: Senthil and Gora Mohanty pointed out whats wrong on the code. This is alternative option, not its best since I feel always good to parse the file B based on file spec instead of the following approach. file_a_lines = open('FileA.txt').readlines() file_b_content = open('FileB.txt').read() for line in file_a_lines: start_pos = file_b_content.find(line) if start_pos >= 0: end_pos = file_b_content.find(">", start_pos + 1) if end_pos > 0: print file_b_content[start_pos:end_pos] else: # to deal with end of the line print file_b_content[start_pos:] On Sat, Sep 17, 2011 at 7:49 PM, Senthil Kumaran wrote: > On Fri, Sep 16, 2011 at 11:26:34PM -0500, Ananya Sharma wrote: > > > > *File A-* > > >PSUB.GBD61H402FPT34:0-372 > > > > *File B-* > > >PSUB.GBD61H402FPT34:0-372 > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > XXXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN > > NNNNCATTTCCTTGAGTATTAGGCCATTCATGCTGTCAATTTTCTTAACT > > ATTTGGAAATCCTAGTTGTACAAGATGGCCTTTTTCCCACCTGTATTTGC > > TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA > > TGTGGCGGGGGTGGGCTGACAG > > Here is the simplest scenario of your case. In this what do you want > to do Ignore XXX...CAG in File-B and print only the >PSUB.? > > If that is the case, you could iterate over file-b and look for lines > starting with > and then put them to a list and then do your > operations. > > In your code: > > > f1=open('fileA','r') > > f2=open('fileB','r') > > a="" > > b="" > > > for n in f1: > > while not b.startswith(n): > > b=f2.readline() > > This loop will break when f2 has line starting with >PSUB. > > > if len(a)>0: > > print a > > Won't have any effect. > > > b="" > > You are resetting b. > > > while not b.startswith(">"): > > a=a+f2.readline()+"__" > > > Won't have any effect. > > > > > Any help would be highly appreciated. Thanks. > > Do you see why your program is not working when reduced to the > simplest case? > > If you are trying to find entities in B which are in A. > Just recreate B so that you remove all the non > starting lines and > then compare. > > -- > Senthil > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From mahendra0203 at gmail.com Sun Sep 18 20:43:09 2011 From: mahendra0203 at gmail.com (mahendra N) Date: Mon, 19 Sep 2011 00:13:09 +0530 Subject: [BangPypers] Parsing data In-Reply-To: References: <20110918014929.GA1865@mathmagic> Message-ID: Have you thought of using regular expressions?. It might make ur job easier. Checkout this link good explaination of reg exps. Thanks and Regards, Mahendra Naik 2011/9/18 Gopalakrishnan Subramani > Senthil and Gora Mohanty pointed out whats wrong on the code. > > This is alternative option, not its best since I feel always good to parse > the file B based on file spec instead of the following approach. > > > file_a_lines = open('FileA.txt').readlines() > file_b_content = open('FileB.txt').read() > > for line in file_a_lines: > start_pos = file_b_content.find(line) > > if start_pos >= 0: > end_pos = file_b_content.find(">", start_pos + 1) > > if end_pos > 0: > print file_b_content[start_pos:end_pos] > else: # to deal with end of the line > print file_b_content[start_pos:] > > > > On Sat, Sep 17, 2011 at 7:49 PM, Senthil Kumaran >wrote: > > > On Fri, Sep 16, 2011 at 11:26:34PM -0500, Ananya Sharma wrote: > > > > > > *File A-* > > > >PSUB.GBD61H402FPT34:0-372 > > > > > > *File B-* > > > >PSUB.GBD61H402FPT34:0-372 > > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > > XXXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN > > > NNNNCATTTCCTTGAGTATTAGGCCATTCATGCTGTCAATTTTCTTAACT > > > ATTTGGAAATCCTAGTTGTACAAGATGGCCTTTTTCCCACCTGTATTTGC > > > TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA > > > TGTGGCGGGGGTGGGCTGACAG > > > > Here is the simplest scenario of your case. In this what do you want > > to do Ignore XXX...CAG in File-B and print only the >PSUB.? > > > > If that is the case, you could iterate over file-b and look for lines > > starting with > and then put them to a list and then do your > > operations. > > > > In your code: > > > > > f1=open('fileA','r') > > > f2=open('fileB','r') > > > a="" > > > b="" > > > > > for n in f1: > > > while not b.startswith(n): > > > b=f2.readline() > > > > This loop will break when f2 has line starting with >PSUB. > > > > > if len(a)>0: > > > print a > > > > Won't have any effect. > > > > > b="" > > > > You are resetting b. > > > > > while not b.startswith(">"): > > > a=a+f2.readline()+"__" > > > > > Won't have any effect. > > > > > > > > Any help would be highly appreciated. Thanks. > > > > Do you see why your program is not working when reduced to the > > simplest case? > > > > If you are trying to find entities in B which are in A. > > Just recreate B so that you remove all the non > starting lines and > > then compare. > > > > -- > > Senthil > > > > > > > > _______________________________________________ > > 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 mahendra0203 at gmail.com Sun Sep 18 20:55:48 2011 From: mahendra0203 at gmail.com (mahendra N) Date: Mon, 19 Sep 2011 00:25:48 +0530 Subject: [BangPypers] Parsing data In-Reply-To: References: <20110918014929.GA1865@mathmagic> Message-ID: Fgt the link http://code.google.com/edu/languages/google-python-class/regular-expressions.html 2011/9/19 mahendra N > Have you thought of using regular expressions?. It might make ur job > easier. > > Checkout this link good explaination of reg exps. > > Thanks and Regards, > Mahendra Naik > > > 2011/9/18 Gopalakrishnan Subramani > >> Senthil and Gora Mohanty pointed out whats wrong on the code. >> >> This is alternative option, not its best since I feel always good to >> parse >> the file B based on file spec instead of the following approach. >> >> >> file_a_lines = open('FileA.txt').readlines() >> file_b_content = open('FileB.txt').read() >> >> for line in file_a_lines: >> start_pos = file_b_content.find(line) >> >> if start_pos >= 0: >> end_pos = file_b_content.find(">", start_pos + 1) >> >> if end_pos > 0: >> print file_b_content[start_pos:end_pos] >> else: # to deal with end of the line >> print file_b_content[start_pos:] >> >> >> >> On Sat, Sep 17, 2011 at 7:49 PM, Senthil Kumaran > >wrote: >> >> > On Fri, Sep 16, 2011 at 11:26:34PM -0500, Ananya Sharma wrote: >> > > >> > > *File A-* >> > > >PSUB.GBD61H402FPT34:0-372 >> > > >> > > *File B-* >> > > >PSUB.GBD61H402FPT34:0-372 >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX >> > > XXXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN >> > > NNNNCATTTCCTTGAGTATTAGGCCATTCATGCTGTCAATTTTCTTAACT >> > > ATTTGGAAATCCTAGTTGTACAAGATGGCCTTTTTCCCACCTGTATTTGC >> > > TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA >> > > TGTGGCGGGGGTGGGCTGACAG >> > >> > Here is the simplest scenario of your case. In this what do you want >> > to do Ignore XXX...CAG in File-B and print only the >PSUB.? >> > >> > If that is the case, you could iterate over file-b and look for lines >> > starting with > and then put them to a list and then do your >> > operations. >> > >> > In your code: >> > >> > > f1=open('fileA','r') >> > > f2=open('fileB','r') >> > > a="" >> > > b="" >> > >> > > for n in f1: >> > > while not b.startswith(n): >> > > b=f2.readline() >> > >> > This loop will break when f2 has line starting with >PSUB. >> > >> > > if len(a)>0: >> > > print a >> > >> > Won't have any effect. >> > >> > > b="" >> > >> > You are resetting b. >> > >> > > while not b.startswith(">"): >> > > a=a+f2.readline()+"__" >> > > >> > Won't have any effect. >> > >> > > >> > > Any help would be highly appreciated. Thanks. >> > >> > Do you see why your program is not working when reduced to the >> > simplest case? >> > >> > If you are trying to find entities in B which are in A. >> > Just recreate B so that you remove all the non > starting lines and >> > then compare. >> > >> > -- >> > Senthil >> > >> > >> > >> > _______________________________________________ >> > 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 gopalakrishnan.subramani at gmail.com Mon Sep 19 01:30:06 2011 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Sun, 18 Sep 2011 17:30:06 -0600 Subject: [BangPypers] Parsing data In-Reply-To: References: <20110918014929.GA1865@mathmagic> Message-ID: At least I am not great at regular expressions. I agree that regex may reduce the number of lines,. On Sun, Sep 18, 2011 at 12:55 PM, mahendra N wrote: > Fgt the link > > http://code.google.com/edu/languages/google-python-class/regular-expressions.html > > 2011/9/19 mahendra N > > > Have you thought of using regular expressions?. It might make ur job > > easier. > > > > Checkout this link good explaination of reg exps. > > > > Thanks and Regards, > > Mahendra Naik > > > > > > 2011/9/18 Gopalakrishnan Subramani > > > >> Senthil and Gora Mohanty pointed out whats wrong on the code. > >> > >> This is alternative option, not its best since I feel always good to > >> parse > >> the file B based on file spec instead of the following approach. > >> > >> > >> file_a_lines = open('FileA.txt').readlines() > >> file_b_content = open('FileB.txt').read() > >> > >> for line in file_a_lines: > >> start_pos = file_b_content.find(line) > >> > >> if start_pos >= 0: > >> end_pos = file_b_content.find(">", start_pos + 1) > >> > >> if end_pos > 0: > >> print file_b_content[start_pos:end_pos] > >> else: # to deal with end of the line > >> print file_b_content[start_pos:] > >> > >> > >> > >> On Sat, Sep 17, 2011 at 7:49 PM, Senthil Kumaran >> >wrote: > >> > >> > On Fri, Sep 16, 2011 at 11:26:34PM -0500, Ananya Sharma wrote: > >> > > > >> > > *File A-* > >> > > >PSUB.GBD61H402FPT34:0-372 > >> > > > >> > > *File B-* > >> > > >PSUB.GBD61H402FPT34:0-372 > >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > >> > > XXXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN > >> > > NNNNCATTTCCTTGAGTATTAGGCCATTCATGCTGTCAATTTTCTTAACT > >> > > ATTTGGAAATCCTAGTTGTACAAGATGGCCTTTTTCCCACCTGTATTTGC > >> > > TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA > >> > > TGTGGCGGGGGTGGGCTGACAG > >> > > >> > Here is the simplest scenario of your case. In this what do you want > >> > to do Ignore XXX...CAG in File-B and print only the >PSUB.? > >> > > >> > If that is the case, you could iterate over file-b and look for lines > >> > starting with > and then put them to a list and then do your > >> > operations. > >> > > >> > In your code: > >> > > >> > > f1=open('fileA','r') > >> > > f2=open('fileB','r') > >> > > a="" > >> > > b="" > >> > > >> > > for n in f1: > >> > > while not b.startswith(n): > >> > > b=f2.readline() > >> > > >> > This loop will break when f2 has line starting with >PSUB. > >> > > >> > > if len(a)>0: > >> > > print a > >> > > >> > Won't have any effect. > >> > > >> > > b="" > >> > > >> > You are resetting b. > >> > > >> > > while not b.startswith(">"): > >> > > a=a+f2.readline()+"__" > >> > > > >> > Won't have any effect. > >> > > >> > > > >> > > Any help would be highly appreciated. Thanks. > >> > > >> > Do you see why your program is not working when reduced to the > >> > simplest case? > >> > > >> > If you are trying to find entities in B which are in A. > >> > Just recreate B so that you remove all the non > starting lines and > >> > then compare. > >> > > >> > -- > >> > Senthil > >> > > >> > > >> > > >> > _______________________________________________ > >> > 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 > >> > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From wah_meng at yahoo.com Mon Sep 19 05:11:59 2011 From: wah_meng at yahoo.com (Wah Meng Wong) Date: Sun, 18 Sep 2011 20:11:59 -0700 (PDT) Subject: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC In-Reply-To: <20110918102341.GA5546@mathmagic> References: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> <20110918102341.GA5546@mathmagic> Message-ID: <1316401919.35917.YahooMailNeo@web30408.mail.mud.yahoo.com> Thanks Senthil, 1.) Yes compiling and linking with gcc (32-bit) and acc (32-bit) has lesser errors, more modules built successfully compared to acc (64-bit). The main thing I discovered is +DD64 is not recognized as a valid flag in ld command (the linker). This command is automatically generated in Makefile. I have posted my question to bugs.python.org and the community there responded failure to build a module is not a bug and asked me to refer to other community. 2.) The reason I am sticking to acc is, I am also using tcl/tk. I have built tcl/tk with gcc however the tk (wish) crashes with a core dump file generated when gcc is used. Switching to acc, the tk can run without an issue. Also, I need Oracle plug-in in both python and tcl. Oracle only supports HP C Compiler stuffs and not gcc. All these resulted me to focus on acc to get all stuffs done. 3.) Yes I do see cType failed to build when gcc (32) and acc (32) is used. I didn't pursue with python bug community as I don't think I am using either module. What failed to build in 64-bit acc build really worried me. I don't think without those it is usable. ;p. (>>>> From make test of acc 32-build and gcc 32-bit build) Failed to build these modules: _ctypes??????????? termios?????????????????? 4.) Let me try again with --enable-shared and revert. Thanks! ________________________________ From: Senthil Kumaran To: Wah Meng Wong ; Bangalore Python Users Group - India Sent: Sunday, September 18, 2011 6:23 PM Subject: Re: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC On Sun, Sep 18, 2011 at 02:15:31AM -0700, Wah Meng Wong wrote: > I am trying to build python 64-bit on HP Itanium platform with HP-UX > Ansi C compiler. The python executable is successfully built however > there are many errors generated when option +DD64 is passed in, many > (more) modules failed to build (compared to 32-bit option is used).? You mean to say that python is building properly with all those modules properly with 32bit compiler and not in 64 bit? If that is the case, then it surely looks like a bug. You may want to file open a issue at bugs.python.org > Appreciate any input on this issue when 64-bit option is passed into > aCC that cause so many errors on my server. Thanks! Few pointers. - Can you use gcc instead of aCC in your machine and see if it can ? build? - I see at least one open bug with ctypes module not compiling with 64 bit ? HP-UX. - Try --enable-shared? switch of configure and see if it helps. If nothing, please do open a bug report and you could get some pointers from people familiar with that platform. -- Senthil From senthil at uthcode.com Mon Sep 19 19:21:47 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Tue, 20 Sep 2011 01:21:47 +0800 Subject: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC In-Reply-To: <1316401919.35917.YahooMailNeo@web30408.mail.mud.yahoo.com> References: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> <20110918102341.GA5546@mathmagic> <1316401919.35917.YahooMailNeo@web30408.mail.mud.yahoo.com> Message-ID: <20110919172147.GA5053@mathmagic> On Sun, Sep 18, 2011 at 08:11:59PM -0700, Wah Meng Wong wrote: > errors, more modules built successfully compared to acc (64-bit). The main > thing I discovered is +DD64 is not recognized as a valid flag in ld command > (the linker). This command is automatically generated in Makefile. I have And that is what is surprising. This becomes a linker error. > posted my question to bugs.python.org and the community there responded failure > to build a module is not a bug and asked me to refer to other community. Yes, I noticed that. But as you mentioned that you followed the instructions in the README, if you could succeed in building, we at least have one bug (fix) with the compilation process mentioned in the readme. HP-UX being such an uncommon platform, the python core developers have not spent much time fixing bugs in that (unless raised and provided the fix with patch which did not affect any other platform). > 2.) The reason I am sticking to acc is, I am also using tcl/tk. I have built > tcl/tk with gcc however the tk (wish) crashes with a core dump file generated > when gcc is used. I see. I get the point. Also, I think, your situation is the right candidate to try out ActiveState distribution, if they claim to support HP-UX. Good Luck, Senthil From as1438 at msstate.edu Tue Sep 20 04:20:03 2011 From: as1438 at msstate.edu (Ananya Sharma) Date: Mon, 19 Sep 2011 21:20:03 -0500 Subject: [BangPypers] Parsing data In-Reply-To: References: <20110918014929.GA1865@mathmagic> Message-ID: Thank you everybody for your input. It helped a lot in understanding the logic i had to implement in the program. I am familiar with the concept of regular expressions but in this case line breaks would have been an issue. At the end, I did some more reading and browsed through examples and got the script to work. Thanks. Ananya On Sun, Sep 18, 2011 at 6:30 PM, Gopalakrishnan Subramani < gopalakrishnan.subramani at gmail.com> wrote: > At least I am not great at regular expressions. I agree that regex may > reduce the number of lines,. > > > On Sun, Sep 18, 2011 at 12:55 PM, mahendra N > wrote: > > > Fgt the link > > > > > http://code.google.com/edu/languages/google-python-class/regular-expressions.html > > > > 2011/9/19 mahendra N > > > > > Have you thought of using regular expressions?. It might make ur job > > > easier. > > > > > > Checkout this link good explaination of reg exps. > > > > > > Thanks and Regards, > > > Mahendra Naik > > > > > > > > > 2011/9/18 Gopalakrishnan Subramani > > > > > > >> Senthil and Gora Mohanty pointed out whats wrong on the code. > > >> > > >> This is alternative option, not its best since I feel always good to > > >> parse > > >> the file B based on file spec instead of the following approach. > > >> > > >> > > >> file_a_lines = open('FileA.txt').readlines() > > >> file_b_content = open('FileB.txt').read() > > >> > > >> for line in file_a_lines: > > >> start_pos = file_b_content.find(line) > > >> > > >> if start_pos >= 0: > > >> end_pos = file_b_content.find(">", start_pos + 1) > > >> > > >> if end_pos > 0: > > >> print file_b_content[start_pos:end_pos] > > >> else: # to deal with end of the line > > >> print file_b_content[start_pos:] > > >> > > >> > > >> > > >> On Sat, Sep 17, 2011 at 7:49 PM, Senthil Kumaran > >> >wrote: > > >> > > >> > On Fri, Sep 16, 2011 at 11:26:34PM -0500, Ananya Sharma wrote: > > >> > > > > >> > > *File A-* > > >> > > >PSUB.GBD61H402FPT34:0-372 > > >> > > > > >> > > *File B-* > > >> > > >PSUB.GBD61H402FPT34:0-372 > > >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > >> > > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > >> > > XXXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN > > >> > > NNNNCATTTCCTTGAGTATTAGGCCATTCATGCTGTCAATTTTCTTAACT > > >> > > ATTTGGAAATCCTAGTTGTACAAGATGGCCTTTTTCCCACCTGTATTTGC > > >> > > TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA > > >> > > TGTGGCGGGGGTGGGCTGACAG > > >> > > > >> > Here is the simplest scenario of your case. In this what do you want > > >> > to do Ignore XXX...CAG in File-B and print only the >PSUB.? > > >> > > > >> > If that is the case, you could iterate over file-b and look for > lines > > >> > starting with > and then put them to a list and then do your > > >> > operations. > > >> > > > >> > In your code: > > >> > > > >> > > f1=open('fileA','r') > > >> > > f2=open('fileB','r') > > >> > > a="" > > >> > > b="" > > >> > > > >> > > for n in f1: > > >> > > while not b.startswith(n): > > >> > > b=f2.readline() > > >> > > > >> > This loop will break when f2 has line starting with >PSUB. > > >> > > > >> > > if len(a)>0: > > >> > > print a > > >> > > > >> > Won't have any effect. > > >> > > > >> > > b="" > > >> > > > >> > You are resetting b. > > >> > > > >> > > while not b.startswith(">"): > > >> > > a=a+f2.readline()+"__" > > >> > > > > >> > Won't have any effect. > > >> > > > >> > > > > >> > > Any help would be highly appreciated. Thanks. > > >> > > > >> > Do you see why your program is not working when reduced to the > > >> > simplest case? > > >> > > > >> > If you are trying to find entities in B which are in A. > > >> > Just recreate B so that you remove all the non > starting lines and > > >> > then compare. > > >> > > > >> > -- > > >> > Senthil > > >> > > > >> > > > >> > > > >> > _______________________________________________ > > >> > 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 > > >> > > > > > > > > _______________________________________________ > > 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 wah_meng at yahoo.com Tue Sep 20 04:35:53 2011 From: wah_meng at yahoo.com (Wah Meng Wong) Date: Mon, 19 Sep 2011 19:35:53 -0700 (PDT) Subject: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC In-Reply-To: <20110919172147.GA5053@mathmagic> References: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> <20110918102341.GA5546@mathmagic> <1316401919.35917.YahooMailNeo@web30408.mail.mud.yahoo.com> <20110919172147.GA5053@mathmagic> Message-ID: <1316486153.47044.YahooMailNeo@web30407.mail.mud.yahoo.com> Thanks! 1.) Yup I have open an issue to HP support, checking with them why the linker doesn't recognize +DD64 flag. However they are asking a lot of server information and stuffs before getting to know my problem. Progressing.... : ( 2.) Ok I will revert to bugs.python.org when I heard something more substantial from HP. Haha I am not so aware that HP is an uncommon platform. : p 3.) Is ActiveState also one of the discussion group? ________________________________ From: Senthil Kumaran To: Wah Meng Wong Cc: Bangalore Python Users Group - India Sent: Tuesday, September 20, 2011 1:21 AM Subject: Re: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC On Sun, Sep 18, 2011 at 08:11:59PM -0700, Wah Meng Wong wrote: > errors, more modules built successfully compared to acc (64-bit). The main > thing I discovered is +DD64 is not recognized as a valid flag in ld command > (the linker). This command is automatically generated in Makefile. I have And that is what is surprising. This becomes a linker error. > posted my question to bugs.python.org and the community there responded failure > to build a module is not a bug and asked me to refer to other community. Yes, I noticed that. But as you mentioned that you followed the instructions in the README, if you could succeed in building, we at least have one bug (fix) with the compilation process mentioned in the readme. HP-UX being such an uncommon platform, the python core developers have not spent much time fixing bugs in that (unless raised and provided the fix with patch which did not affect any other platform). > 2.) The reason I am sticking to acc is, I am also using tcl/tk. I have built > tcl/tk with gcc however the tk (wish) crashes with a core dump file generated > when gcc is used. I see. I get the point. Also, I think, your situation is the right candidate to try out ActiveState distribution, if they claim to support HP-UX. Good Luck, Senthil From mandarvaze at gmail.com Tue Sep 20 14:13:55 2011 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Tue, 20 Sep 2011 17:43:55 +0530 Subject: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC In-Reply-To: <1316486153.47044.YahooMailNeo@web30407.mail.mud.yahoo.com> References: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> <20110918102341.GA5546@mathmagic> <1316401919.35917.YahooMailNeo@web30408.mail.mud.yahoo.com> <20110919172147.GA5053@mathmagic> <1316486153.47044.YahooMailNeo@web30407.mail.mud.yahoo.com> Message-ID: > 3.) Is ActiveState also one of the discussion group? > http://www.activestate.com/activepython They indeed support HP-UX -Mandar From wah_meng at yahoo.com Wed Sep 21 14:17:59 2011 From: wah_meng at yahoo.com (Wah Meng Wong) Date: Wed, 21 Sep 2011 05:17:59 -0700 (PDT) Subject: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC In-Reply-To: References: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> <20110918102341.GA5546@mathmagic> <1316401919.35917.YahooMailNeo@web30408.mail.mud.yahoo.com> <20110919172147.GA5053@mathmagic> <1316486153.47044.YahooMailNeo@web30407.mail.mud.yahoo.com> Message-ID: <1316607479.18047.YahooMailNeo@web30406.mail.mud.yahoo.com> Hi Senthil, I want to provide an update here and close this issue. 1 and 2.) HP said +DD64 is not accepted by ld. So I am not utilizing the recommended setting in README file. Instead, I just pass +DD64 to CC, making it "CC=cc +DD64" and there is no issue in the building process. The LDFLAGS and BASECFLAGS setting in the README file is also not used. The CXX=aCC is used. I have provided feedback to bugs.python.org. Not sure if they will revert to me in changing the README file. 3.) ActiveState is my last resort. I am able to build built-in modules like _tkinter now. I am using "CC=cc +DD64 -I/home/r32813/local/include" and LDFLAGS="-L/home/r32813/local/lib -lxnet" and CXX=aCC only. /home/r32813/local is where I install my tcl/tk binary and library. : ). I am working on cx_Oracle build now. The module can be built however cannot be loaded. Hopefully I will make some progress soon. I may open another issue more specific to cx_Oracle later. :? ) Thanks! ________________________________ From: Senthil Kumaran To: Wah Meng Wong Sent: Tuesday, September 20, 2011 11:05 AM Subject: Re: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC On Tue, Sep 20, 2011 at 10:35 AM, Wah Meng Wong wrote: > 1.) Yup I have open an issue to HP support, checking with them why the > linker doesn't recognize +DD64 flag. However they are asking a lot of server > information and stuffs before getting to know my problem. Progressing.... : :-) Strange. But it happens. > 2.) Ok I will revert to bugs.python.org when I heard something more > substantial from HP. Haha I am not so aware that HP is an uncommon platform. I would also suggest trying with binutils (if ld is from that package) and asking a very specific question as why +DD64 is not being recognized. > 3.) Is ActiveState also one of the discussion group? Nope, it is a Python distribution with commercial support behind it. http://www.activestate.com/activepython/which-python-edition They have put AIX, Solaris, HP-UX under paid releases of Python. That would probably help with you installation and support. In terms of nature of the company with Open Source support, they are pretty trustworthy and have good reputation in the community. Cheers, Senthil From senthil at uthcode.com Wed Sep 21 19:57:41 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Thu, 22 Sep 2011 01:57:41 +0800 Subject: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC In-Reply-To: <1316607479.18047.YahooMailNeo@web30406.mail.mud.yahoo.com> References: <1316337331.30517.YahooMailNeo@web30404.mail.mud.yahoo.com> <20110918102341.GA5546@mathmagic> <1316401919.35917.YahooMailNeo@web30408.mail.mud.yahoo.com> <20110919172147.GA5053@mathmagic> <1316486153.47044.YahooMailNeo@web30407.mail.mud.yahoo.com> <1316607479.18047.YahooMailNeo@web30406.mail.mud.yahoo.com> Message-ID: <20110921175741.GB4116@mathmagic> On Wed, Sep 21, 2011 at 05:17:59AM -0700, Wah Meng Wong wrote: > I have provided feedback to bugs.python.org. Not sure if they will > revert to me in changing the README file. Looks like they have. :-) Your patch might be helpful to improve the Readme. > I may open another issue more specific to cx_Oracle later. : ) Haha. Hopefully you get that resolved soon. BTW, makes me curious as why is the choice of "HP-UX" and this Python stack for whatever application/system you are trying to build. -- Senthil From dhananjay.nene at gmail.com Fri Sep 23 15:37:31 2011 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 23 Sep 2011 19:07:31 +0530 Subject: [BangPypers] [JOB] Vayana Services seeking curious and committed python programmers Message-ID: Vayana Services helps Small and Medium Enterprises (SMEs), get working capital loans from banks and helps bank expand their lending reach. We keep the technology simple to the point of being invisible to end customers. We work on Python, Scala and Erlang with our SAAS offerings deployed on AWS and Rackspace. We have been in production for a year, and have already processed Rs. 50 crores of financing just in the last quarter, with 3 bank partners and over 50 corporates/ SME's in the program. This is impressive considering the myriad objections banks and corporates in India have to the cloud let alone their exceptionally confidential data being handled by a third party. We plan to launch in US by Q1 next year. We have a small but highly committed team of engineers creating, collapsing, testing, and supporting code. The current team includes @dnene, @dexterous, @missingfaktor, @vineetmago, @nkhalasi, and @vaishaliphadkar. We hope to add exceptionally smart, committed coders who can span the length from problem definition to dev-ops. There is no minimum experience, candidates being rated on attitude, passion and skill. We do not recruit managers (preferring self managing teams), pure thinkers, coders who dislike testing their dogfood or people who expect to be told in detail what to do. Location : Pune Experience : No prerequisites, but capabilities should reflect relevant experience. Python Knowledge : Preferred but not mandatory. High competency in at least one programming language : Absolutely. Send your Github/Bitbucket URLs twitter handles, linkedin profiles and / or CVs to : dhananjay at vayana.in From valliappan.mba at gmail.com Sun Sep 25 10:18:03 2011 From: valliappan.mba at gmail.com (Valliappan Ramanathan) Date: Sun, 25 Sep 2011 13:48:03 +0530 Subject: [BangPypers] PYTHON/JAVASCRIPT DEVELOPER (DIRECT HIRE) , San Francisco, CA Message-ID: Hi All This is regarding a job opportunity with our direct client at San Francisco, CA. Please let me know your interest and availability for this position and whether graduated from one of the schools(*Stanford, Caltech, MIT, Harvard, UC Berkeley)*. Please reply on to my email id: Valliappan.mba at gmail.com Work location is at San Francisco and its a permanent position. Position: PYTHON/JAVASCRIPT DEVELOPER (DIRECT HIRE) Location: San Francisco,CA Looking for software engineers with Python and Javascript experience(3-5 Years) from top engineering schools (*Stanford, Caltech, MIT, Harvard, Berkeley*) with GPAs 3.5 or above Please let me know your interest, availability and rate(annual) expectation and *your visa status*. Please forward your *updated resume* in word format with two references(school professors/professional contacts) Thank you for your consideration, Please pass this requirement to your contacts as well. Valliappan Reply to valliappan.mba at gmail.com -- Truly, Valliappan Ramanathan From shashidhar85 at gmail.com Mon Sep 26 07:50:21 2011 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Mon, 26 Sep 2011 11:20:21 +0530 Subject: [BangPypers] Creating windows installer Message-ID: Hello Python hackers, -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From shashidhar85 at gmail.com Mon Sep 26 07:54:39 2011 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Mon, 26 Sep 2011 11:24:39 +0530 Subject: [BangPypers] Creating windows installer Message-ID: 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 From noufal at gmail.com Mon Sep 26 07:53:34 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 26 Sep 2011 11:23:34 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: <877h5a1k54.fsf@sanitarium.localdomain> (Noufal Ibrahim's message of "Thu, 15 Sep 2011 10:23:27 +0530") References: <877h5a1k54.fsf@sanitarium.localdomain> Message-ID: <871uv33l41.fsf@sanitarium.localdomain> So, now that PyCon is over, shall me make plans for this? -- ~noufal http://nibrahim.net.in I'll give you a definite maybe. -Samuel Goldwyn From mandarvaze at gmail.com Mon Sep 26 08:05:55 2011 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Mon, 26 Sep 2011 11:35:55 +0530 Subject: [BangPypers] Creating windows installer In-Reply-To: References: Message-ID: Linked in has similar discussion going on at : http://www.linkedin.com/groupItem?view=&gid=25827&type=member&item=70058851&qid=f54096ee-8199-4d71-9b6e-203cb822d2c7&trk=group_most_popular-0-b-ttl&goback=%2Egmp_25827 Quick summary : py2exe or cx_freeze -Mandar 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 > From noufal at gmail.com Mon Sep 26 08:06:11 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 26 Sep 2011 11:36:11 +0530 Subject: [BangPypers] Creating windows installer In-Reply-To: (Shashidhar Paragonda's message of "Mon, 26 Sep 2011 11:24:39 +0530") References: Message-ID: <87r53325yk.fsf@sanitarium.localdomain> Shashidhar Paragonda writes: > 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.p > Any resources how to do this, thank you in advance for the > help!!!!!!!!!! I had a similar requirement a few years ago and none of the "standard" tools worked for me so I cooked up a custom installer. The details are over here http://stackoverflow.com/questions/5661385/packaging-and-shipping-a-python-library-and-scripts-the-professional-way My solution was not very portable and highly UNIX specific but it worked across distros with minimal changes. You might find some ideas there that you can adapt for your setup. The NSIS[1] system can be used to create Windows installers. I don't know how well it would play with Python and the rest of your deps though. Good luck. Footnotes: [1] http://nsis.sourceforge.net/Main_Page P.S. Stylistic point but try to avoid the "!!!!!!!!!!!!" when you end your sentences. One is enough to empahsise and even that's not really necessary here. http://www.betterwritingskills.com/tip-w007.html -- ~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 sriramnrn at gmail.com Mon Sep 26 18:19:16 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Mon, 26 Sep 2011 21:49:16 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: <871uv33l41.fsf@sanitarium.localdomain> References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> Message-ID: +1. We can meet at one of the Thoughtworks offices, or anywhere else. -- Sriram On 9/26/11, Noufal Ibrahim wrote: > > So, now that PyCon is over, shall me make plans for this? > > -- > ~noufal > http://nibrahim.net.in > > I'll give you a definite maybe. -Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sent from my mobile device ================== Belenix: www.belenix.org From kracethekingmaker at gmail.com Mon Sep 26 18:51:49 2011 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Mon, 26 Sep 2011 22:21:49 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> Message-ID: +1 for sure, From noufal at gmail.com Mon Sep 26 18:54:35 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 26 Sep 2011 22:24:35 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: (kracekumar ramaraju's message of "Mon, 26 Sep 2011 22:21:49 +0530") References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> Message-ID: <87pqinxn04.fsf@sanitarium.localdomain> Question is how do we go about it? Is there anyone on this list who has some experience with PyPy willing to talk about it? Or do we make out an agenda and plan? I'd hate to spend a few hours simply talking/hearing about what I've read on the net. -- ~noufal http://nibrahim.net.in Some bachelors want a meaningful overnight relationship. From kracethekingmaker at gmail.com Mon Sep 26 19:03:23 2011 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Mon, 26 Sep 2011 22:33:23 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: <87pqinxn04.fsf@sanitarium.localdomain> References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> <87pqinxn04.fsf@sanitarium.localdomain> Message-ID: > Question is how do we go about it? Is there anyone on this list who has > some experience with PyPy willing to talk about it? I don't have any experience, but willing to spend time. 1. First lets start playing with PyPy and spend quite significant time with it. 2. Then hands on we can try running small apps or snippets in PyPy. Or do we make out an > agenda and plan? Yes , we will make agenda/plan how to start and then after a week or after specific date, we will again collect the status of PyPy users experience and then decide further steps. -- * "Talk is cheap, show me the code" - Linus Torvalds Winning Regards KraceKumar.R http://kracekumar.wordpress.com +91-97906-58304 * *+91-85530-29521* * * From noufal at gmail.com Mon Sep 26 19:09:21 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 26 Sep 2011 22:39:21 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: (kracekumar ramaraju's message of "Mon, 26 Sep 2011 22:33:23 +0530") References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> <87pqinxn04.fsf@sanitarium.localdomain> Message-ID: <87d3enxmbi.fsf@sanitarium.localdomain> kracekumar ramaraju writes: [...] > I don't have any experience, but willing to spend time. > > 1. First lets start playing with PyPy and spend quite significant time > with it. > 2. Then hands on we can try running small apps or snippets in PyPy. [...] I was thinking of something more concrete. If there's someone here willing to spend time in the coming (say) 2 weeks to dig into the overall design of PyPy and present it, we can get a start. -- ~noufal http://nibrahim.net.in Always be sincere, even when you don't mean it. -Irene Peter From sriramnrn at gmail.com Mon Sep 26 19:27:54 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Mon, 26 Sep 2011 22:57:54 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: <87d3enxmbi.fsf@sanitarium.localdomain> References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> <87pqinxn04.fsf@sanitarium.localdomain> <87d3enxmbi.fsf@sanitarium.localdomain> Message-ID: I can talk about my experiences with porting it. -- Sriram On 9/26/11, Noufal Ibrahim wrote: > kracekumar ramaraju writes: > > > [...] > >> I don't have any experience, but willing to spend time. >> >> 1. First lets start playing with PyPy and spend quite significant time >> with it. >> 2. Then hands on we can try running small apps or snippets in PyPy. > > [...] > > I was thinking of something more concrete. If there's someone here > willing to spend time in the coming (say) 2 weeks to dig into the > overall design of PyPy and present it, we can get a start. > > > > -- > ~noufal > http://nibrahim.net.in > > Always be sincere, even when you don't mean it. -Irene Peter > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sent from my mobile device ================== Belenix: www.belenix.org From kracethekingmaker at gmail.com Mon Sep 26 19:34:02 2011 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Mon, 26 Sep 2011 23:04:02 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: <87d3enxmbi.fsf@sanitarium.localdomain> References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> <87pqinxn04.fsf@sanitarium.localdomain> <87d3enxmbi.fsf@sanitarium.localdomain> Message-ID: Noufal Ibrahim > > > > [...] > > > I don't have any experience, but willing to spend time. > > > > 1. First lets start playing with PyPy and spend quite significant time > > with it. > > 2. Then hands on we can try running small apps or snippets in PyPy. > > [...] > > I was thinking of something more concrete. If there's someone here > willing to spend time in the coming (say) 2 weeks to dig into the > overall design of PyPy and present it, we can get a start. > > [...] > Lets wait for more people's idea, involvement and reply before deciding. > * "Talk is cheap, show me the code" - Linus Torvalds Winning Regards KraceKumar.R http://kracekumar.wordpress.com +91-97906-58304 * *+91-85530-29521* * * From saager.mhatre at gmail.com Mon Sep 26 22:20:45 2011 From: saager.mhatre at gmail.com (Saager Mhatre) Date: Tue, 27 Sep 2011 01:50:45 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> <87pqinxn04.fsf@sanitarium.localdomain> <87d3enxmbi.fsf@sanitarium.localdomain> Message-ID: On Mon, Sep 26, 2011 at 10:57 PM, Sriram Narayanan wrote: > I can talk about my experiences with porting it. > > -- Sriram > Porting it to... Belenix? - d From sriramnrn at gmail.com Tue Sep 27 03:40:37 2011 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Tue, 27 Sep 2011 07:10:37 +0530 Subject: [BangPypers] About pypy and bangpypers In-Reply-To: References: <877h5a1k54.fsf@sanitarium.localdomain> <871uv33l41.fsf@sanitarium.localdomain> <87pqinxn04.fsf@sanitarium.localdomain> <87d3enxmbi.fsf@sanitarium.localdomain> Message-ID: Yes On 9/27/11, Saager Mhatre wrote: > On Mon, Sep 26, 2011 at 10:57 PM, Sriram Narayanan > wrote: > >> I can talk about my experiences with porting it. >> >> -- Sriram >> > > Porting it to... Belenix? > > - d > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sent from my mobile device ================== Belenix: www.belenix.org From sateeshpyper at gmail.com Mon Sep 26 09:53:33 2011 From: sateeshpyper at gmail.com (Sateesh Kumar) Date: Mon, 26 Sep 2011 13:23:33 +0530 Subject: [BangPypers] Creating windows installer In-Reply-To: References: Message-ID: > > 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. > Apart from the options others have mentioned (like py2exe, cx_freeze), you can also consider using PyInstaller (http://www.pyinstaller.org/). reg, sateesh From brian.curtin at gmail.com Wed Sep 28 00:50:55 2011 From: brian.curtin at gmail.com (Brian Curtin) Date: Tue, 27 Sep 2011 17:50:55 -0500 Subject: [BangPypers] PyCon 2012 Proposals Due October 12 Message-ID: The deadline for PyCon 2012 tutorial, talk, and poster proposals is under 15 days away, so be sure to get your submissions in by October 12, 2011. Whether you?re a first-timer or an experienced veteran, PyCon is depends on you, the community, coming together to build the best conference schedule possible. Our call for proposals (http://us.pycon.org/2012/cfp/) lays out the details it takes to be included in the lineup for the conference in Santa Clara, CA on March 7-15, 2012. If you?re unsure of what to write about, our recent survey yielded a large list of potential talk topics (http://pycon.blogspot.com/2011/09/need-talk-ideas.html), and plenty of ideas for tutorials (INSERT TUTORIAL POST). We?ve also come up with general tips on proposal writing at http://pycon.blogspot.com/2011/08/writing-good-proposal.html to ensure everyone has the most complete proposal when it comes time for review. As always, the program committee wants to put together an incredible conference, so they?ll be working with submitters to fine tune proposal details and help you produce the best submissions. We?ve had plenty of great news to share since we first announced the call for proposals. Paul Graham of Y Combinator was recently announced as a keynote speaker (http://pycon.blogspot.com/2011/09/announcing-first-pycon-2012-keynote.html), making his return after a 2003 keynote. David Beazley, famous for his mind-blowing talks on CPython?s Global Interpreter Lock, was added to the plenary talk series (http://pycon.blogspot.com/2011/09/announcing-first-pycon-2012-plenary.html). Sponsors can now list their job openings on the ?Job Fair? section of the PyCon site (http://pycon.blogspot.com/2011/09/announcing-pycon-2012-fair-page-sponsor.html). We?re hard at work to bring you the best conference yet, so stay tuned to PyCon news at http://pycon.blogspot.com/ and on Twitter at https://twitter.com/#!/pycon. We recently eclipsed last year?s sponsorship count of 40 and are currently at a record 52 organizations supporting PyCon. If you or your organization are interested in sponsoring PyCon, we?d love to hear from you, so check out our sponsorship page (http://us.pycon.org/2012/sponsors/). A quick thanks to all of our awesome PyCon 2012 Sponsors: - Diamond Level: Google and Dropbox. - Platinum Level: New Relic, SurveyMonkey, Microsoft, Eventbrite, Nasuni and Gondor.io - Gold Level: Walt Disney Animation Studios, CCP Games, Linode, Enthought, Canonical, Dotcloud, Loggly, Revsys, ZeOmega, Bitly, ActiveState, JetBrains, Caktus, Disqus, Spotify, Snoball, Evite, and PlaidCloud - Silver Level: Imaginary Landscape, WiserTogether, Net-ng, Olark, AG Interactive, Bitbucket, Open Bastion, 10Gen, gocept, Lex Machina, fwix, github, toast driven, Aarki, Threadless, Cox Media, myYearBook, Accense Technology, Wingware, FreshBooks, and BigDoor - Lanyard: Dreamhost - Sprints: Reddit - FLOSS: OSU/OSL, OpenHatch The PyCon Organizers - http://us.pycon.org/2012 Jesse Noller - Chairman - jnoller at python.org Brian Curtin - Publicity Coordinator - brian at python.org From hussainbohra_30 at yahoo.com Thu Sep 29 06:37:07 2011 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Wed, 28 Sep 2011 21:37:07 -0700 (PDT) Subject: [BangPypers] Python 3.2 and Django Message-ID: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> Hi All, I am trying to install django on top of python 3.2, but getting following error: C:\Python32\Scripts>easy_install.exe django Searching for django Reading http://pypi.python.org/simple/django/ Reading http://www.djangoproject.com/ Best match: Django 1.3.1 Downloading http://pypi.python.org/packages/source/D/Django/Django-1.3.1.tar.gz#md5=62d8642fd06b9a0bf8544178f8500767 Processing Django-1.3.1.tar.gz Running Django-1.3.1\setup.py -q bdist_egg --dist-dir c:\users\hussai~1.boh\appdata\local\temp\easy_install-u3vk_y\Django-1.3.1\egg-dist-tmp-y96tyc Traceback (most recent call last): ? File "C:\Python32\Scripts\easy_install-script.py", line 9, in ? ? load_entry_point('distribute==0.6.19', 'console_scripts', 'easy_install')() ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 1864, in main ? ? with_ei_usage(lambda: ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 1845, in with_ei_usage ? ? return f() ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 1868, in ? ? distclass=DistributionWithoutHelpCommands, **kw ? File "c:\Python32\lib\distutils\core.py", line 149, in setup ? ? dist.run_commands() ? File "c:\Python32\lib\distutils\dist.py", line 919, in run_commands ? ? self.run_command(cmd) ? File "c:\Python32\lib\distutils\dist.py", line 938, in run_command ? ? cmd_obj.run() ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 345, in run ? ? self.easy_install(spec, not self.no_deps) ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 585, in easy_install ? ? return self.install_item(spec, dist.location, tmpdir, deps) ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 615, in install_item ? ? dists = self.install_eggs(spec, download, tmpdir) ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 805, in install_eggs ? ? return self.build_and_install(setup_script, setup_base) ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 1082, in build_and_install ? ? self.run_setup(setup_script, setup_base, args) ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\command\easy_install.py", line 1071, in run_setup ? ? run_setup(setup_script, args) ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\sandbox.py", line 31, in run_setup ? ? lambda: exec(compile(open( ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\sandbox.py", line 73, in run ? ? return func() ? File "c:\Python32\lib\site-packages\distribute-0.6.19-py3.2.egg\setuptools\sandbox.py", line 33, in ? ? ).read(), "setup.py", 'exec'), ? File "setup.py", line 70 ? ? if u'SVN' in version: ? ? ? ? ? ? ^ SyntaxError: invalid syntax I also tried installing using Django-1.3.1.tar.gz, but unfortunately same result D:\Python\Python - Software\Django-1.3.1>c:\Python32\python.exe setup.py install ? File "setup.py", line 70 ? ? if u'SVN' in version: ? ? ? ? ? ? ^ SyntaxError: invalid syntax Any suggestion is highly appreciated. Thanks and Regards, Hussain Bohra From gora at mimirtech.com Thu Sep 29 06:46:44 2011 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 29 Sep 2011 10:16:44 +0530 Subject: [BangPypers] Python 3.2 and Django In-Reply-To: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> References: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> Message-ID: On Thu, Sep 29, 2011 at 10:07 AM, Hussain Bohra wrote: > Hi All, > > I am trying to install django on top of python 3.2, but getting following error: Django is not supported on Python 3.x, though some ports are in the works. Please see https://docs.djangoproject.com/en/dev/faq/install/#can-i-use-django-with-python-3 Regards, Gora From sree at mahiti.org Thu Sep 29 06:49:26 2011 From: sree at mahiti.org (Sreekanth S Rameshaiah) Date: Thu, 29 Sep 2011 10:19:26 +0530 Subject: [BangPypers] Python 3.2 and Django In-Reply-To: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> References: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> Message-ID: On 29 September 2011 10:07, Hussain Bohra wrote: > Hi All, > > I am trying to install django on top of python 3.2, but getting following > error: > > https://docs.djangoproject.com/en/dev/intro/install/ Being a Python Web framework, Django requires Python. It works with any Python version from 2.5 to 2.7 (due to backwards incompatibilities in Python 3.0, Django does not currently work with Python 3.0; see *the Django FAQ*for more information on supported Python versions and the 3.0 transition) From hussainbohra_30 at yahoo.com Thu Sep 29 06:53:13 2011 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Wed, 28 Sep 2011 21:53:13 -0700 (PDT) Subject: [BangPypers] Python 3.2 and Django In-Reply-To: References: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> Message-ID: <1317271993.13888.YahooMailNeo@web114716.mail.gq1.yahoo.com> Thanks Mr. Gora and Mr. Sreekanth ... Let me identify if any other MVC framework I can use along with python 3.2. ? Thanks and Regards, Hussain Bohra ________________________________ From: Sreekanth S Rameshaiah To: Hussain Bohra ; Bangalore Python Users Group - India Sent: Thursday, 29 September 2011 10:19 AM Subject: Re: [BangPypers] Python 3.2 and Django On 29 September 2011 10:07, Hussain Bohra wrote: Hi All, > >I am trying to install django on top of python 3.2, but getting following error: > > https://docs.djangoproject.com/en/dev/intro/install/ Being a Python Web framework, Django requires Python. It works with any Python version from 2.5 to 2.7 (due to backwards incompatibilities in Python 3.0, Django does not currently work with Python 3.0; see the Django FAQ for more information on supported Python versions and the 3.0 transition) From senthil at uthcode.com Thu Sep 29 06:57:47 2011 From: senthil at uthcode.com (Senthil Kumaran) Date: Thu, 29 Sep 2011 12:57:47 +0800 Subject: [BangPypers] Python 3.2 and Django In-Reply-To: <1317271993.13888.YahooMailNeo@web114716.mail.gq1.yahoo.com> References: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> <1317271993.13888.YahooMailNeo@web114716.mail.gq1.yahoo.com> Message-ID: Hello Hussain, On Thu, Sep 29, 2011 at 12:53 PM, Hussain Bohra wrote: > Thanks Mr. Gora and Mr. Sreekanth ... > Let me identify if any other MVC framework I can use along with python 3.2. You can consider using Python 2.7 for Web Framework too. Because WSGI Spec for 3.x is not concretely agreed upon by the web frameworks, the support for Web Frameworks world for 3.x is slow. Bottle is one webframework that supports 3.0, but afaik does not have a great community behind it. If you are just starting, go head with 2.7 and later when things get sorted out, you could upgrade to 3.x HTH, Senthil From lawgon at gmail.com Thu Sep 29 08:03:12 2011 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 29 Sep 2011 11:33:12 +0530 Subject: [BangPypers] Python 3.2 and Django In-Reply-To: <1317271993.13888.YahooMailNeo@web114716.mail.gq1.yahoo.com> References: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> <1317271993.13888.YahooMailNeo@web114716.mail.gq1.yahoo.com> Message-ID: <1317276196.19157.2.camel@xlquest.web> On Wed, 2011-09-28 at 21:53 -0700, Hussain Bohra wrote: > Let me identify if any other MVC framework I can use along with python > 3.2. django is not an MKC framework anyway. -- regards Kenneth Gonsalves From sajuptpm at gmail.com Thu Sep 29 10:56:24 2011 From: sajuptpm at gmail.com (Saju M) Date: Thu, 29 Sep 2011 14:26:24 +0530 Subject: [BangPypers] Howto run python selenium script on remote server Message-ID: Hi, I created a script using selenium and its working in my local system. But when i trying to run it in remote machine (Centos), getting error. This script should need to open a firefox browser. So i think the the script could not open the firefox browser on remote machine(Server). Have any way to run it on remote machine(Server)?????. Traceback (most recent call last): File "script.py", line 34, in s = Search() File "script.py", line 8, in __init__ self.driver = webdriver.Firefox() File "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/webdriver.py", line 46, in __init__ self.binary, timeout), File "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/extension_connection.py", line 46, in __init__ self.binary.launch_browser(self.profile) File "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/firefox_binary.py", line 44, in launch_browser self._wait_until_connectable() File "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/firefox_binary.py", line 87, in _wait_until_connectable raise WebDriverException("Can't load the profile. Profile Dir : %s" % self.profile.path) selenium.common.exceptions.WebDriverException: Message: "Can't load the profile. Profile Dir : /tmp/tmpWmkFsy" ------------------------------------- script from selenium import webdriver import BeautifulSoup class Search: def __init__(self): self.url ='http://www.google.co.in' 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) self.driver.get(self.search_url) search_fld = self.driver.find_element_by_id("lst-ib") #help(search_fld) search_btn = self.driver.find_element_by_name("btnK") search_btn.submit() if search_location: self.change_location(search_location) html = self.driver.page_source soup=BeautifulSoup.BeautifulSoup(html) result = soup.findAll(attrs={"class" : "l"}) return result def change_location(self, new_location): self.driver.find_element_by_id("toggle_location_link").click() self.driver.find_element_by_id("lc-input").send_keys(new_location) els = self.driver.find_elements_by_tag_name("input") set_el = [el for el in els if el.get_attribute('value')=='Set'] #print "-------value-----", set_el[0].get_attribute('value') set_el[0].submit() s = Search() print"------search result------", s.search('python', 'kerala') From benignbala at gmail.com Thu Sep 29 11:20:45 2011 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Thu, 29 Sep 2011 14:50:45 +0530 Subject: [BangPypers] Howto run python selenium script on remote server In-Reply-To: References: Message-ID: Hi, On Thu, Sep 29, 2011 at 2:26 PM, Saju M wrote: > Hi, > I created a script using selenium and its working in my local system. > But when i trying to run it in remote machine (Centos), getting error. > This script should need to open a firefox browser. So i think the the > script could not open the firefox browser on remote machine(Server). > Have any way to run it on remote machine(Server)?????. > Does the remote machine have firefox installed the the default path ? That's one thing that can go wrong > selenium.common.exceptions.WebDriverException: Message: "Can't load > the profile. Profile Dir : /tmp/tmpWmkFsy" > The error is with the firefox profile folder. You can pass it as a parameter. I used to use the RC, and it had a -fireforeProfileTemplate parameter to which you pass on the path to the profile folder. There must something like that for WebDriver as well. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From noufal at gmail.com Thu Sep 29 12:39:14 2011 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 29 Sep 2011 16:09:14 +0530 Subject: [BangPypers] Python 3.2 and Django In-Reply-To: <1317271993.13888.YahooMailNeo@web114716.mail.gq1.yahoo.com> (Hussain Bohra's message of "Wed, 28 Sep 2011 21:53:13 -0700 (PDT)") References: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> <1317271993.13888.YahooMailNeo@web114716.mail.gq1.yahoo.com> Message-ID: <87zkhn7hv1.fsf@sanitarium.localdomain> Hussain Bohra writes: > Thanks Mr. Gora and Mr. Sreekanth ... Let me identify if any other > MVC framework I can use along with python 3.2. [...] Is there some real need to use Python 3.2? Most frameworks and libraries support only the 2.x series. -- ~noufal http://nibrahim.net.in I don't think anyone should write their autobiography until after they're dead. -Samuel Goldwyn From syed1.mushtaq at gmail.com Thu Sep 29 12:43:59 2011 From: syed1.mushtaq at gmail.com (Syed Mushtaq) Date: Thu, 29 Sep 2011 16:13:59 +0530 Subject: [BangPypers] Howto run python selenium script on remote server In-Reply-To: References: Message-ID: Does you server have X running ? If yes you might want to set the DISPLAY env variable . If no then you must either run X or install something like Xvfb[1] to make firefox run [1] http://en.wikipedia.org/wiki/Xvfb Thanks -Syed On Thu, Sep 29, 2011 at 2:26 PM, Saju M wrote: > Hi, > I created a script using selenium and its working in my local system. > But when i trying to run it in remote machine (Centos), getting error. > This script should need to open a firefox browser. So i think the the > script could not open the firefox browser on remote machine(Server). > Have any way to run it on remote machine(Server)?????. > > > Traceback (most recent call last): > File "script.py", line 34, in > s = Search() > File "script.py", line 8, in __init__ > self.driver = webdriver.Firefox() > File > "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/webdriver.py", > line 46, in __init__ > self.binary, timeout), > File > "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/extension_connection.py", > line 46, in __init__ > self.binary.launch_browser(self.profile) > File > "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/firefox_binary.py", > line 44, in launch_browser > self._wait_until_connectable() > File > "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/firefox_binary.py", > line 87, in _wait_until_connectable > raise WebDriverException("Can't load the profile. Profile Dir : > %s" % self.profile.path) > selenium.common.exceptions.WebDriverException: Message: "Can't load > the profile. Profile Dir : /tmp/tmpWmkFsy" > > ------------------------------------- script > > from selenium import webdriver > import BeautifulSoup > class Search: > def __init__(self): > self.url ='http://www.google.co.in' > 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) > self.driver.get(self.search_url) > search_fld = > self.driver.find_element_by_id("lst-ib") > #help(search_fld) > search_btn = > self.driver.find_element_by_name("btnK") > search_btn.submit() > if search_location: > self.change_location(search_location) > html = self.driver.page_source > soup=BeautifulSoup.BeautifulSoup(html) > result = soup.findAll(attrs={"class" : "l"}) > return result > > def change_location(self, new_location): > > self.driver.find_element_by_id("toggle_location_link").click() > > self.driver.find_element_by_id("lc-input").send_keys(new_location) > els = self.driver.find_elements_by_tag_name("input") > set_el = [el for el in els if > el.get_attribute('value')=='Set'] > #print "-------value-----", set_el[0].get_attribute('value') > set_el[0].submit() > s = Search() > print"------search result------", s.search('python', 'kerala') > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From syed1.mushtaq at gmail.com Thu Sep 29 12:46:40 2011 From: syed1.mushtaq at gmail.com (Syed Mushtaq) Date: Thu, 29 Sep 2011 16:16:40 +0530 Subject: [BangPypers] Python 3.2 and Django In-Reply-To: <87zkhn7hv1.fsf@sanitarium.localdomain> References: <1317271027.31494.YahooMailNeo@web114711.mail.gq1.yahoo.com> <1317271993.13888.YahooMailNeo@web114716.mail.gq1.yahoo.com> <87zkhn7hv1.fsf@sanitarium.localdomain> Message-ID: You may find this discussion interesting . Found it on reddit few days back . http://www.reddit.com/r/Python/comments/krk9w/how_many_people_actually_use_python_3_on_their/ On Thu, Sep 29, 2011 at 4:09 PM, Noufal Ibrahim wrote: > Hussain Bohra writes: > > > Thanks Mr. Gora and Mr. Sreekanth ... Let me identify if any other > > MVC framework I can use along with python 3.2. > > [...] > > Is there some real need to use Python 3.2? Most frameworks and libraries > support only the 2.x series. > > > -- > ~noufal > http://nibrahim.net.in > > I don't think anyone should write their autobiography until after they're > dead. -Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sajuptpm at gmail.com Thu Sep 29 13:31:03 2011 From: sajuptpm at gmail.com (Saju M) Date: Thu, 29 Sep 2011 17:01:03 +0530 Subject: [BangPypers] BangPypers Digest, Vol 49, Issue 32 In-Reply-To: References: Message-ID: On Thu, Sep 29, 2011 at 3:30 PM, wrote: > Send BangPypers mailing list submissions to > ? ? ? ?bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > ? ? ? ?http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > ? ? ? ?bangpypers-request at python.org > > You can reach the person managing the list at > ? ? ? ?bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > ? 1. Howto run python selenium script on remote server (Saju M) > ? 2. Re: Howto run python selenium script on remote server > ? ? ?(Balachandran Sivakumar) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 29 Sep 2011 14:26:24 +0530 > From: Saju M > To: bangpypers at python.org > Subject: [BangPypers] Howto run python selenium script on remote > ? ? ? ?server > Message-ID: > ? ? ? ? > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > I created a script using selenium and its working in my local system. > But when i trying to run it in remote machine (Centos), getting error. > This script should need to open a firefox browser. So i think the the > script could not open the firefox browser on remote machine(Server). > Have any way to run it on remote machine(Server)?????. > > > Traceback (most recent call last): > ?File "script.py", line 34, in > ? ?s = Search() > ?File "script.py", line 8, in __init__ > ? ?self.driver ?= webdriver.Firefox() > ?File "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/webdriver.py", > line 46, in __init__ > ? ?self.binary, timeout), > ?File "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/extension_connection.py", > line 46, in __init__ > ? ?self.binary.launch_browser(self.profile) > ?File "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/firefox_binary.py", > line 44, in launch_browser > ? ?self._wait_until_connectable() > ?File "/home/madfishe/env6/lib/python2.6/site-packages/selenium-2.7.0-py2.6.egg/selenium/webdriver/firefox/firefox_binary.py", > line 87, in _wait_until_connectable > ? ?raise WebDriverException("Can't load the profile. Profile Dir : > %s" % self.profile.path) > selenium.common.exceptions.WebDriverException: Message: "Can't load > the profile. Profile Dir : /tmp/tmpWmkFsy" > > ------------------------------------- script > > from selenium import webdriver > import BeautifulSoup > class Search: > ? ? ? ?def __init__(self): > ? ? ? ? ? ? ? ?self.url ='http://www.google.co.in' > ? ? ? ? ? ? ? ?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) > ? ? ? ? ? ? ? ? ? ? ? ?self.driver.get(self.search_url) > ? ? ? ? ? ? ? ? ? ? ? ?search_fld = self.driver.find_element_by_id("lst-ib") > ? ? ? ? ? ? ? ? ? ? ? ?#help(search_fld) > ? ? ? ? ? ? ? ? ? ? ? ?search_btn = self.driver.find_element_by_name("btnK") > ? ? ? ? ? ? ? ? ? ? ? ?search_btn.submit() > ? ? ? ? ? ? ? ? ? ? ? ?if search_location: > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?self.change_location(search_location) > ? ? ? ? ? ? ? ? ? ? ? ?html = self.driver.page_source > ? ? ? ? ? ? ? ? ? ? ? ?soup=BeautifulSoup.BeautifulSoup(html) > ? ? ? ? ? ? ? ? ? ? ? ?result = soup.findAll(attrs={"class" : "l"}) > ? ? ? ? ? ? ? ? ? ? ? ?return result > > ? ? ? ?def change_location(self, new_location): > ? ? ? ? ? ? ? ?self.driver.find_element_by_id("toggle_location_link").click() > ? ? ? ? ? ? ? ?self.driver.find_element_by_id("lc-input").send_keys(new_location) > ? ? ? ? ? ? ? ?els = self.driver.find_elements_by_tag_name("input") > ? ? ? ? ? ? ? ?set_el = [el for el in els if el.get_attribute('value')=='Set'] > ? ? ? ? ? ? ? ?#print "-------value-----", set_el[0].get_attribute('value') > ? ? ? ? ? ? ? ?set_el[0].submit() > s = Search() > print"------search result------", s.search('python', 'kerala') > > > ------------------------------ > > Message: 2 > Date: Thu, 29 Sep 2011 14:50:45 +0530 > From: Balachandran Sivakumar > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Howto run python selenium script on remote > ? ? ? ?server > Message-ID: > ? ? ? ? > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > On Thu, Sep 29, 2011 at 2:26 PM, Saju M wrote: >> Hi, >> I created a script using selenium and its working in my local system. >> But when i trying to run it in remote machine (Centos), getting error. >> This script should need to open a firefox browser. So i think the the >> script could not open the firefox browser on remote machine(Server). >> Have any way to run it on remote machine(Server)?????. >> > > ? ? ? Does the remote machine have firefox installed the the default > path ? That's one thing that can go wrong > > >> selenium.common.exceptions.WebDriverException: Message: "Can't load >> the profile. Profile Dir : /tmp/tmpWmkFsy" >> > > ? ? ? The error is with the firefox profile folder. You can pass it > as a parameter. I used to use the RC, and it had a > -fireforeProfileTemplate parameter to which you pass on the path to > the profile folder. There must something like that for WebDriver as > well. Thanks > > > > -- > Thank you > Balachandran Sivakumar > > Arise Awake and stop not till the goal is reached. > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda > > Mail: benignbala at gmail.com > Blog: http://benignbala.wordpress.com/ > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 49, Issue 32 > ****************************************** > From sajuptpm at gmail.com Thu Sep 29 13:43:57 2011 From: sajuptpm at gmail.com (Saju M) Date: Thu, 29 Sep 2011 17:13:57 +0530 Subject: [BangPypers] Howto run python selenium script on remote server Message-ID: Hi Balachandran Sivakumar, Thanks for reply * Yes is can see the firefox command on remote server's terminal. * I think remote server does not have GUI, so is it possible to run firefox. * When i run #firefox on remote server it not showing Error: no display specified. >>Does the remote machine have firefox installed the the default >> path ? That's one thing that can go wrong >>>The error is with the firefox profile folder. You can pass it >> as a parameter. I used to use the RC, and it had a >> -fireforeProfileTemplate parameter to which you pass on the path to >> the profile folder. There must something like that for WebDriver as >> well. Thanks From baiju.m.mail at gmail.com Thu Sep 29 14:05:16 2011 From: baiju.m.mail at gmail.com (Baiju M) Date: Thu, 29 Sep 2011 17:35:16 +0530 Subject: [BangPypers] Howto run python selenium script on remote server In-Reply-To: References: Message-ID: On Thu, Sep 29, 2011 at 2:26 PM, Saju M wrote: > Hi, > I created a script using selenium and its working in my local system. > But when i trying to run it in remote machine (Centos), getting error. > This script should need to open a firefox browser. So i think the the > script could not open the firefox browser on remote machine(Server). > Have any way to run it on remote machine(Server)?????. I have written some docs for this: http://readthedocs.org/docs/selenium-python/en/latest/getting-started.html#using-selenium-with-remote-webdriver If you want to contribute, fork the documentation here: https://github.com/baijum/selenium-python Regards, Baiju M From sajuptpm at gmail.com Thu Sep 29 17:23:42 2011 From: sajuptpm at gmail.com (Saju M) Date: Thu, 29 Sep 2011 20:53:42 +0530 Subject: [BangPypers] Howto run python selenium script on remote server Message-ID: Hi, I tried to open one GUI app in server, but not working [root at c5 ~]# export DISPLAY=":1.0" [root at c5 ~]# xclock Error: Can't open display: :1.0 [root at c5 ~]# export DISPLAY=":0.0" [root at c5 ~]# xclock Error: Can't open display: :0.0 [root at c5 ~]# ps -ef | grep X root 3900 3897 0 11:18 tty7 00:00:01 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7 root 3941 3585 0 11:22 pts/1 00:00:00 grep X [root at c5 ~]# From benignbala at gmail.com Thu Sep 29 17:55:18 2011 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Thu, 29 Sep 2011 21:25:18 +0530 Subject: [BangPypers] Howto run python selenium script on remote server In-Reply-To: References: Message-ID: Hi, On Thu, Sep 29, 2011 at 8:53 PM, Saju M wrote: > Hi, > I tried to open one GUI app in server, but not working > > [root at c5 ~]# export DISPLAY=":1.0" > [root at c5 ~]# xclock > Error: Can't open display: :1.0 > IIRC, on most GNU/Linux machines, ssh -X user at host would allow launching GUI applications without any other settings. But in case it doesn't work, I think you would need to export DISPLAY to your client's X, so it would be something like export DISPLAY=client_ip:0.0. Give it a try. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From dhananjay.nene at gmail.com Fri Sep 30 10:06:01 2011 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 30 Sep 2011 13:36:01 +0530 Subject: [BangPypers] parsing xml In-Reply-To: References: <1311846517.1742.73.camel@xlquest.web> <1311849103.1742.74.camel@xlquest.web> Message-ID: On Fri, Jul 29, 2011 at 10:47 AM, Anand Chitipothu wrote: > 2011/7/28 Venkatraman S : > > parsing using minidom is one of the slowest. if you just want to extract > the > > distance and assuming that it(the tag) will always be consistent, then i > > would always suggest regexp. xml parsing is a pain. > > regexp is a bad solution to parse xml. > Partly because the answer is loosely related and partly because of the humour quotient, I thought this response to using regex's to parse HTMLs (which is perhaps more challenging in general than XMLs) was quite an interesting read. Note this response could be considered a bit OT so don't take it too seriously in the context of this thread's discussion. http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 > > minidom is the fastest solution if you consider the programmer time > instead of developer time. Minidom is available in standard library, > you don't have to add another dependency and worry about PyPI > downtimes and lxml compilations failures. > > I don't think there will be significant performance difference between > regexp and minidom unless you are doing it a million times. > >