From codeshepherd at gmail.com Mon Feb 1 06:06:55 2010 From: codeshepherd at gmail.com (Deepan Chakravarthy) Date: Mon, 1 Feb 2010 10:36:55 +0530 Subject: [BangPypers] Bangalore Facebook Developers Message-ID: Hi All, We are planning to organize Facebook developers meet in Bangalore every month on 4th sunday. If you are interested in participating please join http://groups.google.com/group/bangalore-facebook-developers http://www.facebook.com/group.php?gid=292286422291 Regards Deepan +91 9945702482 http://www.hashcube.com http://twitter.com/codeshepherd From abpillai at gmail.com Mon Feb 1 09:02:22 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 1 Feb 2010 13:32:22 +0530 Subject: [BangPypers] Pointers on where to try for internships In-Reply-To: References: <3f347f5c1001310024u599e20a8ofc2c525d0e59ac17@mail.gmail.com> <7ECAA22F-B8CB-473C-9296-331082C4EFA4@btbytes.com> Message-ID: <8548c5f31002010002u3a1d673bu26177a7df0deacf6@mail.gmail.com> On Mon, Feb 1, 2010 at 2:18 AM, Shashwat Anand wrote: > Any mentor on this list ? > I for sure is trying, it'l be python but havn't decided on organization > yet. > > GSoC 2010 process has started. Read this thread at http://bit.ly/cbcqHu . I am planning to be a mentor this time, but not decided on a project yet. > On Mon, Feb 1, 2010 at 12:42 AM, Pradeep Gowda > wrote: > > > Have you considered google summer of code. G soc attracts very good > mentors > > across the python ecosphere. > > > > +pg > > Sent from my iPhone. > > > > > -- --Anand From srinivas_thatiparthy at akebonosoft.com Mon Feb 1 11:38:05 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 1 Feb 2010 16:08:05 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: <8548c5f31001302343n749c4bf6v93330fe19a4b5dbc@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2D563@astserver3.akebonosoft.com> >> As Noufal said, don't become a language specialist, as that amounts to limiting yourself too much upfront. . I didn't get this point. I would like to know.please clarify on this point >>>.In my experience, companies prefer well-skilled generalists than deeply skilled specialists, unless one is an ultimate genius in what he does and irreplacable. This point also, because i want to be a python,c# specialist.Your answer help me a great deal.Please clarify. Thanks AB. Regards, ~ Srini T From abpillai at gmail.com Mon Feb 1 11:58:04 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 1 Feb 2010 16:28:04 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2D563@astserver3.akebonosoft.com> References: <8548c5f31001302343n749c4bf6v93330fe19a4b5dbc@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2D563@astserver3.akebonosoft.com> Message-ID: <8548c5f31002010258u62fbe774kf1923f1fe36094c3@mail.gmail.com> On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > >> As Noufal said, don't become a language specialist, as that amounts > to limiting yourself too much upfront. . > I didn't get this point. I would like to know.please clarify on this > point > In a gist, let us say you decide to be a Python specialist and focus only on Python. However as you go along, you will find that Python has borrowed many concepts from other languages and from generic CS patterns, so it is not an island. For example, you will find that generators are specialized co-routines and you might find yourself checking out similar concepts in other languages like erlang/haskell or even Java. No programming language is an island and every advanced feature of any programming language will be present in other languages - perhaps under other names. So instead of becoming a Python specialist, if you try and expand your knowledge of programming languages as a whole, it will help you to pick up any language as you progress, since you can quickly grasp the underlying patterns. For example, OOP. If you have learned OOP in C++, then it is the same concept carried through in Java, Python everywhere, except that the details differ. If you however compartmentalize your language learnings, you might fail to recognize common features across languages and this can impair your learning in the long term and make you, well a lesser programmer. That is the academic aspect of it. The more pragmatic aspect is that if you limit yourselves, you are excluding your chance of working in projects that require multiple skills say C/Python or Java/Python. That is what I meant by being a multi-skilled generalist than a deeply skilled specialist - so this answers the question below also, I hope. > > >>>.In my experience, companies prefer well-skilled generalists than > deeply skilled specialists, unless one is an ultimate genius in what he > does and irreplacable. > This point also, because i want to be a python,c# specialist.Your > answer help me a great deal.Please clarify. > > Thanks AB. > > Regards, > ~ Srini T > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From srinivas_thatiparthy at akebonosoft.com Mon Feb 1 11:55:11 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 1 Feb 2010 16:25:11 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: <8548c5f31002010258u62fbe774kf1923f1fe36094c3@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2D569@astserver3.akebonosoft.com> Thanks a lot.... Regards, ~ Srini T -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.o rg] On Behalf Of Anand Balachandran Pillai Sent: Monday, February 01, 2010 4:28 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Future of Python Programmers On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > >> As Noufal said, don't become a language specialist, as that > >> amounts > to limiting yourself too much upfront. . > I didn't get this point. I would like to know.please clarify on this > point > In a gist, let us say you decide to be a Python specialist and focus only on Python. However as you go along, you will find that Python has borrowed many concepts from other languages and from generic CS patterns, so it is not an island. For example, you will find that generators are specialized co-routines and you might find yourself checking out similar concepts in other languages like erlang/haskell or even Java. No programming language is an island and every advanced feature of any programming language will be present in other languages - perhaps under other names. So instead of becoming a Python specialist, if you try and expand your knowledge of programming languages as a whole, it will help you to pick up any language as you progress, since you can quickly grasp the underlying patterns. For example, OOP. If you have learned OOP in C++, then it is the same concept carried through in Java, Python everywhere, except that the details differ. If you however compartmentalize your language learnings, you might fail to recognize common features across languages and this can impair your learning in the long term and make you, well a lesser programmer. That is the academic aspect of it. The more pragmatic aspect is that if you limit yourselves, you are excluding your chance of working in projects that require multiple skills say C/Python or Java/Python. That is what I meant by being a multi-skilled generalist than a deeply skilled specialist - so this answers the question below also, I hope. > > >>>.In my experience, companies prefer well-skilled generalists than > deeply skilled specialists, unless one is an ultimate genius in what > he does and irreplacable. > This point also, because i want to be a python,c# specialist.Your > answer help me a great deal.Please clarify. > > Thanks AB. > > Regards, > ~ Srini T > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From pasokan at gmail.com Mon Feb 1 12:13:15 2010 From: pasokan at gmail.com (Asokan Pichai) Date: Mon, 1 Feb 2010 16:43:15 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2D569@astserver3.akebonosoft.com> References: <8548c5f31002010258u62fbe774kf1923f1fe36094c3@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2D569@astserver3.akebonosoft.com> Message-ID: <5de036dc1002010313se674410w46c070efa39aabb6@mail.gmail.com> Let me use one > On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > >> >> As Noufal said, don't become a language ?specialist, as that >> >> amounts >> to limiting yourself too much ?upfront. . >> I didn't get this point. I would like to know.please clarify on this >> point >> Let me use an analogy--a favourite of mine. Let us say there is a two-wheeler mechanic. He puts up a board, "I am the best expert in using the monkey wrench. I fix any problem in a two-wheeler using nothing but my trusted monkey wrench". Would you use his services? Programming languages are tools. It is okay to have favourites. It is a given that each language is good in a set of areas. It is also agreed that you can do better with a language you know well, than with a language you dont know well, even for problems unsuited for your favourite language. But they are still tools. So develop an expertise in two wheelers not monkey wrenches. HTH and all the best -- Asokan Pichai *-------------------* We will find a way. Or, make one. (Hannibal) From abpillai at gmail.com Mon Feb 1 12:13:20 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 1 Feb 2010 16:43:20 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2D569@astserver3.akebonosoft.com> References: <8548c5f31002010258u62fbe774kf1923f1fe36094c3@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2D569@astserver3.akebonosoft.com> Message-ID: <8548c5f31002010313r4c858918w1709c6db18495dd6@mail.gmail.com> On Mon, Feb 1, 2010 at 4:25 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > Thanks a lot.... > Just to clarify what I meant by a deeply skilled specialist who is a genius, you are better off becoming such a genius in a domain, rather than in a programming language. Because at the end of the day, programming languages are nothing but tools to get the job at hand, done. In the general population there can be very few geniuses in programming languages, but invariably they are also good in what they do, i.e domain - Paul Graham, the lisp guru is an example that immediately comes to mind. That is not to say that you shouldn't learn a language well - do so by all means, but develop your skills in a few domains also, otherwise you might end up as the specialist in search for work similar to a solution in search of a problem... > > > Regards, > ~ Srini T > > -----Original Message----- > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org > [mailto:bangpypers-bounces+srinivas_thatiparthy > =akebonosoft.com at python.o > rg] On Behalf Of Anand Balachandran Pillai > Sent: Monday, February 01, 2010 4:28 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Future of Python Programmers > > On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > > > >> As Noufal said, don't become a language specialist, as that > > >> amounts > > to limiting yourself too much upfront. . > > I didn't get this point. I would like to know.please clarify on this > > point > > > > In a gist, let us say you decide to be a Python specialist and focus > only on Python. However as you go along, you will find that Python has > borrowed many concepts from other languages and from generic CS > patterns, so it is not an island. For example, you will find that > generators are specialized co-routines and you might find yourself > checking out similar concepts in other languages like erlang/haskell or > even Java. No programming language is an island and every advanced > feature of any programming language will be present in other languages - > perhaps under other names. So instead of becoming a Python specialist, > if you try and expand your knowledge of programming languages as a > whole, it will help you to pick up any language as you progress, since > you can quickly grasp the underlying patterns. > > For example, OOP. If you have learned OOP in C++, then it is the same > concept carried through in Java, Python everywhere, except that the > details differ. If you however compartmentalize your language learnings, > you might fail to recognize common features across languages and this > can impair your learning in the long term and make you, well a lesser > programmer. > > That is the academic aspect of it. The more pragmatic aspect is that if > you limit yourselves, you are excluding your chance of working in > projects that require multiple skills say C/Python or Java/Python. That > is what I meant by being a multi-skilled generalist than a deeply > skilled specialist - so this answers the question below also, I hope. > > > > > > >>>.In my experience, companies prefer well-skilled generalists than > > deeply skilled specialists, unless one is an ultimate genius in what > > he does and irreplacable. > > This point also, because i want to be a python,c# specialist.Your > > answer help me a great deal.Please clarify. > > > > Thanks AB. > > > > Regards, > > ~ Srini T > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From rmathews at gmail.com Mon Feb 1 12:13:41 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Mon, 1 Feb 2010 16:43:41 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2D563@astserver3.akebonosoft.com> References: <8548c5f31001302343n749c4bf6v93330fe19a4b5dbc@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2D563@astserver3.akebonosoft.com> Message-ID: <1c4dc2781002010313p4424ea6fp58e2887f4641dd21@mail.gmail.com> On Mon, Feb 1, 2010 at 16:08, Srinivas Reddy Thatiparthy wrote: >>> As Noufal said, don't become a language ?specialist, as that amounts > to limiting yourself too much ?upfront. . > I didn't get this point. I would like to know.please clarify on this > point > >>>>.In my experience, companies prefer ?well-skilled generalists than > deeply skilled specialists, unless ?one is an ultimate genius in what he > does and irreplacable. > This point also, because i want to be ?a python,c# ?specialist.Your > answer help me a great deal.Please clarify. > I came across this recently: http://nathanmarz.com/blog/john-mccarthy/ Might be relevant to the "don't be a language lawyer" advice. :) Roshan Mathews From srinivas_thatiparthy at akebonosoft.com Mon Feb 1 12:22:57 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 1 Feb 2010 16:52:57 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: <5de036dc1002010313se674410w46c070efa39aabb6@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2D57A@astserver3.akebonosoft.com> OMG! This is the best of piece of advice I have ever got. Thanks a lot to Roshan,Asokan( you r an IIT prof,right? [If my memory is correct].If so,I still remember your grey hair Jokes :) , No offence ) . Regards, ~ Srini T -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org] On Behalf Of Asokan Pichai Sent: Monday, February 01, 2010 4:43 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Future of Python Programmers Let me use one > On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > >> >> As Noufal said, don't become a language ?specialist, as that >> >> amounts >> to limiting yourself too much ?upfront. . >> I didn't get this point. I would like to know.please clarify on this >> point >> Let me use an analogy--a favourite of mine. Let us say there is a two-wheeler mechanic. He puts up a board, "I am the best expert in using the monkey wrench. I fix any problem in a two-wheeler using nothing but my trusted monkey wrench". Would you use his services? Programming languages are tools. It is okay to have favourites. It is a given that each language is good in a set of areas. It is also agreed that you can do better with a language you know well, than with a language you dont know well, even for problems unsuited for your favourite language. But they are still tools. So develop an expertise in two wheelers not monkey wrenches. HTH and all the best -- Asokan Pichai *-------------------* We will find a way. Or, make one. (Hannibal) _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From anand.shashwat at gmail.com Mon Feb 1 14:31:37 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 1 Feb 2010 19:01:37 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2D57A@astserver3.akebonosoft.com> References: <5de036dc1002010313se674410w46c070efa39aabb6@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2D57A@astserver3.akebonosoft.com> Message-ID: freaking awesome and enlightening replies. Thanks. On Mon, Feb 1, 2010 at 4:52 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > OMG! This is the best of piece of advice I have ever got. > Thanks a lot to Roshan,Asokan( you r an IIT prof,right? [If my memory is > correct].If so,I still remember your grey hair Jokes :) , No offence ) . > > > > > Regards, > ~ Srini T > > -----Original Message----- > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org[mailto: > bangpypers-bounces+srinivas_thatiparthy > =akebonosoft.com at python.org] On Behalf Of Asokan Pichai > Sent: Monday, February 01, 2010 4:43 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Future of Python Programmers > > Let me use one > > > On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy < > > srinivas_thatiparthy at akebonosoft.com> wrote: > > > >> >> As Noufal said, don't become a language specialist, as that > >> >> amounts > >> to limiting yourself too much upfront. . > >> I didn't get this point. I would like to know.please clarify on this > >> point > >> > > Let me use an analogy--a favourite of mine. Let us say there is a > two-wheeler mechanic. > He puts up a board, "I am the best expert in using the monkey wrench. > I fix any problem > in a two-wheeler using nothing but my trusted monkey wrench". > > Would you use his services? > > Programming languages are tools. It is okay to have favourites. It is a > given that each language is good in a set of areas. It is also agreed that > you can do better with a language you know well, than with a language you > dont know well, even for problems unsuited for your favourite language. > > But they are still tools. So develop an expertise in two wheelers not > monkey wrenches. > > HTH and all the best > > -- > Asokan Pichai > *-------------------* > We will find a way. Or, make one. (Hannibal) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Tue Feb 2 06:51:15 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 2 Feb 2010 11:21:15 +0530 Subject: [BangPypers] [OT] Mark Pilgrim on the setup Message-ID: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> Not exactly Python related but I quite enjoyed Mark Pilgrims interview on the setup http://mark.pilgrim.usesthis.com/ and he's as much of a Pythonista as you can be. A related pic from his is there over here http://wearehugh.com/public/2010/01/the-setup.jpg His insights about his dream machine are particularly relevant I thought. -- ~noufal http://nibrahim.net.in From varunthacker at aol.in Tue Feb 2 07:12:44 2010 From: varunthacker at aol.in (Varun Thacker) Date: Tue, 2 Feb 2010 11:42:44 +0530 Subject: [BangPypers] [OT] Mark Pilgrim on the setup In-Reply-To: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> References: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> Message-ID: <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> Very nice read.I want one too! Which method is more productive? Having multiple virtual desktops or having several monitors. On Tue, Feb 2, 2010 at 11:21 AM, Noufal Ibrahim wrote: > Not exactly Python related but I quite enjoyed Mark Pilgrims interview > on the setup http://mark.pilgrim.usesthis.com/ and he's as much of a > Pythonista as you can be. A related pic from his is there over here > http://wearehugh.com/public/2010/01/the-setup.jpg > > His insights about his dream machine are particularly relevant I thought. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Varun Thacker http://varunthacker.wordpress.com From noufal at gmail.com Tue Feb 2 07:35:06 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 2 Feb 2010 12:05:06 +0530 Subject: [BangPypers] [OT] Mark Pilgrim on the setup In-Reply-To: <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> References: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> Message-ID: <9963e56e1002012235j7e0ce799ka7edc86eb810231d@mail.gmail.com> On Tue, Feb 2, 2010 at 11:42 AM, Varun Thacker wrote: > Very nice read.I want one too! > > Which method is more productive? > Having multiple virtual desktops or having several monitors.[..] His setup is quite in contrast to Aaron Swartz's (whose interview is also there on the site). He uses a single laptop and eschews multiple monitors. -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Tue Feb 2 07:38:14 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Tue, 2 Feb 2010 01:38:14 -0500 Subject: [BangPypers] [OT] Mark Pilgrim on the setup In-Reply-To: <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> References: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> Message-ID: <3e3294b71002012238h39021c61iff02fe05f362d595@mail.gmail.com> On Tue, Feb 2, 2010 at 1:12 AM, Varun Thacker wrote: > Very nice read.I want one too! > > Which method is more productive? > Having multiple virtual desktops or having several monitors. I use two monitors (21?x2, portrait) with a tiling window manager (xmonad) with a terminal multiplexer (tmux) for multiple+remote+ persistent sessions with emacs. Using xmonad + tmux has been the biggest boost to my productivity last year. +PG From varunthacker at aol.in Tue Feb 2 08:44:54 2010 From: varunthacker at aol.in (Varun Thacker) Date: Tue, 2 Feb 2010 13:14:54 +0530 Subject: [BangPypers] [OT] Mark Pilgrim on the setup In-Reply-To: <3e3294b71002012238h39021c61iff02fe05f362d595@mail.gmail.com> References: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> <3e3294b71002012238h39021c61iff02fe05f362d595@mail.gmail.com> Message-ID: <3f347f5c1002012344x46629287k41a3db45551a3aaf@mail.gmail.com> Check Richard Stallman's setup. On Tue, Feb 2, 2010 at 12:08 PM, Pradeep Gowda wrote: > On Tue, Feb 2, 2010 at 1:12 AM, Varun Thacker wrote: > > Very nice read.I want one too! > > > > Which method is more productive? > > Having multiple virtual desktops or having several monitors. > > I use two monitors (21?x2, portrait) > with a tiling window manager (xmonad) > with a terminal multiplexer (tmux) for multiple+remote+ persistent sessions > with emacs. > > Using xmonad + tmux has been the biggest boost to my productivity last > year. > > +PG > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Varun Thacker http://varunthacker.wordpress.com From vsapre80 at gmail.com Tue Feb 2 13:40:54 2010 From: vsapre80 at gmail.com (Vishal) Date: Tue, 2 Feb 2010 18:10:54 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: References: <5de036dc1002010313se674410w46c070efa39aabb6@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2D57A@astserver3.akebonosoft.com> Message-ID: Hello, Have you come across the fact that, choosing a language depends a lot on what your current employer prefers. if the group decides on Java/C++/Python, you have to work on Java/C++/Python for that matter...its not a choice that you make... Plus, one cannot move between projects, just to have a good hold on different languages. How should one go about getting knowledge of a few different languages when their employers essentially use a certain development environment. more often I think, people get married to domains and to the tools that these domains demand. What you say? Thanks and best regards, Vishal Sapre On Mon, Feb 1, 2010 at 7:01 PM, Shashwat Anand wrote: > freaking awesome and enlightening replies. Thanks. > > On Mon, Feb 1, 2010 at 4:52 PM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > > > OMG! This is the best of piece of advice I have ever got. > > Thanks a lot to Roshan,Asokan( you r an IIT prof,right? [If my memory is > > correct].If so,I still remember your grey hair Jokes :) , No offence ) . > > > > > > > > > > Regards, > > ~ Srini T > > > > -----Original Message----- > > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org > [mailto: > > > bangpypers-bounces+srinivas_thatiparthy > > =akebonosoft.com at python.org] On Behalf Of Asokan Pichai > > Sent: Monday, February 01, 2010 4:43 PM > > To: Bangalore Python Users Group - India > > Subject: Re: [BangPypers] Future of Python Programmers > > > > Let me use one > > > > > On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy < > > > srinivas_thatiparthy at akebonosoft.com> wrote: > > > > > >> >> As Noufal said, don't become a language specialist, as that > > >> >> amounts > > >> to limiting yourself too much upfront. . > > >> I didn't get this point. I would like to know.please clarify on this > > >> point > > >> > > > > Let me use an analogy--a favourite of mine. Let us say there is a > > two-wheeler mechanic. > > He puts up a board, "I am the best expert in using the monkey wrench. > > I fix any problem > > in a two-wheeler using nothing but my trusted monkey wrench". > > > > Would you use his services? > > > > Programming languages are tools. It is okay to have favourites. It is a > > given that each language is good in a set of areas. It is also agreed > that > > you can do better with a language you know well, than with a language you > > dont know well, even for problems unsuited for your favourite language. > > > > But they are still tools. So develop an expertise in two wheelers not > > monkey wrenches. > > > > HTH and all the best > > > > -- > > Asokan Pichai > > *-------------------* > > We will find a way. Or, make one. (Hannibal) > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." From nikunjbadjatya at gmail.com Tue Feb 2 17:55:40 2010 From: nikunjbadjatya at gmail.com (nikunj badjatya) Date: Tue, 2 Feb 2010 22:25:40 +0530 Subject: [BangPypers] Future of Python Programmers In-Reply-To: References: <5de036dc1002010313se674410w46c070efa39aabb6@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2D57A@astserver3.akebonosoft.com> Message-ID: Bunch of Thanks to all of you for your valuable comments. Nikunj On Tue, Feb 2, 2010 at 6:10 PM, Vishal wrote: > Hello, > > Have you come across the fact that, choosing a language depends a lot on > what your current employer prefers. if the group decides on > Java/C++/Python, > you have to work on Java/C++/Python for that matter...its not a choice that > you make... > > Plus, one cannot move between projects, just to have a good hold on > different languages. > > How should one go about getting knowledge of a few different languages when > their employers essentially use a certain development environment. > > more often I think, people get married to domains and to the tools that > these domains demand. > > What you say? > > Thanks and best regards, > Vishal Sapre > > On Mon, Feb 1, 2010 at 7:01 PM, Shashwat Anand >wrote: > > > freaking awesome and enlightening replies. Thanks. > > > > On Mon, Feb 1, 2010 at 4:52 PM, Srinivas Reddy Thatiparthy < > > srinivas_thatiparthy at akebonosoft.com> wrote: > > > > > OMG! This is the best of piece of advice I have ever got. > > > Thanks a lot to Roshan,Asokan( you r an IIT prof,right? [If my memory > is > > > correct].If so,I still remember your grey hair Jokes :) , No offence ) > . > > > > > > > > > > > > > > > Regards, > > > ~ Srini T > > > > > > -----Original Message----- > > > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com@ > python.org > > [mailto: > > > > > > bangpypers-bounces+srinivas_thatiparthy > > > =akebonosoft.com at python.org] On Behalf Of Asokan Pichai > > > Sent: Monday, February 01, 2010 4:43 PM > > > To: Bangalore Python Users Group - India > > > Subject: Re: [BangPypers] Future of Python Programmers > > > > > > Let me use one > > > > > > > On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy < > > > > srinivas_thatiparthy at akebonosoft.com> wrote: > > > > > > > >> >> As Noufal said, don't become a language specialist, as that > > > >> >> amounts > > > >> to limiting yourself too much upfront. . > > > >> I didn't get this point. I would like to know.please clarify on this > > > >> point > > > >> > > > > > > Let me use an analogy--a favourite of mine. Let us say there is a > > > two-wheeler mechanic. > > > He puts up a board, "I am the best expert in using the monkey wrench. > > > I fix any problem > > > in a two-wheeler using nothing but my trusted monkey wrench". > > > > > > Would you use his services? > > > > > > Programming languages are tools. It is okay to have favourites. It is a > > > given that each language is good in a set of areas. It is also agreed > > that > > > you can do better with a language you know well, than with a language > you > > > dont know well, even for problems unsuited for your favourite language. > > > > > > But they are still tools. So develop an expertise in two wheelers not > > > monkey wrenches. > > > > > > HTH and all the best > > > > > > -- > > > Asokan Pichai > > > *-------------------* > > > We will find a way. Or, make one. (Hannibal) > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Thanks and best regards, > Vishal Sapre > > --- > > "So say...Day by day, in every way, I am getting better, better and better > !!!" > "A Strong and Positive attitude creates more miracles than anything else. > Because...Life is 10% how you make it, and 90% how you take it" > "Diamond is another piece of coal that did well under pressure? > "May we do good and not evil. May we find forgiveness for ourself and > forgive others. May we share freely, never taking more than we give." > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From anishk33 at gmail.com Wed Feb 3 16:13:20 2010 From: anishk33 at gmail.com (Anish Kurian) Date: Wed, 3 Feb 2010 20:43:20 +0530 Subject: [BangPypers] chk this out! Message-ID: <64b0aaab1002030713k322621c6k23afb8e829cba977@mail.gmail.com> http://www.zideck.com/blog/article.php?id=5 Looking at python through java, end up writing this.. -- aNish From orsenthil at gmail.com Wed Feb 3 16:37:53 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 3 Feb 2010 21:07:53 +0530 Subject: [BangPypers] [OT] Mark Pilgrim on the setup In-Reply-To: <3e3294b71002012238h39021c61iff02fe05f362d595@mail.gmail.com> References: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> <3e3294b71002012238h39021c61iff02fe05f362d595@mail.gmail.com> Message-ID: <20100203153753.GE13818@ubuntu.ubuntu-domain> On Tue, Feb 02, 2010 at 01:38:14AM -0500, Pradeep Gowda wrote: > Using xmonad + tmux has been the biggest boost to my productivity last year. I found ratpoison and screen to the similar effect. ratpoison helps you to concentrate on only thing at a time, which I like to do. :) -- Senthil Computer programs expand so as to fill the core available. From pradeep at btbytes.com Wed Feb 3 16:50:50 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 3 Feb 2010 10:50:50 -0500 Subject: [BangPypers] [OT] Mark Pilgrim on the setup In-Reply-To: <20100203153753.GE13818@ubuntu.ubuntu-domain> References: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> <3e3294b71002012238h39021c61iff02fe05f362d595@mail.gmail.com> <20100203153753.GE13818@ubuntu.ubuntu-domain> Message-ID: <3e3294b71002030750x647a5e51x63646f6a460e28ef@mail.gmail.com> On Wed, Feb 3, 2010 at 10:37 AM, Senthil Kumaran wrote: > On Tue, Feb 02, 2010 at 01:38:14AM -0500, Pradeep Gowda wrote: >> Using xmonad + tmux has been the biggest boost to my productivity last year. > > I found ratpoison and screen to the similar effect. > ratpoison helps you to concentrate on only thing at a time, which I > like to do. :) The defining advantage of tmux over screen is it's ability to have split panes. Which is very convenient for monitoring server logs and debug messages. From gnuyoga at gmail.com Wed Feb 3 16:52:12 2010 From: gnuyoga at gmail.com (Sreekanth B) Date: Wed, 3 Feb 2010 21:22:12 +0530 Subject: [BangPypers] [OT] Mark Pilgrim on the setup In-Reply-To: <20100203153753.GE13818@ubuntu.ubuntu-domain> References: <9963e56e1002012151s7f8908afg6e308e1d2cdbeb13@mail.gmail.com> <3f347f5c1002012212s173dc820r4de6fa1910280cc8@mail.gmail.com> <3e3294b71002012238h39021c61iff02fe05f362d595@mail.gmail.com> <20100203153753.GE13818@ubuntu.ubuntu-domain> Message-ID: hi On Wed, Feb 3, 2010 at 9:07 PM, Senthil Kumaran wrote: > On Tue, Feb 02, 2010 at 01:38:14AM -0500, Pradeep Gowda wrote: > > Using xmonad + tmux has been the biggest boost to my productivity last > year. > > I found ratpoison and screen to the similar effect. > ratpoison helps you to concentrate on only thing at a time, which I > like to do. :) > for me wmii (http://wmii.suckless.org/) does a good job and its highly scriptable (9p filesystem support) no more unwanted distraction in screen :D - sree From ramdaz at gmail.com Wed Feb 3 17:15:16 2010 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 3 Feb 2010 21:45:16 +0530 Subject: [BangPypers] chk this out! In-Reply-To: <64b0aaab1002030713k322621c6k23afb8e829cba977@mail.gmail.com> References: <64b0aaab1002030713k322621c6k23afb8e829cba977@mail.gmail.com> Message-ID: <6e38f9f01002030815o12369cb7g45fac27fb06a5821@mail.gmail.com> On Wed, Feb 3, 2010 at 8:43 PM, Anish Kurian wrote: > http://www.zideck.com/blog/article.php?id=5 > > Looking at python through > java, > end up writing this. Read the comments, most answers are out there > > -- > aNish > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From orsenthil at gmail.com Thu Feb 4 01:13:49 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 4 Feb 2010 05:43:49 +0530 Subject: [BangPypers] using IPython from pdb Message-ID: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> Using IPython from pdb, what use is it? I read Jeff's excellent mail on debugging and tracing and he insisted on using IPython from pdb. I have used pdb extensively and never used IPython, (it never caught me, given that odd interface of number[:]) etc. So, I am really not sure as how using IPython from pdb can help during debugging? I tried it, I loose all the pdb's capabilities when I enter into the IPython shell. How do people normally use it? -- Senthil From steve at lonetwin.net Thu Feb 4 08:25:08 2010 From: steve at lonetwin.net (steve) Date: Thu, 04 Feb 2010 12:55:08 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> Message-ID: <4B6A7654.8030901@lonetwin.net> On 02/04/2010 05:43 AM, Senthil Kumaran wrote: > Using IPython from pdb, what use is it? > I read Jeff's excellent mail on debugging and tracing and he insisted on > using IPython from pdb. I have used pdb extensively and never used IPython, > (it never caught me, given that odd interface of number[:]) etc. > I don't know anything about the problem you mention (or the mail you refer to) but I agree with the comment about the odd interface of ipython. In case you are on linux and are looking for a more powerful CLI than the standard python interface, I would recommend trying out bpython: http://bpython-interpreter.org/ http://bpython-interpreter.org/screenshots/ cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From orsenthil at gmail.com Thu Feb 4 09:46:43 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 4 Feb 2010 14:16:43 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: <4B6A7654.8030901@lonetwin.net> References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> <4B6A7654.8030901@lonetwin.net> Message-ID: <20100204084643.GC4162@ubuntu.ubuntu-domain> On Thu, Feb 04, 2010 at 12:55:08PM +0530, steve wrote: > than the standard python interface, I would recommend trying out bpython: > > http://bpython-interpreter.org/ This is cool. Thanks for pointing out. -- Senthil If you just try long enough and hard enough, you can always manage to boot yourself in the posterior. -- A. J. Liebling, "The Press" From vnbang2003 at yahoo.com Thu Feb 4 09:59:29 2010 From: vnbang2003 at yahoo.com (VIJAY KUMAR) Date: Thu, 4 Feb 2010 14:29:29 +0530 (IST) Subject: [BangPypers] Help -- Python with C Message-ID: <872422.67549.qm@web95315.mail.in2.yahoo.com> Hi , ??? I wanted to call the function defined in C in to python module. ? ???? C filedummy_c_module.c contains below ? ?????? int dummy_c_function(int value) ??????? { ?????????? int ret; ?????????? ret = value + 5; ????????? ?return ret;????? ?? ?? } ? ? I have Python module? dummy_p_module.py ??? ? from dummy_c_module import dummy_c_function ? a = dummy_c_function(22) ?? print a how can we do the this. Am using Ubuntu OS. Thanks in advance. ? with regards ?vijay Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/ From madhusudhan.sunkara at gmail.com Thu Feb 4 10:05:05 2010 From: madhusudhan.sunkara at gmail.com (Madhusudhan sunkara) Date: Thu, 4 Feb 2010 14:35:05 +0530 Subject: [BangPypers] Help -- Python with C In-Reply-To: <872422.67549.qm@web95315.mail.in2.yahoo.com> References: <872422.67549.qm@web95315.mail.in2.yahoo.com> Message-ID: here is good starting point : http://superjared.com/entry/anatomy-python-c-module/ On Thu, Feb 4, 2010 at 2:29 PM, VIJAY KUMAR wrote: > Hi , > I wanted to call the function defined in C in to python module. > > C filedummy_c_module.c contains below > > int dummy_c_function(int value) > { > int ret; > ret = value + 5; > return ret; > } > > I have Python module dummy_p_module.py > > from dummy_c_module import dummy_c_function > a = dummy_c_function(22) > print a > > how can we do the this. Am using Ubuntu OS. > > > Thanks in advance. > > > with regards > > vijay > > > > Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! > http://downloads.yahoo.com/in/internetexplorer/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Madhu Sudhan Sunkara From orsenthil at gmail.com Thu Feb 4 10:06:51 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 4 Feb 2010 14:36:51 +0530 Subject: [BangPypers] Help -- Python with C In-Reply-To: <872422.67549.qm@web95315.mail.in2.yahoo.com> References: <872422.67549.qm@web95315.mail.in2.yahoo.com> Message-ID: <20100204090651.GD4162@ubuntu.ubuntu-domain> On Thu, Feb 04, 2010 at 02:29:29PM +0530, VIJAY KUMAR wrote: > ??? I wanted to call the function defined in C in to python module. Follow the examples given here: http://nedbatchelder.com/text/whirlext.html You should be able to convert you C function into a proper python module. -- Senthil In defeat, unbeatable; in victory, unbearable. -- W. Churchill, on General Montgomery From noufal at gmail.com Thu Feb 4 10:10:19 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 4 Feb 2010 14:40:19 +0530 Subject: [BangPypers] Help -- Python with C In-Reply-To: <872422.67549.qm@web95315.mail.in2.yahoo.com> References: <872422.67549.qm@web95315.mail.in2.yahoo.com> Message-ID: <9963e56e1002040110m504372f9l28b9f4b68e8c21e@mail.gmail.com> On Thu, Feb 4, 2010 at 2:29 PM, VIJAY KUMAR wrote: > Hi , > ??? I wanted to call the function defined in C in to python module. > > ???? C filedummy_c_module.c contains below > > ?????? int dummy_c_function(int value) > ??????? { > ?????????? int ret; > ?????????? ret = value + 5; > ????????? ?return ret; > ?? ?? } > > ? I have Python module? dummy_p_module.py > > ? from dummy_c_module import dummy_c_function > ? a = dummy_c_function(22) > ?? print a > > how can we do the this. Am using Ubuntu OS. You would either need to wrap your C file as a Python module. Docs are available here http://docs.python.org/extending/extending.html Or you can compile your C file into a library and use the ctypes FFI The docs are fairly descriptive and have an included tutorial as well http://docs.python.org/library/ctypes.html -- ~noufal http://nibrahim.net.in From abhilash.pin2 at gmail.com Thu Feb 4 18:56:03 2010 From: abhilash.pin2 at gmail.com (=?UTF-8?B?YcOfbOC5gM6vbM6xc2zguYA=?=) Date: Thu, 4 Feb 2010 23:26:03 +0530 Subject: [BangPypers] execute any .exe at remote system ! Message-ID: Hi I want to execute a python program in my local system, by that I can run any .exe file at a remote system. How to go about ?? -- a?l??l?sl? From orsenthil at gmail.com Fri Feb 5 03:48:29 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 5 Feb 2010 08:18:29 +0530 Subject: [BangPypers] execute any .exe at remote system ! In-Reply-To: References: Message-ID: <20100205024829.GA4831@ubuntu.ubuntu-domain> On Thu, Feb 04, 2010 at 11:26:03PM +0530, a?l??l?sl? wrote: > I want to execute a python program in my local system, by that I can run > any .exe file at a remote system. > How to go about ?? Execute it through ssh. man ssh and wrap it around python. -- Senthil Remember that there is an outside world to see and enjoy. -- Hans Liepmann From srinivas_thatiparthy at akebonosoft.com Fri Feb 5 05:29:22 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Fri, 5 Feb 2010 09:59:22 +0530 Subject: [BangPypers] [OT] Read how twitter is using Scala. Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2D8F1@astserver3.akebonosoft.com> http://www.artima.com/scalazine/articles/twitter_on_scala.html Regards, ~ Srini T From abpillai at gmail.com Fri Feb 5 06:47:17 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 5 Feb 2010 11:17:17 +0530 Subject: [BangPypers] execute any .exe at remote system ! In-Reply-To: <20100205024829.GA4831@ubuntu.ubuntu-domain> References: <20100205024829.GA4831@ubuntu.ubuntu-domain> Message-ID: <8548c5f31002042147u6ee1ef0dy7fd1c370be35db35@mail.gmail.com> On Fri, Feb 5, 2010 at 8:18 AM, Senthil Kumaran wrote: > On Thu, Feb 04, 2010 at 11:26:03PM +0530, a?l??l?sl? wrote: > > I want to execute a python program in my local system, by that I can > run > > any .exe file at a remote system. > > How to go about ?? > > Execute it through ssh. man ssh and wrap it around python. > There are a few Python solutions to this. You can try paramiko, pydsh and the like. > -- > Senthil > Remember that there is an outside world to see and enjoy. > -- Hans Liepmann > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From orsenthil at gmail.com Fri Feb 5 08:21:22 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 5 Feb 2010 12:51:22 +0530 Subject: [BangPypers] execute any .exe at remote system ! In-Reply-To: <8548c5f31002042147u6ee1ef0dy7fd1c370be35db35@mail.gmail.com> References: <20100205024829.GA4831@ubuntu.ubuntu-domain> <8548c5f31002042147u6ee1ef0dy7fd1c370be35db35@mail.gmail.com> Message-ID: <7c42eba11002042321m3e487ffeq4a9cef10d8f17ae9@mail.gmail.com> On Fri, Feb 5, 2010 at 11:17 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > There are a few Python solutions to this. You can try paramiko, > pydsh and the like. > > Yeah Paramiko would be more pythonic, but please be aware that it has its own share of limitations. I guess SSH 1 is not supported. SSH tool by itself is one of the super cool ones that you would come across and I felt no hesitation or shame in wrapping things over it using subprocess module. :) -- Senthil From hartror at gmail.com Fri Feb 5 11:46:51 2010 From: hartror at gmail.com (Rory Hart) Date: Fri, 5 Feb 2010 02:46:51 -0800 Subject: [BangPypers] Internationals getting Python/Programming Jobs Message-ID: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> Hi all, I'm an Australian who is considering living/working in Bangalore, I work with a lot of Indians here in Australia and figure why should they have all the fun of coming to another country to work. The main questions I have are: - Do Bangalore IT companies hire many internationals? - Can you get by with English only? (I note with happiness all the correspondence on this list appears to be in English) - What are the Python job prospects like in Bangalore? - Do any of you work with/are internationals working in Bangalore and would be willing to talk to me about it in more depth? Any other insights people have would be much appreciated, for example: am I mad? Thank you p.s. I hope this isn't too off topic/general but I figure since I belong to the Melbourne PUG we're like brothers in arms :) -- Rory Hart From lawgon at au-kbc.org Fri Feb 5 12:11:58 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 5 Feb 2010 16:41:58 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> Message-ID: <201002051641.59067.lawgon@au-kbc.org> On Friday 05 Feb 2010 4:16:51 pm Rory Hart wrote: > I'm an Australian who is considering living/working in Bangalore, > why Bangalore? I know many people who have moved to India by choice - not counting those who are transfered to India. The main motives are: the institution of family is respected here, pace of life is slower and cost of living is low. Since the cost of living is low, you could live like a king on 1000 USD a month. Internet connectivity is ok, so if you freelance (have some contacts in Australia) you could set up shop in a hill station either in the Himalayas or the Western Ghats, or on a beach - we have lovely unspoiled beaches, or in a forest. In Bangalore or Mumbai, you might as well be in Australia. As for our so-called software industry, it is mainly outsourced stuff ... -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From hartror at gmail.com Fri Feb 5 12:34:31 2010 From: hartror at gmail.com (Rory Hart) Date: Fri, 5 Feb 2010 03:34:31 -0800 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <201002051641.59067.lawgon@au-kbc.org> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> <201002051641.59067.lawgon@au-kbc.org> Message-ID: <2ce9d06b1002050334g575ee234nbf15d82039618a64@mail.gmail.com> On Fri, Feb 5, 2010 at 3:11 AM, Kenneth Gonsalves wrote: > On Friday 05 Feb 2010 4:16:51 pm Rory Hart wrote: > > I'm an Australian who is considering living/working in Bangalore, > > > > why Bangalore? I know many people who have moved to India by choice - not > counting those who are transfered to India. The main motives are: the > institution of family is respected here, pace of life is slower and cost of > living is low. Since the cost of living is low, you could live like a king > on > 1000 USD a month. Internet connectivity is ok, so if you freelance (have > some > contacts in Australia) you could set up shop in a hill station either in > the > Himalayas or the Western Ghats, or on a beach - we have lovely unspoiled > beaches, or in a forest. In Bangalore or Mumbai, you might as well be in > Australia. As for our so-called software industry, it is mainly outsourced > stuff ... > -- > regards > Kenneth Gonsalves > Senior Project Officer > NRC-FOSS > http://nrcfosshelpline.in/web/ Well I was considering Bangalore because of its "Indian silicon-valley" reputation. -- Rory Hart http://www.whatisthescience.com http://blog.roryhart.net From abpillai at gmail.com Fri Feb 5 13:33:39 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 5 Feb 2010 18:03:39 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <2ce9d06b1002050334g575ee234nbf15d82039618a64@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> <201002051641.59067.lawgon@au-kbc.org> <2ce9d06b1002050334g575ee234nbf15d82039618a64@mail.gmail.com> Message-ID: <8548c5f31002050433l5358824cqa6b4d41effabd009@mail.gmail.com> On Fri, Feb 5, 2010 at 5:04 PM, Rory Hart wrote: > On Fri, Feb 5, 2010 at 3:11 AM, Kenneth Gonsalves > wrote: > > > On Friday 05 Feb 2010 4:16:51 pm Rory Hart wrote: > > > I'm an Australian who is considering living/working in Bangalore, > > > > Welcome! > > > > why Bangalore? I know many people who have moved to India by choice - not > > counting those who are transfered to India. The main motives are: the > > institution of family is respected here, pace of life is slower and cost > of > > living is low. Since the cost of living is low, you could live like a > king > > on > > 1000 USD a month. Internet connectivity is ok, so if you freelance (have > > some > > contacts in Australia) you could set up shop in a hill station either in > > the > > Himalayas or the Western Ghats, or on a beach - we have lovely unspoiled > > beaches, or in a forest. In Bangalore or Mumbai, you might as well be in > > Australia. As for our so-called software industry, it is mainly > outsourced > > stuff ... > > -- > > regards > > Kenneth Gonsalves > > Senior Project Officer > > NRC-FOSS > > http://nrcfosshelpline.in/web/ > > > Well I was considering Bangalore because of its "Indian silicon-valley" > reputation. > You also get Fosters here :) > -- > Rory Hart > http://www.whatisthescience.com > http://blog.roryhart.net > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From anandology at gmail.com Fri Feb 5 13:49:57 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 5 Feb 2010 18:19:57 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> Message-ID: <41139fcb1002050449t5a7c1643i7923f966bdd9f100@mail.gmail.com> On Fri, Feb 5, 2010 at 4:16 PM, Rory Hart wrote: > Hi all, > > I'm an Australian who is considering living/working in Bangalore, I work > with a lot of Indians here in Australia and figure why should they have all > the fun of coming to another country to work. Welcome. > > The main questions I have are: > > ? - Do Bangalore IT companies hire many internationals? I don't see any reason why they shouldn't. Does anybody know how hard/easy it is get a VISA to work in India? > ? - Can you get by with English only? (I note with happiness all > ? the correspondence on this list appears to be in English) Pretty much. > ? - What are the Python job prospects like in Bangalore? I think it is not bad. I know couple of friends who have quit their regular jobs and found some interesting consulting work in Python. > ? - Do any of you work with/are internationals working in Bangalore and > ? would be willing to talk to me about it in more depth? I'm at the other end of the coin. I'm living in Bangalore and I telecommute for an organization in the US. You can try to get some telecommuting job, but it won't be as fun as working with a group, esp. when you are in a new country. Anand From noufal at gmail.com Fri Feb 5 13:53:46 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 5 Feb 2010 18:23:46 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> Message-ID: <9963e56e1002050453w4bfab092ud673f7f35852054c@mail.gmail.com> On Fri, Feb 5, 2010 at 4:16 PM, Rory Hart wrote: > Hi all, > > I'm an Australian who is considering living/working in Bangalore, I work > with a lot of Indians here in Australia and figure why should they have all > the fun of coming to another country to work. In my experience, Indians migrate for higher pay (with the exchange rate working in their advantage) rather than fun. I'm sure some do it for the latter but those are exceptions. > The main questions I have are: > > ? - Do Bangalore IT companies hire many internationals? I'm not sure of that. I haven't really seen people being hired here that way. Most of the non-Indian folks who work out of India are employees from the parent organisation abroad who have come down to India for specific projects (often in people management or senior tech. roles). > ? - Can you get by with English only? (I note with happiness all > ? the correspondence on this list appears to be in English) Inside the company, if you can put up with a little bad grammar, I suppose it's possible. Outside, things get harder. Since you're planning to come down for the fun of it, it might be an educational experience to join a local language institute and learn a local Indian language. > ? - What are the Python job prospects like in Bangalore? This is tricky. I know lots of orgs that use it for internal purposes. For external apps that get shipped to clients, I know of ZeOmega and no others. > ? - Do any of you work with/are internationals working in Bangalore and > ? would be willing to talk to me about it in more depth? My current organisation has a couple of people from Norway. They stay in India during their work. I don't interact with them *that* much but I do a little. Do you have any specific questions? > Any other insights people have would be much appreciated, for example: am I > mad? You write cogently and seem to have a solid reason for embarking on this so I think not. Chad Fowler (http://chadfowler.com/about-me) spent some time in India and one of things he did was learn the local language. He enjoyed it apparently and it's possible that you might too. -- ~noufal http://nibrahim.net.in From b.ghose at gmail.com Fri Feb 5 13:53:39 2010 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Fri, 5 Feb 2010 18:23:39 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <8548c5f31002050433l5358824cqa6b4d41effabd009@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> <201002051641.59067.lawgon@au-kbc.org> <2ce9d06b1002050334g575ee234nbf15d82039618a64@mail.gmail.com> <8548c5f31002050433l5358824cqa6b4d41effabd009@mail.gmail.com> Message-ID: > ?You also get Fosters here :) [OT] May be it's not common knowledge here in India, but nobody drinks Foster's in Australia. Whatever we see in the ads here is all propaganda :) Having said that, I would recommend Rory to consider moving to Pune, India. It has the right blend of tech. community, peaceful life, work opportunities, infrastructure and nice weather. It's also cheaper than the so-called metro cities. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From noufal at gmail.com Fri Feb 5 14:02:26 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 5 Feb 2010 18:32:26 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> <201002051641.59067.lawgon@au-kbc.org> <2ce9d06b1002050334g575ee234nbf15d82039618a64@mail.gmail.com> <8548c5f31002050433l5358824cqa6b4d41effabd009@mail.gmail.com> Message-ID: <9963e56e1002050502q77e85418s1c62ba9ab9c4dd57@mail.gmail.com> On Fri, Feb 5, 2010 at 6:23 PM, Baishampayan Ghose wrote: >> ?You also get Fosters here :) > > [OT] > May be it's not common knowledge here in India, but nobody drinks > Foster's in Australia. Whatever we see in the ads here is all > propaganda :) I've heard that too. A lot of genuine Australians I've read on the net bemoan the trashing of their country by the Fosters ads. I'm a teetotaller myself so I don't know about the taste but I have heard this sentiment before. > Having said that, I would recommend Rory to consider moving to Pune, > India. It has the right blend of tech. community, peaceful life, work > opportunities, infrastructure and nice weather. It's also cheaper than > the so-called metro cities. This is a good suggestion along with what Kenneth mentioned about staying in a less crowded area. The sheer effort of day to day life existence in the Indian metros is so high that you can easily get drained. OTOH, it's a learning experience if you're into a bit of masochism. ;) -- ~noufal http://nibrahim.net.in From sree at mahiti.org Fri Feb 5 14:30:53 2010 From: sree at mahiti.org (Sreekanth S Rameshaiah) Date: Fri, 5 Feb 2010 19:00:53 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <41139fcb1002050449t5a7c1643i7923f966bdd9f100@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> <41139fcb1002050449t5a7c1643i7923f966bdd9f100@mail.gmail.com> Message-ID: <313529611002050530k156c2756we987e144d2f23b2b@mail.gmail.com> On 5 February 2010 18:19, Anand Chitipothu wrote: > > > > > The main questions I have are: > > > > - Do Bangalore IT companies hire many internationals? > > I don't see any reason why they shouldn't. Does anybody know how > hard/easy it is get a VISA to work in India? > > When we tried to get employment visa for an expert from Australia about 2 months back to work for Mahiti, visa was rejected saying there is enough local skill available for the job that was referred in the employment letter! - sree From noufal at gmail.com Fri Feb 5 14:40:52 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 5 Feb 2010 19:10:52 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <313529611002050530k156c2756we987e144d2f23b2b@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> <41139fcb1002050449t5a7c1643i7923f966bdd9f100@mail.gmail.com> <313529611002050530k156c2756we987e144d2f23b2b@mail.gmail.com> Message-ID: <9963e56e1002050540j6e848790w177ec2bc12af8306@mail.gmail.com> On Fri, Feb 5, 2010 at 7:00 PM, Sreekanth S Rameshaiah wrote: > On 5 February 2010 18:19, Anand Chitipothu wrote: > >> >> > >> > The main questions I have are: >> > >> > ? - Do Bangalore IT companies hire many internationals? >> >> I don't see any reason why they shouldn't. Does anybody know how >> hard/easy it is get a VISA to work in India? >> >> When we tried to get employment visa for an expert from Australia about 2 > months back to work for Mahiti, visa was rejected saying there is enough > local skill available for the job that was referred in the employment > letter! Really? That's an eye opener. I thought only the US consulate was picky about visas. -- ~noufal http://nibrahim.net.in From ramkrsna at gmail.com Fri Feb 5 14:47:30 2010 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Fri, 5 Feb 2010 19:17:30 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <9963e56e1002050540j6e848790w177ec2bc12af8306@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> <41139fcb1002050449t5a7c1643i7923f966bdd9f100@mail.gmail.com> <313529611002050530k156c2756we987e144d2f23b2b@mail.gmail.com> <9963e56e1002050540j6e848790w177ec2bc12af8306@mail.gmail.com> Message-ID: On Fri, Feb 5, 2010 at 7:10 PM, Noufal Ibrahim wrote: > > Really? That's an eye opener. I thought ?only the US consulate was > picky about visas. Getting an Indian work Visa is very difficult. Unless you are Person Of Indian Origin. I have seen few colleagues of mine, sent back to their respective countries when they tried to renew their work permit. May be this has something to do with the unemployment of existing qualified engineers in India. Its hard for a company to justify when they want to hire a software professional from abroad -- Ramakrishna Reddy GPG Key ID:31FF0090 Fingerprint = 18D7 3FC1 784B B57F C08F 32B9 4496 B2A1 31FF 0090 From steve at lonetwin.net Sat Feb 6 10:21:50 2010 From: steve at lonetwin.net (steve) Date: Sat, 06 Feb 2010 14:51:50 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> References: <2ce9d06b1002050246u27caddfdgb29e6c1e96f68fa5@mail.gmail.com> Message-ID: <4B6D34AE.20406@lonetwin.net> Hi Rory, On 02/05/2010 04:16 PM, Rory Hart wrote: > Hi all, > > I'm an Australian who is considering living/working in Bangalore, I work > with a lot of Indians here in Australia and figure why should they have all > the fun of coming to another country to work. > Makes sense. In my previous jobs, a lot of international colleagues who came for short business visits, noted that India isn't all that bad as a place to stay, work and grow professionally for a few years (despite things that people from developed nations take for granted ie: good roads, regular water and electricity and overall predictability and reliability of general infrastructure). This sort of thing is best done in the early years of your career. > The main questions I have are: > > - Do Bangalore IT companies hire many internationals? Well, as others noted, getting a work visa might be tough. Not due to any underling protectionist agenda but due to the sheer chaotic and utterly frustrating bureaucratic machinery. That said, if you do manage to get one (or convince an Indian company to get one for you), you'll find the job market pretty good. Most 'good' companies won't really care if you are an international. More about the 'good' part later. > - Can you get by with English only? (I note with happiness all > the correspondence on this list appears to be in English) Absolutely ! I'd say 98% of software business gets done in English here in India. The accent though might be a problem initially (not only yours but the varied ones that we have here :) ). > - What are the Python job prospects like in Bangalore? Umm, widen your choice beyond Bangalore. Consider places like Pune, Delhi (including NCR) and Hyderabad. Python job prospects in India are mainly web application development related. Although there are a few companies that do use python for non-web application development. I don't think there are any stats available though. > - Do any of you work with/are internationals working in Bangalore and > would be willing to talk to me about it in more depth? > In an earlier job I worked with a French guy who decided to take up a job in India to help him stay, travel and experience India. He managed to pull it off for 4+ years (i think). I'll put you in touch with him. > Any other insights people have would be much appreciated, for example: am I > mad? > Not really. The work part makes sense, the only possibly mad bit is thinking that you can survive India, without ever visiting this beautifully dualistic(*) county. Nothing can prepare you for the cultural and social shock that you get when you first visit. How you'll handle it will tell whether you were mad or not. Now, about the good company part -- note that most big software firms in India are code monkey farms, with production line engineers, ejected into our industry by the don't-think-just-cram education system of our country. So, if you are unfortunate enough to land up in one of those, you'll become frustrated very quickly. I think this explains the work culture of the majority of Indian software firms: http://sivers.org/book/SpeakingOfIndia So, choose wisely. Rule of thumb -- In India, working at a product development companies is better than working at service oriented companies (yes, that might be a flame bait, but what the heck, that's my personal experience). cheers, - steve (*) Whatever you can rightly say about India, the opposite is also true. - Joan Robinson -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From srinivas_thatiparthy at akebonosoft.com Sat Feb 6 10:34:27 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Sat, 6 Feb 2010 15:04:27 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <4B6D34AE.20406@lonetwin.net> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DAE7@astserver3.akebonosoft.com> >Umm, widen your choice beyond Bangalore. Consider places like Pune, Delhi (including NCR) and Hyderabad. In Hyderabad , I know of two companies which use python for Automation testing. One is Emerson Network Power Two is Intoto inc,Now part of freescale semiconductor. As noufal and steve said I don't know of any companies which develop products in python in Hyderabad(correct me if I am wrong?). Even in Web development also , I never heard of any company which thrown an ad for Python/django dev's. May be, I could be wrong . Here people are gung-ho about Sharepoint,.NET and Java and am yet to see a coaching institute for python. And well ,that is my experience with Python here in Hyderabad. Regards, ~ Srini T From ramp99 at gmail.com Sat Feb 6 14:08:40 2010 From: ramp99 at gmail.com (Rama Rao Polneni) Date: Sat, 6 Feb 2010 18:38:40 +0530 Subject: [BangPypers] WxPython: Unhandled exception Message-ID: <9a8a0e231002060508u11033233s4364872ad8040e4b@mail.gmail.com> Hi All, I have developed a GUI application. Some times I am getting an unhandled exception with the following message: *An unhandled exception occurred. * *Press "Abort" to terminate the program, "Retry" to exit the program normally and "Ignore" to try to Cotinue.* ** Do you know why this unhandled exceptions is coming, even though I hadled exceptions where they are required. Thanks, Rama Rao ** ** From jeffjosejeff at gmail.com Sat Feb 6 15:15:03 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sat, 6 Feb 2010 19:45:03 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> Message-ID: [ caution, huge email follows ] Hey Senthil, I was under the impression that everyone here used and loved IPython. Boy, was I wrong. I wont attempt to convince you folks why you should use IPython, but here a few features that I love in IPython which are not there (or not very obvious) in vanilla python interpreter. note: I'm using ">>" for prompt, you can always customize your IPython interpreter. *Tab completion*. I cant live without it. >> import sys >> sy >> sys. sys.foo sys.bar sys.baz >> sys.getsi >> sys.getsizeof *Documentation* and *Function Signature* >> sys.getsizeof? *Type*: builtin_function_or_method *Base Class*: *String Form*: *Namespace*: Interactive *Docstring*: getsizeof(object, default) -> int Return the size of object in bytes *Source Code* >> import multiprocessing >> multiprocessing.os? *[Doc, Function Signature etc]* >> multiprocessing.os?? *[opens the source code if you wanna browse around]* Those are the top 3 things that I love about IPython interpreter. And ever since I found them, I haven't gone back to vanilla python interpreter. Senthil wrote, * I am really not sure as how using IPython from pdb can help during debugging? I tried it, I loose all the pdb's capabilities when I enter into the IPython shell. How do people normally use it? * Yes, you're right. You loose all capabilities of pdb when you're in IPython (there's a solution, i'll get to that later) Here's my typical IPython from pdb session for debugging. 1. Insert import pdb;pdb.set_trace() the place where I suspect the problem is. Assume the very next line throws a huge error. 2. Run the code, drop into pdb 3. Invoke IPython from pdb >> whos # Shows all the variables in the current context 4. Poke around a lil bit, see what's the values of variables are, etc etc. Pretty normal stuff. Couple this with IPython's excellent introspective power you can rip apart and dig each and everything. >> import more_modules >> try_different_things(); try_different_logic(); 5. Execute the "next line" and expect it to throw the error. See the error, if you want, retry the same line, try different arguments. Note: You havent progressed a line at all, you're just trying out stuff at this moment 6. Once you're done your bit, you *get out of IPython. Cntrl-D* 7*. *Back in pdb, use all of pdb's power. Step in, Execute next line, set more breakpoints, etc etc 8. Hit "c" to proceed to next breakpoint. 9. Repeat Steps 3 -> 8 I've never had to use print statements for debugging ever since I found pdb. With print, you can print only a couple of variables, with IPython (pdb actually) you have access to the entire namespace. IPython just makes working with the huge namespace a breeze. If you arent bored already, I'll explain a unique (weird ?) way I write code these days. Normally, we have 2 windows open. One python interpreter and your fav text editor. You try out stuff before to type it in your text editor. Here's a different approach. Step 1: Start coding before you even try out a single bit on python interpreter. # myCode.py import re regex = re.compile(r'^b') myList = ['foo', 'bar', 'baz'] for item in myList: import pdb;pdb.set_trace() Step 2. Drop into pdb and then to IPython Step 3. Try out your stuff *here*. You dont have to setup *myList*, *item, regex *etc. You have everything ready waiting for you. Step 4: >> item *'foo'* >> regex *<_sre.SRE_Patten object at 0x123123>* >> regex. >> regex.mat >> regex.match? *[read, find what it is, nope .. not what I wanted]* >> regex. >> regex.sea >> regex.search? *[ah ha!]* >> regex.search(item) >> Cntrl-D (pdb) c >> regex.search(item) *<_sre.SRE_Match object at 0x123123>* *# phew, my re pattern works, awesome. I didnt have to setup dummy values and then try it out etc.* *# If re pattern didnt work the first time, I can make a new re patten and try it out here. Again, I am not dealing with dummy values, but its the actual values from the code -- foo, bar, baz (think if you're reading from a file, querying database etc.) work with real values, not dummy* *# Again, not knowing whether it is regex.search or regex.match to use didnt stop you from starting to code.* * *I call it breakpoint induced coding. Extremely helpful when you're modifying someone else's code and you have no idea wht the heck all the code before this was doing. Insert a breakpoint (at the potential place you'd edit/add code) and start from there. # someonesCode.py import m1, m2, m3; call_function_1() call_function_2() do_extreme_stuff() call_another_setof_functions() def do_extreme_stuff(): s1 s2 potential_bug s3 Step 1. s1 s2 *import pdb;pdb.set_trace()* potential_bug s3 Step 2: pdb -> IPython >> whos * #see what the variables are, what's the status of the program right now etc* >> try_a_much_better_approach() >> make_sure_it_works_and_doesnt_break_anything() Step 3: Go back to text editor and put in your stuff there. Step 4: Peace. If you're still reading, hope I havent confused you. Jeff From jeffjosejeff at gmail.com Sat Feb 6 15:26:16 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sat, 6 Feb 2010 19:56:16 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> Message-ID: Not quite long ago, I wrote, You loose all capabilities of pdb when you're in IPython (there's a solution, i'll get to that later) Its called ipdb. IPythonised pdb. I havent used it to recommend it. I'm happy with the solution that I have right now for debugging and writing code. Read more about it here. http://www.electricmonk.nl/log/2008/06/25/breakpoint-induced-python-debugging-with-ipython/ On Thu, Feb 4, 2010 at 5:43 AM, Senthil Kumaran wrote: > Using IPython from pdb, what use is it? > I read Jeff's excellent mail on debugging and tracing and he insisted on > using IPython from pdb. I have used pdb extensively and never used IPython, > (it never caught me, given that odd interface of number[:]) etc. > > So, I am really not sure as how using IPython from pdb can help during > debugging? I tried it, I loose all the pdb's capabilities when I enter into > the IPython shell. How do people normally use it? > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From anand.shashwat at gmail.com Sat Feb 6 15:25:58 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 6 Feb 2010 19:55:58 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> Message-ID: @Jeffrey, bpython is a bit unstable and crash-prone but I prefer it over Ipython. On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose wrote: > [ caution, huge email follows ] > > Hey Senthil, > I was under the impression that everyone here used and loved IPython. Boy, > was I wrong. > I wont attempt to convince you folks why you should use IPython, but here a > few features that I love in IPython which are not there (or not very > obvious) in vanilla python interpreter. > > note: I'm using ">>" for prompt, you can always customize your IPython > interpreter. > > *Tab completion*. I cant live without it. > bpython supports tab-completion > >> import sys > >> sy > >> sys. > sys.foo sys.bar sys.baz > > >> sys.getsi > >> sys.getsizeof > > *Documentation* and *Function Signature* > bpython supports these features > >> sys.getsizeof? > *Type*: builtin_function_or_method > *Base Class*: > *String Form*: > *Namespace*: Interactive > *Docstring*: > getsizeof(object, default) -> int > > Return the size of object in bytes > > *Source Code* > >> import multiprocessing > >> multiprocessing.os? > *[Doc, Function Signature etc]* > > >> multiprocessing.os?? > *[opens the source code if you wanna browse around]* > > > Those are the top 3 things that I love about IPython interpreter. And ever > since I found them, I haven't gone back to vanilla python interpreter. > > Senthil wrote, > > * I am really not sure as how using IPython from pdb can help during > debugging? I tried it, I loose all the pdb's capabilities when I enter into > the IPython shell. How do people normally use it? > * > > Yes, you're right. You loose all capabilities of pdb when you're in IPython > (there's a solution, i'll get to that later) > Here's my typical IPython from pdb session for debugging. > > 1. Insert import pdb;pdb.set_trace() the place where I suspect the problem > is. Assume the very next line throws a huge error. > 2. Run the code, drop into pdb > 3. Invoke IPython from pdb > >> whos > # Shows all the variables in the current context > 4. Poke around a lil bit, see what's the values of variables are, etc etc. > Pretty normal stuff. Couple this with IPython's excellent introspective > power you can rip apart and dig each and everything. > >> import more_modules > >> try_different_things(); try_different_logic(); > 5. Execute the "next line" and expect it to throw the error. See the error, > if you want, retry the same line, try different arguments. Note: You havent > progressed a line at all, you're just trying out stuff at this moment > 6. Once you're done your bit, you *get out of IPython. Cntrl-D* > 7*. *Back in pdb, use all of pdb's power. Step in, Execute next line, set > more breakpoints, etc etc > 8. Hit "c" to proceed to next breakpoint. > 9. Repeat Steps 3 -> 8 > > I've never had to use print statements for debugging ever since I found > pdb. > With print, you can print only a couple of variables, with IPython (pdb > actually) you have access to the entire namespace. IPython just makes > working with the huge namespace a breeze. > > If you arent bored already, I'll explain a unique (weird ?) way I write > code > these days. > Normally, we have 2 windows open. One python interpreter and your fav text > editor. You try out stuff before to type it in your text editor. > Here's a different approach. > > Step 1: Start coding before you even try out a single bit on python > interpreter. > # myCode.py > import re > regex = re.compile(r'^b') > myList = ['foo', 'bar', 'baz'] > > for item in myList: > import pdb;pdb.set_trace() > > Step 2. Drop into pdb and then to IPython > Step 3. Try out your stuff *here*. You dont have to setup *myList*, *item, > regex *etc. You have everything ready waiting for you. > Step 4: > >> item > *'foo'* > > >> regex > *<_sre.SRE_Patten object at 0x123123>* > > >> regex. > >> regex.mat > >> regex.match? > *[read, find what it is, nope .. not what I wanted]* > > >> regex. > >> regex.sea > >> regex.search? > *[ah ha!]* > > >> regex.search(item) > >> Cntrl-D > > (pdb) c > > >> regex.search(item) > *<_sre.SRE_Match object at 0x123123>* > > *# phew, my re pattern works, awesome. I didnt have to setup dummy values > and then try it out etc.* > *# If re pattern didnt work the first time, I can make a new re patten and > try it out here. Again, I am not dealing with dummy values, but its the > actual values from the code -- foo, bar, baz (think if you're reading from > a > file, querying database etc.) work with real values, not dummy* > > *# Again, not knowing whether it is regex.search or regex.match to use > didnt > stop you from starting to code.* > * > *I call it breakpoint induced coding. Extremely helpful when you're > modifying someone else's code and you have no idea wht the heck all the > code > before this was doing. Insert a breakpoint (at the potential place you'd > edit/add code) and start from there. > > # someonesCode.py > import m1, m2, m3; > > call_function_1() > call_function_2() > do_extreme_stuff() > call_another_setof_functions() > > def do_extreme_stuff(): > s1 > s2 > potential_bug > s3 > > > Step 1. > s1 > s2 > *import pdb;pdb.set_trace()* > potential_bug > s3 > > Step 2: pdb -> IPython > >> whos > * #see what the variables are, what's the status of the program right now > etc* > > >> try_a_much_better_approach() > >> make_sure_it_works_and_doesnt_break_anything() > > Step 3: Go back to text editor and put in your stuff there. > Step 4: Peace. > > > If you're still reading, hope I havent confused you. > > > Jeff > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From jeffjosejeff at gmail.com Sat Feb 6 16:15:03 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sat, 6 Feb 2010 20:45:03 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> Message-ID: Thanks. I'll give it a spin. btw, Can you tell me why you prefer bpython over IPython and the nifty features I should be looking for when I try bpython ? Jeff On Sat, Feb 6, 2010 at 7:55 PM, Shashwat Anand wrote: > @Jeffrey, > > bpython is a bit unstable and crash-prone but I prefer it over Ipython. > > On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose > wrote: > > > [ caution, huge email follows ] > > > > Hey Senthil, > > I was under the impression that everyone here used and loved IPython. > Boy, > > was I wrong. > > I wont attempt to convince you folks why you should use IPython, but here > a > > few features that I love in IPython which are not there (or not very > > obvious) in vanilla python interpreter. > > > > note: I'm using ">>" for prompt, you can always customize your IPython > > interpreter. > > > > *Tab completion*. I cant live without it. > > > > bpython supports tab-completion > > > > >> import sys > > >> sy > > >> sys. > > sys.foo sys.bar sys.baz > > > > >> sys.getsi > > >> sys.getsizeof > > > > *Documentation* and *Function Signature* > > > > bpython supports these features > > > > >> sys.getsizeof? > > *Type*: builtin_function_or_method > > *Base Class*: > > *String Form*: > > *Namespace*: Interactive > > *Docstring*: > > getsizeof(object, default) -> int > > > > Return the size of object in bytes > > > > *Source Code* > > >> import multiprocessing > > >> multiprocessing.os? > > *[Doc, Function Signature etc]* > > > > >> multiprocessing.os?? > > *[opens the source code if you wanna browse around]* > > > > > > Those are the top 3 things that I love about IPython interpreter. And > ever > > since I found them, I haven't gone back to vanilla python interpreter. > > > > Senthil wrote, > > > > * I am really not sure as how using IPython from pdb can help during > > debugging? I tried it, I loose all the pdb's capabilities when I enter > into > > the IPython shell. How do people normally use it? > > * > > > > Yes, you're right. You loose all capabilities of pdb when you're in > IPython > > (there's a solution, i'll get to that later) > > Here's my typical IPython from pdb session for debugging. > > > > 1. Insert import pdb;pdb.set_trace() the place where I suspect the > problem > > is. Assume the very next line throws a huge error. > > 2. Run the code, drop into pdb > > 3. Invoke IPython from pdb > > >> whos > > # Shows all the variables in the current context > > 4. Poke around a lil bit, see what's the values of variables are, etc > etc. > > Pretty normal stuff. Couple this with IPython's excellent introspective > > power you can rip apart and dig each and everything. > > >> import more_modules > > >> try_different_things(); try_different_logic(); > > 5. Execute the "next line" and expect it to throw the error. See the > error, > > if you want, retry the same line, try different arguments. Note: You > havent > > progressed a line at all, you're just trying out stuff at this moment > > 6. Once you're done your bit, you *get out of IPython. Cntrl-D* > > 7*. *Back in pdb, use all of pdb's power. Step in, Execute next line, set > > more breakpoints, etc etc > > 8. Hit "c" to proceed to next breakpoint. > > 9. Repeat Steps 3 -> 8 > > > > I've never had to use print statements for debugging ever since I found > > pdb. > > With print, you can print only a couple of variables, with IPython (pdb > > actually) you have access to the entire namespace. IPython just makes > > working with the huge namespace a breeze. > > > > If you arent bored already, I'll explain a unique (weird ?) way I write > > code > > these days. > > Normally, we have 2 windows open. One python interpreter and your fav > text > > editor. You try out stuff before to type it in your text editor. > > Here's a different approach. > > > > Step 1: Start coding before you even try out a single bit on python > > interpreter. > > # myCode.py > > import re > > regex = re.compile(r'^b') > > myList = ['foo', 'bar', 'baz'] > > > > for item in myList: > > import pdb;pdb.set_trace() > > > > Step 2. Drop into pdb and then to IPython > > Step 3. Try out your stuff *here*. You dont have to setup *myList*, > *item, > > regex *etc. You have everything ready waiting for you. > > Step 4: > > >> item > > *'foo'* > > > > >> regex > > *<_sre.SRE_Patten object at 0x123123>* > > > > >> regex. > > >> regex.mat > > >> regex.match? > > *[read, find what it is, nope .. not what I wanted]* > > > > >> regex. > > >> regex.sea > > >> regex.search? > > *[ah ha!]* > > > > >> regex.search(item) > > >> Cntrl-D > > > > (pdb) c > > > > >> regex.search(item) > > *<_sre.SRE_Match object at 0x123123>* > > > > *# phew, my re pattern works, awesome. I didnt have to setup dummy values > > and then try it out etc.* > > *# If re pattern didnt work the first time, I can make a new re patten > and > > try it out here. Again, I am not dealing with dummy values, but its the > > actual values from the code -- foo, bar, baz (think if you're reading > from > > a > > file, querying database etc.) work with real values, not dummy* > > > > *# Again, not knowing whether it is regex.search or regex.match to use > > didnt > > stop you from starting to code.* > > * > > *I call it breakpoint induced coding. Extremely helpful when you're > > modifying someone else's code and you have no idea wht the heck all the > > code > > before this was doing. Insert a breakpoint (at the potential place you'd > > edit/add code) and start from there. > > > > # someonesCode.py > > import m1, m2, m3; > > > > call_function_1() > > call_function_2() > > do_extreme_stuff() > > call_another_setof_functions() > > > > def do_extreme_stuff(): > > s1 > > s2 > > potential_bug > > s3 > > > > > > Step 1. > > s1 > > s2 > > *import pdb;pdb.set_trace()* > > potential_bug > > s3 > > > > Step 2: pdb -> IPython > > >> whos > > * #see what the variables are, what's the status of the program right now > > etc* > > > > >> try_a_much_better_approach() > > >> make_sure_it_works_and_doesnt_break_anything() > > > > Step 3: Go back to text editor and put in your stuff there. > > Step 4: Peace. > > > > > > If you're still reading, hope I havent confused you. > > > > > > Jeff > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Sat Feb 6 17:59:15 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 6 Feb 2010 22:29:15 +0530 Subject: [BangPypers] WxPython: Unhandled exception In-Reply-To: <9a8a0e231002060508u11033233s4364872ad8040e4b@mail.gmail.com> References: <9a8a0e231002060508u11033233s4364872ad8040e4b@mail.gmail.com> Message-ID: <9963e56e1002060859g6edea348q2ec00f37eaf11153@mail.gmail.com> On Sat, Feb 6, 2010 at 6:38 PM, Rama Rao Polneni wrote: > Hi All, > > I have developed a GUI application. > Some times I am getting an unhandled exception with the following message: > > *An unhandled exception occurred. * > *Press "Abort" to terminate the program, "Retry" to exit the program > normally and "Ignore" to try to Cotinue.* > ** > Do you know why this unhandled exceptions is coming, even though I hadled > exceptions where they are required. > I'd recommend that you 'unhandle' your exceptions and let the application crash. Once that happens, you'll get a traceback which should point you to the actual problem. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Sat Feb 6 18:09:19 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 6 Feb 2010 22:39:19 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> Message-ID: <9963e56e1002060909o3d3ab26kd62d8022e2daee21@mail.gmail.com> I'd recommend that you use standard email quotations. It makes for better reading rather than the * notation that you've used to reply to Senthil's mail. On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose wrote: > [ caution, huge email follows ] > > Hey Senthil, > I was under the impression that everyone here used and loved IPython. Boy, > was I wrong. > I wont attempt to convince you folks why you should use IPython, but here a > few features that I love in IPython which are not there (or not ?very > obvious) in vanilla python interpreter. > > note: I'm using ">>" for prompt, you can always customize your IPython > interpreter. > > *Tab completion*. I cant live without it. >>> import sys >>> sy >>> sys. > sys.foo sys.bar sys.baz The vanilla Python interpreter can be customised to do this. http://docs.python.org/library/rlcompleter.html The Emacs integration of ipython is quite nice. I don't use it *that* much but it's still pretty good especially to jump around a traceback when your program crashes. I don't like leaving Emacs to do something since I have to switch context. Being able to mess with your program entirely from within is a convenience and the ipython.el module helps quite a bit. -- ~noufal http://nibrahim.net.in From gora at srijan.in Sat Feb 6 18:31:07 2010 From: gora at srijan.in (Gora Mohanty) Date: Sat, 6 Feb 2010 23:01:07 +0530 Subject: [BangPypers] WxPython: Unhandled exception In-Reply-To: <9963e56e1002060859g6edea348q2ec00f37eaf11153@mail.gmail.com> References: <9a8a0e231002060508u11033233s4364872ad8040e4b@mail.gmail.com> <9963e56e1002060859g6edea348q2ec00f37eaf11153@mail.gmail.com> Message-ID: <20100206230107.6b01f259@ibis> On Sat, 6 Feb 2010 22:29:15 +0530 Noufal Ibrahim wrote: > On Sat, Feb 6, 2010 at 6:38 PM, Rama Rao Polneni > wrote: > > Hi All, > > > > I have developed a GUI application. > > Some times I am getting an unhandled exception with the > > following message: > > > > *An unhandled exception occurred. * > > *Press "Abort" to terminate the program, "Retry" to exit the > > program normally and "Ignore" to try to Cotinue.* > > ** > > Do you know why this unhandled exceptions is coming, even > > though I hadled exceptions where they are required. > > > > I'd recommend that you 'unhandle' your exceptions and let the > application crash. Once that happens, you'll get a traceback which > should point you to the actual problem. No, this is an unhandled exception within WxPython itself. So, there is probably not much that the original poster can do, though Google does turn up some possible links. Regards, Gora From orsenthil at gmail.com Sat Feb 6 18:35:16 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sat, 6 Feb 2010 23:05:16 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> Message-ID: <7c42eba11002060935pd69f300of7da62dde39e2987@mail.gmail.com> On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose wrote: > I was under the impression that everyone here used and loved IPython. Boy, > was I wrong. Thanks for taking time to explain things a bit with ipython. I have heard rave reviews about ipython, especially from the scientific python community, where they use it a lot. It just that, I am using the interpreter shell less and only for specific purposes, then ipython is something I am not getting hooked to. But your mail is a helpful reference for many to try out. As I write, I think, I use interpreter mostly for doing. dir(module), help(module) or help(module.function) and sometimes a 3 line snippet. Anything more than that has found its way to the editor. bpython provided a tab completion feature and the help on braces (like intellisense), that was cool too. It was developed using rlcomplete thing. Thanks again, -- Senthil From jeffjosejeff at gmail.com Sat Feb 6 18:39:55 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sat, 6 Feb 2010 23:09:55 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: <9963e56e1002060909o3d3ab26kd62d8022e2daee21@mail.gmail.com> References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> <9963e56e1002060909o3d3ab26kd62d8022e2daee21@mail.gmail.com> Message-ID: Hey Noufal, I'm not sure what you mean by standard email quotations. FYI, I just went back and checked my mail in gmail and it shows up fine, so the formatting's not screwed up (I get a lot, when you sent it as simple text and it has a _lot_ of *this*) Jeff On Sat, Feb 6, 2010 at 10:39 PM, Noufal Ibrahim wrote: > I'd recommend that you use standard email quotations. It makes for > better reading rather than the * notation that you've used to reply to > Senthil's mail. > > On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose > wrote: > > [ caution, huge email follows ] > > > > Hey Senthil, > > I was under the impression that everyone here used and loved IPython. > Boy, > > was I wrong. > > I wont attempt to convince you folks why you should use IPython, but here > a > > few features that I love in IPython which are not there (or not very > > obvious) in vanilla python interpreter. > > > > note: I'm using ">>" for prompt, you can always customize your IPython > > interpreter. > > > > *Tab completion*. I cant live without it. > >>> import sys > >>> sy > >>> sys. > > sys.foo sys.bar sys.baz > > The vanilla Python interpreter can be customised to do this. > http://docs.python.org/library/rlcompleter.html > > The Emacs integration of ipython is quite nice. I don't use it *that* > much but it's still pretty good especially to jump around a traceback > when your program crashes. I don't like leaving Emacs to do something > since I have to switch context. Being able to mess with your program > entirely from within is a convenience and the ipython.el module helps > quite a bit. > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From anand.shashwat at gmail.com Sat Feb 6 18:50:04 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 6 Feb 2010 23:20:04 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> <9963e56e1002060909o3d3ab26kd62d8022e2daee21@mail.gmail.com> Message-ID: here is the bpython screencast : http://*bpython*-interpreter.org/static/* bpython*-screencast01. ogg It's worth trying. By the way does anyone want to share their customized Vi features with respect to python. I am pretty much satisfied with my own but there is always scope for improvements. On Sat, Feb 6, 2010 at 11:09 PM, Jeffrey Jose wrote: > Hey Noufal, > > I'm not sure what you mean by standard email quotations. FYI, I just went > back and checked my mail in gmail and it shows up fine, so the formatting's > not screwed up (I get a lot, when you sent it as simple text and it has a > _lot_ of *this*) > > Jeff > > > On Sat, Feb 6, 2010 at 10:39 PM, Noufal Ibrahim wrote: > > > I'd recommend that you use standard email quotations. It makes for > > better reading rather than the * notation that you've used to reply to > > Senthil's mail. > > > > On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose > > wrote: > > > [ caution, huge email follows ] > > > > > > Hey Senthil, > > > I was under the impression that everyone here used and loved IPython. > > Boy, > > > was I wrong. > > > I wont attempt to convince you folks why you should use IPython, but > here > > a > > > few features that I love in IPython which are not there (or not very > > > obvious) in vanilla python interpreter. > > > > > > note: I'm using ">>" for prompt, you can always customize your IPython > > > interpreter. > > > > > > *Tab completion*. I cant live without it. > > >>> import sys > > >>> sy > > >>> sys. > > > sys.foo sys.bar sys.baz > > > > The vanilla Python interpreter can be customised to do this. > > http://docs.python.org/library/rlcompleter.html > > > > The Emacs integration of ipython is quite nice. I don't use it *that* > > much but it's still pretty good especially to jump around a traceback > > when your program crashes. I don't like leaving Emacs to do something > > since I have to switch context. Being able to mess with your program > > entirely from within is a convenience and the ipython.el module helps > > quite a bit. > > > > > > -- > > ~noufal > > http://nibrahim.net.in > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From ravi_880 at in.com Sat Feb 6 19:16:04 2010 From: ravi_880 at in.com (ravi chandel) Date: Sat, 06 Feb 2010 23:46:04 +0530 Subject: [BangPypers] =?utf-8?q?Help_--_Python_with_C?= In-Reply-To: <872422.67549.qm@web95315.mail.in2.yahoo.com> Message-ID: <1265480164.677fa4059ee76333f9bb9a7920aef719@mail.in.com> hi, i am looking for a good c programming books with examples pls help. regards, ravi chandel Original message From:VIJAY KUMAR< vnbang2003 at yahoo.com > Date: 04 Feb 10 14:29:29 Subject:[BangPypers] Help Python with C To: Bangalore Python Users Group India From noufal at gmail.com Sat Feb 6 19:51:44 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 7 Feb 2010 00:21:44 +0530 Subject: [BangPypers] Help -- Python with C In-Reply-To: <1265480164.677fa4059ee76333f9bb9a7920aef719@mail.in.com> References: <872422.67549.qm@web95315.mail.in2.yahoo.com> <1265480164.677fa4059ee76333f9bb9a7920aef719@mail.in.com> Message-ID: <9963e56e1002061051t5458ae7dm4992dc4992dac97e@mail.gmail.com> On Sat, Feb 6, 2010 at 11:46 PM, ravi chandel wrote: > hi, i am looking for a good c programming books with examples pls help. 0. Please don't hijack threads. Unless you're following up on a topic of conversation in an existing thread, start a new one. 1. This mailing list specifically targets the Python programming language and related discussions. Not C. 2. http://catb.org/~esr/faqs/smart-questions.html 3. "The C Programming language" by Brian Kernighan and Dennis Ritchie is a must read. -- ~noufal http://nibrahim.net.in From hartror at gmail.com Sun Feb 7 00:40:06 2010 From: hartror at gmail.com (Rory Hart) Date: Sat, 6 Feb 2010 15:40:06 -0800 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DAE7@astserver3.akebonosoft.com> References: <4B6D34AE.20406@lonetwin.net> <4EF2BF691B890546B2694C99A2852F0C01D2DAE7@astserver3.akebonosoft.com> Message-ID: <2ce9d06b1002061540w4cec5cdxc24296ce3edd3f0a@mail.gmail.com> Thanks a lot for all these great answers! I had heard many of the negatives of the India IT industry from my colleagues but figure everyone has different views on the matter. Pune certainly sounds interesting (both climatically and socially) and I am considering freelancing but I do like the idea of working with people as a good way to make friends and start to understand the culture. Please feel free to pass my email along to your contacts that could help me further or email me with their details. Your help in much appreciated. Thank you all! On Sat, Feb 6, 2010 at 1:34 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > >Umm, widen your choice beyond Bangalore. Consider places like Pune, > Delhi (including NCR) and Hyderabad. > > In Hyderabad , I know of two companies which use python for Automation > testing. > One is Emerson Network Power > Two is Intoto inc,Now part of freescale semiconductor. > > As noufal and steve said I don't know of any companies which develop > products in python in Hyderabad(correct me if I am wrong?). > Even in Web development also , I never heard of any company which > thrown an ad for Python/django dev's. > May be, I could be wrong . > > Here people are gung-ho about Sharepoint,.NET and Java and am yet to > see a coaching institute for python. > > And well ,that is my experience with Python here in Hyderabad. > > Regards, > ~ Srini T > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Rory Hart http://www.whatisthescience.com http://blog.roryhart.net From steve at lonetwin.net Mon Feb 8 07:45:01 2010 From: steve at lonetwin.net (steve) Date: Mon, 08 Feb 2010 12:15:01 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> <9963e56e1002060909o3d3ab26kd62d8022e2daee21@mail.gmail.com> Message-ID: <4B6FB2ED.8090803@lonetwin.net> Hi Shashwat, On 02/06/2010 11:20 PM, Shashwat Anand wrote: > here is the bpython screencast : http://*bpython*-interpreter.org/static/* > bpython*-screencast01. > ogg > It's worth trying. +1. (Having tried both ipython and bpython, I prefer bpython mainly because of the cleaner interface (ie: no unnecessary whitespace/newlines) and the ability to show the doc strings as you type). > By the way does anyone want to share their customized Vi features with > respect to python. I am pretty much satisfied with my own but there is > always scope for improvements. > I assume you meant vim. If that assumption is correct, there isn't much python specific that I do except for adding... autocmd BufNewFile,BufRead *.py let python_highlight_all = 1 ...to my ~/.vimrc. Read the comments at the top of vim's python syntax file (typically /usr/share/vim/vim/syntax/python.vim on linux) to understand what that means. However, non-python specific, I like the following vim scripts for coding: taglist.vim [ http://www.vim.org/scripts/script.php?script_id=273 ] supertab.vim [ http://www.vim.org/scripts/script.php?script_id=1643 ] vcscommand.vim [ http://www.vim.org/scripts/script.php?script_id=90 ] NERD_tree.vim [ http://www.vim.org/scripts/script.php?script_id=1658 ] cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From steve at lonetwin.net Mon Feb 8 08:00:05 2010 From: steve at lonetwin.net (steve) Date: Mon, 08 Feb 2010 12:30:05 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DAE7@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DAE7@astserver3.akebonosoft.com> Message-ID: <4B6FB675.6030005@lonetwin.net> Hi, On 02/06/2010 03:04 PM, Srinivas Reddy Thatiparthy wrote: > >Umm, widen your choice beyond Bangalore. Consider places like Pune, > Delhi (including NCR) and Hyderabad. > > In Hyderabad , I know of two companies which use python for Automation > testing. > One is Emerson Network Power > Two is Intoto inc,Now part of freescale semiconductor. > > As noufal and steve said I don't know of any companies which develop > products in python in Hyderabad(correct me if I am wrong?). Umm, I didn't mean to imply that there are no companies which develop products in python. I said "...there are a few companies that do use python for non-web application development. I don't think there are any stats available though." Since 2003, I've been lucky enough to work at product companies where 80% (or more) of my code was written in python. > Even in Web development also , I never heard of any company which > thrown an ad for Python/django dev's. > May be, I could be wrong . > > Here people are gung-ho about Sharepoint,.NET and Java and am yet to > see a coaching institute for python. > well, yeah, compared to the .NET and Java opportunities, the amount of python work is less. However, I have seen a trend for most *nix based shops increasing their use on python (as opposed to perl/C++/C) over the years. For anyone interested (not just Rory), keeping an eye on ... http://fossjobs.in/ http://www.python.org/community/jobs/index.html http://django.specialtyjobmarkets.com/ http://plone.specialtyjobmarkets.com/ ...might help (both for freelance as well as full-time work). cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From srinivas_thatiparthy at akebonosoft.com Mon Feb 8 10:52:27 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 8 Feb 2010 15:22:27 +0530 Subject: [BangPypers] Regarding Python popularity Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> 1.The other day my friend was saying ;Since python is opensource ,so many companies fear that their product's byte code could be reverse engineered.To protect their Intellectual Property rights they stay away from python, is it true? 2.What hinders python from becoming a popular OOP language,like a Java,C#,C++? is it just slowness of python or dynamic language or Marketing? I would like to know . Regards, ~ Srini T From noufal at gmail.com Mon Feb 8 11:17:47 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 8 Feb 2010 15:47:47 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> Message-ID: <9963e56e1002080217l41a89fcao1a187e9f0a861fd1@mail.gmail.com> On Mon, Feb 8, 2010 at 3:22 PM, Srinivas Reddy Thatiparthy wrote: > 1.The other day my friend was saying ;Since python is opensource , The fact that Python is open source is orthogonal to the fact that it compiles source into bytecode which can be decompiled. Also "Python" can't be open source. "Python" is a programming language. A concrete implementation (eg. CPython) can be open source. By your logic, "C" is opensource (in it's gcc incarnation) and therefore should also suffer from the reverse engineering problem you're raising. > so > many companies fear that their product's byte code > could be reverse engineered.To protect ?their Intellectual Property > rights they stay away from python, > is it true? My previous employer used http://cx-freeze.sourceforge.net/ to compile their python programs into standalone executables. I don't know how 'secure' this is but it's similar to the kind of security you get through compilation. > 2.What hinders python from becoming ?a popular OOP language,like a > Java,C#,C++? > is it just slowness of python or dynamic language or Marketing? > I would like to know . This is subjective. I personally think it's mainly marketing (Java had Sun and C# had MS). This leads to secondary effects like certifications (which are useful for non-tech hiring managers to evaluate potential employees), availability of 'resources' (since most engineering grads jump onto the now popular language in the hope of getting a job) The increased adoption also helped the language. More mature tools were built etc. so it comes around. Also, people tend to think of Python as a 'scripting' language and therefore not suitable for 'enterprise' products which by definition should be hard to understand and convoluted - lots of patterns and layers of abstraction and lots of people working on it at any given time. Python's speed is also a matter but I think that's not as big a factor as the marketing. -- ~noufal http://nibrahim.net.in From anandology at gmail.com Mon Feb 8 11:34:58 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 8 Feb 2010 16:04:58 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> Message-ID: <41139fcb1002080234s6639300l395cfecf5600b624@mail.gmail.com> On Mon, Feb 8, 2010 at 3:22 PM, Srinivas Reddy Thatiparthy wrote: > 1.The other day my friend was saying ;Since python is opensource ,so > many companies fear that their product's byte code > could be reverse engineered.To protect ?their Intellectual Property > rights they stay away from python, > is it true? Even Java can be reverses engineered easily unless it is obfuscated. It is probably true it is hard to obfuscate Python code. But is it really a problem? It is so hard to understand somebody else's code even with some documentation. Do you really think somebody will invest so much time to reverse-engineer your code? Anand From srinivas_thatiparthy at akebonosoft.com Mon Feb 8 11:37:19 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 8 Feb 2010 16:07:19 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <9963e56e1002080217l41a89fcao1a187e9f0a861fd1@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DC56@astserver3.akebonosoft.com> >>The fact that Python is open source is orthogonal to the fact that it compiles source into bytecode which can be decompiled. Also "Python" >>can't be open source. "Python" is a programming language. A concrete implementation (eg. CPython) can be open source. >>By your logic, "C" is opensource (in it's gcc incarnation) and therefore should also suffer from the reverse engineering problem you're raising. Oops!! Didn't have brains to think of gcc when my friend said it. :).My bad. Thanks for pointing out the difference between a 'language' and 'Implementation'. >>This is subjective. I personally think it's mainly marketing (Java had Sun and C# had MS). This leads to secondary effects like certifications (which are useful for >>>non-tech hiring managers to evaluate potential employees), availability of 'resources' (since most engineering grads jump onto the now popular language in the >>>>hope of getting a job) Ok.My Question is.. What was PSF's in general, Guido's in particular thoughts about marketing python? And I heard Perl's marketing was excellent.How did they manage it with limited funds? From dhananjay.nene at gmail.com Mon Feb 8 11:47:23 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 8 Feb 2010 16:17:23 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> Message-ID: On Mon, Feb 8, 2010 at 3:22 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > 1.The other day my friend was saying ;Since python is opensource ,so > many companies fear that their product's byte code > could be reverse engineered.To protect their Intellectual Property > rights they stay away from python, > is it true? > Java is open source and java's byte code can be reverse engineered. That doesn't per se hinder the marketability of Java. Having said that statements made by Noufal in a peer message in this thread stand valid. Python is not decompilable since python is open source - python is decompilable because it compiles to a bytecode. Also many python implementations do ship their source as well. One does of course wonder how much Intellectual Property protection is offered by not shipping source code. Most code bases today are substantially large enough (and in some cases too crappily written) to be extremely hard to decipher. Moreover in most cases it is the first mover advantage that is far more important than securing the source code. If I am shipping a relatively trivial application such as say a Bug Tracking application, the value of Intellectual Property Protection afforded by not shipping the source is quite limited imo. On the other hand, if you have some secret sauce algorithm, then source code protection is important. However such applications are likely to form a fairly small fraction of the total universe of applications and they should not be shipped in Python or Java or C# since all of them compile to bytecode without any optimising passes on that bytecode (its the optimising passes especially at a assembly level instruction set which make reverse engineering so much more difficult). To summarise : Python is unlikely to be at any disadvantage to Java / C# especially in terms of source code decompilability. 2.What hinders python from becoming a popular OOP language,like a > Java,C#,C++? > is it just slowness of python or dynamic language or Marketing? > I would like to know . > What is a popular OOP language ? Is it the top 3 or top 10. If it is top 3 - python is unlikely to get there anytime soon. If it is top 10 its been there for a long time (perhaps a decade though I could easily be wrong). Of the total universe of applications perhaps slowness might count for 10% (purely my individual hunch - no scientific basis for the number) applications selecting a much faster language. Yet to counter the same PHP is amongst the 3 most popular languages and it is perhaps slower than python. Is it dynamic language ? - Again PHP is a dynamic language and is a case in point. But PHP really scores due to its extremely low barriers to entry (for both developers and hosting environments). Marketing could be a partial answer. Both MS and Sun invested heavily in terms of marketing Java / C#. Once upon a time in very old days it was said that you couldn't lose your job by selecting IBM. Marketing also makes sure that the people making the decision are less likely to feel concerned about having to defend their choices in the future if and should they select say Java or C#. Infrastructure capabilities could be yet another answer. The Java runtime environment is an excellent engine. Now Python has implementations which can run on JRE (Jython) and CLR (Iron Python). However most java choices made in the first half of the decade did not depend upon the JRE. So to put it simply - there is no simple cut and dry answer. If you look beyond the Marketing and a bit of the resultant herd mentality, you will realise that most languages have a good sweetspot they manage to excel at. And thats what drives popularity. So I would really go back and rephrase the question. It should not be why or whether python is popular but really, does the application you want to write lie in the sweetspot area of python or not. If it does there's a good chance using python will make you and your team happy at the end of the day, and if it doesn't by all means use the right language for that application. Dhananjay > > > Regards, > ~ Srini T > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From lawgon at au-kbc.org Mon Feb 8 11:50:33 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 8 Feb 2010 16:20:33 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC56@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC56@astserver3.akebonosoft.com> Message-ID: <201002081620.33904.lawgon@au-kbc.org> could you fix your mail client please - the formatting is a mess and I cannot make out what is quoted and what is not On Monday 08 Feb 2010 4:07:19 pm Srinivas Reddy Thatiparthy wrote: > >>The fact that Python is open source is orthogonal to the fact that it > > compiles source into bytecode which can be decompiled. Also "Python" > > >>can't be open source. "Python" is a programming language. A concrete > > implementation (eg. CPython) can be open source. > > >>By your logic, "C" is opensource (in it's gcc incarnation) and > > therefore should also suffer from the reverse engineering problem you're > raising. > > Oops!! Didn't have brains to think of gcc when my friend said it. :).My > bad. > Thanks for pointing out the difference between a 'language' and > 'Implementation'. > > >>This is subjective. I personally think it's mainly marketing (Java had > > Sun and C# had MS). This leads to secondary effects like certifications > (which are useful for >>>non-tech hiring managers to evaluate potential > employees), availability of 'resources' (since most engineering grads > jump onto the now popular language in the >>>>hope of getting a job) > Ok.My Question is.. > What was PSF's in general, Guido's in particular thoughts about > marketing python? > And I heard Perl's marketing was excellent.How did they manage it > with limited funds? > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From lawgon at au-kbc.org Mon Feb 8 11:54:12 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 8 Feb 2010 16:24:12 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> Message-ID: <201002081624.12420.lawgon@au-kbc.org> On Monday 08 Feb 2010 4:17:23 pm Dhananjay Nene wrote: > So to put it simply - there is no simple cut and dry answer. If you look > beyond the Marketing and a bit of the resultant herd mentality, you will > realise that most languages have a good sweetspot they manage to excel at. > And thats what drives popularity > excellent answer - but you should add that choice of language and platform is most often done by suits without domain knowledge and on extraneous considerations -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From srinivas_thatiparthy at akebonosoft.com Mon Feb 8 11:55:14 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 8 Feb 2010 16:25:14 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> >>If you look beyond the Marketing and a bit of the resultant herd mentality, you will realise that most languages have a good sweetspot they manage to excel at. I never searched for it .But in what domains Python is excellent compared to other OOP languages? I know that for AI ,you need to write code in LISP. If you write AI application in Java,then you selected a bad tool for that particular problem. So pls answer me accordingly. From anand.shashwat at gmail.com Mon Feb 8 12:06:38 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 8 Feb 2010 16:36:38 +0530 Subject: [BangPypers] using IPython from pdb In-Reply-To: <4B6FB2ED.8090803@lonetwin.net> References: <7c42eba11002031613m10cd7f91ge571b85933c758cf@mail.gmail.com> <9963e56e1002060909o3d3ab26kd62d8022e2daee21@mail.gmail.com> <4B6FB2ED.8090803@lonetwin.net> Message-ID: @steve Thanks :) On Mon, Feb 8, 2010 at 12:15 PM, steve wrote: > Hi Shashwat, > > > On 02/06/2010 11:20 PM, Shashwat Anand wrote: > >> here is the bpython screencast : http://*bpython*- >> interpreter.org/static/* >> bpython*-screencast01. >> ogg >> It's worth trying. >> > > +1. (Having tried both ipython and bpython, I prefer bpython mainly because > of the cleaner interface (ie: no unnecessary whitespace/newlines) and the > ability to show the doc strings as you type). > > > By the way does anyone want to share their customized Vi features with >> respect to python. I am pretty much satisfied with my own but there is >> always scope for improvements. >> >> I assume you meant vim. If that assumption is correct, there isn't much > python specific that I do except for adding... > > autocmd BufNewFile,BufRead *.py let python_highlight_all = 1 > > ...to my ~/.vimrc. Read the comments at the top of vim's python syntax file > (typically /usr/share/vim/vim/syntax/python.vim on linux) to > understand what that means. > > However, non-python specific, I like the following vim scripts for coding: > > taglist.vim [ http://www.vim.org/scripts/script.php?script_id=273 ] > supertab.vim [ http://www.vim.org/scripts/script.php?script_id=1643 ] > vcscommand.vim [ http://www.vim.org/scripts/script.php?script_id=90 ] > NERD_tree.vim [ http://www.vim.org/scripts/script.php?script_id=1658 ] > > > cheers, > - steve > -- > random non tech spiel: http://lonetwin.blogspot.com/ > tech randomness: http://lonehacks.blogspot.com/ > what i'm stumbling into: http://lonetwin.stumbleupon.com/ > From ankur at thinklabs.in Mon Feb 8 12:10:49 2010 From: ankur at thinklabs.in (Ankur Gupta) Date: Mon, 8 Feb 2010 16:40:49 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> Message-ID: Hi, Python usage as a prototyping language is very high. Lot of ppl in Machine Learning field use Python to prototype and test their algorithm against small dataset and finally code the same in C++/Java for deployment. (Don't want to get into what runs fast/slow flamewar plz). Regards Ankur On Mon, Feb 8, 2010 at 4:25 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > >>If you look beyond the Marketing and a bit of the resultant herd > mentality, you will realise that most languages have a good sweetspot > they manage to excel at. > > > I never searched for it .But in what domains Python is excellent > compared to other OOP languages? > I know that for AI ,you need to write code in LISP. > If you write AI application in Java,then you selected a bad tool for > that particular problem. > So pls answer me accordingly. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Mon Feb 8 12:17:01 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 8 Feb 2010 16:47:01 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> Message-ID: <9963e56e1002080317scc112bcs4cc2adfbb1438556@mail.gmail.com> On Mon, Feb 8, 2010 at 4:25 PM, Srinivas Reddy Thatiparthy wrote: [..] > I never searched for it .But in what domains ?Python is excellent > compared to other OOP languages? Glue apps. It seems to have a foothold in web programming Prototyping/Rapid development I haven't seen a domain in which Python is an undisputed master (eg. Perl for messy string parsing). It's quite general purpose. > I know that for AI ,you need to write code in LISP. You don't *need* to write code in lisp for AI. Lisp excels at symbol manipulation which was once thought of as an important feature of an intelligent system. That's why the link (also McCarthy) but there's no *need*. I write lisp code to customise my editor and I've written simple AI programs in C and Python. > If you write AI application in Java,then ?you selected a bad tool for > that particular ?problem. Not really. Java can do quite well there too. The paradigm is different and your effectiveness will vary.Also, "AI application" is extremely vague. [..] -- ~noufal http://nibrahim.net.in From noufal at gmail.com Mon Feb 8 12:20:07 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 8 Feb 2010 16:50:07 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <201002081624.12420.lawgon@au-kbc.org> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> <201002081624.12420.lawgon@au-kbc.org> Message-ID: <9963e56e1002080320q62e9fafg2437dd5812c0f7e2@mail.gmail.com> On Mon, Feb 8, 2010 at 4:24 PM, Kenneth Gonsalves wrote: > On Monday 08 Feb 2010 4:17:23 pm Dhananjay Nene wrote: >> So to put it simply - there is no simple cut and dry answer. If you look >> beyond the Marketing and a bit of the resultant herd mentality, you will >> realise that most languages have a good sweetspot they manage to excel at. >> And thats what drives popularity >> > > excellent answer - but you should add that choice of language and platform is > most often done by suits without domain knowledge and on extraneous > considerations[..] The converse where 'hackers' don't understand the forces that drive businesses is equally (if not more) true. Managers who manage people and are answerable to customers and have to worry about things like their superstar Python programmer deciding that the manager spoke to him the wrong way and leaving the company. He has to worry about being able to find talent, he has to worry about how much to pay the people, existing codebases and tons of other things that (more often than not), the 'rockstar programmer' misses with his purely tech driven myopic view of the real world. -- ~noufal http://nibrahim.net.in From dhananjay.nene at gmail.com Mon Feb 8 12:24:44 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 8 Feb 2010 16:54:44 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <201002081620.33904.lawgon@au-kbc.org> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC56@astserver3.akebonosoft.com> <201002081620.33904.lawgon@au-kbc.org> Message-ID: On Mon, Feb 8, 2010 at 4:20 PM, Kenneth Gonsalves wrote: > could you fix your mail client please - the formatting is a mess and I > cannot > make out what is quoted and what is not > > Hmm.. begs the question what could I do about it .. its GMail web client :D Not sure if I have a solution for that. Dhananjay > On Monday 08 Feb 2010 4:07:19 pm Srinivas Reddy Thatiparthy wrote: > > >>The fact that Python is open source is orthogonal to the fact that it > > > > compiles source into bytecode which can be decompiled. Also "Python" > > > > >>can't be open source. "Python" is a programming language. A concrete > > > > implementation (eg. CPython) can be open source. > > > > > From lawgon at au-kbc.org Mon Feb 8 12:23:28 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 8 Feb 2010 16:53:28 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <9963e56e1002080317scc112bcs4cc2adfbb1438556@mail.gmail.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> <9963e56e1002080317scc112bcs4cc2adfbb1438556@mail.gmail.com> Message-ID: <201002081653.28326.lawgon@au-kbc.org> On Monday 08 Feb 2010 4:47:01 pm Noufal Ibrahim wrote: > You don't need to write code in lisp for AI. Lisp excels at symbol > manipulation which was once thought of as an important feature of an > intelligent system. > I have written AI code in pascal -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From dhananjay.nene at gmail.com Mon Feb 8 12:28:12 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 8 Feb 2010 16:58:12 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <9963e56e1002080320q62e9fafg2437dd5812c0f7e2@mail.gmail.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> <201002081624.12420.lawgon@au-kbc.org> <9963e56e1002080320q62e9fafg2437dd5812c0f7e2@mail.gmail.com> Message-ID: On Mon, Feb 8, 2010 at 4:50 PM, Noufal Ibrahim wrote: > On Mon, Feb 8, 2010 at 4:24 PM, Kenneth Gonsalves > wrote: > > On Monday 08 Feb 2010 4:17:23 pm Dhananjay Nene wrote: > >> So to put it simply - there is no simple cut and dry answer. If you look > >> beyond the Marketing and a bit of the resultant herd mentality, you will > >> realise that most languages have a good sweetspot they manage to excel > at. > >> And thats what drives popularity > >> > > > > excellent answer - but you should add that choice of language and > platform is > > most often done by suits without domain knowledge and on extraneous > > considerations[..] > > The converse where 'hackers' don't understand the forces that drive > businesses is equally (if not more) true. > > Managers who manage people and are answerable to customers and have to > worry about things like their superstar Python programmer deciding > that the manager spoke to him the wrong way and leaving the company. > He has to worry about being able to find talent, he has to worry about > how much to pay the people, existing codebases and tons of other > things that (more often than not), the 'rockstar programmer' misses > with his purely tech driven myopic view of the real world. > > > Good point. There was a post I wrote along similar lines (thought this was in the context of Scala) http://blog.dhananjaynene.com/2009/08/why-should-i-switch-to-scala/ Some might consider it a digression but I thought it was important in the context of the point brought out by Noufal. > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Dhananjay -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From anand.shashwat at gmail.com Mon Feb 8 12:28:47 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 8 Feb 2010 16:58:47 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> Message-ID: Companies coming for hiring (campus-placement) never look the knowledge of python as an additional advantage. Infact none of them care. I check-listed the profile of all the 20+ companies which came and none of them had to deal with anything python (except google, amazon, directi) and even these three were indifferent towards python. One had to clear written-round which consist of C/apti and then technical round consist of C/C++/Java/DS/Algo/OS, finally HR round which is generally non-technical. The skills they look for, python never fits into it. Mine one of senior (at Amazon) suggested me "Go learn C++/ Java and improve your DS/ Algo/ OS/OOP skills, and things of your interest can be done in free time after you land a nice job." He does ruby stuff in his free time and java at office. Just wanted to say that for a student, who want ti get recruited via campus placement knowledge of C/C++/Java is a must and the knowledge of python doesn't even count. Sad :( On Mon, Feb 8, 2010 at 4:40 PM, Ankur Gupta wrote: > Hi, > > Python usage as a prototyping language is very high. Lot of ppl in Machine > Learning field use Python to prototype and test their algorithm against > small dataset and finally code the same in C++/Java for deployment. (Don't > want to get into what runs fast/slow flamewar plz). > > Regards > Ankur > > On Mon, Feb 8, 2010 at 4:25 PM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > > > >>If you look beyond the Marketing and a bit of the resultant herd > > mentality, you will realise that most languages have a good sweetspot > > they manage to excel at. > > > > > > I never searched for it .But in what domains Python is excellent > > compared to other OOP languages? > > I know that for AI ,you need to write code in LISP. > > If you write AI application in Java,then you selected a bad tool for > > that particular problem. > > So pls answer me accordingly. > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From dhananjay.nene at gmail.com Mon Feb 8 12:30:37 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 8 Feb 2010 17:00:37 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> Message-ID: On Mon, Feb 8, 2010 at 4:25 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > >>If you look beyond the Marketing and a bit of the resultant herd > mentality, you will realise that most languages have a good sweetspot > they manage to excel at. > > > I never searched for it .But in what domains Python is excellent > compared to other OOP languages? > I know that for AI ,you need to write code in LISP. > If you write AI application in Java,then you selected a bad tool for > that particular problem. > So pls answer me accordingly. > I had once (and still continue to) make an argument for Python primarily from the perspective of return on investment and business agility (though there are a number of other arguments that could be made as well) http://punetech.com/improve-your-web-based-software-development-and-maintenance-roi-with-dynamic-programming-languages/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Dhananjay -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From lawgon at au-kbc.org Mon Feb 8 12:27:34 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 8 Feb 2010 16:57:34 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <9963e56e1002080320q62e9fafg2437dd5812c0f7e2@mail.gmail.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> <201002081624.12420.lawgon@au-kbc.org> <9963e56e1002080320q62e9fafg2437dd5812c0f7e2@mail.gmail.com> Message-ID: <201002081657.34806.lawgon@au-kbc.org> On Monday 08 Feb 2010 4:50:07 pm Noufal Ibrahim wrote: > > excellent answer - but you should add that choice of language and > > platform is most often done by suits without domain knowledge and on > > extraneous considerations[..] > > The converse where 'hackers' don't understand the forces that drive > businesses is equally (if not more) true. > > Managers who manage people and are answerable to customers and have to > worry about things like their superstar Python programmer deciding > that the manager spoke to him the wrong way and leaving the company. > He has to worry about being able to find talent, he has to worry about > how much to pay the people, existing codebases and tons of other > things that (more often than not), the 'rockstar programmer' misses > with his purely tech driven myopic view of the real world. > precisely - so managers tend to follow the herd. No doubt python is more secure and useful than asp or whatever - but I can hire asp guys by the container load, whereas python guys are more difficult to come across. And also cost - TCS has 50,000 java programmers - what would it cost to retrain these guys (if they are retrainable) to python? In short, popularity is the last thing one should look at when evaluating a tool (unless one is a suit) -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From lawgon at au-kbc.org Mon Feb 8 12:30:03 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 8 Feb 2010 17:00:03 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D2DC56@astserver3.akebonosoft.com> <201002081620.33904.lawgon@au-kbc.org> Message-ID: <201002081700.03485.lawgon@au-kbc.org> On Monday 08 Feb 2010 4:54:44 pm Dhananjay Nene wrote: > On Mon, Feb 8, 2010 at 4:20 PM, Kenneth Gonsalves wrote: > > could you fix your mail client please - the formatting is a mess and I > > cannot > > make out what is quoted and what is not > > > > Hmm.. begs the question what could I do about it .. its GMail web client > > :D > > Not sure if I have a solution for that. > I have never used gmail, but lakhs of people do use it and this problem does not occur. One question: have you set your line lenght to less than 72 characters? maybe this is the cause. Otherwise there must be people here who can afford to use gmail who can give a clue. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From navin.kabra at gmail.com Mon Feb 8 12:36:36 2010 From: navin.kabra at gmail.com (Navin Kabra) Date: Mon, 8 Feb 2010 17:06:36 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> Message-ID: On Mon, Feb 8, 2010 at 4:58 PM, Shashwat Anand wrote: > Mine one of senior (at Amazon) suggested me "Go learn C++/ Java and improve > your DS/ Algo/ OS/OOP skills > On the other hand, I would like to point out that to really, really improve your DS/Algo skills (two of the most important skills for a CS graduate, IMO), python is a great language. You can learn, and prototype, and experiment much faster than if you were to try the same thing in Java/C/C++ or (oh the horror!) PHP. From lawgon at au-kbc.org Mon Feb 8 12:34:54 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 8 Feb 2010 17:04:54 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: References: Message-ID: <201002081704.54312.lawgon@au-kbc.org> On Monday 08 Feb 2010 4:58:47 pm Shashwat Anand wrote: > Just wanted to say that for a student, who want ti get recruited via campus > placement knowledge of C/C++/Java is a must and the knowledge of python > doesn't even count. Sad > I would not say that - there is a demand in India for python programmers - my better people keep getting stolen. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From anand.shashwat at gmail.com Mon Feb 8 12:44:23 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 8 Feb 2010 17:14:23 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> Message-ID: > > On the other hand, I would like to point out that to really, really improve > your DS/Algo skills (two of the most important skills for a CS graduate, > IMO), python is a great language. You can learn, and prototype, and > experiment much faster than if you were to try the same thing in Java/C/C++ > or (oh the horror!) PHP. > +sys.maxint I do the same :) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From jeff at taupro.com Mon Feb 8 13:05:09 2010 From: jeff at taupro.com (Jeff Rush) Date: Mon, 08 Feb 2010 06:05:09 -0600 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC56@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC56@astserver3.akebonosoft.com> Message-ID: <4B6FFDF5.5000408@taupro.com> Srinivas Reddy Thatiparthy wrote: > >>> This is subjective. I personally think it's mainly marketing (Java had > Sun and C# had MS). This leads to secondary effects like certifications > (which are useful for >>>non-tech hiring managers to evaluate potential > employees), availability of 'resources' (since most engineering grads > jump onto the now popular language in the >>>>hope of getting a job) > Ok.My Question is.. > What was PSF's in general, Guido's in particular thoughts about > marketing python? > And I heard Perl's marketing was excellent.How did they manage it > with limited funds? As the former Python Advocacy Coordinator and a young member of the PSF board I can speak to some of this. The key part is defining what is meant by "popular OOP language", which usually comes down to a language being well-known in a *particular* (i.e. your personal) community. Python is very popular in the biotech and science fields but less so in traditional enterprise IT. - popular with whom? - high installed base or rapid adoption rate? - how popular is enough? - what compromises are acceptable in broadening the community? In measuring popularity, there is also a big difference between "lots of people -are- using it" (the installed base, e.g. C/C++, Perl, Python) versus "lots of people are -starting- to use it" (the leading edge of the wave of adoption, e.g. Ruby, Python). Each affects the job and book market in different ways. There are various forces at play here, opposing one another. I'm not taking sides - only saying they exist. Some believe Python needs certification in order to play in the field of general IT recruiting, to help HR pick those with knowledge. Others think certification devalues a language, so that people play games to get their 'ticket' rather than really learn the language and become good at it. The community consensus is to NOT support certification in order to maintain the quality of Python programmers even though it may keep the quantity down by discouraging those with weak knowledge from entering. Another force is between those who want to keep their adoption of Python a secret, in order to be agile in the marketplace and use it as a secret weapon, and those who want to yell it from the rooftops in order to maximize the market for their skills. The force of secrecy has weakened and Python is becoming better known. The force of secrecy applies to any language, btw. C was a (pseudo) secret of Bell Labs, giving them an edge. Yet another force, a strong one, are those who strongly dislike promotion and advertising, of -anything- perhaps due to their experiences with traditional marketing types, SPAM and late night TV commercials. They feel the basic *idea* of promotion is unethical and has no place in open source or professional IT. They believe that an excellent product or technology will win by being better and if it does not, then it really wasn't that good. And that attempting to spread the word is unfair tilting of the playing field and would only result in a popularity contest, not a true comparison of value. The strength of Python is the broad base of the problem domains it fits into. Python is strong in astronomy, biology, physics (search for SciPy). It's also strong in databases but just not very exciting there and needs a PR story/push. In the movie industry Python is very popular for graphic manipulation and managing media assets of huge size (lots of activity in New Zealand's movie industry). Python is also strong and getting stronger in the scripting of applications; Gimp, Inkscape, Gajim, OpenOffice.org, Firefox, etc. I suppose if I had to point to one challenge for Python it would be the web. I can hear people yelling at me now, but Python has such a diversity of web frameworks that rather than being a strength it causes newcomers to be overwhelmed by choice. There are psych tests that people asked to choose among a large set experience stress and often pick the first or most popular choice, regardless. Unlike say Ruby, we do not speak with one voice where the web is concerned, although we do in other popular areas. A solution to this I think would be to pull together a "Guide to Choosing a Web Technology for Python" website. There are lots of theories for the many frameworks, one being that Python is such fun to program in that everyone wants to try their hand at creating one. Another is that Python attracts those who enjoy creating cool intricate tools but aren't so good at communicating those ideas to others. You can see this with many Python technical websites compared to those for other languages. The core sites for Python software in general are just not very compelling in their message (e.g. look at www.zope.org for one example). That's enough writing for now but there are others factors such as the lack of a corporate presence like Sun and Microsoft in traditional IT and the lack of a strong push into educational markets that those corporate types tend to seek in order to influence IT when they graduate and enter industry. None of my words are an official statement of the PSF or any other organization I associate with, but only my opinion resulting in many discussions about this topic. -Jeff From abpillai at gmail.com Mon Feb 8 13:27:28 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 8 Feb 2010 17:57:28 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> Message-ID: <8548c5f31002080427m319d380fpbc0470463d5d1bbc@mail.gmail.com> On Mon, Feb 8, 2010 at 5:06 PM, Navin Kabra wrote: > On Mon, Feb 8, 2010 at 4:58 PM, Shashwat Anand >wrote: > > > Mine one of senior (at Amazon) suggested me "Go learn C++/ Java and > improve > > your DS/ Algo/ OS/OOP skills > > > > > That is a wrong notion and should be corrected immediately. Your algorithmic skills have nothing to do with the language you choose to implement your code in. Algorithmic skills boils down to the extent of your knowledge in algorithms and the time you have spent to read and practice on the subject. And like a previous author, I would say that Python is perhaps a better tool at this since you can learn and try new algorithms in Python at a fraction of the time it takes to implement the same in say Java/C++. With respect to data structures the language does matter - for example the returns in implementing a linked list in Python are not much since the high level structures like lists and dictionaries make such a data structure redundant in Python but the returns in terms of knowledge gained is more say in C/C++ since you learn to understand pointers that much. However a language like Python exposes so many different patterns to the developer that it offers you different ways of solving the same problem. Say "co-routines" to your typical C/C++ programmer who doesn't explore beyond his confines and he gawks at you. Say the same thing to a Python developer and he quickly shows you the fibonacci example using generators :) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From dhananjay.nene at gmail.com Mon Feb 8 13:55:09 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 8 Feb 2010 18:25:09 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <8548c5f31002080427m319d380fpbc0470463d5d1bbc@mail.gmail.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC6B@astserver3.akebonosoft.com> <8548c5f31002080427m319d380fpbc0470463d5d1bbc@mail.gmail.com> Message-ID: On Mon, Feb 8, 2010 at 5:57 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Mon, Feb 8, 2010 at 5:06 PM, Navin Kabra wrote: > > > On Mon, Feb 8, 2010 at 4:58 PM, Shashwat Anand > >wrote: > > > > > Mine one of senior (at Amazon) suggested me "Go learn C++/ Java and > > improve > > > your DS/ Algo/ OS/OOP skills > > > > > > > > > > That is a wrong notion and should be corrected immediately. Your > algorithmic skills have nothing to do with the language you choose to > implement your code in. Algorithmic skills boils down to the extent > of your knowledge in algorithms and the time you have spent to > read and practice on the subject. > Hmm .. I wonder if algorithmic skills would remain independent of the host language choice (for sake of comparison I offer PHP and Lisp as the two options). Algorithms in principle and their articulation in a host language are two different aspects and the latter is not language independent. Just using python, I still find myself struggling much harder to write algorithms using functional constructs as opposed to OO constructs (not to mention the occasional frown when I use reduce()). There is an interplay between algorithms and language (and in the case I just mentioned the choice of language constructs). If my focus was primarily learning algorithms, I might just give python the pass and head over to Lisp or Haskell. Dhananjay > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From arunvr at gmail.com Mon Feb 8 18:42:29 2010 From: arunvr at gmail.com (Arun Ravindran) Date: Mon, 8 Feb 2010 23:12:29 +0530 Subject: [BangPypers] Regarding Python popularity In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DC2F@astserver3.akebonosoft.com> Message-ID: Hi, > 1.The other day my friend was saying ;Since python is opensource ,so many companies fear that their product's byte code could be reverse engineered.To protect their Intellectual Property rights they stay away from python, is it true? If the company in question has great concerns abt intellectual property, then they should consider developing it as a web-based application with most of the functionality on the server side Any executable can be decompiled, not just bytecodes. In fact, Java is quite easy to reverse compile. But this has not stopped hundreds of enterprises from adopting Java. 2.What hinders python from becoming a popular OOP language,like a Java,C#,C++? is it just slowness of python or dynamic language or Marketing? I would like to know . I would like to turn this question around. What are the advantages of popularity? The availability of skilled resources increases and the amount of development/tools in python increases. The former is not always a good thing. There are plenty of Java /.NET coderz out there, but its very hard to sift through and find the good ones. Today, if someone claims to be a python programmer and has a decent level of expertise, I can almost guarantee that he is passionate about programming. The reason being that he decided to swim against the current and learn a relatively less mainstream language. There is a reason why Haskellers use the phrase 'Avoid Success at All Costs'. Success is great up to a point, but then it becomes a curse. See Java for instance :) Still I believe python is not a niche language. The community is big enough to help out newbies and intermediate level programmers. There are lots of great tools, libraries and frameworks. It's truly wonderful. Regards, Arun On Mon, Feb 8, 2010 at 3:22 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: From srinivas_thatiparthy at akebonosoft.com Tue Feb 9 05:52:36 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 9 Feb 2010 10:22:36 +0530 Subject: [BangPypers] which one is the best pythonic way . Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DD0C@astserver3.akebonosoft.com> I have written four solutions to a problem(self explanatory) ,out of them ,which one is the pythonic way of doing and is there any other ways of solving it? 1.sum([i for i in range(1000) if i%3==0 or i%5==0]) 2.gen=(i for i in range(1000)) sum([i for i in gen if i%3==0 or i%5==0]) 3.sum(filter(lambda a:a%3==0 or a%5==0,range(1000))) 4.def generator(m): count=0 while count References: <4EF2BF691B890546B2694C99A2852F0C01D2DD0C@astserver3.akebonosoft.com> Message-ID: <41139fcb1002082107k7fb68cc2m8f0e1f63080a305a@mail.gmail.com> On Tue, Feb 9, 2010 at 10:22 AM, Srinivas Reddy Thatiparthy wrote: > I have written ?four solutions to a problem(self explanatory) ,out of > them ,which one is the ?pythonic way of doing ?and > is there any other ways of solving it? > > > 1.sum([i for i in range(1000) if i%3==0 or i%5==0]) > > 2.gen=(i for i in range(1000)) > ? sum([i for i in gen if i%3==0 or i%5==0]) > > 3.sum(filter(lambda a:a%3==0 or a%5==0,range(1000))) > > 4.def generator(m): > ? ? ? ?count=0 > ? ? ? ?while count ? ? ? ? ? ? ? ? if count%3==0 or count%5==0: > ? ? ? ? ? ? ? ? ? ? yield count > ? ? ? ? ? ? ? ? count+=1 > sum([i for i in generator(1000)]) #1. You can even remove the square brackets. sum(i for i in range(1000) if i%3==0 or i%5==0) From navin.kabra at gmail.com Tue Feb 9 06:14:42 2010 From: navin.kabra at gmail.com (Navin Kabra) Date: Tue, 9 Feb 2010 10:44:42 +0530 Subject: [BangPypers] which one is the best pythonic way . In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DD0C@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DD0C@astserver3.akebonosoft.com> Message-ID: On Tue, Feb 9, 2010 at 10:22 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > 1.sum([i for i in range(1000) if i%3==0 or i%5==0]) > Slightly better would be: sum((i for i in range(1000) if i%3==0 or i%5==0)) > 2.gen=(i for i in range(1000)) > sum([i for i in gen if i%3==0 or i%5==0]) > What I gave above is a better way of doing this > 3.sum(filter(lambda a:a%3==0 or a%5==0,range(1000))) > avoid lambda's whenever possible. they are difficult to understand, and can be avoided in most cases. Even Guido dislikes them. > 4.def generator(m): > count=0 > while count if count%3==0 or count%5==0: > yield count > count+=1 > sum([i for i in generator(1000)]) > Overkill. From srinivas_thatiparthy at akebonosoft.com Tue Feb 9 06:22:58 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 9 Feb 2010 10:52:58 +0530 Subject: [BangPypers] which one is the best pythonic way . In-Reply-To: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DD48@astserver3.akebonosoft.com> Thanks for the replies and I avoid using lambdas.. Btw,Shall I avoid using filter and map ? Because what ever filter and map do,I could seem to do the same with Listcomprehensions.. Is there any situation in which they fare better than list comprehensions? Regards, ~ Srini T From jeffjosejeff at gmail.com Tue Feb 9 06:45:07 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Tue, 9 Feb 2010 11:15:07 +0530 Subject: [BangPypers] which one is the best pythonic way . In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DD48@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DD48@astserver3.akebonosoft.com> Message-ID: filter, map (reduce, any, all) come from the world of Functional Programming. For that matter list comprehension was borrowed from FP (haskell). I wont attempt to compare them as they cater to different needs. Yes, they overlap in certain areas but I'd like to think of them as seperate assets suited for different needs. For simple stuff, List Comprehension offers superior readability but it can get too much too fast if you start chaining a lot. Do not overlook the power of filter, map as they _are_ valuable tools in your everyday programming. jeff PS: If it interests you, read about MapReduce that Google use to come up with lightening fast search results. yes. mapreduce = map + reduce. simple, effective, elegant. On Tue, Feb 9, 2010 at 10:52 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > > Thanks for the replies and I avoid using lambdas.. > Btw,Shall I avoid using filter and map ? > Because what ever filter and map do,I could seem to do the same with > Listcomprehensions.. > Is there any situation in which they fare better than list > comprehensions? > > Regards, > ~ Srini T > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From steve at lonetwin.net Tue Feb 9 07:34:16 2010 From: steve at lonetwin.net (steve) Date: Tue, 09 Feb 2010 12:04:16 +0530 Subject: [BangPypers] which one is the best pythonic way . In-Reply-To: <41139fcb1002082107k7fb68cc2m8f0e1f63080a305a@mail.gmail.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DD0C@astserver3.akebonosoft.com> <41139fcb1002082107k7fb68cc2m8f0e1f63080a305a@mail.gmail.com> Message-ID: <4B7101E8.9010509@lonetwin.net> On 02/09/2010 10:37 AM, Anand Chitipothu wrote: > On Tue, Feb 9, 2010 at 10:22 AM, Srinivas Reddy Thatiparthy > [...snip...] > #1. > > You can even remove the square brackets. > > sum(i for i in range(1000) if i%3==0 or i%5==0) Yes, you can but that doesn't necessarily mean it is better. Interestingly, something similar was discussed at comp.lang.python: http://groups.google.com/group/comp.lang.python/browse_thread/thread/7897bf3fd2298332/26247987f84cc484 cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From abpillai at gmail.com Tue Feb 9 07:48:14 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 9 Feb 2010 12:18:14 +0530 Subject: [BangPypers] which one is the best pythonic way . In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DD48@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DD48@astserver3.akebonosoft.com> Message-ID: <8548c5f31002082248k3b4014epfa17ab09838a4fdb@mail.gmail.com> On Tue, Feb 9, 2010 at 10:52 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > > Thanks for the replies and I avoid using lambdas.. > Btw,Shall I avoid using filter and map ? > Because what ever filter and map do,I could seem to do the same with > Listcomprehensions.. > Is there any situation in which they fare better than list > comprehensions? > map, filter, reduce at al are orders slower when compared to list comprehensions, cuz each invocation of these cost one function call, whereas list comprehensions are optimized in the language. For example, >>> def f1(): [i for i in range(1000) if i % 3 == 0] ... >>> def f2(): filter(lambda x: x%3==0, range(1000)) And using timeit, >>> mytimeit.Timeit(f1, number=10000) '211.47 usec/pass' >>> mytimeit.Timeit(f2, number=10000) '319.08 usec/pass' The only advantage of map, filter etc over list comprehensions is that they are sometimes concise over the equivalent list comprehensions, when combined with already defined functions. For example, >>> [ x for x in range(1000) if (x%3==0) or (x%5==0)] >>> def f(x): (x%3==) or (y %5==0) >>> map(f, range(1000)) But again, keep in mind that these are much slower when compared to the list comprehension or generator equivalent. There are a few cases when a map function looks more "elegant" when compared to the equivalent list comp. For example, let us say you want to add together two lists. >>> l1=range(5, 10) >>> l2=range(10, 15) >>> map(lambda x,y: x+y, l1, l2) [15, 17, 19, 21, 23] There is no direct way to do this in list comp except taking the help of "zip". >>> [a+b for a,b in zip(l1,l2)] [15, 17, 19, 21, 23] But practicality beats purity. Given a choice, I will always use the latter instead of the former, irrespective of the "elegance", which is questionable and subjective anyway :) > Regards, > ~ Srini T > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From srinivas_thatiparthy at akebonosoft.com Tue Feb 9 08:04:45 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 9 Feb 2010 12:34:45 +0530 Subject: [BangPypers] which one is the best pythonic way . In-Reply-To: <8548c5f31002082248k3b4014epfa17ab09838a4fdb@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DD81@astserver3.akebonosoft.com> >> But practicality beats purity. Given a choice, I will always use the latter instead of the former, irrespective of the "elegance", which is questionable and subjective anyway :) Shall I say,Go with your personal preference in personal projects,provided milliseconds performance is not a constraint. If u work for an employer and there are guidelines...Go with them. But always Use your head because there seems to be tons of diverse opinions ranging from lambda's to everything in python and am confused at which to follow. Regards, ~ Srini T From dhananjay.nene at gmail.com Tue Feb 9 08:41:51 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Tue, 9 Feb 2010 13:11:51 +0530 Subject: [BangPypers] which one is the best pythonic way . In-Reply-To: <4B710FDC.7070405@gmail.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DD48@astserver3.akebonosoft.com> <8548c5f31002082248k3b4014epfa17ab09838a4fdb@mail.gmail.com> <4B710FDC.7070405@gmail.com> Message-ID: On Tue, Feb 9, 2010 at 1:03 PM, Dhananjay Nene wrote: > Anand Balachandran Pillai wrote: > > On Tue, Feb 9, 2010 at 10:52 AM, Srinivas Reddy Thatiparthy wrote: > > > > Thanks for the replies and I avoid using lambdas.. > Btw,Shall I avoid using filter and map ? > Because what ever filter and map do,I could seem to do the same with > Listcomprehensions.. > Is there any situation in which they fare better than list > comprehensions? > > > > map, filter, reduce at al are orders slower when compared to > list comprehensions, cuz each invocation of these cost one > function call, whereas list comprehensions are optimized in > the language. > > For example, > > >>> def f1(): [i for i in range(1000) if i % 3 == 0] > ... > >>> def f2(): filter(lambda x: x%3==0, range(1000)) > > And using timeit, > > > > mytimeit.Timeit(f1, number=10000) > > > '211.47 usec/pass' > > > mytimeit.Timeit(f2, number=10000) > > > '319.08 usec/pass' > > The only advantage of map, filter etc over list comprehensions is > that they are sometimes concise over the equivalent list > comprehensions, when combined with already defined functions. > > For example, > > > > [ x for x in range(1000) if (x%3==0) or (x%5==0)] > def f(x): (x%3==) or (y %5==0) > map(f, range(1000)) > > > But again, keep in mind that these are much slower when compared > to the list comprehension or generator equivalent. > > There are a few cases when a map function looks more "elegant" > when compared to the equivalent list comp. > > For example, let us say you want to add together two lists. > > > > l1=range(5, 10) > l2=range(10, 15) > > > map(lambda x,y: x+y, l1, l2) > > > [15, 17, 19, 21, 23] > > There is no direct way to do this in list comp except taking > the help of "zip". > > > > [a+b for a,b in zip(l1,l2)] > > > [15, 17, 19, 21, 23] > > But practicality beats purity. Given a choice, I will always use the > latter instead of the former, irrespective of the "elegance", which > is questionable and subjective anyway :) > > > Interestingly in my computations the second approach (zip) is about 35% > slower (as measured over 5 runs of 1M iterations each) than the first one > (map/lambda). I believe the performance argument should be a bit nuanced. > The earlier example you demonstrated with list comprehension is faster due > to the fact that the if condition (and only the if condition alone - which > is the equivalent of filter) is inlined vs being a function call. For other > scenarios not involving a filter, I suspect performance could vary either > way. I would rephrase the earlier statement as follows : > > map, filter, reduce at al are *is** *orders slower when compared to > list comprehensions, cuz each invocation of these cost one > function call, whereas list comprehensions are optimized in > the language. > > I was incorrect above .. there are clearly other situations where the benefits of inlining occur apart from the filter function . The statement rephrasing is incorrect > > Regards, > ~ Srini T > _______________________________________________ > BangPypers mailing list > BangPypers at python.orghttp://mail.python.org/mailman/listinfo/bangpypers > > > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From abpillai at gmail.com Tue Feb 9 09:02:30 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 9 Feb 2010 13:32:30 +0530 Subject: [BangPypers] which one is the best pythonic way . In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D2DD48@astserver3.akebonosoft.com> <8548c5f31002082248k3b4014epfa17ab09838a4fdb@mail.gmail.com> <4B710FDC.7070405@gmail.com> Message-ID: <8548c5f31002090002j1192ed21m987cc8a2a28c7354@mail.gmail.com> On Tue, Feb 9, 2010 at 1:11 PM, Dhananjay Nene wrote: > On Tue, Feb 9, 2010 at 1:03 PM, Dhananjay Nene >wrote: > > > > > > > Interestingly in my computations the second approach (zip) is about 35% > > slower (as measured over 5 runs of 1M iterations each) than the first one > > (map/lambda). I believe the performance argument should be a bit nuanced. > > The earlier example you demonstrated with list comprehension is faster > due > > to the fact that the if condition (and only the if condition alone - > which > > is the equivalent of filter) is inlined vs being a function call. For > other > > scenarios not involving a filter, I suspect performance could vary either > > way. I would rephrase the earlier statement as follows : > It is slower because it makes an inline function call to zip (zip is a builtin function). If you want your list comprehensions to be as performance optimized as possible, avoid calling functions in them. I was using that example to illustrate the apparent "elegance" of the map solution, not for comparing performances. In this case the map one could work out to be as good as the list comp one or faster because of the cost of the function call incurred due to "zip". In this case, if you want the best performance, just use the itertools version of zip, i.e izip. Here are some comparisons. >>> def f1(): return [(x+y) for x,y in itertools.izip(l1,l2)] ... >>> def f2(): return [x+y for x,y in zip(l1,l2)] ... >>> def f3(): return map(lambda x,y: x+y, l1,l2) >>> mytimeit.Timeit(f1, number=10000) '1.93 usec/pass' >>> mytimeit.Timeit(f2, number=10000) '2.26 usec/pass' >>> mytimeit.Timeit(f3, number=10000) '2.40 usec/pass' f1 is the best performer, followed by f2, but f3 is not very bad either when compared to f2, due to the extra function call cost incurred in the list comprehension in f2. > > > map, filter, reduce at al are *is** *orders slower when compared to > > list comprehensions, cuz each invocation of these cost one > > function call, whereas list comprehensions are optimized in > > the language. > > > > > I was incorrect above .. there are clearly other situations where the > benefits of inlining occur apart from the filter function . The statement > rephrasing is incorrect > > > > > Regards, > > ~ Srini T > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.orghttp://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene http://twitter.com/_pythonic > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Tue Feb 9 11:22:47 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 9 Feb 2010 15:52:47 +0530 Subject: [BangPypers] date range Message-ID: <201002091552.48183.lawgon@au-kbc.org> hi, any easy way of finding out whether a given date is between two other dates? -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From hartror at gmail.com Tue Feb 9 11:48:02 2010 From: hartror at gmail.com (Rory Hart) Date: Tue, 9 Feb 2010 21:48:02 +1100 Subject: [BangPypers] date range In-Reply-To: <201002091552.48183.lawgon@au-kbc.org> References: <201002091552.48183.lawgon@au-kbc.org> Message-ID: <2ce9d06b1002090248y69354f36j207ee056cc4cb76@mail.gmail.com> It is nice and easy thankfully. datetime.date and datetime.datetime both support < > operators So: if startdate < date and date < enddate: print "date in range" http://docs.python.org/library/datetime.html On Tue, Feb 9, 2010 at 9:22 PM, Kenneth Gonsalves wrote: > hi, > > any easy way of finding out whether a given date is between two other > dates? > -- > regards > Kenneth Gonsalves > Senior Project Officer > NRC-FOSS > http://nrcfosshelpline.in/web/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From lawgon at au-kbc.org Tue Feb 9 11:49:49 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 9 Feb 2010 16:19:49 +0530 Subject: [BangPypers] date range In-Reply-To: <2ce9d06b1002090248y69354f36j207ee056cc4cb76@mail.gmail.com> References: <201002091552.48183.lawgon@au-kbc.org> <2ce9d06b1002090248y69354f36j207ee056cc4cb76@mail.gmail.com> Message-ID: <201002091619.49311.lawgon@au-kbc.org> On Tuesday 09 Feb 2010 4:18:02 pm Rory Hart wrote: > if startdate < date and date < enddate: > > print "date in range" > that is what I was doing - too verbose, wanted to know if I could use 'in'. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From pythonic at gmail.com Tue Feb 9 12:17:08 2010 From: pythonic at gmail.com (Shekhar) Date: Tue, 09 Feb 2010 16:47:08 +0530 Subject: [BangPypers] date range In-Reply-To: <201002091619.49311.lawgon@au-kbc.org> References: <201002091552.48183.lawgon@au-kbc.org> <2ce9d06b1002090248y69354f36j207ee056cc4cb76@mail.gmail.com> <201002091619.49311.lawgon@au-kbc.org> Message-ID: <4B714434.2070106@gmail.com> Kenneth Gonsalves wrote: > On Tuesday 09 Feb 2010 4:18:02 pm Rory Hart wrote: > >> if startdate < date and date < enddate: >> >> print "date in range" >> >> more compact is_in_range = startdate < date < enddate > > that is what I was doing - too verbose, wanted to know if I could use 'in'. > From srinivas_thatiparthy at akebonosoft.com Tue Feb 9 12:21:00 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 9 Feb 2010 16:51:00 +0530 Subject: [BangPypers] date range In-Reply-To: <4B714434.2070106@gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DDC2@astserver3.akebonosoft.com> >>more compact is_in_range startdate < date < enddate I am very much interested to know how the above expression is evaluated in compiler? If the compiler evaluates left to right ,startdate References: <4B714434.2070106@gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDC2@astserver3.akebonosoft.com> Message-ID: <1c4dc2781002090333r354c9919ved13c741c4b6d4c9@mail.gmail.com> On Tue, Feb 9, 2010 at 16:51, Srinivas Reddy Thatiparthy wrote: > >>>more compact is_in_range ? startdate < date < enddate > > I am very much interested to know how the above expression is evaluated > in compiler? > If the compiler evaluates left to right ?,startdate false depending on the values and > Now, my question is how this ?(True/Flase < enddate) will be evaluated > since they are of different types? > Or am I missing something? > http://docs.python.org/reference/expressions.html#notin Formally, if a, b, c, ..., y, z are expressions and op1, op2, ..., opN are comparison operators, then a op1 b op2 c ... y opN z is equivalent to a op1 b and b op2 c and ... y opN z, except that each expression is evaluated at most once. Roshan From lawgon at au-kbc.org Tue Feb 9 12:33:11 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 9 Feb 2010 17:03:11 +0530 Subject: [BangPypers] date range In-Reply-To: <4B714434.2070106@gmail.com> References: <201002091552.48183.lawgon@au-kbc.org> <201002091619.49311.lawgon@au-kbc.org> <4B714434.2070106@gmail.com> Message-ID: <201002091703.11937.lawgon@au-kbc.org> On Tuesday 09 Feb 2010 4:47:08 pm Shekhar wrote: > > On Tuesday 09 Feb 2010 4:18:02 pm Rory Hart wrote: > > > > > >> if startdate < date and date < enddate: > >> > >> print "date in range" > >> > >> > > more compact > is_in_range = startdate < date < enddate > if stardate<=date<=enddate: print 'success' -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From srinivas_thatiparthy at akebonosoft.com Tue Feb 9 12:37:41 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 9 Feb 2010 17:07:41 +0530 Subject: [BangPypers] date range In-Reply-To: <1c4dc2781002090333r354c9919ved13c741c4b6d4c9@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DDC5@astserver3.akebonosoft.com> >>Formally, if a, b, c, ..., y, z are expressions and op1, op2, ..., opN are comparison operators, then a op1 b op2 c ... y opN z is equivalent to a op1 b and b op2 c and ... y opN z, except that each expression is evaluated at most once. Ok..Got it... Especially last sentence caught my eye.. Does the python compiler behaves same for below expression also? 1.If(a References: <1c4dc2781002090333r354c9919ved13c741c4b6d4c9@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDC5@astserver3.akebonosoft.com> Message-ID: <9963e56e1002090356p78ad0b0fu34d8b03941ab35df@mail.gmail.com> On Tue, Feb 9, 2010 at 5:07 PM, Srinivas Reddy Thatiparthy wrote: > >>>Formally, if a, b, c, ..., y, z ?are expressions and op1, op2, ..., > opN are comparison operators, then a op1 b ?op2 c ... y opN ?z is > equivalent to a op1 b and ?b op2 c and ... ?y opN z, except that each > expression is evaluated at most once. > > > Ok..Got it... > Especially last sentence caught my eye.. > Does the python compiler behaves same for below expression also? > > 1.If(a > My guess ?is, it behaves the same but just wanna double check.. With this, I think it's possible that 'b' might be evaluated more than once. Perhaps if it's an object property or something. -- ~noufal http://nibrahim.net.in From rmathews at gmail.com Tue Feb 9 13:17:50 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 9 Feb 2010 17:47:50 +0530 Subject: [BangPypers] date range In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DDC5@astserver3.akebonosoft.com> References: <1c4dc2781002090333r354c9919ved13c741c4b6d4c9@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDC5@astserver3.akebonosoft.com> Message-ID: <1c4dc2781002090417q24b07582qd5c5ec6b9dc07e8c@mail.gmail.com> On Tue, Feb 9, 2010 at 17:07, Srinivas Reddy Thatiparthy wrote: > Ok..Got it... > Especially last sentence caught my eye.. > Does the python compiler behaves same for below expression also? > > 1.If(a > My guess ?is, it behaves the same but just wanna double check.. > You want to know if "b" is evaluated only once? No. The (a < b) has nothing to do with the (b < c), the docs say that a < b < c is equivalent to a < b and b < c *except that* b is evaluated only once. That's the difference. Roshan From srinivas_thatiparthy at akebonosoft.com Tue Feb 9 13:18:14 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 9 Feb 2010 17:48:14 +0530 Subject: [BangPypers] date range In-Reply-To: <1c4dc2781002090417q24b07582qd5c5ec6b9dc07e8c@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DDD7@astserver3.akebonosoft.com> >>a < b < c is equivalent to a < b and b < c *except that* b is evaluated only once. Do mean to say that evaluating b only once applies to a Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DDD9@astserver3.akebonosoft.com> >>a < b < c is equivalent to a < b and b < c *except that* b is evaluated only once. Did u mean to say that evaluating b only once applies to a Regards, ~ Srini T From admin.nitjece at gmail.com Tue Feb 9 17:07:57 2010 From: admin.nitjece at gmail.com (Diptanu Choudhury) Date: Tue, 9 Feb 2010 21:37:57 +0530 Subject: [BangPypers] Trouble installing psycopg2 in Snow Leopard Message-ID: Hi All, I am trying to use the psycopg2 library to connect to Postgres database. However, on importing psycopg2, I get the following error. Traceback (most recent call last): File "", line 1, in File "/Library/Python/2.6/site-packages/psycopg2/__init__.py", line 60, in from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: dlopen(/Library/Python/2.6/site-packages/psycopg2/_psycopg.so, 2): Symbol not found: _PQbackendPID Referenced from: /Library/Python/2.6/site-packages/psycopg2/_psycopg.so Expected in: flat namespace in /Library/Python/2.6/site-packages/psycopg2/_psycopg.so The various software versions that I have on my system are - Python 2.6.1 PostGres 8.4 psycopg2-2.0.13 I have tried installing libpqxx on my system too. Can some one help me with this?? -- Thanks, Diptanu Choudhury Just a Coder, ThoughtWorks India Mobile - 09886760964 Web - www.linkedin.com/in/diptanu From rmathews at gmail.com Tue Feb 9 17:37:45 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 9 Feb 2010 22:07:45 +0530 Subject: [BangPypers] date range In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DDD9@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D2DDD7@astserver3.akebonosoft.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDD9@astserver3.akebonosoft.com> Message-ID: <1c4dc2781002090837ie5794cayc73c8048e12b8c3e@mail.gmail.com> On Tue, Feb 9, 2010 at 17:53, Srinivas Reddy Thatiparthy wrote: > >>>a < b < c ? is equivalent to ? a < b and b < c ? *except that* b is > evaluated only once. > > > > Did u ?mean to say that evaluating b only once applies to ?a expression only,NOT for expressions like ? a > Assuming you're talking to me, then yeah, that's what I was saying. But that was then. Now I think that the statement in the reference meant that while in "a < b < c" it is guaranteed that b is evaluated only once, in "a < b and b < c" b may or maynot be evaluated once. But then, that was what I was thinking when I started writing that sentence. Now I wonder if it is as ambiguous as that. What happens if b is something with side effects? Roshan From pradeep at btbytes.com Tue Feb 9 18:06:56 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Tue, 9 Feb 2010 12:06:56 -0500 Subject: [BangPypers] Trouble installing psycopg2 in Snow Leopard In-Reply-To: References: Message-ID: <3e3294b71002090906nc914beand030cfa371cea807@mail.gmail.com> On Tue, Feb 9, 2010 at 11:07 AM, Diptanu Choudhury wrote: > 2): Symbol not found: _PQbackendPID Looks like a 32/64 bit related mixup. See:http://stubblog.wordpress.com/2009/06/07/installing-psycopg2-on-osx/ Report back if you had any success. From admin.nitjece at gmail.com Tue Feb 9 20:09:39 2010 From: admin.nitjece at gmail.com (Diptanu Choudhury) Date: Wed, 10 Feb 2010 00:39:39 +0530 Subject: [BangPypers] Trouble installing psycopg2 in Snow Leopard In-Reply-To: <3e3294b71002090906nc914beand030cfa371cea807@mail.gmail.com> References: <3e3294b71002090906nc914beand030cfa371cea807@mail.gmail.com> Message-ID: I followed the instructions there. I get the following error now - Traceback (most recent call last): File "", line 1, in File "/Library/Python/2.6/site-packages/psycopg2/__init__.py", line 60, in from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: dlopen(/Library/Python/2.6/site-packages/psycopg2/_psycopg.so, 2): Symbol not found: _error_message Referenced from: /Library/Python/2.6/site-packages/psycopg2/_psycopg.so Expected in: flat namespace in /Library/Python/2.6/site-packages/psycopg2/_psycopg.so On Tue, Feb 9, 2010 at 10:36 PM, Pradeep Gowda wrote: > On Tue, Feb 9, 2010 at 11:07 AM, Diptanu Choudhury > wrote: > > 2): Symbol not found: _PQbackendPID > > Looks like a 32/64 bit related mixup. > > See:http://stubblog.wordpress.com/2009/06/07/installing-psycopg2-on-osx/ > > Report back if you had any success. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks, Diptanu Choudhury Just a Coder, ThoughtWorks India Mobile - 09886760964 Web - www.linkedin.com/in/diptanu From srinivas_thatiparthy at akebonosoft.com Wed Feb 10 05:07:42 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Wed, 10 Feb 2010 09:37:42 +0530 Subject: [BangPypers] date range In-Reply-To: <1c4dc2781002090837ie5794cayc73c8048e12b8c3e@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D2DDFB@astserver3.akebonosoft.com> It's called TWICE , no matter with or without side effects. I asked this on SO,somebody came up with this answer! >>> def check(): print 'Called Once' return 2 >>> 1>> 1>> Happy Hacking. Regards, ~ Srini T From nikunjbadjatya at gmail.com Wed Feb 10 12:47:42 2010 From: nikunjbadjatya at gmail.com (nikunj badjatya) Date: Wed, 10 Feb 2010 17:17:42 +0530 Subject: [BangPypers] "Error :Attempt to overwrite cell" while using xlwt to create excel sheets Message-ID: Hi, I am using xlwt 0.7.2 and Python 2.6. I come across a situation wherein one of the "rows" of the excel sheet created was being overwritten. And it was flagging the following error. File "/usr/local/lib/python2.6/site-packages/xlwt/Row.py", line 150, in insert_cell raise Exception(msg) Exception: Attempt to overwrite cell *Action Taken:* I commented out the "raise Exception" statement in Row.py library module. Here's the (line no. 150 ) of Row.py which i have edited: def insert_cell(self, col_index, cell_obj): if col_index in self.__cells: if not self.__parent._cell_overwrite_ok: msg = "Attempt to overwrite cell: sheetname=%r rowx=%d colx=%d" \ % (self.__parent.name, self.__idx, col_index) *#raise Exception(msg) #########*commented to avoid error. * prev_cell_obj = self.__cells[col_index] sst_idx = getattr(prev_cell_obj, 'sst_idx', None) if sst_idx is not None: self.__parent_wb.del_str(sst_idx) self.__cells[col_index] = cell_obj The excel sheet creation code now works fine. *My question is, Instead of manually goin to /usr/lib/.../row.py and commenting out the line, Can this be done through few lines of code in my program itself. ??* As in if I use my program on different system, then again I have to comment out that line in row.py..!! Any suggestions?? Thanks, Nikunj Bangalore, India From anandology at gmail.com Wed Feb 10 13:22:48 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 10 Feb 2010 17:52:48 +0530 Subject: [BangPypers] "Error :Attempt to overwrite cell" while using xlwt to create excel sheets In-Reply-To: References: Message-ID: <41139fcb1002100422i65b882cj96218fe6c7650a3@mail.gmail.com> On Wed, Feb 10, 2010 at 5:17 PM, nikunj badjatya wrote: > Hi, > I am using xlwt 0.7.2 and Python 2.6. > I come across a situation wherein one of the "rows" of the excel sheet > created was being overwritten. And it was flagging the following > error. > > File "/usr/local/lib/python2.6/site-packages/xlwt/Row.py", line 150, > in insert_cell > ? ? raise Exception(msg) > Exception: Attempt to overwrite cell > > *Action Taken:* > I commented out the "raise Exception" statement in Row.py library > module. > Here's the (line no. 150 ) of Row.py which i have edited: > > ?def insert_cell(self, col_index, cell_obj): > ? ? ? ?if col_index in self.__cells: > ? ? ? ? ? ?if not self.__parent._cell_overwrite_ok: > ? ? ? ? ? ? ? ?msg = "Attempt to overwrite cell: sheetname=%r rowx=%d > colx=%d" \ > ? ? ? ? ? ? ? ? ? ?% (self.__parent.name, self.__idx, col_index) > ? ? ? ? ? ? ? ?*#raise Exception(msg) > #########*commented to avoid error. * > ? ? ? ? ? ?prev_cell_obj = self.__cells[col_index] > ? ? ? ? ? ?sst_idx = getattr(prev_cell_obj, 'sst_idx', None) > ? ? ? ? ? ?if sst_idx is not None: > ? ? ? ? ? ? ? ?self.__parent_wb.del_str(sst_idx) > ? ? ? ?self.__cells[col_index] = cell_obj > > The excel sheet creation code now works fine. > > *My question is, Instead of manually goin to /usr/lib/.../row.py and > commenting out the line, Can this be done through few lines of code in > my program itself. ??* As in if I use my program on different system, > then again I have to comment out that line in row.py..!! > Any suggestions?? Try setting: worksheet._cell_overwrite_ok = True Looks like you can do that even when adding new sheets. sheet = workbook.add_sheet("foo", cell_overwrite_ok=True) Anand From kent37 at tds.net Wed Feb 10 13:43:25 2010 From: kent37 at tds.net (Kent Johnson) Date: Wed, 10 Feb 2010 07:43:25 -0500 Subject: [BangPypers] [Tutor] "Error :Attempt to overwrite cell" while using xlwt to create excel sheets In-Reply-To: References: Message-ID: <1c2a2c591002100443i3fe03e45r2b57c69d83f5c037@mail.gmail.com> On Wed, Feb 10, 2010 at 6:47 AM, nikunj badjatya wrote: > I commented out the "raise Exception" statement in Row.py library > module. > Here's the (line no. 150 ) of Row.py which i have edited: > > ? def insert_cell(self, col_index, cell_obj): > ? ? ? ? if col_index in self.__cells: > ? ? ? ? ? ? if not self.__parent._cell_overwrite_ok: > ? ? ? ? ? ? ? ? msg = "Attempt to overwrite cell: sheetname=%r rowx=%d > colx=%d" \ > ? ? ? ? ? ? ? ? ? ? % (self.__parent.name, self.__idx, col_index) > ? ? ? ? ? ? ? ? #raise Exception(msg) > #########*commented to avoid error. > ? ? ? ? ? ? prev_cell_obj = self.__cells[col_index] > ? ? ? ? ? ? sst_idx = getattr(prev_cell_obj, 'sst_idx', None) > ? ? ? ? ? ? if sst_idx is not None: > ? ? ? ? ? ? ? ? self.__parent_wb.del_str(sst_idx) > ? ? ? ? self.__cells[col_index] = cell_obj > > The excel sheet creation code now works fine. > > My question is, Instead of manually goin to /usr/lib/.../row.py and > commenting out the line, Can this be done through few lines of code in > my program itself. ?? Looking at the code above, you can see that the exception is raised only if self.__parent._cell_overwrite_ok is False. So there is an option to allow overwriting. >From the error message it appears that self.__parent is a Worksheet. Looking at the source code for Worksheet.py, the __init__() method does have an optional cell_overwrite_ok= parameter. This parameter is also available in Workbook.add_sheet(). So if you pass cell_overwrite=True to add_sheet() you should be OK. Kent From philippe.may at hanjinet.org Wed Feb 10 19:17:08 2010 From: philippe.may at hanjinet.org (Philippe May) Date: Wed, 10 Feb 2010 23:47:08 +0530 Subject: [BangPypers] Internationals getting Python/Programming Jobs (steve) Message-ID: <7B421666-398A-40CA-ACE7-E6D8D127BCCA@hanjinet.org> Hi, Sorry for late reply. I'm a French living in Bangalore, currently working for an Indian firm (actually a subsidiary of a French consulting company). I had the same idea when i came here first, so let me share my experience. It is not easy for a foreigner to get a local job, firms usually won't consider you unless they have a good reason to do so, like facing a western customer (initially my case). And this schema is not the one commonly chosen by the local main players: they usually hire foreigners only in their own country to win the trust of their customers, while the "real" job is made here by indian teams. Playing only on your technical skills is a miss imho. The expats who live here are usually on short term basis, trustful employees sent here for starting up a local project. I don't think it's possible to come to India as an independent worker either. So the first problem is to step in: almost the only way is to come on tourist visa, which legally forbids you to look for a job or do any business related activity. Maybe an option could be: come and set up your own company (for example private limited), there should be no big problem in doing so if you are very patient with paper work, then get the status of employed director (you need another director too). A local chartered accountant can help for few bucks. Then you are on the market as an entrepreneur. Regarding Python jobs, other people on this list answered already. I use heavily python "just" as a tool, my work not being a development project. This list shows that there are talented people around! Anyways, don't hesitate to revert back, i'd be happy to help. Finally: no, you're not mad... but many people would assume you are mad ;) Philippe > Hi all, > > I'm an Australian who is considering living/working in Bangalore, I work > with a lot of Indians here in Australia and figure why should they have all > the fun of coming to another country to work. > > The main questions I have are: > > - Do Bangalore IT companies hire many internationals? > - Can you get by with English only? (I note with happiness all > the correspondence on this list appears to be in English) > - What are the Python job prospects like in Bangalore? > - Do any of you work with/are internationals working in Bangalore and > would be willing to talk to me about it in more depth? > > Any other insights people have would be much appreciated, for example: am I > mad? > > Thank you > > p.s. I hope this isn't too off topic/general but I figure since I belong to > the Melbourne PUG we're like brothers in arms :) > -- > Rory Hart > From nagappan at gmail.com Thu Feb 11 08:30:24 2010 From: nagappan at gmail.com (Nagappan Alagappan) Date: Wed, 10 Feb 2010 23:30:24 -0800 Subject: [BangPypers] Announce: Linux Desktop Testing Project (LDTP) 2.0.3 released Message-ID: <9d0602eb1002102330v5138524eo8697f13700ce956e@mail.gmail.com> Hello, About LDTP: Linux Desktop Testing Project is aimed at producing high quality test automation framework (using GNOME / Python) and cutting-edge tools that can be used to test Linux Desktop and improve it. It uses the Accessibility libraries to poke through the application's user interface. We strive to help in building a quality desktop. Changes in this release: Return always unicode string in gettextvalue, required to fix automated test script in VMware Workstation Fix ooldtp compatibility with LDTPv1 as reported by Mago [1] team Patch by James Tatum for getallstates compatible with hasstate function Fix bug b.g.o#608413 Fix Firefox preference accessing bug, reported by Aaron Yuan < yuanchong1986 at gmail.com> Download source: http://download.freedesktop.org/ldtp/2.x/2.0.x/ldtp-2.0.3.tar.gz Download RPM from http://download.opensuse.org/repositories/home:/anagappan:/ldtp2:/rpm/ Will schedule deb build in openSUSE build service tomorrow Documentation references: For detailed information on LDTP framework and latest updates visit http://ldtp.freedesktop.org For information on various APIs in LDTP including those added for this release can be got from http://ldtp.freedesktop.org/user-doc/index.html Report bugs - http://ldtp.freedesktop.org/wiki/Bugs To subscribe to LDTP mailing lists, visit http://ldtp.freedesktop.org/wiki/Mailing_20list IRC Channel - #ldtp on irc.freenode.net Thanks Nagappan [1] - http://mago.ubuntu.com -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com From nikunjbadjatya at gmail.com Thu Feb 11 09:37:44 2010 From: nikunjbadjatya at gmail.com (nikunj badjatya) Date: Thu, 11 Feb 2010 14:07:44 +0530 Subject: [BangPypers] [Tutor] "Error :Attempt to overwrite cell" while using xlwt to create excel sheets In-Reply-To: <1c2a2c591002100443i3fe03e45r2b57c69d83f5c037@mail.gmail.com> References: <1c2a2c591002100443i3fe03e45r2b57c69d83f5c037@mail.gmail.com> Message-ID: Hi, Many thanks to all.. I tried cell_overwrite=True and its working fine..!! On Wed, Feb 10, 2010 at 6:13 PM, Kent Johnson wrote: > On Wed, Feb 10, 2010 at 6:47 AM, nikunj badjatya > wrote: > > > I commented out the "raise Exception" statement in Row.py library > > module. > > Here's the (line no. 150 ) of Row.py which i have edited: > > > > def insert_cell(self, col_index, cell_obj): > > if col_index in self.__cells: > > if not self.__parent._cell_overwrite_ok: > > msg = "Attempt to overwrite cell: sheetname=%r rowx=%d > > colx=%d" \ > > % (self.__parent.name, self.__idx, col_index) > > #raise Exception(msg) > > #########*commented to avoid error. > > prev_cell_obj = self.__cells[col_index] > > sst_idx = getattr(prev_cell_obj, 'sst_idx', None) > > if sst_idx is not None: > > self.__parent_wb.del_str(sst_idx) > > self.__cells[col_index] = cell_obj > > > > The excel sheet creation code now works fine. > > > > My question is, Instead of manually goin to /usr/lib/.../row.py and > > commenting out the line, Can this be done through few lines of code in > > my program itself. ?? > > Looking at the code above, you can see that the exception is raised > only if self.__parent._cell_overwrite_ok is False. So there is an > option to allow overwriting. > > From the error message it appears that self.__parent is a Worksheet. > Looking at the source code for Worksheet.py, the __init__() method > does have an optional cell_overwrite_ok= parameter. This parameter is > also available in Workbook.add_sheet(). So if you pass > cell_overwrite=True to add_sheet() you should be OK. > > Kent > From manikandank at tce.edu Thu Feb 11 09:53:14 2010 From: manikandank at tce.edu (K.Manikandan) Date: Thu, 11 Feb 2010 14:23:14 +0530 Subject: [BangPypers] Help regarding saml2 Message-ID: <350836d306614cc097ad69857c61119b.squirrel@mail.tcenet> Hi, We are trying to provide session management within a big domain, say kkk.edu... like, session usage between aaa.kkk.edu and bbb.kkk.edu. We came to know that saml2 provides session management for these kind of requirements. We are trying to learn about that, but we have found very few resources. Can anyone suggest a way to maintain sessions in a better way or help us in using python-saml2... Cheers, Manikandan K ----------------------------------------- This email was sent using TCEMail Service. Thiagarajar College of Engineering Madurai-625 015, India From dhananjay.nene at gmail.com Thu Feb 11 10:23:29 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Thu, 11 Feb 2010 14:53:29 +0530 Subject: [BangPypers] Help regarding saml2 In-Reply-To: <350836d306614cc097ad69857c61119b.squirrel@mail.tcenet> References: <350836d306614cc097ad69857c61119b.squirrel@mail.tcenet> Message-ID: AFAIK while saml2 can help support session management across domains, it is unlikely to be doing it for you. You can use it for authentication and combined with a SSO protocol you could allow credentials to be transferred across various services. SAML2 will help you essentially implement cross domain authentication and transfer of credentials and privileges .. but for that there's tremendous amount of fine level work that will be required. Note: I have used SAML2 in the past and have written code around it .. but that was long ago and I have no idea about what python-saml2 per se does - however if it does cross domain session management, it would leave me very surprised. On Thu, Feb 11, 2010 at 2:23 PM, K.Manikandan wrote: > > Hi, > > We are trying to provide session management within a big domain, say > kkk.edu... like, session usage between aaa.kkk.edu and bbb.kkk.edu. We > came to know that saml2 provides session management for these kind of > requirements. We are trying to learn about that, but we have found very > few resources. Can anyone suggest a way to maintain sessions in a better > way or help us in using python-saml2... > > Cheers, > Manikandan K > > > > ----------------------------------------- > This email was sent using TCEMail Service. > Thiagarajar College of Engineering > Madurai-625 015, India > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From hartror at gmail.com Thu Feb 11 10:20:35 2010 From: hartror at gmail.com (Rory Hart) Date: Thu, 11 Feb 2010 20:20:35 +1100 Subject: [BangPypers] Internationals getting Python/Programming Jobs (steve) In-Reply-To: <7B421666-398A-40CA-ACE7-E6D8D127BCCA@hanjinet.org> References: <7B421666-398A-40CA-ACE7-E6D8D127BCCA@hanjinet.org> Message-ID: <2ce9d06b1002110120r23cdf9d5n83f2d24c8b269da6@mail.gmail.com> Hi Philippe Thanks a lot for the detailed advice! Sounds like I might be best off doing some freelancing with contacts here in Australia while living there on a tourist visa. Thanks again! Rory On Thu, Feb 11, 2010 at 5:17 AM, Philippe May wrote: > Hi, > > Sorry for late reply. > > I'm a French living in Bangalore, currently working for an Indian firm > (actually a subsidiary of a French consulting company). > I had the same idea when i came here first, so let me share my experience. > > It is not easy for a foreigner to get a local job, firms usually won't > consider you unless they have a good reason to do so, like facing a western > customer (initially my case). And this schema is not the one commonly chosen > by the local main players: they usually hire foreigners only in their own > country to win the trust of their customers, while the "real" job is made > here by indian teams. Playing only on your technical skills is a miss imho. > > The expats who live here are usually on short term basis, trustful > employees sent here for starting up a local project. I don't think it's > possible to come to India as an independent worker either. > > So the first problem is to step in: almost the only way is to come on > tourist visa, which legally forbids you to look for a job or do any business > related activity. > Maybe an option could be: come and set up your own company (for example > private limited), there should be no big problem in doing so if you are very > patient with paper work, then get the status of employed director (you need > another director too). A local chartered accountant can help for few bucks. > Then you are on the market as an entrepreneur. > > Regarding Python jobs, other people on this list answered already. I use > heavily python "just" as a tool, my work not being a development project. > This list shows that there are talented people around! > > Anyways, don't hesitate to revert back, i'd be happy to help. > > Finally: no, you're not mad... but many people would assume you are mad ;) > > Philippe > > > Hi all, > > > > I'm an Australian who is considering living/working in Bangalore, I work > > with a lot of Indians here in Australia and figure why should they have > all > > the fun of coming to another country to work. > > > > The main questions I have are: > > > > - Do Bangalore IT companies hire many internationals? > > - Can you get by with English only? (I note with happiness all > > the correspondence on this list appears to be in English) > > - What are the Python job prospects like in Bangalore? > > - Do any of you work with/are internationals working in Bangalore and > > would be willing to talk to me about it in more depth? > > > > Any other insights people have would be much appreciated, for example: am > I > > mad? > > > > Thank you > > > > p.s. I hope this isn't too off topic/general but I figure since I belong > to > > the Melbourne PUG we're like brothers in arms :) > > -- > > Rory Hart > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From abpillai at gmail.com Thu Feb 11 11:12:09 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 11 Feb 2010 15:42:09 +0530 Subject: [BangPypers] [Tutor] "Error :Attempt to overwrite cell" while using xlwt to create excel sheets In-Reply-To: References: <1c2a2c591002100443i3fe03e45r2b57c69d83f5c037@mail.gmail.com> Message-ID: <8548c5f31002110212j2897e904nd5437c04c17d858c@mail.gmail.com> On Thu, Feb 11, 2010 at 2:07 PM, nikunj badjatya wrote: > Hi, > Many thanks to all.. > I tried cell_overwrite=True and its working fine..!! > > > Good you found the solution but please don't cross-post across groups. Regards > On Wed, Feb 10, 2010 at 6:13 PM, Kent Johnson wrote: > > -- --Anand From bhaskar.jain2002 at gmail.com Thu Feb 11 13:06:07 2010 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Thu, 11 Feb 2010 17:36:07 +0530 Subject: [BangPypers] Help regarding saml2 In-Reply-To: References: <350836d306614cc097ad69857c61119b.squirrel@mail.tcenet> Message-ID: <7f2cbc971002110406m2509e161qd052de3c541683d4@mail.gmail.com> On Thu, Feb 11, 2010 at 2:53 PM, Dhananjay Nene wrote: > AFAIK while saml2 can help support session management across domains, it is > unlikely to be doing it for you. You can use it for authentication and > combined with a SSO protocol you could allow credentials to be transferred > across various services. > > SAML2 will help you essentially implement cross domain authentication and > transfer of credentials and privileges .. but for that there's tremendous > amount of fine level work that will be required. > > Note: I have used SAML2 in the past and have written code around it .. but > that was long ago and I have no idea about what python-saml2 per se does - > however if it does cross domain session management, it would leave me very > surprised. > > On Thu, Feb 11, 2010 at 2:23 PM, K.Manikandan wrote: > > > > > Hi, > > > > We are trying to provide session management within a big domain, say > > kkk.edu... like, session usage between aaa.kkk.edu and bbb.kkk.edu. We > > came to know that saml2 provides session management for these kind of > > requirements. We are trying to learn about that, but we have found very > > few resources. Can anyone suggest a way to maintain sessions in a better > > way or help us in using python-saml2... > > > > Cheers, > > Manikandan K > > > > Would'nt simple cookies help you here since your domain is the same. SAML is for identity federation and is too big a monster for your use case. Have used SAML recently and AFAIK python-saml works for GoogleApps only. You can use the python binding of lasso library. ( http://lasso.entrouvert.org/) Domain = ".kkk.edu" Best regards, Bhaskar. From ddurham at yahoo-inc.com Thu Feb 11 23:43:23 2010 From: ddurham at yahoo-inc.com (Doug Durham) Date: Thu, 11 Feb 2010 14:43:23 -0800 Subject: [BangPypers] Python Jobs at Yahoo! Search Bangalore... Message-ID: <333A37994F38E442B40B135C7AA3B6E70524FACE@SNV-EXVS09.ds.corp.yahoo.com> Greetings, I'm Doug Durham, a Senior Manager at Yahoo! Search. I'm located in Sunnyvale California, but I'm looking to forming a new team in Bangalore. My team develops Python based feature extraction frameworks for large scale analysis of search engine and user behavior. Our development is all in Python using open source tools. I am looking for a manager and two engineers to found the team. I am very interested in filling the manager position since this will form the core of the team. If you are a manager or are a team lead interested in moving into management send us your resume. Of course developers should send their resumes in too. This is an opportunity to be in at the beginning of a new team doing some very interesting Python work. If you are interested please send your resume to: Harsha Khattri (hkhattri at yahoo-inc.com). Doug Durham Senior Manager Yahoo! Search See the Job Descriptions below: (first the manager then the developer) Position: Engineering Manager, Yahoo Search Product - SAMA team Location: Bangalore, India Do you feel that you have what it takes to positively affect the lives of up to half a billion people? Does understanding the behavior of every search engine in the world interest you? Is your idea of fun, thinking about/reading on the web to understand where the next generation of the internet is going towards? And, lastly, do you think that our mission of finding, using, sharing and expanding the whole breadth of human knowledge is a worthy goal to aspire to? Then, we would love to hear from you and talk to you! Yahoo! is the most popular internet brand in the world today with more than half a billion users visiting our virtual door steps every month. Yahoo's properties like mail, messenger, flickr and delicious are leaders in their respective fields and our web search engine is one of the most trafficked places in the web, across the world today. Yahoo's Search and Advertising, Metrics and Analysis (SAMA) team builds the tools and produces the analysis allow us to understand every search engine on earth and grasp user experience at a deep level. Our job is to build highly scalable systems that can obtain extremely high fidelity snapshots of the state of search engines and how they react to user behavior. Imagine the job of disassembling the latest model of an automobile to understand how it works in detail. This is what we do for the web. We dissect hundreds of thousands of web pages in exacting detail with zero tolerance for errors. Building this system throws up challenges in data quality, scalability, and large scale data management. Our team is looking for a highly technical, energetic and passionate individual who has shown demonstrated expertise in owning/managing delivery of complex technical systems by working with a team of talented engineers in the capacity of a technical manager. This person will be responsible for founding a team to transfer and extend a sophistication web feature extraction system from Yahoo! Sunnyvale. This position requires ongoing close collaboration with the SAMA team in Yahoo! Sunnyvale to meet the data extraction needs for our ongoing investigative work. The person in this position will have full ownership for the architecture and technical direction of the product. It is expected that the manager will have a deep understanding of the technical details of the product and work in a hands on manner with his engineers. Core responsibilities of this position: * Hire, retain and manage a highly talented team of engineers ranging from fresh college grads to seasoned developers. * Set a vision for the team and evolve the roadmap of the products owned by this team, by working closely with various stakeholders including product management, research engineers and senior management. * Develop and execute the process by which data is processed and extracted to meet the aggressive evaluation needs of Yahoo! Sunnyvale. * Understand and evolve the technical components and the architecture of the systems owned by the team and maintain the highest standards of quality for the work delivered by the team. Required qualifications and experience: * Bachelor's degree and/or a master's degree in computer science and engineering, from a top tier institute, is required. * At least 8+ years of experience, with 2+ years of it in engineering management positions, would be required. * Previous work experience in web technologies and/or ETL systems. * Strong grasp of CS fundamentals, data structures and algorithms, including recent hands-on experience in building and deploying complex large scale systems would be required. * Demonstrated experience in hiring and managing a team of about 2 - 6 engineers would be expected, as a minimum. * Demonstrated ability in project management significant software projects involving multiple dependencies and stakeholders would be required. * Previous experience in search technologies and data mining or algorithmic work in these fields would be a huge plus, but not required. Yahoo! Inc. is an equal opportunity employer. For more information or to search all of our openings, please visit http://careers.yahoo.com Position: Software Engineer, Yahoo Search Product - SAMA team Location: Bangalore, India Do you feel that you have what it takes to positively affect the lives of up to half a billion people? Does understanding the behavior of every search engine in the world interest you? Is your idea of fun, thinking about/reading on the web to understand where the next generation of the internet is going towards? And, lastly, do you think that our mission of finding, using, sharing and expanding the whole breadth of human knowledge is a worthy goal to aspire to? Then, we would love to hear from you and talk to you! Yahoo! is the most popular internet brand in the world today with more than half a billion users visiting our virtual door steps every month. Yahoo's properties like mail, messenger, flickr and delicious are leaders in their respective fields and our web search engine is one of the most trafficked places in the web, across the world today. Yahoo's Search and Advertising, Metrics and Analysis (SAMA) team builds the tools and produces the analysis that allow us to understand every search engine on earth and grasp user experience at a deep level. Our job is to build highly scalable systems that can obtain extremely high fidelity snapshots of the state of search engines and how they react to user behavior. Imagine the job of disassembling the latest model of an automobile to understand how it works in detail. This is what we do for the web. We dissect hundreds of thousands of web pages in exacting detail with zero tolerance for errors. Building this system presents challenges in data quality, scalability, and large scale data management. Our team is looking for a highly technical, energetic and passionate individual who has shown demonstrated expertise in owning/managing delivery of complex technical systems by working with a team of talented engineers in the capacity of a software developer. This person will play a key role in a new team being formed to transfer and extend a sophistication web feature extraction system from Yahoo! Sunnyvale. This position requires ongoing close collaboration with the SAMA team in Yahoo! Sunnyvale to meet the data extraction needs for our ongoing investigative work. The person in this position will play an important role in developing the architecture and technical direction of the product. It is expected that the developer will participate in both the development and ongoing operation of this product. Core responsibilities of this position: * Work closely with the team to update the abilities of the sophisticated parsing framework at the heart of this product. * Provide input on the technical direction of the product in both design and implementation. * Participate with the team in moving data through the system to meet the needs of the Sunnyvale team. * Utilize standard software engineering practices in design and development and maintain the highest standards of quality for the work delivered by the team. Required qualifications and experience: * Bachelor's degree and/or a master's degree in computer science and engineering, from a top tier institute, is required. * At least 4+ years of software development experience. Commercial use of scripting languages such as Python or Ruby is a definite plus. * Previous work experience in web technologies and/or ETL systems. * Strong grasp of CS fundamentals, data structures and algorithms, including recent hands-on experience in building and deploying complex large scale systems would be required. * Demonstrated ability for self directed work and in collaboration with a team. * Previous experience in search technologies and data mining or algorithmic work in these fields would be a huge plus, but not required. Yahoo! Inc. is an equal opportunity employer. For more information or to search all of our openings, please visit http://careers.yahoo.com From manikandank at tce.edu Fri Feb 12 05:49:37 2010 From: manikandank at tce.edu (K.Manikandan) Date: Fri, 12 Feb 2010 10:19:37 +0530 Subject: [BangPypers] Help regarding saml2 In-Reply-To: <7f2cbc971002110406m2509e161qd052de3c541683d4@mail.gmail.com> References: <350836d306614cc097ad69857c61119b.squirrel@mail.tcenet> <7f2cbc971002110406m2509e161qd052de3c541683d4@mail.gmail.com> Message-ID: <7d2541c1c0211c9982526f5d78d9cb69.squirrel@mail.tce.edu> > Would'nt simple cookies help you here since your domain is the same. > > SAML is for identity federation and is too big a monster for your use > case. > Have used SAML recently and AFAIK python-saml works for GoogleApps only. > You can use the python binding of lasso library. ( > http://lasso.entrouvert.org/) > > > Domain = ".kkk.edu" > > > Best regards, > Bhaskar. Each aaa.kkk.edu and bbb.kkk.edu receives separate requests.In such a case,working with req['session'] may not help here.How does python-lasso help in this scenario? Regards, Manikandan.K ----------------------------------------- This email was sent using TCEMail Service. Thiagarajar College of Engineering Madurai-625 015, India From learningpython at aol.com Fri Feb 12 07:08:42 2010 From: learningpython at aol.com (learningpython at aol.com) Date: Fri, 12 Feb 2010 01:08:42 -0500 Subject: [BangPypers] (10054, 'Connection reset by peer') In-Reply-To: References: Message-ID: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> Hello Gurus, I am troubled suddenly with (10054, 'Connection reset by peer') error with same settings, which was working earlier in the day. data,addr = self.mysock.recvfrom(buf) after this step eclipse dies with (10054, 'Connection reset by peer') error. Have tried after restarting the system Have tried after restarting the remote sytem . Ping to remote system is fine Note: The IP and every configuration is same as when it is working .. Any clues will help me .. Regards -- Anand From kausikram at gmail.com Fri Feb 12 07:25:31 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Fri, 12 Feb 2010 11:55:31 +0530 Subject: [BangPypers] (10054, 'Connection reset by peer') In-Reply-To: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> References: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> Message-ID: <2597ddb91002112225j5f5ab87ep589f3e8a963dedda@mail.gmail.com> > > Hello Gurus, > > I am troubled suddenly with (10054, 'Connection reset by peer') error with > same settings, which was working earlier in the day. > What same settings. > data,addr = self.mysock.recvfrom(buf) after this step eclipse dies with > (10054, 'Connection reset by peer') error. > Note: The IP and every configuration is same as when it is working .. > > Any clues will help me .. > we will be happy to give clues if we get a complete question. -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: blog.kausikram.net | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From abpillai at gmail.com Fri Feb 12 07:26:35 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 12 Feb 2010 11:56:35 +0530 Subject: [BangPypers] (10054, 'Connection reset by peer') In-Reply-To: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> References: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> Message-ID: <8548c5f31002112226x3034185ewdbaa64aa20c10abe@mail.gmail.com> On Fri, Feb 12, 2010 at 11:38 AM, wrote: > > > > > > > Hello Gurus, > > I am troubled suddenly with (10054, 'Connection reset by peer') error with > same settings, which was working earlier in the day. > > data,addr = self.mysock.recvfrom(buf) after this step eclipse dies with > (10054, 'Connection reset by peer') error. > This is nothing but the ECONNRESET error on the underlying socket when it tries to do a send. In TCP terms, this means the other end suddenly dropped the connection using a RST packet, while your program was trying to write to it. > Have tried after restarting the system > Have tried after restarting the remote sytem . > Ping to remote system is fine > > Note: The IP and every configuration is same as when it is working .. > > Any clues will help me .. > > Regards > -- Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From bhaskar.jain2002 at gmail.com Fri Feb 12 07:32:24 2010 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Fri, 12 Feb 2010 12:02:24 +0530 Subject: [BangPypers] Help regarding saml2 In-Reply-To: <7d2541c1c0211c9982526f5d78d9cb69.squirrel@mail.tce.edu> References: <350836d306614cc097ad69857c61119b.squirrel@mail.tcenet> <7f2cbc971002110406m2509e161qd052de3c541683d4@mail.gmail.com> <7d2541c1c0211c9982526f5d78d9cb69.squirrel@mail.tce.edu> Message-ID: <7f2cbc971002112232y18cd39e3x909775bfd59e8a06@mail.gmail.com> On Fri, Feb 12, 2010 at 10:19 AM, K.Manikandan wrote: > > > Would'nt simple cookies help you here since your domain is the same. > > > > SAML is for identity federation and is too big a monster for your use > > case. > > Have used SAML recently and AFAIK python-saml works for GoogleApps only. > > You can use the python binding of lasso library. ( > > http://lasso.entrouvert.org/) > > > > > > Domain = ".kkk.edu" > > > > > > Best regards, > > Bhaskar. > > Each aaa.kkk.edu and bbb.kkk.edu receives separate > requests.In such a case,working with req['session'] may not > help here.How does python-lasso help in this scenario? > Seperate requests? Session management? Can you explain your use-case in a bit more details. SAML is for federating identities. So for example, you have multiple applications/web servers requiring authentication. So you can have a single identity provider which handles the authentication of the users and sends the user "details" to the application concerned. There is trust between the applications and the identity provider. There are things called profiles and the most common one is the "Web browser SSO profile". I dont thing session management could be handled. Most commonly SAML is used for identity federation and Single Sign On only. So in the web browser SSO profile, say you have two applications - GoogleApps and Salesforce. You set up an identity provider locally and configure the two applications for SSO. When a user tries to access the application, the application redirects the browser (User Agent) to the identity provider. The identity provider handles the authentication and authorization part. If authentication is successful, it sends an assertion to the application. The application is no more concerned about the authentication part. Advantages are if you are already authenticated with the identity provider, you achieve SSO with all the applications. If the user leaves the company, he can no longer access the application. (Day zero user revocation) etc etc Pretty detailed standard though. Can check - http://docs.oasis-open.org/security/saml/v2.0/ Can ask the same on saml-dev mailing list - http://lists.oasis-open.org/archives/saml-dev/ With best regards, Bhaskar. From gnuyoga at gmail.com Fri Feb 12 08:14:26 2010 From: gnuyoga at gmail.com (Sreekanth B) Date: Fri, 12 Feb 2010 12:44:26 +0530 Subject: [BangPypers] Python Jobs at Yahoo! Search Bangalore... In-Reply-To: <333A37994F38E442B40B135C7AA3B6E70524FACE@SNV-EXVS09.ds.corp.yahoo.com> References: <333A37994F38E442B40B135C7AA3B6E70524FACE@SNV-EXVS09.ds.corp.yahoo.com> Message-ID: hi On Fri, Feb 12, 2010 at 4:13 AM, Doug Durham wrote: > Greetings, > > I'm Doug Durham, a Senior Manager at Yahoo! Search. I'm located in > Sunnyvale California, but I'm looking to forming a new team in > Bangalore. My team develops Python based feature extraction frameworks > for large scale analysis of search engine and user behavior. finally a real proof (from a real company) that we have python based job available ;) Doug Durham, thanks for posting ! thanks - sree From lawgon at au-kbc.org Fri Feb 12 08:34:00 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 12 Feb 2010 13:04:00 +0530 Subject: [BangPypers] Python Jobs at Yahoo! Search Bangalore... In-Reply-To: References: <333A37994F38E442B40B135C7AA3B6E70524FACE@SNV-EXVS09.ds.corp.yahoo.com> Message-ID: <201002121304.00997.lawgon@au-kbc.org> On Friday 12 Feb 2010 12:44:26 pm Sreekanth B wrote: > > I'm Doug Durham, a Senior Manager at Yahoo! Search. I'm located in > > Sunnyvale California, but I'm looking to forming a new team in > > Bangalore. My team develops Python based feature extraction frameworks > > for large scale analysis of search engine and user behavior. > > finally a real proof (from a real company) that we have python based job > available ;) > you mean companies like zeomega, mahiti etc that are running around for python developers are not *real* companies ;-) -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From brijithp at gmail.com Fri Feb 12 09:11:55 2010 From: brijithp at gmail.com (BR!j!TH) Date: Fri, 12 Feb 2010 13:41:55 +0530 Subject: [BangPypers] Auto starting a service by adding it in rc.local is not working for me ....Please help Message-ID: <99f221551002120011o2f8a36c8i645fa6f484c8c6a0@mail.gmail.com> Hi, I have created a client server scripts in python. The server script is to be run background in a system all the time.. So I decided to put it in rc.local. But its not working. I don't know why ..? An interesting thing is the script that I added in rc.local in running but it is not working in desired why ... But when I run the script manually in a terminal its working flawlessly... brijith at nucoreindia.com www.linux-minds.blogspot.com From learningpython at aol.com Fri Feb 12 10:56:09 2010 From: learningpython at aol.com (learningpython at aol.com) Date: Fri, 12 Feb 2010 04:56:09 -0500 Subject: [BangPypers] BangPypers Digest, Vol 30, Issue 25 In-Reply-To: References: Message-ID: <8CC79E0BCA87909-14CC-AA8C@webmail-d070.sysops.aol.com> Hi Gurus, Thank you Kaushiik and Anand The settings i mean are the IP address i am interacting, they remain the same. I am just running my test initiation as usual. What i mean, is there is no change either in the environment where i am running and environment at the remote machine both in my control. Any ideas will really help me .. Is there any thing i should try to any commands, reset or seeing the quality of connection etc. I am not sure if i have helped my selves to allow any help .. My apologies.. Thank you . - Anand -----Original Message----- From: bangpypers-request at python.org To: bangpypers at python.org Sent: Fri, Feb 12, 2010 7:25 pm Subject: BangPypers Digest, Vol 30, Issue 25 Send BangPypers mailing list submissions to bangpypers at python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/bangpypers or, via email, send a message with subject or body 'help' to bangpypers-request at python.org You can reach the person managing the list at bangpypers-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of BangPypers digest..." Today's Topics: 1. Re: Help regarding saml2 (bhaskar jain) 2. Python Jobs at Yahoo! Search Bangalore... (Doug Durham) 3. Re: Help regarding saml2 (K.Manikandan) 4. (10054, 'Connection reset by peer') (learningpython at aol.com) 5. Re: (10054, 'Connection reset by peer') (kausikram krishnasayee) ---------------------------------------------------------------------- Message: 1 Date: Thu, 11 Feb 2010 17:36:07 +0530 From: bhaskar jain To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Help regarding saml2 Message-ID: <7f2cbc971002110406m2509e161qd052de3c541683d4 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 On Thu, Feb 11, 2010 at 2:53 PM, Dhananjay Nene wrote: > AFAIK while saml2 can help support session management across domains, it is > unlikely to be doing it for you. You can use it for authentication and > combined with a SSO protocol you could allow credentials to be transferred > across various services. > > SAML2 will help you essentially implement cross domain authentication and > transfer of credentials and privileges .. but for that there's tremendous > amount of fine level work that will be required. > > Note: I have used SAML2 in the past and have written code around it .. but > that was long ago and I have no idea about what python-saml2 per se does - > however if it does cross domain session management, it would leave me very > surprised. > > On Thu, Feb 11, 2010 at 2:23 PM, K.Manikandan wrote: > > > > > Hi, > > > > We are trying to provide session management within a big domain, say > > kkk.edu... like, session usage between aaa.kkk.edu and bbb.kkk.edu. We > > came to know that saml2 provides session management for these kind of > > requirements. We are trying to learn about that, but we have found very > > few resources. Can anyone suggest a way to maintain sessions in a better > > way or help us in using python-saml2... > > > > Cheers, > > Manikandan K > > > > Would'nt simple cookies help you here since your domain is the same. SAML is for identity federation and is too big a monster for your use case. Have used SAML recently and AFAIK python-saml works for GoogleApps only. You can use the python binding of lasso library. ( http://lasso.entrouvert.org/) Domain = ".kkk.edu" Best regards, Bhaskar. ------------------------------ Message: 2 Date: Thu, 11 Feb 2010 14:43:23 -0800 From: "Doug Durham" To: Cc: Harsha Khattri Subject: [BangPypers] Python Jobs at Yahoo! Search Bangalore... Message-ID: <333A37994F38E442B40B135C7AA3B6E70524FACE at SNV-EXVS09.ds.corp.yahoo.com> Content-Type: text/plain; charset="us-ascii" Greetings, I'm Doug Durham, a Senior Manager at Yahoo! Search. I'm located in Sunnyvale California, but I'm looking to forming a new team in Bangalore. My team develops Python based feature extraction frameworks for large scale analysis of search engine and user behavior. Our development is all in Python using open source tools. I am looking for a manager and two engineers to found the team. I am very interested in filling the manager position since this will form the core of the team. If you are a manager or are a team lead interested in moving into management send us your resume. Of course developers should send their resumes in too. This is an opportunity to be in at the beginning of a new team doing some very interesting Python work. If you are interested please send your resume to: Harsha Khattri (hkhattri at yahoo-inc.com). Doug Durham Senior Manager Yahoo! Search See the Job Descriptions below: (first the manager then the developer) Position: Engineering Manager, Yahoo Search Product - SAMA team Location: Bangalore, India Do you feel that you have what it takes to positively affect the lives of up to half a billion people? Does understanding the behavior of every search engine in the world interest you? Is your idea of fun, thinking about/reading on the web to understand where the next generation of the internet is going towards? And, lastly, do you think that our mission of finding, using, sharing and expanding the whole breadth of human knowledge is a worthy goal to aspire to? Then, we would love to hear from you and talk to you! Yahoo! is the most popular internet brand in the world today with more than half a billion users visiting our virtual door steps every month. Yahoo's properties like mail, messenger, flickr and delicious are leaders in their respective fields and our web search engine is one of the most trafficked places in the web, across the world today. Yahoo's Search and Advertising, Metrics and Analysis (SAMA) team builds the tools and produces the analysis allow us to understand every search engine on earth and grasp user experience at a deep level. Our job is to build highly scalable systems that can obtain extremely high fidelity snapshots of the state of search engines and how they react to user behavior. Imagine the job of disassembling the latest model of an automobile to understand how it works in detail. This is what we do for the web. We dissect hundreds of thousands of web pages in exacting detail with zero tolerance for errors. Building this system throws up challenges in data quality, scalability, and large scale data management. Our team is looking for a highly technical, energetic and passionate individual who has shown demonstrated expertise in owning/managing delivery of complex technical systems by working with a team of talented engineers in the capacity of a technical manager. This person will be responsible for founding a team to transfer and extend a sophistication web feature extraction system from Yahoo! Sunnyvale. This position requires ongoing close collaboration with the SAMA team in Yahoo! Sunnyvale to meet the data extraction needs for our ongoing investigative work. The person in this position will have full ownership for the architecture and technical direction of the product. It is expected that the manager will have a deep understanding of the technical details of the product and work in a hands on manner with his engineers. Core responsibilities of this position: * Hire, retain and manage a highly talented team of engineers ranging from fresh college grads to seasoned developers. * Set a vision for the team and evolve the roadmap of the products owned by this team, by working closely with various stakeholders including product management, research engineers and senior management. * Develop and execute the process by which data is processed and extracted to meet the aggressive evaluation needs of Yahoo! Sunnyvale. * Understand and evolve the technical components and the architecture of the systems owned by the team and maintain the highest standards of quality for the work delivered by the team. Required qualifications and experience: * Bachelor's degree and/or a master's degree in computer science and engineering, from a top tier institute, is required. * At least 8+ years of experience, with 2+ years of it in engineering management positions, would be required. * Previous work experience in web technologies and/or ETL systems. * Strong grasp of CS fundamentals, data structures and algorithms, including recent hands-on experience in building and deploying complex large scale systems would be required. * Demonstrated experience in hiring and managing a team of about 2 - 6 engineers would be expected, as a minimum. * Demonstrated ability in project management significant software projects involving multiple dependencies and stakeholders would be required. * Previous experience in search technologies and data mining or algorithmic work in these fields would be a huge plus, but not required. Yahoo! Inc. is an equal opportunity employer. For more information or to search all of our openings, please visit http://careers.yahoo.com Position: Software Engineer, Yahoo Search Product - SAMA team Location: Bangalore, India Do you feel that you have what it takes to positively affect the lives of up to half a billion people? Does understanding the behavior of every search engine in the world interest you? Is your idea of fun, thinking about/reading on the web to understand where the next generation of the internet is going towards? And, lastly, do you think that our mission of finding, using, sharing and expanding the whole breadth of human knowledge is a worthy goal to aspire to? Then, we would love to hear from you and talk to you! Yahoo! is the most popular internet brand in the world today with more than half a billion users visiting our virtual door steps every month. Yahoo's properties like mail, messenger, flickr and delicious are leaders in their respective fields and our web search engine is one of the most trafficked places in the web, across the world today. Yahoo's Search and Advertising, Metrics and Analysis (SAMA) team builds the tools and produces the analysis that allow us to understand every search engine on earth and grasp user experience at a deep level. Our job is to build highly scalable systems that can obtain extremely high fidelity snapshots of the state of search engines and how they react to user behavior. Imagine the job of disassembling the latest model of an automobile to understand how it works in detail. This is what we do for the web. We dissect hundreds of thousands of web pages in exacting detail with zero tolerance for errors. Building this system presents challenges in data quality, scalability, and large scale data management. Our team is looking for a highly technical, energetic and passionate individual who has shown demonstrated expertise in owning/managing delivery of complex technical systems by working with a team of talented engineers in the capacity of a software developer. This person will play a key role in a new team being formed to transfer and extend a sophistication web feature extraction system from Yahoo! Sunnyvale. This position requires ongoing close collaboration with the SAMA team in Yahoo! Sunnyvale to meet the data extraction needs for our ongoing investigative work. The person in this position will play an important role in developing the architecture and technical direction of the product. It is expected that the developer will participate in both the development and ongoing operation of this product. Core responsibilities of this position: * Work closely with the team to update the abilities of the sophisticated parsing framework at the heart of this product. * Provide input on the technical direction of the product in both design and implementation. * Participate with the team in moving data through the system to meet the needs of the Sunnyvale team. * Utilize standard software engineering practices in design and development and maintain the highest standards of quality for the work delivered by the team. Required qualifications and experience: * Bachelor's degree and/or a master's degree in computer science and engineering, from a top tier institute, is required. * At least 4+ years of software development experience. Commercial use of scripting languages such as Python or Ruby is a definite plus. * Previous work experience in web technologies and/or ETL systems. * Strong grasp of CS fundamentals, data structures and algorithms, including recent hands-on experience in building and deploying complex large scale systems would be required. * Demonstrated ability for self directed work and in collaboration with a team. * Previous experience in search technologies and data mining or algorithmic work in these fields would be a huge plus, but not required. Yahoo! Inc. is an equal opportunity employer. For more information or to search all of our openings, please visit http://careers.yahoo.com ------------------------------ Message: 3 Date: Fri, 12 Feb 2010 10:19:37 +0530 From: "K.Manikandan" To: "Bangalore Python Users Group - India" Subject: Re: [BangPypers] Help regarding saml2 Message-ID: <7d2541c1c0211c9982526f5d78d9cb69.squirrel at mail.tce.edu> Content-Type: text/plain;charset=iso-8859-1 > Would'nt simple cookies help you here since your domain is the same. > > SAML is for identity federation and is too big a monster for your use > case. > Have used SAML recently and AFAIK python-saml works for GoogleApps only. > You can use the python binding of lasso library. ( > http://lasso.entrouvert.org/) > > > Domain = ".kkk.edu" > > > Best regards, > Bhaskar. Each aaa.kkk.edu and bbb.kkk.edu receives separate requests.In such a case,working with req['session'] may not help here.How does python-lasso help in this scenario? Regards, Manikandan.K ----------------------------------------- This email was sent using TCEMail Service. Thiagarajar College of Engineering Madurai-625 015, India ------------------------------ Message: 4 Date: Fri, 12 Feb 2010 01:08:42 -0500 From: learningpython at aol.com To: bangpypers at python.org Subject: [BangPypers] (10054, 'Connection reset by peer') Message-ID: <8CC79C0F6269916-A70-7913 at webmail-d087.sysops.aol.com> Content-Type: text/plain; charset="us-ascii" Hello Gurus, I am troubled suddenly with (10054, 'Connection reset by peer') error with same settings, which was working earlier in the day. data,addr = self.mysock.recvfrom(buf) after this step eclipse dies with (10054, 'Connection reset by peer') error. Have tried after restarting the system Have tried after restarting the remote sytem . Ping to remote system is fine Note: The IP and every configuration is same as when it is working .. Any clues will help me .. Regards -- Anand ------------------------------ Message: 5 Date: Fri, 12 Feb 2010 11:55:31 +0530 From: kausikram krishnasayee To: Bangalore Python Users Group - India Subject: Re: [BangPypers] (10054, 'Connection reset by peer') Message-ID: <2597ddb91002112225j5f5ab87ep589f3e8a963dedda at mail.gmail.com> Content-Type: text/plain; charset=UTF-8 > > Hello Gurus, > > I am troubled suddenly with (10054, 'Connection reset by peer') error with > same settings, which was working earlier in the day. > What same settings. > data,addr = self.mysock.recvfrom(buf) after this step eclipse dies with > (10054, 'Connection reset by peer') error. > Note: The IP and every configuration is same as when it is working .. > > Any clues will help me .. > we will be happy to give clues if we get a complete question. -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: blog.kausikram.net | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 ------------------------------ _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers End of BangPypers Digest, Vol 30, Issue 25 ****************************************** From eknath.iyer at gmail.com Fri Feb 12 14:41:40 2010 From: eknath.iyer at gmail.com (Eknath Venkataramani) Date: Fri, 12 Feb 2010 08:41:40 -0500 Subject: [BangPypers] pyparsing wrong output Message-ID: <692c428f1002120541n6b3aabb0jb62c50f90715f38e@mail.gmail.com> I am trying to write a parser in pyparsing. Help Me. http://paste.pocoo.org/show/177078/ is the code and this is input file: http://paste.pocoo.org/show/177076/ . I get output as: * * -- Eknath Venkataramani +91-9844952442 From anishk33 at gmail.com Sat Feb 13 03:17:53 2010 From: anishk33 at gmail.com (Anish Kurian) Date: Sat, 13 Feb 2010 07:47:53 +0530 Subject: [BangPypers] Auto starting a service by adding it in rc.local is not working for me ....Please help In-Reply-To: <99f221551002120011o2f8a36c8i645fa6f484c8c6a0@mail.gmail.com> References: <99f221551002120011o2f8a36c8i645fa6f484c8c6a0@mail.gmail.com> Message-ID: <64b0aaab1002121817h4df3fd3eq788c667c55ad956f@mail.gmail.com> Maybe it is not able to access the environment variables. You might have to set them in the code. On Fri, Feb 12, 2010 at 1:41 PM, BR!j!TH wrote: > Hi, > > I have created a client server scripts in python. The server script is to > be run background in a system all the time.. > So I decided to put it in rc.local. But its not working. I don't know why > ..? > An interesting thing is the script that I added in rc.local in running but > it is not working in desired why ... > But when I run the script manually in a terminal its working flawlessly... > > > > > > > > brijith at nucoreindia.com > www.linux-minds.blogspot.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- aNish From brijithp at gmail.com Sat Feb 13 06:04:55 2010 From: brijithp at gmail.com (BR!j!TH) Date: Sat, 13 Feb 2010 10:34:55 +0530 Subject: [BangPypers] Could not connect to freenode IRC Message-ID: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> Hi all, When I tried to connect to IRC server I am getting this .... *Disconnected.* *ERROR :Closing Link: 59.93.15.10 (*** Banned )* * * It was working fine yesterday .... What could be the reason ? ,.... brijith at nucoreindia.com www.linux-minds.blogspot.com From lawgon at au-kbc.org Sat Feb 13 06:11:08 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 13 Feb 2010 10:41:08 +0530 Subject: [BangPypers] Could not connect to freenode IRC In-Reply-To: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> References: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> Message-ID: <201002131041.08399.lawgon@au-kbc.org> On Saturday 13 Feb 2010 10:34:55 am BR!j!TH wrote: > When I tried to connect to IRC server I am getting this .... > > *Disconnected.* > *ERROR :Closing Link: 59.93.15.10 (*** Banned )* > * > * > It was working fine yesterday .... > > What could be the reason ? ,.... > looks like your ip has been banned - is it a dynamic ip? if it is a BSNL dynamic IP, that happens very often -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in From zubin.mithra at gmail.com Sat Feb 13 06:17:10 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Sat, 13 Feb 2010 10:47:10 +0530 Subject: [BangPypers] Could not connect to freenode IRC In-Reply-To: <201002131041.08399.lawgon@au-kbc.org> References: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> <201002131041.08399.lawgon@au-kbc.org> Message-ID: <8e7c74321002122117u3254e921v18d4a1f57cc61185@mail.gmail.com> disconnect and re-connect to the internet connection. you get a new IP and you can log in. cheers!!! Zubin On Sat, Feb 13, 2010 at 10:41 AM, Kenneth Gonsalves wrote: > On Saturday 13 Feb 2010 10:34:55 am BR!j!TH wrote: > > When I tried to connect to IRC server I am getting this .... > > > > *Disconnected.* > > *ERROR :Closing Link: 59.93.15.10 (*** Banned )* > > * > > * > > It was working fine yesterday .... > > > > What could be the reason ? ,.... > > > > looks like your ip has been banned - is it a dynamic ip? if it is a BSNL > dynamic IP, that happens very often > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS > http://certificate.nrcfoss.au-kbc.org.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From brijithp at gmail.com Sat Feb 13 06:18:04 2010 From: brijithp at gmail.com (BR!j!TH) Date: Sat, 13 Feb 2010 10:48:04 +0530 Subject: [BangPypers] Could not connect to freenode IRC In-Reply-To: <201002131041.08399.lawgon@au-kbc.org> References: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> <201002131041.08399.lawgon@au-kbc.org> Message-ID: <99f221551002122118u3fbfa739r4204b67e874e30e3@mail.gmail.com> > looks like your ip has been banned - is it a dynamic ip? if it is a BSNL dynamic IP, that happens very often Any solution ? From anand.shashwat at gmail.com Sat Feb 13 06:24:35 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 13 Feb 2010 10:54:35 +0530 Subject: [BangPypers] Could not connect to freenode IRC In-Reply-To: <99f221551002122118u3fbfa739r4204b67e874e30e3@mail.gmail.com> References: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> <201002131041.08399.lawgon@au-kbc.org> <99f221551002122118u3fbfa739r4204b67e874e30e3@mail.gmail.com> Message-ID: Give some more details. Possible scenarios : 1> You are using a webclient such as webchat.freenode.net which is not allowed by that channel sol - use IRC clients 2> You are not authenticated and that channel does not permit unauthenticated nicks sol - authenticate your nick 3> You use a public ip which have a bad-reputation and is banned ask moderator to unbann you 4> You did spamming/trolling/other mischievous activities :P you deserve banning ;) On Sat, Feb 13, 2010 at 10:48 AM, BR!j!TH wrote: > > looks like your ip has been banned - is it a dynamic ip? if it is a BSNL > > dynamic IP, that happens very often > > > > Any solution ? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at thenilgiris.com Sat Feb 13 06:29:34 2010 From: lawgon at thenilgiris.com (Kenneth Gonsalves) Date: Sat, 13 Feb 2010 10:59:34 +0530 Subject: [BangPypers] Could not connect to freenode IRC In-Reply-To: <99f221551002122118u3fbfa739r4204b67e874e30e3@mail.gmail.com> References: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> <201002131041.08399.lawgon@au-kbc.org> <99f221551002122118u3fbfa739r4204b67e874e30e3@mail.gmail.com> Message-ID: <201002131059.34826.lawgon@thenilgiris.com> On Saturday 13 Feb 2010 10:48:04 am BR!j!TH wrote: > > looks like your ip has been banned - is it a dynamic ip? if it is a BSNL > > dynamic IP, that happens very often > > > > Any solution ? > permanent solution - get a static ip and keep it clean. Temporary solution, keep disconnecting your internet and logging in until you get a fresh dynamic IP which is not banned. Whatever you do, do not waste your time contacting BSNL. -- regards kg http://lawgon.livejournal.com From anand.shashwat at gmail.com Sat Feb 13 06:34:40 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 13 Feb 2010 11:04:40 +0530 Subject: [BangPypers] Could not connect to freenode IRC In-Reply-To: References: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> <201002131041.08399.lawgon@au-kbc.org> <99f221551002122118u3fbfa739r4204b67e874e30e3@mail.gmail.com> Message-ID: 59.93.15.10 seems like a dynamic IP. best workaround can be to flush that IP address. restarting the network may help (a wild guess) On Sat, Feb 13, 2010 at 10:54 AM, Shashwat Anand wrote: > Give some more details. > > Possible scenarios : > 1> You are using a webclient such as webchat.freenode.net which is not > allowed by that channel > sol - use IRC clients > 2> You are not authenticated and that channel does not permit > unauthenticated nicks > sol - authenticate your nick > 3> You use a public ip which have a bad-reputation and is banned > ask moderator to unbann you > 4> You did spamming/trolling/other mischievous activities :P > you deserve banning ;) > > > > On Sat, Feb 13, 2010 at 10:48 AM, BR!j!TH wrote: > >> > looks like your ip has been banned - is it a dynamic ip? if it is a BSNL >> >> dynamic IP, that happens very often >> >> >> >> Any solution ? >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > From brijithp at gmail.com Sat Feb 13 06:41:28 2010 From: brijithp at gmail.com (BR!j!TH) Date: Sat, 13 Feb 2010 11:11:28 +0530 Subject: [BangPypers] Could not connect to freenode IRC In-Reply-To: References: <99f221551002122104k4c5483ft9aecb4232afdc94b@mail.gmail.com> <201002131041.08399.lawgon@au-kbc.org> <99f221551002122118u3fbfa739r4204b67e874e30e3@mail.gmail.com> Message-ID: <99f221551002122141nd2f7432oa86cb84140e31f56@mail.gmail.com> Thanks Buddies.. brijith at nucoreindia.com www.linux-minds.blogspot.com On 13 February 2010 11:04, Shashwat Anand wrote: > 59.93.15.10 seems like a dynamic IP. best workaround can be to flush that > IP > address. restarting the network may help (a wild guess) > > On Sat, Feb 13, 2010 at 10:54 AM, Shashwat Anand > wrote: > > > Give some more details. > > > > Possible scenarios : > > 1> You are using a webclient such as webchat.freenode.net which is not > > allowed by that channel > > sol - use IRC clients > > 2> You are not authenticated and that channel does not permit > > unauthenticated nicks > > sol - authenticate your nick > > 3> You use a public ip which have a bad-reputation and is banned > > ask moderator to unbann you > > 4> You did spamming/trolling/other mischievous activities :P > > you deserve banning ;) > > > > > > > > On Sat, Feb 13, 2010 at 10:48 AM, BR!j!TH wrote: > > > >> > looks like your ip has been banned - is it a dynamic ip? if it is a > BSNL > >> > >> dynamic IP, that happens very often > >> > >> > >> > >> Any solution ? > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From brijithp at gmail.com Sat Feb 13 09:32:22 2010 From: brijithp at gmail.com (BR!j!TH) Date: Sat, 13 Feb 2010 14:02:22 +0530 Subject: [BangPypers] how the file rc.local and command update-rc.d are related Message-ID: <99f221551002130032s15219ba7tc626f7f93597714c@mail.gmail.com> Hi all, when I googled for methods to run scripts automatically at boot time, I found some where to use the command *update-rc.d*. Some others suggesting add an entry in *rc.local* file under /etc. I have tried the rc.local method with one of the script I written but its not working in proper way. This Issue I have already raised in this list.... Can any one tell me the difference between the two method I mentioned above ? Thanks brijith at nucoreindia.com www.linux-minds.blogspot.com From gora at srijan.in Sat Feb 13 10:40:14 2010 From: gora at srijan.in (Gora Mohanty) Date: Sat, 13 Feb 2010 15:10:14 +0530 Subject: [BangPypers] how the file rc.local and command update-rc.d are related In-Reply-To: <99f221551002130032s15219ba7tc626f7f93597714c@mail.gmail.com> References: <99f221551002130032s15219ba7tc626f7f93597714c@mail.gmail.com> Message-ID: <20100213151014.4845eb2e@ibis> On Sat, 13 Feb 2010 14:02:22 +0530 "BR!j!TH" wrote: > Hi all, > when I googled for methods to run scripts automatically at boot > time, I found some where to use the command *update-rc.d*. Some > others suggesting add an entry in *rc.local* file under /etc. I > have tried the rc.local method with one of the script I written > but its not working in proper way. This Issue I have already > raised in this list.... > > Can any one tell me the difference between the two method I > mentioned above ? [...] There are slight differences, depending on which OS you are using (I presume that it is a Linux distribution), so let us know the output from "uname -a" and "cat /etc/issue". Regards, Gora From learningpython at aol.com Sat Feb 13 11:05:19 2010 From: learningpython at aol.com (learningpython at aol.com) Date: Sat, 13 Feb 2010 05:05:19 -0500 Subject: [BangPypers] (10054, 'Connection reset by peer') In-Reply-To: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> References: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> Message-ID: <8CC7AAB2EF843A8-3FCC-A926@webmail-m028.sysops.aol.com> Hi Gurus, Thank you Kaushiik and Anand The settings i mean are the IP address i am interacting, they remain the same. I am just running my test initiation as usual. What i mean, is there is no change either in the environment where i amrunning and environment at the remote machine both in my control. Anyideas will really help me .. Is there any thing i should try to anycommands, reset or seeing the quality of connection etc. I am not sure if i have helped my selves to allow any help .. My apologies.. Thank you . - Anand From brijithp at gmail.com Sat Feb 13 11:51:15 2010 From: brijithp at gmail.com (BR!j!TH) Date: Sat, 13 Feb 2010 16:21:15 +0530 Subject: [BangPypers] how the file rc.local and command update-rc.d are related In-Reply-To: <20100213151014.4845eb2e@ibis> References: <99f221551002130032s15219ba7tc626f7f93597714c@mail.gmail.com> <20100213151014.4845eb2e@ibis> Message-ID: <99f221551002130251h38d440a1p5261e0c937782898@mail.gmail.com> > There are slight differences, depending on which OS you are > using (I presume that it is a Linux distribution), so let us > know the output from "uname -a" and "cat /etc/issue". > > brijith at ubuntu201:~/amracs$ uname -a Linux ubuntu201 2.6.31-18-generic #55-Ubuntu SMP Fri Jan 8 14:55:26 UTC 2010 i686 GNU/Linux brijith at ubuntu201:~/amracs$ cat /etc/issue Ubuntu 9.10 \n \l brijith at ubuntu201:~/amracs$ From shivraj.ms at gmail.com Sat Feb 13 14:27:25 2010 From: shivraj.ms at gmail.com (Shivaraj M S) Date: Sat, 13 Feb 2010 05:27:25 -0800 (PST) Subject: [BangPypers] how the file rc.local and command update-rc.d are related In-Reply-To: <99f221551002130251h38d440a1p5261e0c937782898@mail.gmail.com> References: <99f221551002130032s15219ba7tc626f7f93597714c@mail.gmail.com> <20100213151014.4845eb2e@ibis> <99f221551002130251h38d440a1p5261e0c937782898@mail.gmail.com> Message-ID: <27575057.post@talk.nabble.com> On debian /etc/init.d is the directory for common user startups. http://www.debian.org/doc/FAQ/ch-customizing.en.html -- View this message in context: http://old.nabble.com/how-the-file-rc.local-and-command-update-rc.d-are-related-tp27573314p27575057.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From abpillai at gmail.com Sat Feb 13 14:37:48 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sat, 13 Feb 2010 19:07:48 +0530 Subject: [BangPypers] (10054, 'Connection reset by peer') In-Reply-To: <8CC7AAB2EF843A8-3FCC-A926@webmail-m028.sysops.aol.com> References: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> <8CC7AAB2EF843A8-3FCC-A926@webmail-m028.sysops.aol.com> Message-ID: <8548c5f31002130537s39e8bc13xcb10952382219fc6@mail.gmail.com> On Sat, Feb 13, 2010 at 3:35 PM, wrote: > > Hi Gurus, > > Thank you Kaushiik and Anand > > The settings i mean are the IP address i am interacting, they remain the > same. I am just running my test initiation as usual. > What i mean, is there is no change either in the environment where i > amrunning and environment at the remote machine both in my control. Anyideas > will really help me .. Is there any thing i should try to anycommands, reset > or seeing the quality of connection etc. > I am not sure if i have helped my selves to allow any help .. My > apologies.. > To debug this further, the actual networking scenario or code is required. If you can share the code privately, please do so. If the code is part of a public project like django or something, let know the library.module.function. > > Thank you . > - Anand > > > > > > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From anurag08priyam at gmail.com Sun Feb 14 16:41:39 2010 From: anurag08priyam at gmail.com (Anurag Priyam) Date: Sun, 14 Feb 2010 21:11:39 +0530 Subject: [BangPypers] how the file rc.local and command update-rc.d are related In-Reply-To: <27575057.post@talk.nabble.com> References: <99f221551002130032s15219ba7tc626f7f93597714c@mail.gmail.com> <20100213151014.4845eb2e@ibis> <99f221551002130251h38d440a1p5261e0c937782898@mail.gmail.com> <27575057.post@talk.nabble.com> Message-ID: <95d7ba071002140741i2b250106s14b4fec5f6887e40@mail.gmail.com> In Debian the apps that need to be started at the boot time have their startup scripts in /etc/init.d . Have a look at few of the scripts(perhaps mysql, apache2 or gdm) to make it more clear. Which apps are actually started at the boot time depends on the runlevel you are starting in. For a runlevel the startup scripts are actually run from /etc/rcX.d (X being the name of runlevel). If you are starting in the runlevel 5, scripts will be read of /etc/rc5.d . The general concept is to put the startup script in /etc/init.d and put a symlink in the corresponding rcX.d directory. Here steps the update-rc.d command. It is used to manage the symlinks in the rcX.d directories. You may like to read this small post http://www.debian-administration.org/article/Making_scripts_run_at_boot_time_with_Debian. Another command that is used with the /etc/init.d startup sctipts is invoke-rc.d . Read man page for update-rc.d and invoke-rc.d for more help. I might be wrong in stating this: With rc.local make sure that the script returns 0. This implies that any script you want to run from rc.local must be started in background( perhaps script& ). Also putting a script in rc.local guarantees execution in all the runlevels. On Sat, Feb 13, 2010 at 6:57 PM, Shivaraj M S wrote: > > On debian /etc/init.d is the directory for common user startups. > http://www.debian.org/doc/FAQ/ch-customizing.en.html > > > -- > View this message in context: > http://old.nabble.com/how-the-file-rc.local-and-command-update-rc.d-are-related-tp27573314p27575057.html > Sent from the BangPypers - Bangalore Python Users Group mailing list > archive at Nabble.com. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Anurag Priyam 2nd Year,Mechanical Engineering, IIT Kharagpur. +91-9775550642 From kausikram at gmail.com Sun Feb 14 17:07:53 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Sun, 14 Feb 2010 21:37:53 +0530 Subject: [BangPypers] how the file rc.local and command update-rc.d are related In-Reply-To: <95d7ba071002140741i2b250106s14b4fec5f6887e40@mail.gmail.com> References: <99f221551002130032s15219ba7tc626f7f93597714c@mail.gmail.com> <20100213151014.4845eb2e@ibis> <99f221551002130251h38d440a1p5261e0c937782898@mail.gmail.com> <27575057.post@talk.nabble.com> <95d7ba071002140741i2b250106s14b4fec5f6887e40@mail.gmail.com> Message-ID: <2597ddb91002140807i41d82cb6gb4f1b2ade35839f7@mail.gmail.com> this is a python user group. humour me. how is this discussion related to python? i request the authors to please post to relavent groups. and cross posting is a No No please. [Thread Closed] -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: blog.kausikram.net | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From pradeep at btbytes.com Sun Feb 14 19:28:05 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Sun, 14 Feb 2010 13:28:05 -0500 Subject: [BangPypers] PyCon 2010 Message-ID: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> It's the week of PyCon 2010 already! This is my second PyCon and I'm better prepared this time. My PyCon 2010 schedule - http://pradeepgowda.com/2010/pycon/ I'll be updating this page as the conference progresses. I'll be staying post-conference for two days of sprints. I'm very excited about the sprints, though I haven't chosen any projects to work on. I'm leaving that to serendipity ;) Looking forward to meet fellow Bangpypers! Cheers, Pradeep Gowda From learningpython at aol.com Sun Feb 14 20:12:09 2010 From: learningpython at aol.com (learningpython at aol.com) Date: Sun, 14 Feb 2010 14:12:09 -0500 Subject: [BangPypers] (10054, 'Connection reset by peer') In-Reply-To: <8CC7AAB2EF843A8-3FCC-A926@webmail-m028.sysops.aol.com> References: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> <8CC7AAB2EF843A8-3FCC-A926@webmail-m028.sysops.aol.com> Message-ID: <8CC7BC0BD6BC477-46D4-16BFE@webmail-d072.sysops.aol.com> Hi Anand Balachandran, I have posted the file, i have issues to your email account. Let me know if missed something. Thanks -- Anand From learningpython at aol.com Sun Feb 14 23:40:59 2010 From: learningpython at aol.com (learningpython at aol.com) Date: Sun, 14 Feb 2010 17:40:59 -0500 Subject: [BangPypers] (10054, 'Connection reset by peer') In-Reply-To: <8CC7BC0BD6BC477-46D4-16BFE@webmail-d072.sysops.aol.com> References: <8CC79C0F6269916-A70-7913@webmail-d087.sysops.aol.com> <8CC7AAB2EF843A8-3FCC-A926@webmail-m028.sysops.aol.com> <8CC7BC0BD6BC477-46D4-16BFE@webmail-d072.sysops.aol.com> Message-ID: <8CC7BDDEA024884-220C-F7C3@webmail-m038.sysops.aol.com> Hi Anand Balachandran, It is resolved so don't worry about it.. Reason: The remte host was in stand by mode and i just learned that PING works in standby as it is ICMP message. Cheers .. - Anand -----Original Message----- From: learningpython at aol.com To: bangpypers at python.org Sent: Mon, Feb 15, 2010 8:12 am Subject: Re: (10054, 'Connection reset by peer') Hi Anand Balachandran, I have posted the file, i have issues to your email account. Let me know if missed something. Thanks -- Anand From abpillai at gmail.com Mon Feb 15 04:07:30 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 15 Feb 2010 08:37:30 +0530 Subject: [BangPypers] PyCon 2010 In-Reply-To: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> References: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> Message-ID: <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> On Sun, Feb 14, 2010 at 11:58 PM, Pradeep Gowda wrote: > It's the week of PyCon 2010 already! > > This is my second PyCon and I'm better prepared this time. > My PyCon 2010 schedule - http://pradeepgowda.com/2010/pycon/ > I'll be updating this page as the conference progresses. > > I'll be staying post-conference for two days of sprints. I'm very excited > about the sprints, though I haven't chosen any projects to work on. > I'm leaving that to serendipity ;) > > Looking forward to meet fellow Bangpypers! > Noufal is on his way from here. Not sure about anybody else. > > Cheers, > Pradeep Gowda > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From orsenthil at gmail.com Mon Feb 15 04:19:14 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 15 Feb 2010 08:49:14 +0530 Subject: [BangPypers] PyCon 2010 In-Reply-To: <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> References: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> Message-ID: <20100215031914.GA29963@ubuntu.ubuntu-domain> On Mon, Feb 15, 2010 at 08:37:30AM +0530, Anand Balachandran Pillai wrote: > Not sure about anybody else. I am going. Presenting a tutorial on "How to solve it using Python" :) -- Senthil "Eat, drink, and be merry, for tomorrow you may work." From mbaiju at zeomega.com Mon Feb 15 04:55:42 2010 From: mbaiju at zeomega.com (Baiju M) Date: Mon, 15 Feb 2010 09:25:42 +0530 Subject: [BangPypers] PyCon 2010 In-Reply-To: <20100215031914.GA29963@ubuntu.ubuntu-domain> References: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> <20100215031914.GA29963@ubuntu.ubuntu-domain> Message-ID: Hi Senthil, Last year your tutorial was very well received. All the best for this time also ! Best wishes for others also. Enjoy maadi ! On 2/15/10, Senthil Kumaran wrote: > On Mon, Feb 15, 2010 at 08:37:30AM +0530, Anand Balachandran Pillai wrote: >> Not sure about anybody else. > > I am going. Presenting a tutorial on "How to solve it using Python" :) > > -- > Senthil > "Eat, drink, and be merry, for tomorrow you may work." > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From hacker.karthick at gmail.com Mon Feb 15 07:23:31 2010 From: hacker.karthick at gmail.com (karthick perumal) Date: Mon, 15 Feb 2010 11:53:31 +0530 Subject: [BangPypers] combine R,G,B channel Message-ID: <966112521002142223k65f68cf6xb0b78fb58f8cd72f@mail.gmail.com> hi i am doing project named visual cryptography,in this project i have a module to combine R,G,B channel together,so i have a three image file called red.png,green.png,blue.png,so how to combine those file to get the final color image,please suggest me some python code or other open source tools to implement this module, From lawgon at au-kbc.org Mon Feb 15 07:24:49 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 15 Feb 2010 11:54:49 +0530 Subject: [BangPypers] combine R,G,B channel In-Reply-To: <966112521002142223k65f68cf6xb0b78fb58f8cd72f@mail.gmail.com> References: <966112521002142223k65f68cf6xb0b78fb58f8cd72f@mail.gmail.com> Message-ID: <201002151154.49324.lawgon@au-kbc.org> On Monday 15 Feb 2010 11:53:31 am karthick perumal wrote: > hi i am doing project named visual cryptography,in this project i have a > module to combine R,G,B channel together,so i have a three image file > called red.png,green.png,blue.png,so how to combine those file to get the > final color image,please suggest me some python code or other open source > tools to implement this module, > PIL -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in From srinivas_thatiparthy at akebonosoft.com Mon Feb 15 07:26:18 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 15 Feb 2010 11:56:18 +0530 Subject: [BangPypers] combine R,G,B channel In-Reply-To: <966112521002142223k65f68cf6xb0b78fb58f8cd72f@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D5873E@astserver3.akebonosoft.com> Here my cents,Instead of combining the three images to get the color of the final image,You can use RGB values to generate the random image on the fly. r=random.choice(range(256)) g=random.choice(range(256)) b=random.choice(range(256)) I don't know what you are trying to achieve(no knowledge on Cryptography).. I heard that in the "Art of Computer Programming" Donald Knuth described an algorithm to generate random numbers to be sufficently random enough. Pls take a look into that . Regards, ~ Srini T -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.o rg] On Behalf Of karthick perumal Sent: Monday, February 15, 2010 11:54 AM To: bangpypers at python.org Subject: [BangPypers] combine R,G,B channel hi i am doing project named visual cryptography,in this project i have a module to combine R,G,B channel together,so i have a three image file called red.png,green.png,blue.png,so how to combine those file to get the final color image,please suggest me some python code or other open source tools to implement this module, _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From anand.shashwat at gmail.com Mon Feb 15 13:49:29 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 15 Feb 2010 18:19:29 +0530 Subject: [BangPypers] PyCon 2010 In-Reply-To: References: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> <20100215031914.GA29963@ubuntu.ubuntu-domain> Message-ID: Best of luck to everyone going to pycon. I will miss it very much though :( On Mon, Feb 15, 2010 at 9:25 AM, Baiju M wrote: > Hi Senthil, > > Last year your tutorial was very well received. All the best for this > time also ! Best wishes for others also. Enjoy maadi ! > > On 2/15/10, Senthil Kumaran wrote: > > On Mon, Feb 15, 2010 at 08:37:30AM +0530, Anand Balachandran Pillai > wrote: > >> Not sure about anybody else. > > > > I am going. Presenting a tutorial on "How to solve it using Python" :) > > > > -- > > Senthil > > "Eat, drink, and be merry, for tomorrow you may work." > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From vid at svaksha.com Mon Feb 15 16:46:47 2010 From: vid at svaksha.com (=?UTF-8?B?fHwg4KS44KWN4KS14KSV4KWN4KS3IHx8IA==?=) Date: Mon, 15 Feb 2010 10:46:47 -0500 Subject: [BangPypers] PyCon 2010 In-Reply-To: <20100215031914.GA29963@ubuntu.ubuntu-domain> References: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> <20100215031914.GA29963@ubuntu.ubuntu-domain> Message-ID: <12470af01002150746k13df60ccj9cd3b258f5357a63@mail.gmail.com> On Sun, Feb 14, 2010 at 22:19, Senthil Kumaran wrote: > On Mon, Feb 15, 2010 at 08:37:30AM +0530, Anand Balachandran Pillai wrote: >> Not sure about anybody else. > > I am going. Presenting a tutorial on "How to solve it using Python" :) Satya and /me will be there too. -- || vid | http://svaksha.com || From noufal at gmail.com Mon Feb 15 23:19:08 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 16 Feb 2010 03:49:08 +0530 Subject: [BangPypers] PyCon 2010 In-Reply-To: <12470af01002150746k13df60ccj9cd3b258f5357a63@mail.gmail.com> References: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> <20100215031914.GA29963@ubuntu.ubuntu-domain> <12470af01002150746k13df60ccj9cd3b258f5357a63@mail.gmail.com> Message-ID: <9963e56e1002151419o127c5cfbjef35605047d3b706@mail.gmail.com> On Mon, Feb 15, 2010 at 9:16 PM, || ?????? || wrote: > On Sun, Feb 14, 2010 at 22:19, Senthil Kumaran wrote: >> On Mon, Feb 15, 2010 at 08:37:30AM +0530, Anand Balachandran Pillai wrote: >>> Not sure about anybody else. >> >> I am going. Presenting a tutorial on "How to solve it using Python" :) > > Satya and /me will be there too. >[.]] I just arrived. Feeling all groggy thanks to the long flight but excited about the whole thing. -- ~noufal http://nibrahim.net.in From vsapre80 at gmail.com Tue Feb 16 05:56:47 2010 From: vsapre80 at gmail.com (Vishal) Date: Tue, 16 Feb 2010 10:26:47 +0530 Subject: [BangPypers] PyCon 2010 In-Reply-To: <9963e56e1002151419o127c5cfbjef35605047d3b706@mail.gmail.com> References: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> <20100215031914.GA29963@ubuntu.ubuntu-domain> <12470af01002150746k13df60ccj9cd3b258f5357a63@mail.gmail.com> <9963e56e1002151419o127c5cfbjef35605047d3b706@mail.gmail.com> Message-ID: Have a great learning and interacting time at PyCon 2010. Bring in all the knowledge to share with us here :)) Take care, Vishal On Tue, Feb 16, 2010 at 3:49 AM, Noufal Ibrahim wrote: > On Mon, Feb 15, 2010 at 9:16 PM, || ?????? || wrote: > > On Sun, Feb 14, 2010 at 22:19, Senthil Kumaran > wrote: > >> On Mon, Feb 15, 2010 at 08:37:30AM +0530, Anand Balachandran Pillai > wrote: > >>> Not sure about anybody else. > >> > >> I am going. Presenting a tutorial on "How to solve it using Python" :) > > > > Satya and /me will be there too. > >[.]] > > I just arrived. Feeling all groggy thanks to the long flight but > excited about the whole thing. > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." From abpillai at gmail.com Tue Feb 16 07:26:08 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 16 Feb 2010 11:56:08 +0530 Subject: [BangPypers] PyCon 2010 In-Reply-To: References: <3e3294b71002141028h682e8389hd5a8979098c8b227@mail.gmail.com> <8548c5f31002141907g21958459n7dd58f0df0f8d23c@mail.gmail.com> <20100215031914.GA29963@ubuntu.ubuntu-domain> <12470af01002150746k13df60ccj9cd3b258f5357a63@mail.gmail.com> <9963e56e1002151419o127c5cfbjef35605047d3b706@mail.gmail.com> Message-ID: <8548c5f31002152226n71ac72acue9b3d9c04a13bf79@mail.gmail.com> On Tue, Feb 16, 2010 at 10:26 AM, Vishal wrote: > Have a great learning and interacting time at PyCon 2010. Bring in all the > knowledge to share with us here :)) > > > > > I just arrived. Feeling all groggy thanks to the long flight but > > excited about the whole thing. > I am following you on Twitter on #pycon. All the best. > > > > > > > > -- > > ~noufal > > http://nibrahim.net.in > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Thanks and best regards, > Vishal Sapre > > --- > > "So say...Day by day, in every way, I am getting better, better and better > !!!" > "A Strong and Positive attitude creates more miracles than anything else. > Because...Life is 10% how you make it, and 90% how you take it" > "Diamond is another piece of coal that did well under pressure? > "May we do good and not evil. May we find forgiveness for ourself and > forgive others. May we share freely, never taking more than we give." > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Fri Feb 19 08:07:24 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 19 Feb 2010 12:37:24 +0530 Subject: [BangPypers] why is round() not working? Message-ID: <201002191237.25123.lawgon@au-kbc.org> hi >>> round(2.1667000000000001,3) 2.1669999999999998 what gives? -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in From mbaiju at zeomega.com Fri Feb 19 08:15:13 2010 From: mbaiju at zeomega.com (Baiju M) Date: Fri, 19 Feb 2010 12:45:13 +0530 Subject: [BangPypers] why is round() not working? In-Reply-To: <201002191237.25123.lawgon@au-kbc.org> References: <201002191237.25123.lawgon@au-kbc.org> Message-ID: On Fri, Feb 19, 2010 at 12:37 PM, Kenneth Gonsalves wrote: > hi > >>>> round(2.1667000000000001,3) > 2.1669999999999998 From: http://docs.python.org/tutorial/floatingpoint.html you may be tempted to use the round() function to chop it back to the single digit you expect. But that makes no difference: >>> round(0.1, 1) 0.10000000000000001 -- Baiju M From ardsrk at gmail.com Fri Feb 19 08:21:51 2010 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Fri, 19 Feb 2010 12:51:51 +0530 Subject: [BangPypers] why is round() not working? In-Reply-To: <201002191237.25123.lawgon@au-kbc.org> References: <201002191237.25123.lawgon@au-kbc.org> Message-ID: <3d62196a1002182321x79fc96c4re8d66c84f9282f3@mail.gmail.com> Strange. I try it on my windows machine and get: >>> round(2.1667000000000001,3) 2.167 I SSH to a remote UNIX machine and get what you got. Something is system-dependent. On Fri, Feb 19, 2010 at 12:37 PM, Kenneth Gonsalves wrote: > hi > > >>> round(2.1667000000000001,3) > 2.1669999999999998 > > what gives? > > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS > http://certificate.nrcfoss.au-kbc.org.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Arvind From pasokan at gmail.com Fri Feb 19 08:28:03 2010 From: pasokan at gmail.com (Asokan Pichai) Date: Fri, 19 Feb 2010 12:58:03 +0530 Subject: [BangPypers] why is round() not working? In-Reply-To: <201002191237.25123.lawgon@au-kbc.org> References: <201002191237.25123.lawgon@au-kbc.org> Message-ID: <5de036dc1002182328u72655150pe6d84c8c2890cb6b@mail.gmail.com> On Fri, Feb 19, 2010 at 12:37 PM, Kenneth Gonsalves wrote: > hi > >>>> round(2.1667000000000001,3) > 2.1669999999999998 > > what gives? > [snip] You are running into the problems of floating point number representation. This has nothing to do with round() >>> x = 2.17 >>> x 2.1699999999999999 >>> The number displayed is the best representation given the binary representation's limits of storage etc., Some languages (Ruby comes to mind) display 'better' looking results and IIRC Python 3 will also do the same. $ irb >> x = 2.17 => 2.17 >> x => 2.17 >> If you are looking at displaying, consider doing sth. like >>> print "%5.3f" %(round(2.16670000001, 3)) 2.167 HTH -- Asokan Pichai *-------------------* We will find a way. Or, make one. (Hannibal) From dhananjay.nene at gmail.com Fri Feb 19 08:51:02 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 19 Feb 2010 13:21:02 +0530 Subject: [BangPypers] why is round() not working? In-Reply-To: <201002191237.25123.lawgon@au-kbc.org> References: <201002191237.25123.lawgon@au-kbc.org> Message-ID: On Fri, Feb 19, 2010 at 12:37 PM, Kenneth Gonsalves wrote: > hi > > >>> round(2.1667000000000001,3) > 2.1669999999999998 > > what gives? > > round() gives you the closest approximation a floating point number can achieve to the desired number ie. in this case 2.1669999999999998 is the closest floating point representation to 2.17. If one wants to have a specific precision, its better to use decimal.Decimal package instead of floating points. eg. I prefer using decimal whenever using the field to represent amounts (money). > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS > http://certificate.nrcfoss.au-kbc.org.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From orsenthil at gmail.com Fri Feb 19 08:59:50 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 19 Feb 2010 13:29:50 +0530 Subject: [BangPypers] why is round() not working? In-Reply-To: <5de036dc1002182328u72655150pe6d84c8c2890cb6b@mail.gmail.com> References: <201002191237.25123.lawgon@au-kbc.org> <5de036dc1002182328u72655150pe6d84c8c2890cb6b@mail.gmail.com> Message-ID: <20100219075950.GA10447@ubuntu.ubuntu-domain> On Fri, Feb 19, 2010 at 12:58:03PM +0530, Asokan Pichai wrote: > On Fri, Feb 19, 2010 at 12:37 PM, Kenneth Gonsalves wrote: > >>>> round(2.1667000000000001,3) > > 2.1669999999999998 > > >>> print "%5.3f" %(round(2.16670000001, 3)) > 2.167 > And if you want a safer way to deal with floating point numbers and to kind of behavior we understand while doing it with paper and pencil, use the Decimal module. http://docs.python.org/library/decimal.html It behaves well with normal ints, floats and is supported for all standard operations which are applicable for ints and floats. Decimal module was aimed towards the use-cases which deal with finance and astronomy/ scientific computing where decimal number behavior needs to be consistent and should not be system dependent. -- Senthil Q: What lies on the bottom of the ocean and twitches? A: A nervous wreck. From scorpion032 at gmail.com Fri Feb 19 09:29:51 2010 From: scorpion032 at gmail.com (Lakshman Prasad) Date: Fri, 19 Feb 2010 13:59:51 +0530 Subject: [BangPypers] why is round() not working? In-Reply-To: <20100219075950.GA10447@ubuntu.ubuntu-domain> References: <201002191237.25123.lawgon@au-kbc.org> <5de036dc1002182328u72655150pe6d84c8c2890cb6b@mail.gmail.com> <20100219075950.GA10447@ubuntu.ubuntu-domain> Message-ID: It is a standard IEEE-754 representation: http://en.wikipedia.org/wiki/IEEE_754. This is the same that is followed by most platforms. In this representation, there are 53 bits available to store the precision; so the closest number to the actual number is represented. The arithmetic of floating points in interesting: This post by Wolfram Alpha: http://blog.wolfram.com/2007/09/25/arithmetic-is-hard-to-get-right/ on excel bugs is a good read, in this context. On Fri, Feb 19, 2010 at 1:29 PM, Senthil Kumaran wrote: > On Fri, Feb 19, 2010 at 12:58:03PM +0530, Asokan Pichai wrote: > > On Fri, Feb 19, 2010 at 12:37 PM, Kenneth Gonsalves > wrote: > > >>>> round(2.1667000000000001,3) > > > 2.1669999999999998 > > > > >>> print "%5.3f" %(round(2.16670000001, 3)) > > 2.167 > > > > And if you want a safer way to deal with floating point numbers and to > kind of behavior we understand while doing it with paper and pencil, > use the Decimal module. > > http://docs.python.org/library/decimal.html > > It behaves well with normal ints, floats and is supported for all > standard operations which are applicable for ints and floats. > > Decimal module was aimed towards the use-cases which deal with finance > and astronomy/ scientific computing where decimal number behavior > needs to be consistent and should not be system dependent. > > -- > Senthil > Q: What lies on the bottom of the ocean and twitches? > A: A nervous wreck. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- - Lp From yuvipanda at gmail.com Fri Feb 19 17:22:50 2010 From: yuvipanda at gmail.com (Yuvi Panda) Date: Fri, 19 Feb 2010 21:52:50 +0530 Subject: [BangPypers] Students/Mentors for GSoC? Message-ID: <45ec909c1002190822q5d31baex1c91359b431e8dd3@mail.gmail.com> Hi! I'm planning to apply for GSoC this year, probably under PSF or Django. Anyone who is planning on being a mentor this year? Or applying as a student? Previous experiences? Please share :) -- Yuvi Panda T http://yuvi.in/blog From anand.shashwat at gmail.com Fri Feb 19 18:27:01 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Fri, 19 Feb 2010 22:57:01 +0530 Subject: [BangPypers] Students/Mentors for GSoC? In-Reply-To: <45ec909c1002190822q5d31baex1c91359b431e8dd3@mail.gmail.com> References: <45ec909c1002190822q5d31baex1c91359b431e8dd3@mail.gmail.com> Message-ID: Hi Yuvi, I had not decided yet but will apply for PSF most probably. Abhishek(ideamonk) will go for Sahana perhaps (he had done some major work during haiti-issue). Anand B.Pillai is planning to be a mentor this year from BangPypers AFAIK but am not too sure about organization. Also PyCon,2010 is on, so I guess you will have to wait till it ends, and then the idea-list will be up. There was a mailing-list known as python-soc2009 last year and I guess a mailing list will be created this year too. HTH, ~l0nwlf On Fri, Feb 19, 2010 at 9:52 PM, Yuvi Panda wrote: > Hi! I'm planning to apply for GSoC this year, probably under PSF or Django. > Anyone who is planning on being a mentor this year? Or applying as a > student? Previous experiences? Please share :) > > -- > Yuvi Panda T > http://yuvi.in/blog > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From anand.shashwat at gmail.com Fri Feb 19 23:57:11 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 20 Feb 2010 04:27:11 +0530 Subject: [BangPypers] ActiveState/O'Reilly Launch New and Improved Code Share Site (Python) via @Bret Message-ID: ActiveState launched today the new code.activestate.com with code recipes for dynamic languages such as Python, Perl and Tcl and web development. This site is great recipe sharing site for all Python, Perl and Tcl developers. O'Reilly will be use recipes from the site for its next Python cook book. Bit.ly link to the blog announcement: http://bit.ly/b1Wkdm From orsenthil at gmail.com Sat Feb 20 00:22:34 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sat, 20 Feb 2010 04:52:34 +0530 Subject: [BangPypers] ActiveState/O'Reilly Launch New and Improved Code Share Site (Python) via @Bret In-Reply-To: References: Message-ID: <7c42eba11002191522s1ae29810o564a333c122bb08d@mail.gmail.com> On Sat, Feb 20, 2010 at 4:27 AM, Shashwat Anand wrote: > code.activestate.com AFAIK, its been there for a while. -- Senthil From anand.shashwat at gmail.com Sat Feb 20 03:27:19 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 20 Feb 2010 07:57:19 +0530 Subject: [BangPypers] ActiveState/O'Reilly Launch New and Improved Code Share Site (Python) via @Bret In-Reply-To: <7c42eba11002191522s1ae29810o564a333c122bb08d@mail.gmail.com> References: <7c42eba11002191522s1ae29810o564a333c122bb08d@mail.gmail.com> Message-ID: The site is the old one and still there but the* layout has changed* (I felt so). ~l0nwlf On Sat, Feb 20, 2010 at 4:52 AM, Senthil Kumaran wrote: > On Sat, Feb 20, 2010 at 4:27 AM, Shashwat Anand > wrote: > > code.activestate.com > > AFAIK, its been there for a while. > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From tbd.lists at gmail.com Fri Feb 19 19:09:02 2010 From: tbd.lists at gmail.com (Tea BeeDi) Date: Fri, 19 Feb 2010 23:39:02 +0530 Subject: [BangPypers] Accessibility Research and Product Development Message-ID: <4573cd0e1002191009w1846a08qc29dff95a037aad5@mail.gmail.com> Rich Internet Applications open a can of "user interfaces for all" issues. In India we have a large number of people who may be identified as print-impaired. I.e., people who can see but cannot easily make sense of the words/text w3.org's WAI-ARIA recommendations help address some of the accessibility concerns, provided appropriate screen readers and such are made available. The case of the print-impaired is likely to push recommendations to be more semantics based so that both the screen readers and the user interfaces can react to user contexts in a better way. On the other hand, it can become a considerable effort for developers to realize these recommendations in getting the web applications to be sensitive to these users. One way to understand the generalized context is by looking into how these issues can be addressed at the level of Web application development frameworks. We are Bangalore based, working on an open source product, being developed using Python. The product is to address how various communities can manage their information -- i.e., a Web application which is also a framework for configuring information management oriented Web applications. Effort now has been in using Python, Django, Mongodb, jQuery, ... Some of the essential features of this product are: Dynamically configurable forms and workflows Cohabitation of multiple groups, workflows and communities Accessible to non IT-savvy for configuring their information management needs Extensibility of the framework and Accessible to a sizable print-impaired segment other keywords: design, xforms, bigtable, Ajax, foss, CSS, orca, platform, scalable, mobiles, database, pantoto, indic, audio, video We can afford kind of decent pay for one position - for now, and certainly simply afford many positions/contributions Send a note with indications of interest, experience, expectations; to work at servelots.com More announcements in March of an alpha release, repositories and issues. From tbd.lists at gmail.com Sat Feb 20 19:02:05 2010 From: tbd.lists at gmail.com (Tea BeeDi) Date: Sat, 20 Feb 2010 23:32:05 +0530 Subject: [BangPypers] [JOB] Accessibility Research and Product Development Message-ID: <4573cd0e1002201002i6164fe17k28181014b112532c@mail.gmail.com> Rich Internet Applications open a can of "user interfaces for all" issues. In India we have a large number of people who may be identified as print-impaired. I.e., people who can see but cannot easily make sense of the words/text w3.org's WAI-ARIA recommendations help address some of the accessibility concerns, provided appropriate screen readers and such are made available. The case of the print-impaired is likely to push recommendations to be more semantics based so that is both the screen readers and the user interfaces can react to user contexts in a better way. On the other hand, it can become a considerable effort for developers to realize these recommendations in getting the web applications to be sensitive to these users. One way to understand the generalized context is by looking into how these issues can be addressed at the level of Web application development frameworks. Servelots is Bangalore based, working on an open source product/platform. The product is to address how communities can manage their information i.e., a Web application which is also a framework for configuring information management oriented Web applications. Effort now has been in using Python, Django, Mongodb, jQuery, ... Some of the essential features of this product are: Dynamically configurable forms and workflows, Cohabitation of multiple groups, workflows and communities, Accessible by non IT-savvy for configuring their information management needs, Extensibility of the framework and Accessible by a sizable print-impaired segment other keywords: UI design, xforms, bigtable, Ajax, foss, orca, scalable, mobiles, database, pantoto, indic, audio, video, social software, school information management, e-gov The project has one position open, for now, with kind of decent pay and certainly can simply afford many positions/contributions. Please send a descriptive note of interest to work at servelots.com More announcements in March of an alpha release, repositories and issues. From tbd.lists at gmail.com Sat Feb 20 19:04:09 2010 From: tbd.lists at gmail.com (Tea BeeDi) Date: Sat, 20 Feb 2010 23:34:09 +0530 Subject: [BangPypers] [JOB] Accessibility Research and Product Development Message-ID: <4573cd0e1002201004v6f22a0d5hd56a3dbcb414b056@mail.gmail.com> Rich Internet Applications open a can of "user interfaces for all" issues. In India we have a large number of people who may be identified as print-impaired. I.e., people who can see but cannot easily make sense of the words/text w3.org's WAI-ARIA recommendations help address some of the accessibility concerns, provided appropriate screen readers and such are made available. The case of the print-impaired is likely to push recommendations to be more semantics based so that is both the screen readers and the user interfaces can react to user contexts in a better way. On the other hand, it can become a considerable effort for developers to realize these recommendations in getting the web applications to be sensitive to these users. One way to understand the generalized context is by looking into how these issues can be addressed at the level of Web application development frameworks. Servelots is Bangalore based, working on an open source product/platform. The product is to address how communities can manage their information i.e., a Web application which is also a framework for configuring information management oriented Web applications. Effort now has been in using Python, Django, Mongodb, jQuery, ... Some of the essential features of this product are: Dynamically configurable forms and workflows, Cohabitation of multiple groups, workflows and communities, Accessible to non IT-savvy for configuring their information management needs, Extensibility of the framework and Accessible to a sizable print-impaired segment other keywords: UI design, xforms, bigtable, Ajax, foss, orca, scalable, mobiles, database, pantoto, indic, audio, video, social software, school information management, e-gov The project has one position open, for now, with kind of decent pay and certainly can simply afford many positions/contributions. Please send a descriptive note of interest to work at servelots.com More announcements in March of an alpha release, repositories and issues. From ideamonk at gmail.com Sun Feb 21 13:54:56 2010 From: ideamonk at gmail.com (Abhishek Mishra) Date: Sun, 21 Feb 2010 18:24:56 +0530 Subject: [BangPypers] ActiveState/O'Reilly Launch New and Improved Code Share Site (Python) via @Bret In-Reply-To: References: <7c42eba11002191522s1ae29810o564a333c122bb08d@mail.gmail.com> Message-ID: <64160c71002210454h4c4a88b8l8e2bd41b1e4bf363@mail.gmail.com> Its pretty useful, though I prefer landing there from a google search at times, solved a few urllib issues. tfs Abhishek On Sat, Feb 20, 2010 at 7:57 AM, Shashwat Anand wrote: > The site is the old one and still there but the* layout has changed* (I felt > so). From orsenthil at gmail.com Sun Feb 21 15:45:30 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sun, 21 Feb 2010 20:15:30 +0530 Subject: [BangPypers] Students/Mentors for GSoC? In-Reply-To: <45ec909c1002190822q5d31baex1c91359b431e8dd3@mail.gmail.com> References: <45ec909c1002190822q5d31baex1c91359b431e8dd3@mail.gmail.com> Message-ID: <20100221144530.GB4498@ubuntu.ubuntu-domain> On Fri, Feb 19, 2010 at 09:52:50PM +0530, Yuvi Panda wrote: > Hi! I'm planning to apply for GSoC this year, probably under PSF or Django. Its a good idea. Do a lot of research and apply for something you might enjoy to work on. Nothing else. I did during 2007 and carried further the same during 2008 and worked on moving urllib to py3k. Having a good mentor definitely helps. I am not applying as a mentor, because I feel I am not qualified enough and also less time in my hands. -- Senthil Microbiology Lab: Staph Only! From sree at mahiti.org Mon Feb 22 07:28:57 2010 From: sree at mahiti.org (Sreekanth S Rameshaiah) Date: Mon, 22 Feb 2010 11:58:57 +0530 Subject: [BangPypers] [OT] Mozilla Dev Day, Bangalore: Saturday 27th Feb 2010 Message-ID: <313529611002212228t4493d65es54a24c95f84d0faf@mail.gmail.com> Mozilla and Mahiti are organizing an informal developer-oriented conference in Bangalore on Saturday February 27, 2010. The Mozilla DevDay will be an opportunity for developers, open source enthusiasts, and web aficionados who live in and around Bangalore, to meet Mozilla staff and learn about the Mozilla Project and its technologies. The DevDay is a free conference open to the general public. For more information please visit: http://j.mp/BLRMozDevDay All interested participants are requested to register by following this link: http://j.mp/MozDevDayBLR -- Sreekanth S Rameshaiah Executive Director Mahiti Infotech Pvt. Ltd. # 33-34, 2nd Floor, Hennur Cross, Hennur Road, Bangalore, India - 560043 Phone: +91 80 4115 0580/1 Mobile: +91 98455 12611 www.mahiti.org From hussainbohra_30 at yahoo.com Mon Feb 22 15:48:33 2010 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Mon, 22 Feb 2010 06:48:33 -0800 (PST) Subject: [BangPypers] [Matplotlab]: Generate only tabular report Message-ID: <631533.29836.qm@web52507.mail.re2.yahoo.com> Hi All, Can any one tell me how to generate only table using MatPlotLab. Please find my code: # do this before importing pylab or pyplot import matplotlib matplotlib.use('Agg') from pylab import figure, table fig = figure() colLabels = ('Freeze', 'Wind', 'Flood', 'Quake', 'Hail') rowLabels = ['%d year' % x for x in (100, 50, 20, 10, 5)] cellText = [['66.4', '174.3', '75.1', '577.9', '32.0'], ['124.6', '555.4', '153.2', '677.2', '192.5'], ['213.8', '636.0', '305.7', '1175.2', '796.0'], ['292.2', '717.8', '456.4', '1368.5', '865.6'], ['431.5', '1049.4', '799.6', '2149.8', '917.9']] table(cellText=cellText, colLabels=colLabels) fig.savefig('test12.png') This gives me table but also the empty XY plot above the same. Refer the attached png image. Can any one please let me know how to remove this empty plot ? Thanks and Regards, Hussain Bohra Tavant Technologies, Bangalore-95 mail-to:hussain.bohra at tavant.com mobile : +91 99867 95727 Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/ From jeffjosejeff at gmail.com Mon Feb 22 20:08:51 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Tue, 23 Feb 2010 00:38:51 +0530 Subject: [BangPypers] DreamPie - A new Interactive Python Shell Message-ID: I remember a while ago we were talking about python shells. I came across this. http://dreampie.sourceforge.net/ Note: I havent given it a try. Just sharing it incase someone finds it useful. Share with us your thoughts if you do. >From the website DreamPie is a Python shell which is designed to be reliable and fun. - DreamPie features a new concept for an interactive shell: the window is divided into the *history box*, which lets you view previous commands and their output, and the *code box*, where you write your code. This allows you to edit any amount of code, just like in your favorite editor, and execute it when it's ready. You can also copy code from anywhere, edit it and run it instantly. - The *Copy code only* command will copy the code you want to keep, so you can save it in a file. The code is already formatted nicely with a four-space indentation. - Features automatic completion of attributes and file names. - Automatically displays function arguments and documentation. - Keeps your recent results in the *result history*, for later user. - Can automatically fold long outputs, so you can concentrate on what's important. - Lets you save the history of the session as an HTML file, for future reference. You can then load the history file into DreamPie, and quickly redo previous commands. - Supports interactive plotting with matplotlib . - Supports Python 2.5, Python 2.6, Jython 2.5, IronPython 2.6 and Python 3.1. - Works on Windows and Linux. - Extremely fast and responsive. - Free software licensed under GPL version 3. /jeff From umar43 at gmail.com Mon Feb 22 20:21:56 2010 From: umar43 at gmail.com (Umar Shah) Date: Tue, 23 Feb 2010 00:51:56 +0530 Subject: [BangPypers] DreamPie - A new Interactive Python Shell In-Reply-To: References: Message-ID: <1854d0f91002221121m1f2385f3i22ccd0b401c55e86@mail.gmail.com> thanks for sharing jeff , these shells prove to be very useful during testing things out, so far i was using bpyton directly available from the ubuntu repository. Will try this one out as wll. -umar On Tue, Feb 23, 2010 at 12:38 AM, Jeffrey Jose wrote: > I remember a while ago we were talking about python shells. I came across > this. http://dreampie.sourceforge.net/ > > Note: I havent given it a try. Just sharing it incase someone finds it > useful. Share with us your thoughts if you do. > > >From the website > DreamPie is a Python shell which is designed to be reliable and fun. > > ? - DreamPie features a new concept for an interactive shell: the window is > ? divided into the *history box*, which lets you view previous commands and > ? their output, and the *code box*, where you write your code. This allows > ? you to edit any amount of code, just like in your favorite editor, and > ? execute it when it's ready. You can also copy code from anywhere, edit it > ? and run it instantly. > ? - The *Copy code only* command will copy the code you want to keep, so > ? you can save it in a file. The code is already formatted nicely with a > ? four-space indentation. > ? - Features automatic completion of attributes and file names. > ? - Automatically displays function arguments and documentation. > ? - Keeps your recent results in the *result history*, for later user. > ? - Can automatically fold long outputs, so you can concentrate on what's > ? important. > ? - Lets you save the history of the session as an HTML file, for future > ? reference. You can then load the history file into DreamPie, and quickly > ? redo previous commands. > ? - Supports interactive plotting with > matplotlib > ? . > ? - Supports Python 2.5, Python 2.6, Jython 2.5, IronPython 2.6 and Python > ? 3.1. > ? - Works on Windows and Linux. > ? - Extremely fast and responsive. > ? - Free software licensed under GPL version 3. > > > /jeff > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Charles de Gaulle - "The better I get to know men, the more I find myself loving dogs." - http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html From santhosh.divakar at gmail.com Mon Feb 22 20:23:53 2010 From: santhosh.divakar at gmail.com (Santhosh Divakar) Date: Tue, 23 Feb 2010 00:53:53 +0530 Subject: [BangPypers] DreamPie - A new Interactive Python Shell In-Reply-To: References: Message-ID: <8557029f1002221123x760efa2dn3074bb2cca34341a@mail.gmail.com> This is awesome. But, would there be any limitations with interactive shells like these?. -Thanks Santhosh On Tue, Feb 23, 2010 at 12:38 AM, Jeffrey Jose wrote: > I remember a while ago we were talking about python shells. I came across > this. http://dreampie.sourceforge.net/ > > Note: I havent given it a try. Just sharing it incase someone finds it > useful. Share with us your thoughts if you do. > > >From the website > DreamPie is a Python shell which is designed to be reliable and fun. > > - DreamPie features a new concept for an interactive shell: the window is > divided into the *history box*, which lets you view previous commands and > their output, and the *code box*, where you write your code. This allows > you to edit any amount of code, just like in your favorite editor, and > execute it when it's ready. You can also copy code from anywhere, edit it > and run it instantly. > - The *Copy code only* command will copy the code you want to keep, so > you can save it in a file. The code is already formatted nicely with a > four-space indentation. > - Features automatic completion of attributes and file names. > - Automatically displays function arguments and documentation. > - Keeps your recent results in the *result history*, for later user. > - Can automatically fold long outputs, so you can concentrate on what's > important. > - Lets you save the history of the session as an HTML file, for future > reference. You can then load the history file into DreamPie, and quickly > redo previous commands. > - Supports interactive plotting with > matplotlib > . > - Supports Python 2.5, Python 2.6, Jython 2.5, IronPython 2.6 and Python > 3.1. > - Works on Windows and Linux. > - Extremely fast and responsive. > - Free software licensed under GPL version 3. > > > /jeff > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Tue Feb 23 07:59:18 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 23 Feb 2010 12:29:18 +0530 Subject: [BangPypers] ActiveState/O'Reilly Launch New and Improved Code Share Site (Python) via @Bret In-Reply-To: <64160c71002210454h4c4a88b8l8e2bd41b1e4bf363@mail.gmail.com> References: <7c42eba11002191522s1ae29810o564a333c122bb08d@mail.gmail.com> <64160c71002210454h4c4a88b8l8e2bd41b1e4bf363@mail.gmail.com> Message-ID: <8548c5f31002222259t59638a7bw60a42aada190b46e@mail.gmail.com> On Sun, Feb 21, 2010 at 6:24 PM, Abhishek Mishra wrote: > Its pretty useful, though I prefer landing there from a google search > at times, solved a few urllib issues. > Few things I liked about this. 1. Shows hits and rating per recipe right in the front page 2. Orders recipe based on a combination of #views and rating instead of submit time. 3. The "Fork this recipe" option - it is cool and I just made use of it. 4. License information shown on the recipe - so no ambiguity on this. I didn't however like the "Hottest..." prefix. It sounds cheap and playing to the gallery. > tfs > > Abhishek > > On Sat, Feb 20, 2010 at 7:57 AM, Shashwat Anand > wrote: > > The site is the old one and still there but the* layout has changed* (I > felt > > so). > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Tue Feb 23 16:05:53 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 23 Feb 2010 10:05:53 -0500 Subject: [BangPypers] Feb user group meeting Message-ID: <9963e56e1002230705s77fe2015s6d1fcd0e4bea15bc@mail.gmail.com> Anyone game for a meeting this weekend? i probably won't be back by then but I don't like a meeting being missed. I can present something during the first weekend on March (specifically about PyCon in Atlanta). If that's fine, we can do 2 meetings in March (one which is the postponed Feb meeting) and the other the actual March talk. Thanks. -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Tue Feb 23 16:34:03 2010 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Tue, 23 Feb 2010 21:04:03 +0530 Subject: [BangPypers] Feb user group meeting In-Reply-To: <9963e56e1002230705s77fe2015s6d1fcd0e4bea15bc@mail.gmail.com> References: <9963e56e1002230705s77fe2015s6d1fcd0e4bea15bc@mail.gmail.com> Message-ID: <3d62196a1002230734oad0607fx35e153388f2ed9be@mail.gmail.com> On Tue, Feb 23, 2010 at 8:35 PM, Noufal Ibrahim wrote: > If that's fine, we can do 2 > meetings in March (one which is the postponed Feb meeting) and the > other the actual March talk. > Yeah, I am fine with two meetings in March. I am catching up on some of the PyCon news on twitter. Eager to talk to you in person about it. -- Arvind From mbaiju at zeomega.com Tue Feb 23 17:04:34 2010 From: mbaiju at zeomega.com (Baiju M) Date: Tue, 23 Feb 2010 21:34:34 +0530 Subject: [BangPypers] Feb user group meeting In-Reply-To: <3d62196a1002230734oad0607fx35e153388f2ed9be@mail.gmail.com> References: <9963e56e1002230705s77fe2015s6d1fcd0e4bea15bc@mail.gmail.com> <3d62196a1002230734oad0607fx35e153388f2ed9be@mail.gmail.com> Message-ID: On Tue, Feb 23, 2010 at 9:04 PM, Arvind Jamuna Dixit wrote: > On Tue, Feb 23, 2010 at 8:35 PM, Noufal Ibrahim wrote: > >> If that's fine, we can do 2 >> meetings in March (one which is the postponed Feb meeting) and the >> other the actual March talk. >> > Yeah, I am fine with two meetings in March. +1 I also will be available next weekend, but I would prefer Sunday (March 7). Regards, Baiju M From noufal at gmail.com Tue Feb 23 18:22:14 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 23 Feb 2010 12:22:14 -0500 Subject: [BangPypers] Feb user group meeting In-Reply-To: References: <9963e56e1002230705s77fe2015s6d1fcd0e4bea15bc@mail.gmail.com> <3d62196a1002230734oad0607fx35e153388f2ed9be@mail.gmail.com> Message-ID: <9963e56e1002230922p7ff24429i8996196f54325a64@mail.gmail.com> On Tue, Feb 23, 2010 at 11:04 AM, Baiju M wrote: > On Tue, Feb 23, 2010 at 9:04 PM, Arvind Jamuna Dixit wrote: >> On Tue, Feb 23, 2010 at 8:35 PM, Noufal Ibrahim wrote: >> >>> If that's fine, we can do 2 >>> meetings in March (one which is the postponed Feb meeting) and the >>> other the actual March talk. >>> >> Yeah, I am fine with two meetings in March. > > +1 > > I also will be available next weekend, but I would prefer Sunday (March 7). > Fine by me. Any other suggestions? -- ~noufal http://nibrahim.net.in From sriramnrn at gmail.com Wed Feb 24 05:05:20 2010 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Wed, 24 Feb 2010 09:35:20 +0530 Subject: [BangPypers] Feb user group meeting In-Reply-To: <9963e56e1002230922p7ff24429i8996196f54325a64@mail.gmail.com> References: <9963e56e1002230705s77fe2015s6d1fcd0e4bea15bc@mail.gmail.com> <3d62196a1002230734oad0607fx35e153388f2ed9be@mail.gmail.com> <9963e56e1002230922p7ff24429i8996196f54325a64@mail.gmail.com> Message-ID: <49977f271002232005y8849ebdq2ab46ef989613cfe@mail.gmail.com> Could we meet when you folks are back? I'd like to present on Cintinuous Integration and on "What are Unit Tests" with a focus on experienced developers. -- Sriram On 2/23/10, Noufal Ibrahim wrote: > On Tue, Feb 23, 2010 at 11:04 AM, Baiju M wrote: >> On Tue, Feb 23, 2010 at 9:04 PM, Arvind Jamuna Dixit >> wrote: >>> On Tue, Feb 23, 2010 at 8:35 PM, Noufal Ibrahim wrote: >>> >>>> If that's fine, we can do 2 >>>> meetings in March (one which is the postponed Feb meeting) and the >>>> other the actual March talk. >>>> >>> Yeah, I am fine with two meetings in March. >> >> +1 >> >> I also will be available next weekend, but I would prefer Sunday (March >> 7). >> > > Fine by me. Any other suggestions? > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sent from my mobile device Belenix: www.belenix.org From noufal at gmail.com Wed Feb 24 05:13:21 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 23 Feb 2010 23:13:21 -0500 Subject: [BangPypers] Feb user group meeting In-Reply-To: <49977f271002232005y8849ebdq2ab46ef989613cfe@mail.gmail.com> References: <9963e56e1002230705s77fe2015s6d1fcd0e4bea15bc@mail.gmail.com> <3d62196a1002230734oad0607fx35e153388f2ed9be@mail.gmail.com> <9963e56e1002230922p7ff24429i8996196f54325a64@mail.gmail.com> <49977f271002232005y8849ebdq2ab46ef989613cfe@mail.gmail.com> Message-ID: <9963e56e1002232013h3be26f84xf322d46156c8ca59@mail.gmail.com> On Tue, Feb 23, 2010 at 11:05 PM, Sriram Narayanan wrote: > Could we meet when you folks are back? I'd like to present on > Cintinuous Integration and on "What are Unit Tests" with a focus on > experienced developers. > > -- Sriram[..] Sure. Shall we do that for the Feb meeting (which will probably be in the first week or March) or the March meeting (which will be in the last week of March)? -- ~noufal http://nibrahim.net.in From sibtey.mehndi at genpact.com Wed Feb 24 08:43:14 2010 From: sibtey.mehndi at genpact.com (Mehndi, Sibtey) Date: Wed, 24 Feb 2010 13:13:14 +0530 Subject: [BangPypers] python module for SQL Server connection Message-ID: Hi I have migrated my database from mysql to SQL SERVER. Could you please tell me the python module to be used to make the connection with SQL SERVER? Thanks, Sibtey Mehdi This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. From anandology at gmail.com Wed Feb 24 08:58:20 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 24 Feb 2010 13:28:20 +0530 Subject: [BangPypers] python module for SQL Server connection In-Reply-To: References: Message-ID: <41139fcb1002232358i4330812oc4520e7eabe179c4@mail.gmail.com> On Wed, Feb 24, 2010 at 1:13 PM, Mehndi, Sibtey wrote: > Hi > ? ? I have migrated my database from mysql to SQL SERVER. Could you please tell me the python module to be used to make the connection with SQL SERVER? try pymssql. From mbaiju at zeomega.com Wed Feb 24 09:41:55 2010 From: mbaiju at zeomega.com (Baiju M) Date: Wed, 24 Feb 2010 14:11:55 +0530 Subject: [BangPypers] python module for SQL Server connection In-Reply-To: <41139fcb1002232358i4330812oc4520e7eabe179c4@mail.gmail.com> References: <41139fcb1002232358i4330812oc4520e7eabe179c4@mail.gmail.com> Message-ID: On Wed, Feb 24, 2010 at 1:28 PM, Anand Chitipothu wrote: > On Wed, Feb 24, 2010 at 1:13 PM, Mehndi, Sibtey > wrote: >> Hi >> ? ? I have migrated my database from mysql to SQL SERVER. Could you please tell me the python module to be used to make the connection with SQL SERVER? > > try pymssql. If you need ODBC, two non-free packages are available: mxODBC & mxODBCConnect from: http://egenix.com/ There is a free ODBC based one also: http://pyodbc.sourceforge.net/ Regards, Baiju M From Girish.Goudar at goodrich.com Wed Feb 24 11:44:57 2010 From: Girish.Goudar at goodrich.com (Goudar, Girish) Date: Wed, 24 Feb 2010 18:44:57 +0800 Subject: [BangPypers] Passing structure Message-ID: Hi All, I want to pass a structure (which contains int, float, char etc) from a client program written in Python to a server program written in C (Operating system is DEOS). But the "socket.send" command in Python supports only String or Readonly buffer. I want to pass a structure. Could you please help me on this? Thanks and Regards, Girish P.G From umar43 at gmail.com Wed Feb 24 12:20:46 2010 From: umar43 at gmail.com (Umar Shah) Date: Wed, 24 Feb 2010 16:50:46 +0530 Subject: [BangPypers] Passing structure In-Reply-To: References: Message-ID: <1854d0f91002240320k36c53e72gf16a16748ead3e0e@mail.gmail.com> Hi, If you are sending over the network, better use a protocol for such communication, on python side you can serialize the object into a json or xml string and let the server handle the data accordingly. regards, umar On Wed, Feb 24, 2010 at 4:14 PM, Goudar, Girish wrote: > Hi All, > > > > I want to pass a structure (which contains int, float, char etc) from a > client program written in Python to a server program written in C > (Operating system is DEOS). But the "socket.send" command in Python > supports only String or Readonly buffer. I want to pass a structure. > Could you please help me on this? > > > > Thanks and Regards, > > Girish P.G > > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ted Turner - "Sports is like a war without the killing." - http://www.brainyquote.com/quotes/authors/t/ted_turner.html From abpillai at gmail.com Wed Feb 24 20:04:55 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 25 Feb 2010 00:34:55 +0530 Subject: [BangPypers] Passing structure In-Reply-To: <1854d0f91002240320k36c53e72gf16a16748ead3e0e@mail.gmail.com> References: <1854d0f91002240320k36c53e72gf16a16748ead3e0e@mail.gmail.com> Message-ID: <8548c5f31002241104j379dad54x744e47facfd9f43c@mail.gmail.com> On Wed, Feb 24, 2010 at 4:50 PM, Umar Shah wrote: > Hi, > > If you are sending over the network, better use a protocol for such > communication, > on python side you can serialize the object into a json or xml string > and let the server handle the data accordingly. > Use the "struct" module for converting a structure from/to string/struct format. See the documentation of "struct" for details. For simple usage of struct for this, see the recipe http://code.activestate.com/recipes/457669/ --Anand > > regards, > umar > > On Wed, Feb 24, 2010 at 4:14 PM, Goudar, Girish > wrote: > > Hi All, > > > > > > > > I want to pass a structure (which contains int, float, char etc) from a > > client program written in Python to a server program written in C > > (Operating system is DEOS). But the "socket.send" command in Python > > supports only String or Readonly buffer. I want to pass a structure. > > Could you please help me on this? > > > > > > > > Thanks and Regards, > > > > Girish P.G > > > > > > > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > > Ted Turner - "Sports is like a war without the killing." - > http://www.brainyquote.com/quotes/authors/t/ted_turner.html > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From vinayshastry at gmail.com Thu Feb 25 04:43:52 2010 From: vinayshastry at gmail.com (Vinay Shastry) Date: Thu, 25 Feb 2010 09:13:52 +0530 Subject: [BangPypers] date range In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D2DDFB@astserver3.akebonosoft.com> References: <1c4dc2781002090837ie5794cayc73c8048e12b8c3e@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDFB@astserver3.akebonosoft.com> Message-ID: <868d32d21002241943s474f2cfdkcc11e9af602f8eb3@mail.gmail.com> On 10 February 2010 09:37, Srinivas Reddy Thatiparthy wrote: > > It's called TWICE ?, no matter with or without side effects. > I asked this on SO,somebody came up with this answer! > >>>> def check(): > ? ? ? ?print 'Called Once' > ? ? ? ?return 2 > >>>> 1 Called Once > True >>>> 1 Called Once > Called Once > True >>>> > > Happy Hacking. > > Regards, > ~ Srini T It can be called just once too... >>> def foo(): ... print "called" ... return 0 ... >>> 1 < foo() and foo() < 3 called False -- Vinay S Shastry http://thenub.one09.net From anand.shashwat at gmail.com Thu Feb 25 04:51:11 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Thu, 25 Feb 2010 09:21:11 +0530 Subject: [BangPypers] date range In-Reply-To: <868d32d21002241943s474f2cfdkcc11e9af602f8eb3@mail.gmail.com> References: <1c4dc2781002090837ie5794cayc73c8048e12b8c3e@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDFB@astserver3.akebonosoft.com> <868d32d21002241943s474f2cfdkcc11e9af602f8eb3@mail.gmail.com> Message-ID: > > It can be called just once too... > > >>> def foo(): > ... print "called" > ... return 0 > ... > >>> 1 < foo() and foo() < 3 > called > False > This is because AND operator short-circuits. So when 1 < foo() is false, it terminates then and there. Srinivas is correct here. ~l0nwlf From vinayshastry at gmail.com Thu Feb 25 04:58:07 2010 From: vinayshastry at gmail.com (Vinay Shastry) Date: Thu, 25 Feb 2010 09:28:07 +0530 Subject: [BangPypers] date range In-Reply-To: References: <1c4dc2781002090837ie5794cayc73c8048e12b8c3e@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDFB@astserver3.akebonosoft.com> <868d32d21002241943s474f2cfdkcc11e9af602f8eb3@mail.gmail.com> Message-ID: <868d32d21002241958t2a553d20u7a649f043429aa95@mail.gmail.com> On 25 February 2010 09:21, Shashwat Anand wrote: >> >> It can be called just once too... >> >> >>> def foo(): >> ... ? print "called" >> ... ? return 0 >> ... >> >>> 1 < foo() and foo() < 3 >> called >> False >> > > This is because AND operator short-circuits. So when 1 < foo() is false, it > terminates then and there. Srinivas is correct here. > Yes, I'm just countering: "It's called TWICE , no matter with or without side effects." -- Vinay S Shastry http://thenub.one09.net From srinivas_thatiparthy at akebonosoft.com Thu Feb 25 05:13:39 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Thu, 25 Feb 2010 09:43:39 +0530 Subject: [BangPypers] date range References: <1c4dc2781002090837ie5794cayc73c8048e12b8c3e@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDFB@astserver3.akebonosoft.com> <868d32d21002241943s474f2cfdkcc11e9af602f8eb3@mail.gmail.com> <868d32d21002241958t2a553d20u7a649f043429aa95@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0CD4B340@astserver3.akebonosoft.com> I mean it to the function foo(). Thanks&Regards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org on behalf of Vinay Shastry Sent: Thu 2/25/2010 9:28 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] date range On 25 February 2010 09:21, Shashwat Anand wrote: >> >> It can be called just once too... >> >> >>> def foo(): >> ... ? print "called" >> ... ? return 0 >> ... >> >>> 1 < foo() and foo() < 3 >> called >> False >> > > This is because AND operator short-circuits. So when 1 < foo() is false, it > terminates then and there. Srinivas is correct here. > Yes, I'm just countering: "It's called TWICE , no matter with or without side effects." -- Vinay S Shastry http://thenub.one09.net _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From srinivas_thatiparthy at akebonosoft.com Thu Feb 25 05:17:55 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Thu, 25 Feb 2010 09:47:55 +0530 Subject: [BangPypers] date range References: <1c4dc2781002090837ie5794cayc73c8048e12b8c3e@mail.gmail.com> <4EF2BF691B890546B2694C99A2852F0C01D2DDFB@astserver3.akebonosoft.com> <868d32d21002241943s474f2cfdkcc11e9af602f8eb3@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0CD4B341@astserver3.akebonosoft.com> >>This is because AND operator short-circuits. So when 1 < foo() is false, it >>terminates then and there. is there any language which doesn't short circuit and,or,(|| ,&&)? just curious .I never heard of any. Thanks&Regards, Srinivas Reddy Thatiparthy, Mobile:9393099772, From sameena.n at sigmainfo.net Thu Feb 25 06:18:01 2010 From: sameena.n at sigmainfo.net (Sameena Naz) Date: Thu, 25 Feb 2010 10:48:01 +0530 Subject: [BangPypers] Python Developer In-Reply-To: <449c45f41002242114u60f8566u7127902309d93957@mail.gmail.com> References: <449c45f41002242114u60f8566u7127902309d93957@mail.gmail.com> Message-ID: <449c45f41002242118m5f223e67i3220c7bfbffb4312@mail.gmail.com> Hi All, PFB the python requirement we have, please send your profile for further process to sameena.n at sigmainfo.net * Job Title: Python Developer* Primary Skills : Python , Django , Sql/Plsql , HTML , Ajax *Desired Skills** **( If any )* : Mobile App development , App Engine , Payment gateway integrations Satchmo *Experince Required* : 1 to 2+ *Location * : Bangalore * * *ABOUT SIGMA:* *SIGMA INFOSOLUIT LTD *(a TUV certified ISO 9001:2008 company) is a leading provider of *customized software solutions* for customer's worldwide. Sigma Infosolutions Ltd specializes in the execution of strategic initiatives for business leaders. We represent an organization dedicated towards providing intelligent and reliable IT solutions for all your growing business needs. Our expertise is in understanding vague requirements of businesses & transforming them into ROI based software solutions. Customization of solutions to meet individual business needs has been our biggest strength and most important reason for success. We provide a range of execution-oriented services to a diversified, global client base in a variety of industries. We are headquartered in California, US and have operations in the US, UK & India. The head office for our Indian operations is located in Bangalore. In India, the company also has operations in Delhi, Mumbai and Jodhpur and is expanding its network in other cities to take of the customer base spreading throughout the country. www.sigmainfo.net -- Regards, Sameena -- Regards, Sameena From lakshmi.chowdam at bt.com Thu Feb 25 08:21:15 2010 From: lakshmi.chowdam at bt.com (lakshmi.chowdam at bt.com) Date: Thu, 25 Feb 2010 07:21:15 -0000 Subject: [BangPypers] Calling Python script from C++. Message-ID: Hi, We have a requirement of Calling Python script from C++. So, For this we are trying to pass entire python script(Script has both method implementation and method calls are exist) as a string and executing this string by using PyRun_SimpleString(). Our concern is that if python has a method with no arguments we are able to execute it successfully But If Method takes parameters or arguments ,then how do we can pass values to that method and how can we execute it? Could you please provide the solution. Thanks and Regards, Lakshmi Narasaiah C, From gora at srijan.in Thu Feb 25 09:11:21 2010 From: gora at srijan.in (Gora Mohanty) Date: Thu, 25 Feb 2010 13:41:21 +0530 Subject: [BangPypers] Calling Python script from C++. In-Reply-To: References: Message-ID: <20100225134121.3f2ae2cb@ibis> On Thu, 25 Feb 2010 07:21:15 -0000 wrote: [...] > We have a requirement of Calling Python script from C++. [...] > So, For this we are trying to pass entire python script(Script > has both method implementation and method calls are exist) as a > string and executing this string by using PyRun_SimpleString(). [...] > Our concern is that if python has a method with no arguments we > are able to execute it successfully http://lmgtfy.com/?q=python+call+c might be of help. Regards, Gora From zubin.mithra at gmail.com Thu Feb 25 12:41:18 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Thu, 25 Feb 2010 17:11:18 +0530 Subject: [BangPypers] Calling Python script from C++. In-Reply-To: References: Message-ID: <8e7c74321002250341s1b4a2b6cg2d79e40c29e284a5@mail.gmail.com> could you give us a few more details? the deployment OS? cheers!!! Zubin On Thu, Feb 25, 2010 at 12:51 PM, wrote: > Hi, > > > > We have a requirement of Calling Python script from C++. > > > > So, For this we are trying to pass entire python script(Script has ?both > method implementation and method calls are exist) as a string and > executing this string by using PyRun_SimpleString(). > > > > Our concern is that if python has a method with no arguments we are able > to execute it successfully > > > > But If Method takes parameters or arguments ,then how do we can pass > values to that method and how can we execute it? > > > > Could you please provide the solution. > > > > Thanks and Regards, > > Lakshmi Narasaiah C, > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lakshmi.chowdam at bt.com Thu Feb 25 13:16:33 2010 From: lakshmi.chowdam at bt.com (lakshmi.chowdam at bt.com) Date: Thu, 25 Feb 2010 12:16:33 -0000 Subject: [BangPypers] Calling Python script from C++. In-Reply-To: <8e7c74321002250341s1b4a2b6cg2d79e40c29e284a5@mail.gmail.com> References: <8e7c74321002250341s1b4a2b6cg2d79e40c29e284a5@mail.gmail.com> Message-ID: Hi Zubin, Deployment OS is RedHat Linux. Here is the python file : Hello.py Def sayHello(name): Print "Hello" + name sayHello(arg) and In c++ file, I am catching all the lines from the python file in string buffer and calling the PyRun_SimpleString(stringbuffer). It is working fine without passing any argument. But I want to send the argument to this python file from c++ file. Could you tell me how can I pass arguments to python file? Thanks, Lakshmi. -----Original Message----- From: bangpypers-bounces+lakshmi.chowdam=bt.com at python.org [mailto:bangpypers-bounces+lakshmi.chowdam=bt.com at python.org] On Behalf Of Zubin Mithra Sent: Thursday, February 25, 2010 5:11 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Calling Python script from C++. could you give us a few more details? the deployment OS? cheers!!! Zubin On Thu, Feb 25, 2010 at 12:51 PM, wrote: > Hi, > > > > We have a requirement of Calling Python script from C++. > > > > So, For this we are trying to pass entire python script(Script has ?both > method implementation and method calls are exist) as a string and > executing this string by using PyRun_SimpleString(). > > > > Our concern is that if python has a method with no arguments we are able > to execute it successfully > > > > But If Method takes parameters or arguments ,then how do we can pass > values to that method and how can we execute it? > > > > Could you please provide the solution. > > > > Thanks and Regards, > > Lakshmi Narasaiah C, > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From raghavendra.gv.vanam at gmail.com Thu Feb 25 13:18:53 2010 From: raghavendra.gv.vanam at gmail.com (vanam) Date: Thu, 25 Feb 2010 17:48:53 +0530 Subject: [BangPypers] [Installing Spyder IDE]:Help Message-ID: <4499cb6a1002250418pf342291k6f4d7f90fd15af02@mail.gmail.com> I have been trying to install spyder ide but of no avail. Downloaded and installed spyder-1.03_py26.exe I have downloaded pyqt4 for that purpose(Direct Installer) pyqt-py2.6-gpl-4.7-1.exe after installing the above softwares and then launching Spyder it is showing initialising and gets disappears. Is that something or dependency i have missed to install? -- Raghavendra Vanam From zubin.mithra at gmail.com Thu Feb 25 14:28:31 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Thu, 25 Feb 2010 18:58:31 +0530 Subject: [BangPypers] Calling Python script from C++. In-Reply-To: References: <8e7c74321002250341s1b4a2b6cg2d79e40c29e284a5@mail.gmail.com> Message-ID: <8e7c74321002250528q3c2c84b9j42283b308d66a7e6@mail.gmail.com> #!/usr/bin/python # test.py import sys print sys.argv $ python test.py myArgument i hope this is what you required. On 2/25/10, lakshmi.chowdam at bt.com wrote: > Hi Zubin, > > Deployment OS is RedHat Linux. > > Here is the python file : Hello.py > > Def sayHello(name): > Print "Hello" + name > > sayHello(arg) > > and > > In c++ file, I am catching all the lines from the python file in string > buffer and calling the PyRun_SimpleString(stringbuffer). > It is working fine without passing any argument. But I want to send the > argument to this python file from c++ file. > > Could you tell me how can I pass arguments to python file? > > > Thanks, > Lakshmi. > > -----Original Message----- > From: bangpypers-bounces+lakshmi.chowdam=bt.com at python.org > [mailto:bangpypers-bounces+lakshmi.chowdam=bt.com at python.org] On Behalf Of > Zubin Mithra > Sent: Thursday, February 25, 2010 5:11 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Calling Python script from C++. > > could you give us a few more details? the deployment OS? > > > cheers!!! > Zubin > > > > On Thu, Feb 25, 2010 at 12:51 PM, wrote: >> Hi, >> >> >> >> We have a requirement of Calling Python script from C++. >> >> >> >> So, For this we are trying to pass entire python script(Script has both >> method implementation and method calls are exist) as a string and >> executing this string by using PyRun_SimpleString(). >> >> >> >> Our concern is that if python has a method with no arguments we are able >> to execute it successfully >> >> >> >> But If Method takes parameters or arguments ,then how do we can pass >> values to that method and how can we execute it? >> >> >> >> Could you please provide the solution. >> >> >> >> Thanks and Regards, >> >> Lakshmi Narasaiah C, >> >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- cheers!!! Zubin From praveen.python.plone at gmail.com Thu Feb 25 14:48:29 2010 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Thu, 25 Feb 2010 19:18:29 +0530 Subject: [BangPypers] Calling Python script from C++. In-Reply-To: <8e7c74321002250528q3c2c84b9j42283b308d66a7e6@mail.gmail.com> References: <8e7c74321002250341s1b4a2b6cg2d79e40c29e284a5@mail.gmail.com> <8e7c74321002250528q3c2c84b9j42283b308d66a7e6@mail.gmail.com> Message-ID: <6305ec601002250548i2f6895c9w212865a77186e4fe@mail.gmail.com> Can you show me the stringbuffer what it contains? On Thu, Feb 25, 2010 at 6:58 PM, Zubin Mithra wrote: > #!/usr/bin/python > # test.py > import sys > print sys.argv > > > $ python test.py myArgument > > i hope this is what you required. > > > > On 2/25/10, lakshmi.chowdam at bt.com wrote: > > Hi Zubin, > > > > Deployment OS is RedHat Linux. > > > > Here is the python file : Hello.py > > > > Def sayHello(name): > > Print "Hello" + name > > > > sayHello(arg) > > > > and > > > > In c++ file, I am catching all the lines from the python file in string > > buffer and calling the PyRun_SimpleString(stringbuffer). > > It is working fine without passing any argument. But I want to send the > > argument to this python file from c++ file. > > > > Could you tell me how can I pass arguments to python file? > > > > > > Thanks, > > Lakshmi. > > > > -----Original Message----- > > From: bangpypers-bounces+lakshmi.chowdam=bt.com at python.org > > [mailto:bangpypers-bounces+lakshmi.chowdam > =bt.com at python.org] On Behalf Of > > Zubin Mithra > > Sent: Thursday, February 25, 2010 5:11 PM > > To: Bangalore Python Users Group - India > > Subject: Re: [BangPypers] Calling Python script from C++. > > > > could you give us a few more details? the deployment OS? > > > > > > cheers!!! > > Zubin > > > > > > > > On Thu, Feb 25, 2010 at 12:51 PM, wrote: > >> Hi, > >> > >> > >> > >> We have a requirement of Calling Python script from C++. > >> > >> > >> > >> So, For this we are trying to pass entire python script(Script has both > >> method implementation and method calls are exist) as a string and > >> executing this string by using PyRun_SimpleString(). > >> > >> > >> > >> Our concern is that if python has a method with no arguments we are able > >> to execute it successfully > >> > >> > >> > >> But If Method takes parameters or arguments ,then how do we can pass > >> values to that method and how can we execute it? > >> > >> > >> > >> Could you please provide the solution. > >> > >> > >> > >> Thanks and Regards, > >> > >> Lakshmi Narasaiah C, > >> > >> > >> > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > -- > cheers!!! > Zubin > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Praveen Kumar +91 9620621342 http://praveensunsetpoint.wordpress.com Bangalore From lakshmi.chowdam at bt.com Thu Feb 25 15:02:20 2010 From: lakshmi.chowdam at bt.com (lakshmi.chowdam at bt.com) Date: Thu, 25 Feb 2010 14:02:20 -0000 Subject: [BangPypers] Calling Python script from C++. In-Reply-To: <8e7c74321002250528q3c2c84b9j42283b308d66a7e6@mail.gmail.com> References: <8e7c74321002250341s1b4a2b6cg2d79e40c29e284a5@mail.gmail.com> <8e7c74321002250528q3c2c84b9j42283b308d66a7e6@mail.gmail.com> Message-ID: Hi Zubin, Thanks a lot for the quick reply. You are correct Zubin, we can execute python script individually as you described. But my requirement is that, Basically I want to call the python script from c++ program. In the c++ program, I am creating the multi threads and calling the thread function with a argument(argument contains the entire python code as a string, for example > Def sayHello(name): > Print "Hello" + name > > sayHello(arg)). In the function definition, I am taking 1 hard coded variable and needs to pass this variable along with the string(python code) to PyRun_SimpleString() and execute it. Could you tell me the solution how to map the argument to the string(python code) and pass to PyRun_SimpleString() and execute successfully? Thanks, Lakshmi. -----Original Message----- From: bangpypers-bounces+lakshmi.chowdam=bt.com at python.org [mailto:bangpypers-bounces+lakshmi.chowdam=bt.com at python.org] On Behalf Of Zubin Mithra Sent: Thursday, February 25, 2010 6:59 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Calling Python script from C++. #!/usr/bin/python # test.py import sys print sys.argv $ python test.py myArgument i hope this is what you required. On 2/25/10, lakshmi.chowdam at bt.com wrote: > Hi Zubin, > > Deployment OS is RedHat Linux. > > Here is the python file : Hello.py > > Def sayHello(name): > Print "Hello" + name > > sayHello(arg) > > and > > In c++ file, I am catching all the lines from the python file in string > buffer and calling the PyRun_SimpleString(stringbuffer). > It is working fine without passing any argument. But I want to send the > argument to this python file from c++ file. > > Could you tell me how can I pass arguments to python file? > > > Thanks, > Lakshmi. > > -----Original Message----- > From: bangpypers-bounces+lakshmi.chowdam=bt.com at python.org > [mailto:bangpypers-bounces+lakshmi.chowdam=bt.com at python.org] On Behalf Of > Zubin Mithra > Sent: Thursday, February 25, 2010 5:11 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Calling Python script from C++. > > could you give us a few more details? the deployment OS? > > > cheers!!! > Zubin > > > > On Thu, Feb 25, 2010 at 12:51 PM, wrote: >> Hi, >> >> >> >> We have a requirement of Calling Python script from C++. >> >> >> >> So, For this we are trying to pass entire python script(Script has both >> method implementation and method calls are exist) as a string and >> executing this string by using PyRun_SimpleString(). >> >> >> >> Our concern is that if python has a method with no arguments we are able >> to execute it successfully >> >> >> >> But If Method takes parameters or arguments ,then how do we can pass >> values to that method and how can we execute it? >> >> >> >> Could you please provide the solution. >> >> >> >> Thanks and Regards, >> >> Lakshmi Narasaiah C, >> >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- cheers!!! Zubin _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From Girish.Goudar at goodrich.com Thu Feb 25 15:45:47 2010 From: Girish.Goudar at goodrich.com (Goudar, Girish) Date: Thu, 25 Feb 2010 22:45:47 +0800 Subject: [BangPypers] pack and unpack Message-ID: Hi, I sent some data from TCP client written in Python running in Windows OS using pack() function to the TCP server written in C code running in DEOS operating system. I want to unpack the function at TCP server. How to do? Thanks and Regards, Girish P.G From steve at lonetwin.net Fri Feb 26 10:10:39 2010 From: steve at lonetwin.net (steve) Date: Fri, 26 Feb 2010 14:40:39 +0530 Subject: [BangPypers] Calling Python script from C++. In-Reply-To: References: <8e7c74321002250341s1b4a2b6cg2d79e40c29e284a5@mail.gmail.com> <8e7c74321002250528q3c2c84b9j42283b308d66a7e6@mail.gmail.com> Message-ID: <4B87900F.6020305@lonetwin.net> Hi, On 02/25/2010 07:32 PM, lakshmi.chowdam at bt.com wrote: > Hi Zubin, > > [...snip...] > In the function definition, I am taking 1 hard coded variable and needs > to pass this variable along with the string(python code) to > PyRun_SimpleString() and execute it. > > Could you tell me the solution how to map the argument to the > string(python code) and pass to PyRun_SimpleString() and execute > successfully? > Is there any specific reason you choose to read the entire file and execute it using PyRun_SimpleString() as opposed to the more traditional and standard methods of using fork()+exec*() or system() functions ? cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From zubin.mithra at gmail.com Fri Feb 26 11:17:15 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Fri, 26 Feb 2010 15:47:15 +0530 Subject: [BangPypers] PyAutoRun Message-ID: <8e7c74321002260217n7041cacj861340887fb4b72e@mail.gmail.com> Hello, I have been using python for quite some time; however this is the first python project i have worked on. The code is hosted at http://github.com/zubin71/PyAutoRun The code needs re-factoring and feature additions; i have put up a TODO list there too. It`d be great if anyone could work on this; i intend to develop this further(with a bit of help) and will request for its addition into debian and ubuntu repositories, in time. Also, any kind of code-review, criticism, is also appreciated. However, it`d be awesome if you could just fork it at github, pull, modify and push. :) Have a nice day! cheers!!! Zubin From codeshepherd at gmail.com Fri Feb 26 11:50:20 2010 From: codeshepherd at gmail.com (Deepan Chakravarthy) Date: Fri, 26 Feb 2010 16:20:20 +0530 Subject: [BangPypers] change of facebook developers meetup date Message-ID: Hello All, Since mozilla developer day is planned for 27th, we are moving the bangalore facebook developer meetup to 1st sunday of march. Next Meeting =========== Time & Date: 3pm, 7th March Venue: Jaaga http://jaaga.wikidot.com/ Google Maps link: http://maps.google.com/maps/place?cid=6204047418301939679&q=jaaga Live directions : contact Deepan at 9945702482 Agenda: Introduction to Bangalore Facebook Developers Group Basics of creating a Facebook application Networking Regards Deepan +91 9945702482 http://www.hashcube.com http://twitter.com/codeshepherd From orsenthil at gmail.com Fri Feb 26 12:28:04 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 26 Feb 2010 16:58:04 +0530 Subject: [BangPypers] PyAutoRun In-Reply-To: <8e7c74321002260217n7041cacj861340887fb4b72e@mail.gmail.com> References: <8e7c74321002260217n7041cacj861340887fb4b72e@mail.gmail.com> Message-ID: <20100226112804.GA5042@ubuntu.ubuntu-domain> On Fri, Feb 26, 2010 at 03:47:15PM +0530, Zubin Mithra wrote: > Hello, > > I have been using python for quite some time; however this is the > first python project i have worked on. I see that the script is just a short cut utility, I personally feel opening the file in the editor and then doing rest is easier for me than say I would use this script. However if this was some kind of coding exercise, it is good for you. > > The code is hosted at http://github.com/zubin71/PyAutoRun > > The code needs re-factoring and feature additions; i have put up a > TODO list there too. It`d be great if anyone could work on this; i Some review comments. in the core.py --- import os, sys, random --- This is usually discouraged. better would be write one import in one line. Also writing one import stmt in a line has the practical advantage that if you were to use code parsing tools like 2to3, it would work properly. --- from os import system --- See if you can use subprocess. --- EDITOR = "vim" --- What if I want to use gedit? Would you provide an option? --- dictionaryCompiled = {'c': 'gcc', 'cpp': 'g++', 'java': 'javac'} dictionaryInterpreted = {'py': 'python', 'sh': 'bash', 'rb': 'ruby'} --- globals are usually a sign that your program is incorrect. try to communicate using args or better yes, create a class and use the methods in that class. And thisFormat is not used python. Just use smallcase variable name. --- def openfile(_file): --- In all places, _file is not required. The exposed variables prefixed by _ are understood to be private. In your case just use a better variable name fname. --- commandOPEN = EDITOR + " " + _file #make command line statement for opening a file --- It could be COMMANDOPEN. -- Senthil American by birth; Texan by the grace of God. From zubin.mithra at gmail.com Fri Feb 26 13:46:29 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Fri, 26 Feb 2010 18:16:29 +0530 Subject: [BangPypers] PyAutoRun In-Reply-To: <20100226112804.GA5042@ubuntu.ubuntu-domain> References: <8e7c74321002260217n7041cacj861340887fb4b72e@mail.gmail.com> <20100226112804.GA5042@ubuntu.ubuntu-domain> Message-ID: <8e7c74321002260446s32bb0d8bk3cb4f09762190d30@mail.gmail.com> Thank you for your review. However, i assume you did not go through the README or the TODO file. Nevertheless, necessary corrections have been made. Thank you. cheers!!! Zubin On Fri, Feb 26, 2010 at 4:58 PM, Senthil Kumaran wrote: > On Fri, Feb 26, 2010 at 03:47:15PM +0530, Zubin Mithra wrote: >> Hello, >> >> I have been using python for quite some time; however this is the >> first python project i have worked on. > > I see that the script is just a short cut utility, I personally feel opening > the file in the editor and then doing rest is easier for me than say I would > use this script. ?However if this was some kind of coding exercise, it is good > for you. > >> >> The code is hosted at http://github.com/zubin71/PyAutoRun >> >> The code needs re-factoring and feature additions; i have put up a >> TODO list there too. It`d be great if anyone could work on this; i > > Some review comments. > > in the core.py > > --- > import os, sys, random > --- > > This is usually discouraged. better would be ?write one import in one line. > Also writing one import stmt in a line has the practical advantage that if you > were to use code parsing tools like 2to3, it would work properly. > > --- > from os import system > --- > > See if you can use subprocess. > > --- > EDITOR = "vim" > --- > > What if I want to use gedit? Would you provide an option? > > --- > dictionaryCompiled = {'c': 'gcc', 'cpp': 'g++', 'java': 'javac'} > dictionaryInterpreted = {'py': 'python', 'sh': 'bash', 'rb': 'ruby'} > --- > > globals are usually a sign that your program is incorrect. try to communicate > using args or better yes, create a class and use the methods in that class. And > thisFormat is not used python. Just use smallcase variable name. > > --- > def openfile(_file): > --- > > In all places, _file is not required. The exposed variables prefixed by _ are > understood to be private. In your case just use a better variable name fname. > > --- > ? ?commandOPEN = EDITOR + " " + _file #make command line statement for opening a file > --- > It could be COMMANDOPEN. > > > > -- > Senthil > American by birth; Texan by the grace of God. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Fri Feb 26 14:18:29 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 26 Feb 2010 18:48:29 +0530 Subject: [BangPypers] PyAutoRun In-Reply-To: <8e7c74321002260446s32bb0d8bk3cb4f09762190d30@mail.gmail.com> References: <8e7c74321002260217n7041cacj861340887fb4b72e@mail.gmail.com> <20100226112804.GA5042@ubuntu.ubuntu-domain> <8e7c74321002260446s32bb0d8bk3cb4f09762190d30@mail.gmail.com> Message-ID: <7c42eba11002260518s4b11df28of7311d6c6a2da2c4@mail.gmail.com> On Fri, Feb 26, 2010 at 6:16 PM, Zubin Mithra wrote: > Thank you for your review. However, i assume you did not go through > the README or the TODO file. README - yes, I went through. TODO - no. They were just suggestions. not corrections. the script was pretty fine and should be working for you tough. Also you can pass it through pep8ify script and see what it suggests. -- Senthil From codeshepherd at gmail.com Fri Feb 26 16:24:36 2010 From: codeshepherd at gmail.com (Deepan Chakravarthy) Date: Fri, 26 Feb 2010 20:54:36 +0530 Subject: [BangPypers] change of facebook developers meetup date In-Reply-To: References: Message-ID: Please RSVP at http://www.facebook.com/event.php?invites&eid=279127284819 . Please invite others to the event on facebook and tweet about the event. On Fri, Feb 26, 2010 at 4:20 PM, Deepan Chakravarthy wrote: > Hello All, > > Since mozilla developer day is planned for 27th, we are moving the > bangalore facebook developer meetup to 1st sunday of march. > > Next Meeting > =========== > > Time & Date: 3pm, 7th March > Venue: ?Jaaga http://jaaga.wikidot.com/ > Google Maps link: > http://maps.google.com/maps/place?cid=6204047418301939679&q=jaaga > Live directions : ?contact ?Deepan at 9945702482 > Agenda: > Introduction to Bangalore Facebook Developers Group > Basics of creating a Facebook application > Networking > > > Regards > Deepan > > +91 9945702482 > http://www.hashcube.com > http://twitter.com/codeshepherd > From anand.shashwat at gmail.com Fri Feb 26 17:17:24 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Fri, 26 Feb 2010 21:47:24 +0530 Subject: [BangPypers] Fwd: PyCon 2011 - Call for Tutorial Volunteers In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Greg Lindstrom Date: Fri, Feb 26, 2010 at 7:53 PM Subject: PyCon 2011 - Call for Tutorial Volunteers To: python-list at python.org, python-announce-list at python.org PyCon 2010 is complete and plans for PyCon 2011 in Atlanta have already begun! The main conference will once again be proceeded by two days of tutorials. There was quite a bit of feedback from students and teachers this year that we want to incorporate in next years classes. In order to do this, more people need to get involved; why not you? You do not need to have any experience in organizing a national conference, just the desire to help out. There is plenty to do from tasks that take a couple of hours to others that span months and you will get help with everything. The areas we will be working on are: * Proposals - help with the call for tutorial proposals and selection of classes * Room Assignments - help get the selected tutorials assigned to classrooms and monitor attendance numbers * Notes - work with teachers to get class notes printed and distributed * Program Guide - work with conference organizers to get tutorial information in the conference guide * Feedback - Work to get meaningful feedback from students and teachers (so PyCon 2012 is even better!) * Payments - collect information so our teachers get paid * Runner - On tutorial days at the conference, make yourself available to do whatever needs to be done. It's a lot of work -- and a lot of fun-- to put on tutorials for PyCon each year. You won't get paid, but you will get one of the snappy "staff" tee shirts when you attend PyCon and you get to work with an incredibly dedicated group of volunteers. Interested? Please drop a note at pycon-tutorials at python.org and let us know. Thanks, Greg Lindstrom Tutorial Coordinator, PyCon 2011 (Atlanta) -- http://mail.python.org/mailman/listinfo/python-list