Re: [BangPypers] Role-Based Access Control
On Thu, Sep 17, 2015 at 3:38 AM, Anand Chitipothuwrote: > If you have any suggestions, please let me know. If the organization uses ldap, then using a ldap based access control is possible using libraries which are not tied to any web-framework. http://www.python-ldap.org/doc/html/ldap.html ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] BangPypers completes 10 years
On Aug 13, 2015 12:19 AM, Anand B Pillai anandpil...@letterboxes.org wrote: From Feb 2005 when it started its life in Yahoo! groups, BangPypers mailing list - from its original form - has completed 10 years. Congratulations to this group. By reminding this, you just made everyone, whoever joined early, feel old. It's been a long run and group has been managed well. Cheers! Senthil ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [X-Post] ERPNext Conference 2015
On Thu, Jul 23, 2015 at 12:13 PM, Pratik Vyas m...@pd.io wrote: Thank you for the explanation. Please do include such an explanation in future postings. Yup, I missed that. Will be careful in future. Yeah, it is impressive: https://github.com/frappe/erpnext With a name like Frappé, I thought you were some french company. :-) All the best! ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Fwd: Need a help on reviewing a python code. Message-ID: cacimrglh7bharoas710ofojd8g2i_liynbywka1640dvk5r...@mail.gmail.com
Very minor comments. 1. planet.py: from math import pi as PI Unless there is a name conflict with the identifier being used. You could avoid using as in the import. Here I guess, you wanted constants in capitals (perhaps a linter tool required). In that case, you could write it as import math; and use it is math.pi 2.input_parser.py Keep the import yaml at the top along with other imports. There is no reason to have it hidden in the methods. 3. cmdline_parser.py : You don't need a trailing blackslash here. self.parser.add_argument(--config, dest='config_file', \ Since the break is happening within (, the implicit line joiners will take care of having all the arguments within (). 4. arbitory_solar_system.py: ab_solar_system = ArbitarySolarSystem(config='system.yaml') You could assign CONSTANTS to various .yaml files. That said, everything else looks good to me and code was pythonic too. I believe, you used some tools like pep8, flake8 to do automatic style fixes. Thank you, Senthil On Fri, Jul 17, 2015 at 3:55 AM, Ramesh Rajagopal mail2.rame...@gmail.com wrote: With regards to the below thread-id, I have posted my code into github account. Please have a look at and review it. https://github.com/rameshrajagopal/alignment Regards, Ramesh Message: 1 Date: Fri, 17 Jul 2015 01:13:13 +0530 From: Gora Mohanty g...@mimirtech.com To: Bangalore Python Users Group - India bangpypers@python.org Subject: Re: [BangPypers] Fwd: Need a help on reviewing a python code. Message-ID: cacimrglh7bharoas710ofojd8g2i_liynbywka1640dvk5r...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 Hi, Just forget it. The problem statement itself is so badly broken that it is unfixable, IMHO. To quote from problem.txt: The application will not determine the alignments itself. Instead, the application must be able to load a set of plugins at runtime that will determine whether a particular configuration of planets is 'aligned' according to whatever definition the plugin uses for alignment. Yes, and without the specification of an interface, I suppose Moses will come down from the mountain to tell us how a particular plugin decides how a planet is alignedOh my God/aligned. IMHO, it is just not worth even applying to such companies as their basic recruitment process seems not to work. Regards, Gora On 17 July 2015 at 00:54, Senthil Kumaran sent...@uthcode.com wrote: Agree with Anuvrat. Paste your code in https://gist.github.com/ or upload it github/bitcket and share it again. I will help with the review. Thanks, Senthil On Thu, Jul 16, 2015 at 3:40 AM, Anuvrat Parashar anuv...@anuvrat.in wrote: 1. alignment.tar.gs is missing. 2. please consider hosting the code on github / bitbucket instead of attaching heavy files. On Thu, Jul 16, 2015 at 3:49 PM, Ramesh Rajagopal mail2.rame...@gmail.com wrote: -- Forwarded message -- From: Ramesh Rajagopal mail2.rame...@gmail.com Date: Jul 16, 2015 3:30 PM Subject: Fwd: Need a help on reviewing a python code. To: bangpypers@python.org Cc: Hello All, It would be very helpful, if you can review a small code which I had written in python. It is purely for my personal development perspective. I had a got an assignment from a company, they rejected my assignment without exactly stating what is the problem with my code. They just conveyed that it doesn't look like a pythonic way. I would like to understand my mistakes and improve on this. It would be good if you can help me on this. I am attaching the problem.txt(which has the assignment details, we need to make assumptions), then solution as alignment.tar.gz file. Looking forward you reply. Regards, Ramesh ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- Anuvrat Parashar http://anuvrat.in http://anuvrat.in ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Fwd: Need a help on reviewing a python code.
Agree with Anuvrat. Paste your code in https://gist.github.com/ or upload it github/bitcket and share it again. I will help with the review. Thanks, Senthil On Thu, Jul 16, 2015 at 3:40 AM, Anuvrat Parashar anuv...@anuvrat.in wrote: 1. alignment.tar.gs is missing. 2. please consider hosting the code on github / bitbucket instead of attaching heavy files. On Thu, Jul 16, 2015 at 3:49 PM, Ramesh Rajagopal mail2.rame...@gmail.com wrote: -- Forwarded message -- From: Ramesh Rajagopal mail2.rame...@gmail.com Date: Jul 16, 2015 3:30 PM Subject: Fwd: Need a help on reviewing a python code. To: bangpypers@python.org Cc: Hello All, It would be very helpful, if you can review a small code which I had written in python. It is purely for my personal development perspective. I had a got an assignment from a company, they rejected my assignment without exactly stating what is the problem with my code. They just conveyed that it doesn't look like a pythonic way. I would like to understand my mistakes and improve on this. It would be good if you can help me on this. I am attaching the problem.txt(which has the assignment details, we need to make assumptions), then solution as alignment.tar.gz file. Looking forward you reply. Regards, Ramesh ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- Anuvrat Parashar http://anuvrat.in http://anuvrat.in ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] How to iterate through columns in Model
On Thu, Jul 16, 2015 at 10:51 AM, Sunil Gupta su...@planmytour.in wrote: for each column in Obj if column.help_text != : print The column , column.verbose_name, has value , column.value expected output The column Client Id has value Test_Client_Id Look at the attributes / methods of Obj. Does it have something like .values() ? Check the help of your ORM to find out. then, it will be similar to what you have done. for column in Obj.values(): if column.help_text is not None: print column.verbose_name What ORM are you using? -- Senthil ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Fwd: Need a help on reviewing a python code.
On Thu, Jul 16, 2015 at 12:43 PM, Gora Mohanty g...@mimirtech.com wrote: IMHO, it is just not worth even applying to such companies as their basic recruitment process seems not to work. Agree. Irrespective of that, this list 'bangpypers' focusses on python language ecosystem. So, I thought, we could help with the idiomaticity of the code, if provided and be helpful to the learner. -- Senthil ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python conversion from .py to .exe
On Friday, January 2, 2015 at 5:03 AM, Abhijit Bangera wrote: That is to say, I have multiple modules to run. I am using py2exe (http://www.py2exe.org/index.cgi/Tutorial) for this. Can anyone help me getting this done? Also say I have a project which makes use of DB, will the conversion process take care of DB part as well? For any application, which has multiple modules and some of which are interacting with databases, you will have “entry point”. Entry point module is how the applications recognize which module to run. As explained in the tutorial, you design your application with one entry point and point that entry point in the setup.py If you have multiple entry points, then it is considered as multiple applications you will create exes for each of them. HTH, Senthil -- Senthil Kumaran ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Terrible choices: MySQL. What is the way ahead?
On Tuesday, December 30, 2014 at 6:02 PM, Anand Chitipothu wrote: The big companies using mysql would have found work-arounds for these issues. I don't think individual developers can afford that. Just to churn this a little. I have been using MySQL at work and we have not found any basic problems with it. It seems to be stable technology for us, but of course there are some database experts who spend their day time entirely on it. Thanks, Senthil ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Does Python have lexical scoping?
On Sun, Nov 9, 2014 at 1:14 AM, Noufal Ibrahim KV nou...@nibrahim.net.in wrote: How is lexical scoping with a mutable environment different from dynamic scoping? I think you should post this in python-dev and you might get answers with rigorous definitions. Here is my short snippet which shows a behavior which does not indicate a dynamic binding nature. # example.py x = 10 y = lambda: x def f(): x = 20 # This is not rebinding. It is creating a new local variable by name x # But we are referring to x in y function call, so for the definition of dynamic binding (?) # should y() see x defined in the local scope instead of the previously assigned value. print(y()) return y() x = 30 # This is rebinding in the same scope. print(f()) $ python example.py 30 30 ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Fwd: Issue with basemap import
On Wed, Sep 24, 2014 at 12:12 PM, narayan naik narayannaik...@gmail.com wrote: hi,anybody help me to learn python.I am beginer Sure. But you have ask the question first. If you want start learning, then look for Swaroop's book - A Byte of Python and it is a good start. ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python is still greek to india's top IT firms
On Thu, Sep 25, 2014 at 5:09 AM, Saager Mhatre saager.mha...@gmail.com wrote: Some would beg to differ http://tek.io/1yjHw0U Companies are polyglot from a long time. This talk about developers and some of their grudges :) And author is choosing to overlook technologies like Apache thrift and Protobuf technologies which enable services to talking to each other.. ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python is still greek to india's top IT firms
On Thu, Sep 25, 2014 at 5:19 AM, Saager Mhatre saager.mha...@gmail.com wrote: Not to sound overly disparaging, but that argument reeks of survivorship bias, or at least confirmation bias.What about all the shops looking for python devs but not finding any good ones; you know, like the ones that aren't connected to the community? Contrast that with the number of 'conventional language' programmers and recruiters who aren't connected to the community but still manage to get jobs. I don't know. That was a mere statement that I made from the past experience and real one. :) And yeah, I have no preferences towards developer or companies which have contacts with communities. Some are connected and some are not, but all of them exists to make profit for themselves, and create value and jobs for the society. ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Fwd: Issue with basemap import
How did you install your base package? The matplotlib? Are you using any distribution? If you installed it separately., then looks like you will have to install basecamp using the matplotlib toolkits ( http://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/) too. If you are using a prebuilt distribution like anaconda (from continuum.io) it might have those libraries prebuilt for you. On Tue, Sep 23, 2014 at 10:40 AM, sachidanand gowda maverick@gmail.com wrote: Hi, I was non member 5 mins back :) so reposting it again -- Forwarded message -- From: sachidanand gowda maverick@gmail.com Date: Tue, Sep 23, 2014 at 10:13 AM Subject: Issue with basemap import To: bangpypers@python.org Hi Guys, I needed help on importing basemap http://stackoverflow.com/questions/25985808/error-importing-basemap-keyerror-dap I have posted the question on stack overflow. Kindly help me with this issue Thanks, Sachi ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] New to Python
On Tue, Sep 23, 2014 at 7:15 PM, Kazim Abbas kazim2...@gmail.com wrote: But how can i start a project in Django, Please let me know Start with this book called Two scoops of Django, which is a recent entrant and geared towards beginners. Then you can look at the official Django docs. -- Senthil ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Best books for python
On Sun, Sep 21, 2014 at 2:52 PM, Ashok K mails.as...@yahoo.com.dmarc.invalid wrote: Please suggest some books/materials that would help me master python. Python Cookbook 2nd Edition by Alex Martelli. Python Cookbook 3rd edition by Dave Beazley. Then try doing programming projects using Python, possibly involving yourself with other senior python developers. Those are the limited resources available atm. -- Senthil ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Return values
On Sat, Sep 20, 2014 at 5:04 PM, Noufal Ibrahim KV nou...@nibrahim.net.in wrote: This has a parameter `consolidate`. If consolidate is True, it will combine all the statistics and return just one Stats object. If not, it will return a list of Stats objects. The problem now is that this function sometimes returns a single thing and some times a list. I don't like this since I have to alter my calling code to handle this. I'm surprised that I've never hit this before and I'm not really sure how to handle it. Comments? One option to me looks like, don't have consolidate as parameter for this function, but do the operation outside. Like providing a function called get_consolidated_stats, which will call get_stats and provide the consolidated result. The reason I am suggesting is, consolidation is one of the operation that be performed on the the collection and it seems that injecting that operation on the collection is 'limiting' the API. The other obvious options are. 1) Return a list, but when consolidate is sent, it is a single element list. # This hurts semantics and human understanding 2) Return a higher level object, (Stats object) which has a property called consolidate, which can be set, when it is invoked. # This makes it a bit complex. ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python is still greek to india's top IT firms
Python does not have the push that Java and .Net has from the corporate world. Java and .Net/C# has strong ecosystem of tools too. And surprisingly PHP in open source world got a good adoption by being at the right time for a specific solution. So, in India we see PHP, Java and .Net as primary platform for developers. But the good news is, if an individual developer becomes very strong in Python, he is creating a value for himself. Given that world is moving to multiple language shops and almost all companies will use more than one language in their offerings, having python knowledge is definitely going to help anyone get hired. From my experience at Akamai Bangalore, when we had to hire Java developers for my team, we had 100s of resumes competing for single spot, but we looked for quality python developers, there were very less 10 (and all of them known folks) who could easily land up in the role. So, yeah there you go. Any developer will have edge by learning a language like Python. On Sat, Sep 13, 2014 at 3:57 PM, Asif Jamadar asif.jama...@rezayat.net wrote: http://timesofindia.indiatimes.com/...-Indias-top-IT-firms/articleshow/41535783.cms http://timesofindia.indiatimes.com/tech/jobs/Python-is-still-greek-to-Indias-top-IT-firms/articleshow/41535783.cms NEW DELHI: Recently, one of India's top software companies was faced with quandary. It had won a $200 million (Rs 1,200 crore) contract to develop an app store for a large US bank, but did not have adequate numbers of programmers who could write code in Python, the language most suited for the job. Eventually, it paid thrice the billing rate to a group of freelance Python programmers in the US. And learned a valuable lesson about the importance of a language named after the British television comedy series Monty Python. For a nation regarded as a software programming powerhouse, the episode has salutary lessons. While skills in traditional computer languages meant for stitching software applications and maintaining large mainframe computers are a strength, ignoring Python could prove to be a costly mistake. Because companies like Infosys http://economictimes.indiatimes.com/infosys-technologies-ltd/stocks/companyid-10960.cms and TCS prefer proprietary languages like Java or dot NET most students think of these as an option in college. That is the reason you don't get good quality talent in the industry to work with us in Python, said Jofin Joseph, cofounder and chief operating officer of Profoundis, a Kochi-based technology startup which has been struggling for about a year to hire young Python programmers. ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] The Python I would like to see - Armin Ronacher
On Tuesday, August 19, 2014 at 9:24 PM, Baiju M wrote: I would love to install single statically linked binaries for deployment. Building these binaries should be very fact also, say less than 1 minute. There are multiple solutions to to this. One that twitter uses is called PEX, a concept adopted from the Java world of deployable jars. My thought is, if the deployment environment is under control (like the versions of Python and the access to PyPI and dependency information and versions well established), then the standard python of using pip and requirements is good too. The problem usually lies in out of control dependencies and environment and sometimes we tend to prefer a static binary. -- Senthil Kumaran ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] what is python frameworks
Hi Sharanu, I will try to answer this as it is an interesting topic. The “python scripts” that you write initially are mostly, single purpose command line ones. For e.g. in order to add two numbers you can write your script (heck!, let’s call it as an worldchangingapp.py) like this. #worldchangingapp.py def add(x, y): return x + y if __name__ == ‘__main__’: add(4,5) Simple, isn’t it? Now, realize that the add() function that you have written may be useful to your friend as well, who does not want to reimplement the add function. So you decided that you will release your add function as a library, call it as arithmeticlib.py So arithmeticlib.py has this function now # arithmeticlib.py def add(x, y): return x + y And your worldchangingapp can include that lib # worldchaningapp.py from arithmeticlib import add if __name__ == ‘__main__’: add(4,5) Now you are clear what a library is useful for. Similar to arithmeticlib, your friends have come out with statisticslib, permutationslib, algebraiclib etc to deal with other problems in the domain. You realize that you can bundle them all together and ship it as an common library called mathslib. To further make it interesting, you decided that you will structure your code in such as way, that calling any library will be easy and consistent. For e.g. doCalculate(x,y) will call arthimeticlib if two numbers are sent. will call statistics lib if two population data is sent. will call algebraic lib if two objects which of type Algebra are sent. Your code will look easy to read. The work however, is the way you design your library “math lib”. At this point, you will design it to make it extensible, so that your user can extend the library and add his own functionality too. Without realizing, you have now created a framework. This is how frameworks are usually created. The hard part is the design process and that is solved by reading about software architecture, looking at the examples from the other world (most prominently the Java world, where (IMHO) the language leads to designing scalable systems in a disciplined manner well) and reading the books on Design patterns and looking at the code of popular web frameworks.. So Framework is just a collection of libraries (which is a collection of reusable code), which is designed with extensibility and easy of use in mind. Hope this answers your question and you will be able to crack your interview question!. :) Cheers, Senthil -- Senthil Kumaran Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Sunday, June 1, 2014 at 11:58 PM, Sharanu Patil wrote: Hi , I have been working in python in scripting for quiet some time , since i am changing the job, in many interview they are asking below quesion have you worked on the python framework , what is structure of it , how do you develop a framework from the scratch It is pleasure to post my first question about python on this mailing list Thanaks, Sharan ___ BangPypers mailing list BangPypers@python.org (mailto:BangPypers@python.org) https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Who do I contact in regards to PyCon India sponsorship?
http://in.pycon.org/2014/ I looked at it and found Call for Sponsors Earn some brownie points by sponsoring PyCon! Here is the Sponsorship Prospectus http://in.pycon.org/2014/sponsorship-prospectus.pdf. Need more information? *cont...@in.pycon.org cont...@in.pycon.org* On Fri, May 16, 2014 at 3:35 PM, Daniel Greenfeld pyda...@gmail.com wrote: I've looked all over the site and can't figure out how to submit a request for sponsoring the conference. I would love a contact point! :-) -- 'Knowledge is Power' Daniel Greenfeld Principal at Cartwheel Web; co-author of Two Scoops of Django twoscoopspress.org | pydanny.com ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] back button issues with session handling in flask
Hi Adivandya, On Sat, Sep 7, 2013 at 9:29 AM, Adivandhya adivand...@yahoo.co.in wrote: and second being i cannot use other extensions like flask-login etc, as im trying to make it on my own. How do i resolve this problem within the constraints ? If you poke into flask-login, how does it handle that? Personally, I do now know the a web app we keep any track of browser states. The idea could be use of URLs and working with the session object based on the URL you are at in terms of webapp. -- Senthil ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] https://github.com/pythonhacker/ladies.py
Hello Annapoornima, I can understand your stance, but I think, this email is bit strongly worded and could hurt the readers. And as a helpful note, I think, leadership on your effort could be built more in friendly cooperative way than by intimidation. Personally, I care more about python, language, learning and than others. First three guarantee me to be neutral on any topic. I hope, others in this list have that in that order too. So, sorry, I am bowing out of this discussion and I hope others would too. Thank you, Senthil On Sat, Sep 7, 2013 at 9:56 AM, Annapoornima Koppad a.kop...@gmail.comwrote: More, I had a good mind to email this particular detail to every women mailing list that I am aware of. But then, it would portray all Bangalore men in bad light. Which is not my intention. More over, I am in touch with the PSF board itself, I had a good mind to send your repository link to the PSF board itself. @Anand Pillai, I am aware that you are on this list. There was not one single email from you asking me about the intentions of Pyladies Bangalore. You give me more reasons to never learn from guys like you. Either you explain here on public and tell everyone what was the intentions behind this, whom exactly where you targeting, or apologize for your behavior, irrespective of your intentions,I will let it go. Else its your choice, you choose. @Vinayak, every woman on this emailing list needs to be aware of the cheekiness of other men (and women) who try to put you down. This will be a learning phase for them too. I dont think this counts as trolling. Please read thoroughly before emailing. Thanks and regards, Annapoornima Pyladies Bangalore On Sat, Sep 7, 2013 at 10:12 PM, Vinayak Hegde vinay...@gmail.com wrote: On second thoughts maybe this was the objectionable part def get_purpose(): Return the purpose raise AmbiguousMissionError, Mission unclear Also the URL http://ladiespy.com does not resolve. Also there are python programmers(gender-neutral term) on this list. Maybe if there are any issues with attitude, you are better off talking on this list and educating people than having a separate mailing list as it divides the community (which I assume was the intent of the author). Intent and tone do not travel well over the Internet. -- Vinayak On Sat, Sep 7, 2013 at 10:01 PM, Vinayak Hegde vinay...@gmail.com wrote: Hi Svaksha, This can be fixed by sending a mail to the author and in this case, forking, modifying and asking for a pull request. Why is there a necessity to name and shame ? I did not find anything derogatory in the code (that I checked). I would normally have responded to this offlist but I see this as trolling[1]. -- Vinayak 1. http://en.wikipedia.org/wiki/Troll_%28Internet%29 On Sat, Sep 7, 2013 at 9:49 PM, svaksha svak...@gmail.com wrote: https://github.com/pythonhacker/ladies.py, comes off as trying too hard to be cute. #EpicFail. svaksha ॥ स्वक्ष ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python Monk - Learn Python in your browser
Hello Anand, Congratulations on this. This is going to be immensely useful for many new comers and I am seeing lot new comers to Python, using environments like these to learn. Yeah, C42 Engineering team have done a good job with the platform too. I used this to learn to ruby. Thank you, Senthil On Mon, Mar 25, 2013 at 7:22 AM, Anand Chitipothu anandol...@gmail.com wrote: Hello everyone! I have written an interactive learning book for Python at http://pythonmonk.com/learning/books/17. I would love it if you could go through the lessons and give feedback. This is an alpha version with limited content. We are releasing this to an audience we already know before we release to a larger audience. PythonMonk was built by the folks at C42 Engineering (http://c42.in) and uses the same platform as rubymonk.com. PS: This is the first place we are announcing PythonMonk and it is not ready for a large number of users yet. So please keep it within the group and not share the link anywhere else. Thanks! Anand http://anandology.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Wake Up guys!
And the subject of your email is not helpful. I get grumpy if you wake me up in midst of my activity. :-) Welcome to the group! ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Fwd: Configuring web2py to run on apache with Centos5.8
I was going through my old emails and found this. This was perhaps the last email Kenneth interacted with us all. - Senthil -- Forwarded message -- From: Kenneth Gonsalves law...@gmail.com Date: Wed, Jul 25, 2012 at 4:21 AM Subject: Re: [BangPypers] Configuring web2py to run on apache with Centos5.8 To: bangpypers@python.org On Wed, 2012-07-25 at 16:10 +0530, Guruprasad wrote: On Wed, Jul 25, 2012 at 3:55 PM, Senthil skksun...@yahoo.co.in wrote: Hi Kenneth, Really appreciate your help. I was able to configure the web2py to run on apache successfully. Thanks to everyone for the support. What was the issue and how did you solve it? It'd be great if you could post a short writeup. the issue was that apache was giving forbidden error when trying to access his app and the solution was to give apache the permissions. This is a very common issue in fedora/redhat/centos/ where the default for most directories under / is not to give execute permission to all. This error was further compounded by him putting his app under /root which is usually more heavily protected than most directories. -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Sad demise of our dear KG (Keneth Gonsalvas)
Oh this is sad and unexpected :-( Will surely be missing him. He provided a unique shape to our community. Our prayers be with his family. -- Senthil On Fri, Aug 3, 2012 at 2:55 AM, JAGANADH G jagana...@gmail.com wrote: Hi All, Just now I got a message that our dear KG (Kenneth Gonsalvas) passed away. He was admitted in hospital due to Asthma attack and passed away today morning. Cremation will be held at ooty on 4th Aug 2012. -- ** JAGANADH G http://jaganadhg.in *ILUGCBE* http://ilugcbe.org.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Job list (was: [JOB] Aspirae Bangalore)
On Mon, Jul 2, 2012 at 8:41 PM, Gora Mohanty g...@mimirtech.com wrote: On 3 July 2012 07:07, Anand Chitipothu anandol...@gmail.com wrote: On Tue, Jul 3, 2012 at 5:24 AM, Noufal Ibrahim nou...@nibrahim.net.in wrote: Having lots of job postings is a good sign of a healthy community. However, it does dilute the list a little. Sidu suggested a separate bangalore-python-jobs (or something similar) list. What's the general opinion? -1 -1 I think, I can sense the group feeling and agree with it by saying -1. :D -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python/Perl Scripting resource
Hi Saager, On Fri, May 25, 2012 at 05:39:33PM +0530, Saager Mhatre wrote: Senthil Kumaran sent...@uthcode.com writes: Could someone just point the OP to the Posting guidelines for this list, especially the ones around job postings? Yes, those are guidelines, not rules! :-) -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python/Perl Scripting resource
Hello Harpal, When you said resource, I thought you were looking for a book. Looks like you are looking for a developer. May I suggest you use the proper terminology in emails? Thank you, Senthil On Wed, May 23, 2012 at 10:35:43AM +, harpal.sin...@wipro.com wrote: Hello, I have an urgent requirement for a Python/Perl Scripter. If you are interested/available immediately, pls. reply to this mail with your contact number. Location: Bangalore JD: *Discuss with customer, Tool expert (Nagios monitoring tool) and understand the requirement *Develop scripts using Perl and/or Python language depending on the requirement *Test functionality of the scripts developed *Understand the existing scripts on Perl / Python languages and modify or enhance that same based on requirement *Troubleshoot fix issues to ensure desired functionality *Should have hands-on experience on Linux or any UNIX flavours *Very good communication and planning capabilities Thanks Best Regards, Harpal Singh E-mail: harpal.sin...@wipro.commailto:harpal.sin...@wipro.com Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python/Perl Scripting resource
Thanks Harpal. On Thu, May 24, 2012 at 11:50:18AM +, harpal.sin...@wipro.com wrote: OK thanks. Thanks Best Regards, Harpal Singh Mob: +91-81230-84445 E-mail: harpal.sin...@wipro.com -Original Message- From: Senthil Kumaran [mailto:sent...@uthcode.com] Sent: 24 May 2012 17:18 To: Harpal Singh (WT01 - Manufacturing Hi Tech); Bangalore Python Users Group - India Subject: Re: [BangPypers] Python/Perl Scripting resource Hello Harpal, When you said resource, I thought you were looking for a book. Looks like you are looking for a developer. May I suggest you use the proper terminology in emails? Thank you, Senthil On Wed, May 23, 2012 at 10:35:43AM +, harpal.sin...@wipro.com wrote: Hello, I have an urgent requirement for a Python/Perl Scripter. If you are interested/available immediately, pls. reply to this mail with your contact number. Location: Bangalore JD: *Discuss with customer, Tool expert (Nagios monitoring tool) and understand the requirement *Develop scripts using Perl and/or Python language depending on the requirement *Test functionality of the scripts developed *Understand the existing scripts on Perl / Python languages and modify or enhance that same based on requirement *Troubleshoot fix issues to ensure desired functionality *Should have hands-on experience on Linux or any UNIX flavours *Very good communication and planning capabilities Thanks Best Regards, Harpal Singh E-mail: harpal.sin...@wipro.commailto:harpal.sin...@wipro.com Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python/Perl Scripting resource
On Thu, May 24, 2012 at 06:42:56PM +0530, Noufal Ibrahim wrote: It's an abstraction a lot of companies use for person employed by the company. I consider it is dehumanising and have taken some flak for objecting to the term. Yeah, that's true. Does not quite sound right as I really thought they were looking for book or a website. A resource. More over if I deal with uniform resource locators often, I quite think that way!. :) As far as I can tell though, it's here to stay. The hiring staff, in my experience, take pride in being called the Human resource department. Yeah!. That did not strike me at all! How interesting.. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] May Meetup
On Sun, May 20, 2012 at 11:06:12PM +0530, Baiju M wrote: You can replace remote execution systems like Fabric Capistrano with Salt. Also you can replace configuration management systems like Puppet, Chef CFEngine. Wow! Just a pinch of Salt sounds interesting. :) -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Fw: [Python-Dev] [RELEASED] Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3
It's an important release. On Wed, Apr 11, 2012 at 03:37:49PM -0400, Benjamin Peterson wrote: We're bursting with enthusiasm to announce the immediate availability of Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3. These releases included several security fixes. Note: Virtualenvs created with older releases in the 2.6, 2.7, 3.1, or 3.2 series may not work with these bugfix releases. Specifically, the os module may not appear to have a urandom function. This is a virtualenv bug, which can be solved by recreating the broken virtualenvs with the newer Python versions. The main impetus for these releases is fixing a security issue in Python's hash based types, dict and set, as described below. Python 2.7.3 and 3.2.3 include the security patch and the normal set of bug fixes. Since Python 2.6 and 3.1 are maintained only for security issues, 2.6.8 and 3.1.5 contain only various security patches. The security issue exploits Python's dict and set implementations. Carefully crafted input can lead to extremely long computation times and denials of service. [1] Python dict and set types use hash tables to provide amortized constant time operations. Hash tables require a well-distributed hash function to spread data evenly across the hash table. The security issue is that an attacker could compute thousands of keys with colliding hashes; this causes quadratic algorithmic complexity when the hash table is constructed. To alleviate the problem, the new releases add randomization to the hashing of Python's string types (bytes/str in Python 3 and str/unicode in Python 2), datetime.date, and datetime.datetime. This prevents an attacker from computing colliding keys of these types without access to the Python process. Hash randomization causes the iteration order of dicts and sets to be unpredictable and differ across Python runs. Python has never guaranteed iteration order of keys in a dict or set, and applications are advised to never rely on it. Historically, dict iteration order has not changed very often across releases and has always remained consistent between successive executions of Python. Thus, some existing applications may be relying on dict or set ordering. Because of this and the fact that many Python applications which don't accept untrusted input are not vulnerable to this attack, in all stable Python releases mentioned here, HASH RANDOMIZATION IS DISABLED BY DEFAULT. There are two ways to enable it. The -R commandline option can be passed to the python executable. It can also be enabled by setting an environmental variable PYTHONHASHSEED to random. (Other values are accepted, too; pass -h to python for complete description.) More details about the issue and the patch can be found in the oCERT advisory [1] and the Python bug tracker [2]. Another related security issue fixed in these releases is in the expat XML parsing library. expat had the same hash security issue detailed above as Python's core types. The hashing algorithm used in the expat library is now randomized. A few other security issues were fixed. They are described on the release pages below. These releases are production releases. Downloads are at http://python.org/download/releases/2.6.8/ http://python.org/download/releases/2.7.3/ http://python.org/download/releases/3.1.5/ http://python.org/download/releases/3.2.3/ As always, please report bugs to http://bugs.python.org/ Happy-to-put-hash-attack-issues-behind-them-ly yours, The Python release team Barry Warsaw (2.6), Georg Brandl (3.2), and Benjamin Peterson (2.7 and 3.1) [1] http://www.ocert.org/advisories/ocert-2011-003.html [2] http://bugs.python.org/issue13703 ___ Python-Dev mailing list python-...@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/senthil%40uthcode.com ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Help pyqt learning guide.
Hello Ganesh, The best way to learn GUI development is to develop a simple application. The tutorials can assist you - http://zetcode.com/tutorials/pyqt4/ But set yourself a target - like a GUI application using which you can post to your blog. Try doing this and you should be in the right path. You could share with the group once you have something to show! Thanks, Senthil On Fri, Mar 30, 2012 at 03:04:01PM +0530, Ganesh Kumar wrote: Hi guys, I am new to pyqt. please suggest any good material to understand pyqt. please guide me. -Ganesh. Did I learn something today? If not, I wasted it. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] JOB - Senior Web Developer - Talented Team!
On Fri, Mar 16, 2012 at 11:38:09AM +0530, Anand Balachandran Pillai wrote: Bad karma. I should set the return address for the group to the sender perhaps :) Now, that would result in bad karma not the previous email. :) -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Https and http difference in behaviour urllib2
On Sat, Mar 03, 2012 at 09:41:57AM +0530, Baiju M wrote: On Sat, Mar 3, 2012 at 9:32 AM, Senthil Kumaran sent...@uthcode.com wrote: On Wed, Feb 29, 2012 at 08:21:31PM +, Anand Chitipothu wrote: [...snip...] I disagree. People look for simplicity. Yes, I agree that in general, people appreciate simplicity. I too. My previous comment was more aligned with how I read it in what people liked in requests. Rough thoughts were along the lines like .get, .post with data, .head etc and managing certs. All these are split across different modules in stdlib and I found that requests provided it a single place and useful entry for people doing most-common operations. Sometimes features are very important. I stared using requests for one work, but later I found that it is not thread safe, then I switched to urllib3: http://urllib3.readthedocs.org/en/latest/index.html That sounds interesting. I had looked at urllib3 only during its early and did not follow that. I think, I should revisit all those stock. Looks like the author of httplib2 just updated with some useful features too. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Https and http difference in behaviour urllib2
On Wed, Feb 29, 2012 at 08:21:31PM +, Anand Chitipothu wrote: 2012/2/29 Senthil Kumaran sent...@uthcode.com: On Tue, Feb 28, 2012 at 03:17:53PM +0530, Anand Balachandran Pillai wrote: For any kind of client side HTTP coding, I suggest the new requests library. I myself have been a heavy user of urllib2/urllib but these libraries are developer unfriendly and doesnt look like their problems are going to get fixed soon. :-) It should be fixed soon. What I have realized is, people look for comforts than features. requests provides comfortable interfaces, building on top of urllib2. I think, those interfaces could find a way within the lib. I disagree. People look for simplicity. Yes, I agree that in general, people appreciate simplicity. I too. My previous comment was more aligned with how I read it in what people liked in requests. Rough thoughts were along the lines like .get, .post with data, .head etc and managing certs. All these are split across different modules in stdlib and I found that requests provided it a single place and useful entry for people doing most-common operations. Thanks, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Https and http difference in behaviour urllib2
On Tue, Feb 28, 2012 at 03:17:53PM +0530, Anand Balachandran Pillai wrote: For any kind of client side HTTP coding, I suggest the new requests library. I myself have been a heavy user of urllib2/urllib but these libraries are developer unfriendly and doesnt look like their problems are going to get fixed soon. :-) It should be fixed soon. What I have realized is, people look for comforts than features. requests provides comfortable interfaces, building on top of urllib2. I think, those interfaces could find a way within the lib. Thanks, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Https and http difference in behaviour urllib2
On Wed, Feb 22, 2012 at 6:04 PM, Amit Sethi amit.pureene...@gmail.com wrote: When I pass encoded url using http it again encodes the parameters whereas in case of https it does not urlencode again It should not happen this way. Both should behave the same for the url that you send. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python private coach?
Hi Kenneth, On Wed, Feb 08, 2012 at 03:17:06PM +0530, Kenneth Gonsalves wrote: I do private one-to-one coaching in python and django. I am based in Was the group response intentional? If so, appreciate that!. :-) Thanks, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] turbogears to pyramid or django
Moving to Pyramid might be easier, because Pyramid is nothing but Pylons + TG + repoze.bfg etc. Pyramid is a unification and based upon some of the ealier framework. You could use sqlalchemy, controller and developmemnt.ini of your existing project out of box for Pyramid (but not for django). I am not sure what is tg2env. On Thu, Feb 02, 2012 at 01:01:00AM +0530, Saju M wrote: HI, I have a project developed in turbogears, i want to move it to Pyramid or Django, which is the best option ??? I am using following feature of TG2 controller sqlalchemy tg2env developement.ini Not using any template system, since UI developed using EXTJS Reason to this change is, Pylons stopped further support for TG2. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] checking return status of 'ping' in windows
On Sat, Jan 21, 2012 at 11:59:40PM +0530, Nikunj Badjatya wrote: How do I make my snippet to work as desired. i.e even if destination host is unreachable, 'status' should hold '1' and hold '0' only when it gets reply from that ip address.?? You are doing it right with subprocess and you can extend the same. Why don't you parse the output of the ping instead of the checking the output status? When the interpretation of output status can be ambiguous, as in your case, it is good to verify the content of the output and assert it's suitability for the next action that you wish to perform. HTH, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] checking return status of 'ping' in windows
On Mon, Jan 23, 2012 at 11:12:38AM +0530, Mandar Vaze / मंदार वझे wrote: If OP has requirements to run the code on non-english OS setup (Japanese, Did he mention about it ? If he did, then I might have missed it and yeah, true some other strategy has to be adopted. Moreover, dealing with non-english is a different beast altogether. If not, one should not find reasons to shy away from writing simple, useful and solving the purpose solutions. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python 3 availability
It is currently available on Ubuntu, Fedora, Arch OS that I know off. You can install it using your OS package manager. -- Senthil On Thu, Jan 19, 2012 at 04:06:58PM +0530, Jins Thomas wrote: Hi all, Would like to have some guesses on when Python 3 will be available with standard distributions of Linux/Unix. Cheers Jins Thomas ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] getpython3
Hi Baiju, Is getpython3.com the same site that you initiated here last year? Or has it gone any transformation? The content is ofcourse very interesting. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] getpython3
On Wed, Jan 18, 2012 at 06:07:43PM +0530, Baishampayan Ghose wrote: That is not the one I started, this is a new one from Jesse Noller. getpython3.net I stopped as there was not any interest from the community. If anyone want to take over it, I can give the domain and other details. May be you should just redirect getpython3.net to getpython3.com with a 301. Yeah. that would be good idea. I think the author of getpython3.comm could have contributed to original one, but yeah the purpose seems to be same. So, it is fine. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] getpython3
On Wed, Jan 18, 2012 at 06:37:26PM +0530, Baishampayan Ghose wrote: That is not the one I started, this is a new one from Jesse Noller. getpython3.net I stopped as there was not any interest from the community. If anyone want to take over it, I can give the domain and other details. May be you should just redirect getpython3.net to getpython3.com with a 301. Done. Awesome! Cool. By the time I sent the draft email. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] getpython3
On Wed, Jan 18, 2012 at 09:51:02PM +0530, Noufal Ibrahim wrote: getpython3.com was a more comprehensive site with information on porting and increasing Python3 adoption and usage. In all fairness, I recollect that Jesse tweeted/emailed us about collaborating but it fell between the cracks and never really took off. I see. That's pretty good and good that it is redirected to the active one now. thanks, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python ORM
On Sat, Jan 14, 2012 at 09:40:16PM +0530, kracekumar ramaraju wrote: Out all examples and discussions, every one seems to recommend SQLAlchemy, but it has deep learning curve whereas storm, peewee are light weight. Have anyone tried any of these for non-trivial project or real life big sites, in case yes please share the experience. I would use anything that is easy for me to get started, understand and it go's well with the project in the production. I have used Storm in Production and have used SQLAlchemy, custom written ORM, Appengine db , plain SQL etc. Have had no issues so far. May be you should do the same. Pick one and get going? -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] I have solved some of the project euler problems in python
Very nice. I have found Euler' problems focusing on maths a lot. I could have only solve a couple of them, this thread kindles my interest to try more. :) Senthil On Thu, Jan 12, 2012 at 11:48:26PM +0530, Anand Balachandran Pillai wrote: Hi Reddy, I had solved some 50 or odd euler problems in 2006 in Python. I have the solutions saved somewhere in my laptop. I will look at yours and probably try to publish mine as well. It is quite an interesting project. --Anand On Thu, Jan 12, 2012 at 1:31 PM, Sreenivas Reddy T thatiparthysreeni...@gmail.com wrote: Sorry!! Here is the link.. https://github.com/srinivasreddy/euler Thanks Regards, Sreenivas Reddy Thatiparthy, 9703888668. Anyone who has never made a mistake has never tried anything new !!! --Albert Einstein On Thu, Jan 12, 2012 at 1:30 PM, Sreenivas Reddy T thatiparthysreeni...@gmail.com wrote: Hi , I have solved 32 of project euler problems in python.If you anybody interested please take a look at them. Any kind of feedback is welcome. I am planning to solve more of them in future. Another question i have is,do these worth mention on resume?I feel more like these should be in hobby section. P.S: i never googled for a solution . :) Thanks Regards, Sreenivas Reddy Thatiparthy, Anyone who has never made a mistake has never tried anything new !!! --Albert Einstein ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers -- --Anand ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [X-POST] Selenium Simple Test
On Wed, Jan 11, 2012 at 09:16:04AM +0530, Venkatraman S wrote: This does look super-simple! Linky : http://www.youtube.com/watch?v=qGPostUOAEI Looks pretty simple. But the XPATH based expression language exposed via selenium is not hard either. That ties with the browser well and most often when we have to determine the correct DOM for the elements in the path, anything browser based becomes more useful. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Is there any relation between web2py and webpy
Other than the fact that they are both web frameworks. Given their levenshtein distance being 1, I am really curious if there any social or historical relationship between then. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Truth Tests (bool)
On Wed, Jan 11, 2012 at 09:49:58AM +0530, Noufal Ibrahim wrote: It is not clear what you want from your description. To check if a list is empty, see if len( list ) is zero. You don't want to do that. Your list might be a generator (unless you check for type which is a bad idea anyway) and lening that will consume it which might be a potentially expensive operation. While the explaination on __nonzero__ is useful out of this context, how can list be a generator? I am assuming that none are confusing the terminologies. In practical cases for testing boolean in lists, just use the list as the test. Empty list is false. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Is there any relation between web2py and webpy
On Wed, Jan 11, 2012 at 06:34:14PM +0530, Anand Chitipothu wrote: No. Ok. It's good coincidence. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Is there any relation between web2py and webpy
On Wed, Jan 11, 2012 at 08:43:07PM +0530, Gora Mohanty wrote: So is the distance between Gora and Gori (apply smileys as needed). Wow! And I believe that would make a dynamic programming pair. (ditto) -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Truth Tests (bool)
On Tue, Jan 10, 2012 at 10:55:58PM +0530, Gora Mohanty wrote: To check if a list is empty, see if len( list ) is zero. I think, usually we just test the empty list for it's False-ness. Isn't it? -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python framework for android
On Tue, Jan 10, 2012 at 10:13 AM, Anand Chitipothu anandol...@gmail.com wrote: If it has Java, why not use write the apps in Python using Jython? I recollect that for using Jython for mobiles where j2me was previously suitable is not possible because jython does not work well with j2me kind of class/libraries. It is more for standard java (java SE) and I guess, similar arguments hold for android too and that is why a lot of projects are spawning trying to support jython on android. For mixing it pure java applications, Jython is fanastic. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Alternate to XMLRPCServer
On Fri, Jan 6, 2012 at 12:59 AM, Senthil skksun...@yahoo.co.in wrote: I have an xmlRPC standalone server written wholly in python. Now am facing problems in scaling the services. The more we start adding features, the response gets slower. Is there any alternate server architectures i should start thinking of ? This server works on basis of threaded architecture and am seeing some complaints about threading in python. Should i be considering anything else ? Please advise. As others have advised well, twisted is really suitable candidate for this. Here is bit of strategy for you if you were to develop your first application using twisted (if the concept of reactors is new). - Follow the twisted tutorial right from the finger example. - At the point in the tutorial were your finger service is going to use xmlrpc, try 'fit-in' your requirements logic into that style. - Once you have small outline of that style of program working for multiple parallel connections go head with making your program complete. If you would like to relish in understanding the concepts underlying twisted, look at the documentation written by dave peticolas. They are really good. HTH, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python framework for android
You can use django and fireup the browser in android to do the requests. :) Apart from that, there is android-scripting application (not a framework) http://code.google.com/p/android-scripting/, where in your restricted python scripts can be made to execute But that is far less featured than using Android SDK itself. I have seen people going back to SDK after trying the scripting environment for a while. -- Senthil On Wed, Jan 4, 2012 at 2:07 PM, Kenneth Gonsalves law...@gmail.com wrote: hi, can anyone recommend a python framework for android? -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python framework for android
On Wed, Jan 4, 2012 at 2:18 PM, Kenneth Gonsalves law...@gmail.com wrote: am looking at kivy right now Looks neat. I would like to try that one too. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] colored o/p
Nitin Kumar nitin.n...@gmail.com writes: I am trying to format o/p (colored bold string) on console. say IDLE or python command prompt using python modules. urwid is a library which can handle those for you. Give a try! It is very close to what ncurses can be used for. HTH, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Selenium with python training
On Thu, Nov 17, 2011 at 12:43:27PM +0530, Kenneth Gonsalves wrote: On Thu, 2011-11-17 at 15:07 +0800, Senthil Kumaran wrote: BTW, selenium is web functional testing, more like how user uses the web app. It provides hooks to variety of languages, python being one. Javascript knowledge would be more desirable for selenium than python. javascript? not java? I think, while recording the tests with selenium ide, DOM, XPATH, CSS and id know-hows were more useful than anything else. These concepts are language agnostic, but given that many times we try to test the javascript events on browser, I thought javascript is more useful. Java is for mobile /server side these days, right? :) -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Selenium with python training
Are you sure, you found this email list? Never mind, but I think it is good email for someone who is willing to take a training session to contact Nirmal directly. BTW, selenium is web functional testing, more like how user uses the web app. It provides hooks to variety of languages, python being one. Javascript knowledge would be more desirable for selenium than python. Thanks, Senthil On Thu, Nov 17, 2011 at 3:03 PM, Nirmal Kumar A S nirma...@aditi.com wrote: Dear all, Good morning. This is Nirmal from Aditi technologies, and looking after a training request on Selenium with python. As I surfed, found your names interesting and suitable. The training need has time constraint. (as early as this weekend). Can you please help us here? Reach me on mails for quick response! Thank you. Regards, Nirmal Kumar A S, 9901405193 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] seantis questionnaire - Django App
Right in this list, by asking. https://github.com/rmt/seantis-questionnaire/wiki :-) On Mon, Nov 14, 2011 at 01:52:37PM +, Asif Jamadar wrote: Where i can get user manual or tutorial for seantis questionnaire django application? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [OT] Yahoo Big Thinkers talk
OMG. I was the one who was trying to suggest that we be lenient. But this looks that fodder for yet another discussion. :( On Wed, Nov 9, 2011 at 4:48 PM, Sanjay Padubidri sanjaypadubi...@gmail.com wrote: Off topic, but people on the list may be interested in this talk: http://in.bigthinkers.yahoo.com/event.php?id=19 Topic: Representing Knowledge in Computers: A Surprising Development from the 1980’s and Its Importance for Today’s World By: Dr. Ronald J. Brachman, Vice President of Yahoo! Labs and Research Operations -Sanjay Padubidri ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] ubuntu fonts..
Yes +1 for Incosolata. It is best for programming and particularly for python programming. Here we use 'python' term in the email and it becomes relevant to this list. :) Also, check with Google Docs css they have Ubuntu font too. I am sure, python programming would look good in ubuntu font. I think, we have to learn the trick it seems, so that few ho are looking for python term do not get hurt. :) :) -- Senthil On Wed, Nov 9, 2011 at 2:11 PM, Gopalakrishnan Subramani gopalakrishnan.subram...@gmail.com wrote: You could try using inconsolata font ( http://www.levien.com/type/myfonts/inconsolata.html), a mono space font which is available for ubuntu and windows. I use with emacs all the way on windows and ubuntu both. On Wed, Nov 9, 2011 at 8:14 AM, Sreenivas Reddy T thatiparthysreeni...@gmail.com wrote: I should have mentioned that i googled but no success...thanks for the lmgtfy... :) On Nov 9, 2011 7:16 AM, Vinay Shastry vinayshas...@gmail.com wrote: On 8 November 2011 18:51, Sreenivas Reddy T thatiparthysreeni...@gmail.com wrote: Hi, Please pardon me for this off-topic post. I really like default font of ubuntu command line. I don’t know the name of it or I don’t know how to get the name of it. Anybody know the name of that font? Are they present in windows too? If they don’t come with windows (I use windows 7) by default where do I get them? http://lmgtfy.com/?q=ubuntu+font http://font.ubuntu.com/ -- Vinay S Shastry ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you
On Thu, Nov 03, 2011 at 11:09:28PM +0530, Noufal Ibrahim wrote: My favourite metrics to judge real ability are (in decreasing order of usefulness). I agree with all. Those are indeed good indicators of developers. When looking for freshers to hire for working Python, I indicated that just don't think for Python in resume. I think, It is irrelevant. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective
On Wed, Nov 02, 2011 at 09:37:32PM +0530, Rajeev J Sebastian wrote: Given that the fresher lacks knowledge in any given area, what kind of testing should we use? Since we do development in Python and Django, and so far no candidate has come to us with Python on their resume, what do you suggest we do? I can understand your situation. One possible suggestion is to pay well and hire smart students based upon their academic and project strengths and let them start new on whichever technologies you are using. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Calling Python from JavaScript
Hello Asif, On Tue, Nov 01, 2011 at 08:43:11AM +, Asif Jamadar wrote: Is there a simple way to call Python libraries from JavaScript? What do you ultimately intend to do with this requirement? You can do a HTTP Ajax request via javascript and then your server could delegate it to python controller. Is it such a requirement or you have some other thing in your mind? -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python OCR Reader
On Wed, Nov 2, 2011 at 11:17 AM, Gopalakrishnan Subramani gopalakrishnan.subram...@gmail.com wrote: I am trying to build a simple voice based advisory system for a simple Window game for my 19 month old daughter. Wow!. Sounds like an exciting project. It has to read the basic letters in a small game and where I put my voice for her to listen and direct her based on screen scenario. I am sorry, I fail to get where the hand written text or need for OCR comes in here. If you are developing the game you are having the total control of the text input. I did small experiments with tesseract. But not sure whether it is the best library in python world for most of my cases. AFAIK, yes. tesseract is the same engine used for book scanning in google books and python apis would be using the same engine. --- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python OCR Reader
On Mon, Oct 31, 2011 at 11:30:21AM +0530, Gopalakrishnan Subramani wrote: Anyone can give good advises on OCR tools in Python? Not necessarily native python tools even with python wrapper will be good. I would never tweak or change the source code or learn deep into OCR technology. I just want a lib sort of things and Python wrapper to know. I found http://code.google.com/p/pytesser/ and playing a little. But not sure how good it is. What is your purpose of using a tesseract client? Would you be extending it? The tesseract-ocr project (and it's binaries) is pretty well maintained and it works well on windows. I assume the python client to be good too. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective
Hi Vishal, On Mon, Oct 31, 2011 at 8:12 PM, Vishal vsapr...@gmail.com wrote: I am trying to get a feel of how it is to do freelance programming...in Python..in India ? I have some experience though not a good one, because I fared badly. I was in much need of money, so I had to return to corporate world. But, the brief time did give me some first hand experience. I feel, I am better equipped if I want to try that again. So, it would not be bad idea to try and learn for your friend. The best way to start would be get project from a known person who can trust you and deliver it. Good luck! Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Reg. current work in pycrypto
Hello Nivedita, On Mon, Oct 24, 2011 at 09:12:55AM +0530, nivedita datta wrote: Can anyone tell me about some projects or applications which has been built using pycrypto. Also I would like to know about any ongoing/past project or application development in pycrypto. Just check the PyCrypto website for all the information that you need. BTW, the last time I had an idea of using it, I felt it was not maintained properly, so I choose not to use it and instead build using the standard ssl support in the libraries/packages. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Interesting library
On Mon, Oct 17, 2011 at 01:48:04PM +0530, Noufal Ibrahim wrote: Came across this interesting library for sys-ad stuffs. http://docs.fabfile.org/en/1.2.2/index.html Isn't paramiko enough for most remote scripting tasks ? fabric is an abstraction over paramiko that's a lot more domain specific than just an ssh connection. It's similar to make in invocation. You say things like fab deploy fab rollback etc. Under lot of circumstances, I found wrapping ssh (with it's zillion options) far more flexible than using the libraries for remote scripting. This is applicable to even multi-threaded servers. I for one, yet to stumble upon a case where the above wrapper would fail. Thanks. Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Reportlab tool with SAP
On Mon, Oct 17, 2011 at 11:58:48AM +, Asif Jamadar wrote: Is it possible to integrate Reportlab tool with SAP? Integrate is a vague term. So the answer is yes!. :-) I want to generate graphs or charts for the data which is present in SAPDB. Don't know about SAPDB, but you can generate pdf or process text using Reportlab. I hope you can store those in SAPDB. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Looking for Guest Speaker on Python and NLTK
On Sat, Oct 15, 2011 at 10:19:17PM +0530, Anand Balachandran Pillai wrote: Some course from stanford on ml and ai. ml-class.org I have enrolled for this and I am currently taking the basic course lessons online. It is pretty good, I have an assignment on linear regression due tomorrow :) ai-class.org I am doing this. Just completed the assignment as well. It is pretty good. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] + SSL Error , while making HTTPS server
On Sat, Oct 15, 2011 at 02:24:08PM +0530, deepak gupta wrote: I am getting no OPENSSL_Applink while creating context for HTTPS server, It occur in the line 'ctx.set_tmp_dh('dh1024.pem')'. Do any one knows why this error occured and what will happen if I will comment 'ctx.set_tmp_dh('dh1024.pem')' line and proceed. Some explanation first. When dealing with SSL, you create an SSL Context object and then feed in the required certs, passphrases, keys etc and then give callbacks and actions to that. That is most of the systems are designed to work. In your case, you are using M2Crypto library to provide the SSL functionality. M2Crypto seem to have this method called set_tmp_dh and the dh stands for the diffee hellman algorithm and consuming the .pem certificate to be associated with the your ssl context object. If you the .pem certificate is of the format which is not applicable to the algorithm you are using, then you might get some errors. http://nullege.com/codes/search/M2Crypto.SSL.Context.set_tmp_dh http://www.openssl.org/docs/apps/dhparam.html My question is, how did you decide to use the set_tmp_dh method? Depending upon the requirement, you may choose to use it correctly or ignore it. 2nd problem is I am getting SSL.error : unexpected eof error, If I comment and proceed. You mean, if you ignore the set_tmp_dh method and then proceed? -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Selenium pyvirtualdisplay Script suggestions to improve
On Fri, Oct 07, 2011 at 11:20:46AM +0530, Saju M wrote: Here is the code for change Custom Location in google search page http://dpaste.com/629298/ log http://dpaste.com/629304/ I could run it on Remote Server. But its not working sometimes, because selenium can't find some The problem seems not with your code, but with google page which does not the geolocation based redirection to appropriate page. The remote server is obviously is not at the same spot as yours and is presented with a different page which does not have Change Location link. Look for the link which does not do the redirection. HTH, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Thoughts about Requests?
It is a wrapper over urllib2 and is gaining popularity. It is very easy to use and it intuitive in some sense. If all you require is using urllib like facilities, then request is helpful. But if you would like to extend it, then I am not sure of the facilities (or the pattern) it uses. On the whole, it looks like a positive thing which has caught attention. On Tue, Oct 11, 2011 at 12:53 PM, Diptanu Choudhury admin.nitj...@gmail.com wrote: https://github.com/kennethreitz/requests ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] How to create HTTPS Proxy server
Hello Deepak, On Fri, Oct 07, 2011 at 06:31:01PM +0530, deepak gupta wrote: 1. Proxy server (192.168.1.1) : HTTPS port (8000) binding on this server and user will access this server and browse some url's.for ex https://192.168.1.1:8000/xyz 2. This (proxy) server 192.168.1.1 will talk to another web server actual backend server (192.168.1.2: 8000) over HTTP/HTTPS . HTTPS proxy server will forward the request to the backend server and get back the response and then return to client browser. This is slightly involved task. What kind of libraries have look at? From your description, it looks to me that you are interested in a Reverse Proxy server than the forward proxy. If you use twisted to build servers, then you could use twisted.web to write the https proxy server which would be forwarding the requests to another resource. http://twistedmatrix.com/documents/11.0.0/api/twisted.web.html Apart from that there seems to be plethora of libraries and tools trying to do that, which you can use. Squid reverse proxy also is easy to configure if you would like to for an out of box solution. We have created but it is hanging and sometime not returning full data. Details? -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] selenium click not working fot some links
On Tue, Oct 04, 2011 at 07:01:07PM +0530, Saju M wrote: I could find that some padding is given for that link, is that the issue ?? Could be. But if you can help by send the full script for others to try or share the exception that would be helpful so that we can understand the problem better. Thanks, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] selenium pyvirtualdisplay script on remote server
On Thu, Oct 06, 2011 at 10:23:17AM +0530, Saju M wrote: I already tested with scroll bar and focus and its working finw in my laptop. But when i run this script on Remote Server, it can't find that element.?? You could try putting some debugging prints in this script and what the values are on local vs remote server. Personally, I could not see any problem with the below script. Print the values of display, driver and focus values. Introspect the objects that you get. Thanks, Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Using Facebook graph api in a page tab application
On Mon, Oct 03, 2011 at 09:50:00PM +0530, Amit Sethi wrote: This is a page tab application running inside iframe . This seems to be quite a used workflow I did not quite get this, if you have pointer to the app it would be helpful. As the documentation say As with a Canvas Page, you will not receive all the user information accessible to your app in the signed_request until the user authorizes your app. This is straight forward. All it says is the user should be authenticated via facebook api. Can someone tell me what I have missed in this workflow and how I can get data/signed_request in relation to the changed permission status. Here is a simple facebook demo application. https://apps.facebook.com/gexplvl/ It uses the facebook api for appengine and authenticates itself using api and redirects the user back to the application running in the canvas element. Here is the code if it is of any help. http://uthcode.googlecode.com/svn/trunk/languages/python/appengine/appexplevl/ -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python3's Most Wanted!
Yes, but that is only suggestive, but still good to know as what most people are using. http://py3ksupport.appspot.com/ gives details on packages having py3k support. On Tue, Oct 04, 2011 at 10:42:20PM +0530, Anand Balachandran Pillai wrote: Did anyone see this ? http://www.python.org/3kpoll -- --Anand ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python 3.2 and Django
Hello Hussain, On Thu, Sep 29, 2011 at 12:53 PM, Hussain Bohra hussainbohra...@yahoo.com 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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python 2.7.1 build successful, however many modules failed on HP-UX 11.31 ia64 with aCC
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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Parsing data
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 XX XX XX NN CATTTCCTTGAGTATTAGGCCATTCATGCTGTCAACTTAACT ATTTGGAAATCCTAGTTGTACAAGATGGCCTCCCACCTGTATTTGC TTGGTCTGTGTACTGTAGTCTGCCTCTGCAAATGTTGTGGGAGGACTAAA TGTGGCGTGGGCTGACAG 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@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] problem using Pyserial in Python
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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] wx.TreeCtrl !
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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] RE : Python mechanize Change the Location of Google search
On Thu, Sep 15, 2011 at 3:31 PM, Saju M sajup...@gmail.com 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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [JOB] - Yahoo!
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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] List guidelines (was: [JOB] - Yahoo!)
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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] List guidelines
On Wed, Sep 14, 2011 at 06:27:10PM +0530, Noufal Ibrahim wrote: Senthil Kumaran sent...@uthcode.com 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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] List guidelines
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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] List guidelines
On Wed, Sep 14, 2011 at 9:26 PM, Noufal Ibrahim nou...@gmail.com 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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [JOB] - Yahoo!
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 ramkr...@gmail.com wrote: On Tue, Sep 13, 2011 at 11:51 AM, Gora Mohanty g...@mimirtech.com 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. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [JOB] - Yahoo!
On Tue, Sep 13, 2011 at 3:38 PM, Noufal Ibrahim nou...@gmail.com 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 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers