From vsapre80 at gmail.com Sat May 1 00:30:27 2010 From: vsapre80 at gmail.com (Vishal) Date: Sat, 1 May 2010 04:00:27 +0530 Subject: [BangPypers] @dabeaz visiting b'lore In-Reply-To: References: Message-ID: On Fri, Apr 30, 2010 at 12:01 PM, Arvind Jamuna Dixit wrote: > On Fri, Apr 30, 2010 at 11:34 AM, Noufal Ibrahim wrote: > > > No other suggestions? > > The GIL thing is probably going to be a conversation about methods of > > fixing it, improving it's performance. It'd probably require some in > > depth knowledge of the GIL implementation. > > > > I just looked up the TOC of his book ( The Python Essential Reference ). > There I > saw ABCs being listed under "Chapter 15. Data Structure, Algorithms and > Code > Simplification". > > Then there is "Generators and Coroutines". > > So, if others think GIL is a dry subject or something that requires > preparation > beforehand then we could ask him to talk about ABCs, Generators and > Coroutines and > then if time permits on the GIL. > > Is that OK? > -- > Arvind > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Hi, my 2 cents and things I would be interested in... I think it would also help to know in general about interpreters, and the python interpreter particularly. about having JITs for Python interpreter etc. And improving Python performance in general..using dataflow optimizations to the bytecode itself. Also about packaging in Python, what are his thoughts on the ideal solution. And about his experience on concurrency approaches in Python....coroutines vs threads vs processes etc Thanks and best regards, Vishal Sapre From jaganadhg at gmail.com Sat May 1 06:51:43 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Sat, 1 May 2010 10:21:43 +0530 Subject: [BangPypers] Equivalent to Nokogiri in Python Message-ID: Dear All Is there any equivalent to Nokogiri (Ruby) in Python ? With regards Jaggu -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From orsenthil at gmail.com Sat May 1 06:57:56 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sat, 1 May 2010 10:27:56 +0530 Subject: [BangPypers] Equivalent to Nokogiri in Python In-Reply-To: References: Message-ID: On Sat, May 1, 2010 at 10:21 AM, JAGANADH G wrote: > Dear All > Is there any equivalent to Nokogiri (Ruby) in Python ? It is difficult for us if you specify Jargons. I understand Nokogiri is XML parser with some good capabilities to deal with XPATH Similar programs in python include ElementTree, BeautifulSoup and with specific to RSS and Atom Feeds: feedparser. HTH, Senthil From brijithp at gmail.com Sat May 1 07:04:22 2010 From: brijithp at gmail.com (BR!j!TH) Date: Sat, 1 May 2010 10:34:22 +0530 Subject: [BangPypers] if we compare Rails and django Message-ID: Hi, Which is the best web framework Rails or Django. From admin.nitjece at gmail.com Sat May 1 07:47:24 2010 From: admin.nitjece at gmail.com (Diptanu Choudhury) Date: Sat, 1 May 2010 11:17:24 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: What's your purpose and the domain that you are going to work on? Django and Rails have their strengths and weaknesses. So, it all depends what your purpose is. On Sat, May 1, 2010 at 10:34 AM, BR!j!TH wrote: > Hi, > > Which is the best web framework Rails or Django. > _______________________________________________ > 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 kausikram at gmail.com Sat May 1 08:05:07 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Sat, 1 May 2010 11:35:07 +0530 Subject: [BangPypers] Equivalent to Nokogiri in Python In-Reply-To: References: Message-ID: > > [..] It is difficult for us if you specify Jargons. I understand Nokogiri > is XML parser with some good capabilities to deal with XPATH > Similar programs in python include ElementTree, BeautifulSoup [..] > also lxml -- 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 brijithp at gmail.com Sat May 1 08:14:13 2010 From: brijithp at gmail.com (BR!j!TH) Date: Sat, 1 May 2010 11:44:13 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: If I want to create a web app with lots of ajax,java scripts and also video streaming etc On 1 May 2010 11:17, Diptanu Choudhury wrote: > What's your purpose and the domain that you are going to work on? Django > and > Rails have their strengths and weaknesses. So, it all depends what your > purpose is. > > On Sat, May 1, 2010 at 10:34 AM, BR!j!TH wrote: > > > Hi, > > > > Which is the best web framework Rails or Django. > > _______________________________________________ > > 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 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gora at srijan.in Sat May 1 09:15:05 2010 From: gora at srijan.in (Gora Mohanty) Date: Sat, 1 May 2010 12:45:05 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: <20100501124505.59885643@ibis> On Sat, 1 May 2010 11:44:13 +0530 "BR!j!TH" wrote: > If I want to create a web app with lots of ajax,java scripts and > also video streaming etc [...] Both RoR and Django should be able to address this. You should be thinking more along the lines of: * Your developers, and their expertise: Are they already well-versed in one of the two frameworks, and/or one of the two languages behind each? * Are there any particular pre-made applications for either framework that you can leverage to your needs? * Are there any drawbacks for the framework in question that becomes a show-stopper for your use case? * Are there any advantages for the framework in question, e.g., does the Django admin. interface help? Google also turns up many links comparing Django, and RoR, e.g., http://docs.google.com/View?docid=dcn8282p_1hg4sr9 Personally speaking, I am more comfortable with Django, but that is probably also because I have only experimented with RoR. My one key point of differentiation is how easy it is to read, and understand code in Python, and Django. As compared to that, RoR, has too much magic behind the scenes, IMHO (Some parts of the Django admin. being the exception here). Regards, Gora From noufal at gmail.com Sat May 1 10:03:38 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 1 May 2010 13:33:38 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: On Sat, May 1, 2010 at 10:34 AM, BR!j!TH wrote: > Hi, > > Which is the best web framework Rails or Django.[..] Perl cgi. -- ~noufal http://nibrahim.net.in From gora at srijan.in Sat May 1 10:08:49 2010 From: gora at srijan.in (Gora Mohanty) Date: Sat, 1 May 2010 13:38:49 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: <20100501133849.251d1345@ibis> On Sat, 1 May 2010 13:33:38 +0530 Noufal Ibrahim wrote: > On Sat, May 1, 2010 at 10:34 AM, BR!j!TH > wrote: > > Hi, > > > > Which is the best web framework Rails or Django.[..] > > Perl cgi. +1 No, +infinity! Regards, Gora From jeffjosejeff at gmail.com Sat May 1 11:03:07 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sat, 1 May 2010 14:33:07 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: Forgive if I sound rude, but whenever I see replies like "lots of this and lots of that" I get a feeling that you dont really know what you're going to do. I admire the fact that you want to use the _best_ in the business but you should be mature enough to understand that however good something seems, it has its own weakness. The key is to use something which compliments what you're looking for. And "lots of ajax and javascript and also video streaming" is not what you're looking for.. Its like saying .. which is the best - Mac or PC . and oh I do a lot of clicking, opening applications and browsing internet. I'm guessing you already know Rails and Django are in 2 different languages - which means if we choose something for you you'll have to "learn" that language - unless you know both in which case you wouldn't have asked this question in the first place. *First rule of asking anything on internet - convey the idea that you've done your homework. Nobody likes to talk to a rubber duck who just asks random questions. If I find someone who's honestly tried before but is just asking an opinion I'll be glad to help* +1 for Perl CGI. After all Internet was built on Perl. /jeff On Sat, May 1, 2010 at 11:44 AM, BR!j!TH wrote: > If I want to create a web app with lots of ajax,java scripts and also video > streaming etc > > > On 1 May 2010 11:17, Diptanu Choudhury wrote: > > > What's your purpose and the domain that you are going to work on? Django > > and > > Rails have their strengths and weaknesses. So, it all depends what your > > purpose is. > > > > On Sat, May 1, 2010 at 10:34 AM, BR!j!TH wrote: > > > > > Hi, > > > > > > Which is the best web framework Rails or Django. > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 May 1 12:19:41 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 1 May 2010 15:49:41 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: On Sat, May 1, 2010 at 1:33 PM, Noufal Ibrahim wrote: > On Sat, May 1, 2010 at 10:34 AM, BR!j!TH wrote: >> Hi, >> >> Which is the best web framework Rails or Django.[..] > > Perl cgi. [..] Just in case my oft misplaced sarcasm doesn't come across properly via. email. My answer was was essentially Mu - http://en.wikipedia.org/wiki/Mu_(negative) i.e. "Unask the question" - Your question was too general and too misinformed to reply to. If there was an unconditionally superior product (in all senses), the other would, in a short while, wither and die. Since that hasn't happened and both of the frameworks you asked about are quite alive, it's fair to assume that both are good choices. You'd be best off trying them both out, doing some more research and asking more specific questions. However, if you want a *real* answer, like I said, it's perl cgi. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Sat May 1 17:32:57 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 1 May 2010 21:02:57 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: <201005012102.58040.lawgon@au-kbc.org> On Saturday 01 May 2010 1:33:38 pm Noufal Ibrahim wrote: > > Hi, > > > > Which is the best web framework Rails or Django.[..] > > Perl cgi. > python cgi is better - and zope rocks -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in From kausikram at gmail.com Sat May 1 20:04:40 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Sat, 1 May 2010 23:34:40 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: <201005012102.58040.lawgon@au-kbc.org> References: <201005012102.58040.lawgon@au-kbc.org> Message-ID: > > python cgi is better - and zope rocks > zope3 rocks. correction. -- 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 mbaiju at zeomega.com Sat May 1 20:25:54 2010 From: mbaiju at zeomega.com (Baiju M) Date: Sat, 1 May 2010 23:55:54 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: <201005012102.58040.lawgon@au-kbc.org> Message-ID: FYI, Zope 3 is renamed to BlueBream : http://bluebream.zope.org Regards, Baiju M On 5/1/10, kausikram krishnasayee wrote: >> >> python cgi is better - and zope rocks >> > > zope3 rocks. correction. > > -- > 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 > From lawgon at au-kbc.org Sat May 1 20:27:45 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 1 May 2010 23:57:45 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: <201005012102.58040.lawgon@au-kbc.org> Message-ID: <201005012357.45896.lawgon@au-kbc.org> On Saturday 01 May 2010 11:34:40 pm kausikram krishnasayee wrote: > > python cgi is better - and zope rocks > > zope3 rocks. correction. > but the best framework that is miles ahead of all competition is Frontpage with access backend controlled by dreamweaver. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in From orsenthil at gmail.com Sat May 1 20:35:14 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sun, 2 May 2010 00:05:14 +0530 Subject: [BangPypers] Bluebream Message-ID: <20100501183514.GA16017@remy> On Sat, May 01, 2010 at 11:55:54PM +0530, Baiju M wrote: > FYI, Zope 3 is renamed to BlueBream : http://bluebream.zope.org Hi Baiju, I thought Bluebream was a new web framework. I was looking around the site and at ohloh site and at ohloh when I looked the lines of code, it was in small, so I thought it was a new framework based on zope. Would you like to share more about bluebream? Is it just a namechange? -- Senthil From noufal at gmail.com Sat May 1 20:38:14 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 2 May 2010 00:08:14 +0530 Subject: [BangPypers] Bluebream In-Reply-To: <20100501183514.GA16017@remy> References: <20100501183514.GA16017@remy> Message-ID: On Sun, May 2, 2010 at 12:05 AM, Senthil Kumaran wrote: > On Sat, May 01, 2010 at 11:55:54PM +0530, Baiju M wrote: >> FYI, Zope 3 is renamed to BlueBream : http://bluebream.zope.org > > Hi Baiju, > > I thought Bluebream was a new web framework. I was looking around the > site and at ohloh site and at ohloh when I looked the lines of code, > it was in small, so I thought it was a new framework based on zope. > > Would you like to share more about bluebream? Is it just a namechange? Baiju mentioned this during on the user group meetings a month or two ago. Here's the reddit thread. http://www.reddit.com/r/Python/comments/arjgo/bluebream_is_the_new_name_for_zope_3/ As far as I can tell, it's just a namechange. -- ~noufal http://nibrahim.net.in From jeffjosejeff at gmail.com Sat May 1 22:03:30 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sun, 2 May 2010 01:33:30 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: <201005012357.45896.lawgon@au-kbc.org> References: <201005012102.58040.lawgon@au-kbc.org> <201005012357.45896.lawgon@au-kbc.org> Message-ID: ah, DreamWeaver. Good old days. On Sat, May 1, 2010 at 11:57 PM, Kenneth Gonsalves wrote: > On Saturday 01 May 2010 11:34:40 pm kausikram krishnasayee wrote: > > > python cgi is better - and zope rocks > > > > zope3 rocks. correction. > > > > but the best framework that is miles ahead of all competition is Frontpage > with access backend controlled by dreamweaver. > -- > 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 dhananjay.nene at gmail.com Sat May 1 22:29:13 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Sun, 2 May 2010 01:59:13 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: To the best of my knowledge ajax, java scripts require you to carefully select a good client side library. I would suggest jquery. I have no clue about video streaming. There is little in your question to help decide the choice of the framework. However the frameworks are the carts. The languages you prefer are the horses. So I would suggest focus on deciding which language you are more comfortable with (put the horse before the cart). And if language doesn't matter - CGI or PHP might serve just as well :) On Sat, May 1, 2010 at 11:44 AM, BR!j!TH wrote: > If I want to create a web app with lots of ajax,java scripts and also video > streaming etc > > > On 1 May 2010 11:17, Diptanu Choudhury wrote: > > > What's your purpose and the domain that you are going to work on? Django > > and > > Rails have their strengths and weaknesses. So, it all depends what your > > purpose is. > > > > On Sat, May 1, 2010 at 10:34 AM, BR!j!TH wrote: > > > > > Hi, > > > > > > Which is the best web framework Rails or Django. > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From jeffjosejeff at gmail.com Sat May 1 22:38:50 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sun, 2 May 2010 02:08:50 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: I second suggestion of jQuery. I've had fantastic results with jQuery so I can totally recommend that. Also I remember reading about django and jQuery integration a while back - althou' I never really tried that myself. If you happen to choose django (and jQuery without any second thoughts for client side work) I'm just saying (from what I've read online) they get along pretty well. Good luck. /jeff On Sun, May 2, 2010 at 1:59 AM, Dhananjay Nene wrote: > To the best of my knowledge ajax, java scripts require you to carefully > select a good client side library. I would suggest jquery. I have no clue > about video streaming. > > There is little in your question to help decide the choice of the > framework. > However the frameworks are the carts. The languages you prefer are the > horses. So I would suggest focus on deciding which language you are more > comfortable with (put the horse before the cart). And if language doesn't > matter - CGI or PHP might serve just as well :) > > On Sat, May 1, 2010 at 11:44 AM, BR!j!TH wrote: > > > If I want to create a web app with lots of ajax,java scripts and also > video > > streaming etc > > > > > > On 1 May 2010 11:17, Diptanu Choudhury wrote: > > > > > What's your purpose and the domain that you are going to work on? > Django > > > and > > > Rails have their strengths and weaknesses. So, it all depends what your > > > purpose is. > > > > > > On Sat, May 1, 2010 at 10:34 AM, BR!j!TH wrote: > > > > > > > Hi, > > > > > > > > Which is the best web framework Rails or Django. > > > > _______________________________________________ > > > > 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 > > > _______________________________________________ > > > 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 > > > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Sun May 2 00:53:37 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 2 May 2010 04:23:37 +0530 Subject: [BangPypers] if we compare Rails and django In-Reply-To: References: Message-ID: <201005020423.37278.lawgon@au-kbc.org> On Sunday 02 May 2010 2:08:50 am Jeffrey Jose wrote: > I second suggestion of jQuery. I've had fantastic results with jQuery so I > can totally recommend that. Also I remember reading about django and jQuery > integration a while back - althou' I never really tried that myself. django has a policy of being agnostic towards third party js toolkits. It gives the hooks, but the choice of toolkit is left to the user. However, for the admin, there seems to be a move to use jquery. But the admin is not part of the django core - it is a contributed app. Of course JQuery rocks - especially for people who do not know or want to know javascript. > > If you happen to choose django (and jQuery without any second thoughts for > client side work) I'm just saying (from what I've read online) they get > along pretty well. > all js toolkits get on equally well with django -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in From sriramnrn at gmail.com Sun May 2 06:48:11 2010 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Sun, 2 May 2010 10:18:11 +0530 Subject: [BangPypers] About Thoughtworks as a venue Message-ID: Folks: I've been meaning to send this mail for a while. A number of teams at Thoughtworks were recently caught off-guard when there was a last minute office wide maintenance (pest control) scheduled at both our offices. This caused a venue problem for a number of user groups. Otherwise, the Thoughtworks offices are usually available gor user group meetings on weekend (and some weekdays too). I've been relatively busy with lots of things happening within Thoughtworks, as well as with researching some new technologies that we're about to roll out. I don't check my personal mail very often. Diptanu on this mailing list too is a Thoughtworker, and in case I don't respond on time about venue availability, he will. In case you don't get a timely response from either of us, please simply call me on my cell. Noufal, Svaksha and some others on this list know how to reach me. -- Ram -- Sent from my mobile device Belenix: www.belenix.org From noufal at gmail.com Sun May 2 07:23:10 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 2 May 2010 10:53:10 +0530 Subject: [BangPypers] About Thoughtworks as a venue In-Reply-To: References: Message-ID: Thanks man. :-) On 5/2/10, Sriram Narayanan wrote: > Folks: > > I've been meaning to send this mail for a while. > > A number of teams at Thoughtworks were recently caught off-guard when > there was a last minute office wide maintenance (pest control) > scheduled at both our offices. This caused a venue problem for a > number of user groups. > > Otherwise, the Thoughtworks offices are usually available gor user > group meetings on weekend (and some weekdays too). > > I've been relatively busy with lots of things happening within > Thoughtworks, as well as with researching some new technologies that > we're about to roll out. > > I don't check my personal mail very often. > > Diptanu on this mailing list too is a Thoughtworker, and in case I > don't respond on time about venue availability, he will. > > In case you don't get a timely response from either of us, please > simply call me on my cell. Noufal, Svaksha and some others on this > list know how to reach me. > > -- Ram > > -- > Sent from my mobile device > > Belenix: www.belenix.org > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From mbaiju at zeomega.com Sun May 2 08:15:08 2010 From: mbaiju at zeomega.com (Baiju M) Date: Sun, 2 May 2010 11:45:08 +0530 Subject: [BangPypers] Bluebream In-Reply-To: References: <20100501183514.GA16017@remy> Message-ID: Hi Senthil, As Noufal said, BlueBream is just a name chage of "Zope 3". Along with this name change, we are trying to adopt many innovations happened in Python web community and Python in general. For example, the "bluebream" distribution package consists a PasteScript based project template. The PasteScript based project template is used in frameworks like Pylons as a getting started story. Another major thing adopted from wider Python commuity is WSGI. Even though we are adopting many things from other projects, we are still embracing our core technologies like: - ZODB (Object database http://zodb.org ) - ZCA (Zope Component Architecture http://muthukadan.net/docs/zca.html ) - Object publishing through through traversal (Alternate way for URL mapping) - ZCML (XML based configuration language) If anyone interested to contribute to this project, please get in touch with me. Regards, Baiju M P.S: Sorry for top post, my S40 mobile is too limited to do inline post :( On 5/2/10, Noufal Ibrahim wrote: > On Sun, May 2, 2010 at 12:05 AM, Senthil Kumaran > wrote: >> On Sat, May 01, 2010 at 11:55:54PM +0530, Baiju M wrote: >>> FYI, Zope 3 is renamed to BlueBream : http://bluebream.zope.org >> >> Hi Baiju, >> >> I thought Bluebream was a new web framework. I was looking around the >> site and at ohloh site and at ohloh when I looked the lines of code, >> it was in small, so I thought it was a new framework based on zope. >> >> Would you like to share more about bluebream? Is it just a namechange? > > Baiju mentioned this during on the user group meetings a month or two > ago. Here's the reddit thread. > > http://www.reddit.com/r/Python/comments/arjgo/bluebream_is_the_new_name_for_zope_3/ > > As far as I can tell, it's just a namechange. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Sun May 2 08:41:53 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sun, 2 May 2010 12:11:53 +0530 Subject: [BangPypers] Bluebream In-Reply-To: References: <20100501183514.GA16017@remy> Message-ID: On Sun, May 2, 2010 at 11:45 AM, Baiju M wrote: > Hi Senthil, > > As Noufal said, BlueBream is just a name chage of "Zope 3". Along with > this name change, we are trying to adopt many innovations happened in > Python web community and Python in general. For example, the And how do these go well with Python 3? Are they based still on Python 2.5(??), Baiju? I think, if major frameworks move to Python 3, it might be a win-win situation. Interesting news is, In two months from now, Python 2.7 will be final release and py3k branch would become trunk by default and all development of Python will be on Python 3 only. -- Senthil -- Senthil From jayakumargenius at gmail.com Sun May 2 11:23:53 2010 From: jayakumargenius at gmail.com (jaya kumar) Date: Sun, 2 May 2010 14:53:53 +0530 Subject: [BangPypers] hi can any one tell python job for freshers in bangalore ? Message-ID: greetings from kumar i finished my mca 2009 passed out am looking for python jobs for freshers in bangalore if any available means please let me know if i would get a job surely i will move or relocate to bangalore please help am still unemployed from 2009 even my classmates few only placed others still (including me not placed in any company ) due to recession in my class i decide to not to struck with microsoft windows so i choose my carrer path into open source now myself am learning python and php i dont know the growth in this field please i request you to suggest me to set good carrer path to me ? thanking u friends bye take care regards kumar thank u From venkat83 at gmail.com Sun May 2 18:31:03 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Sun, 2 May 2010 22:01:03 +0530 Subject: [BangPypers] [OT] Launch Mapatree Message-ID: Hi, It gives me immense pleasure in launching Mapatree. This is an intiative that I have been planning for quite sometime and finally got some time to implement and also launch it :) Please check and contribute : http://www.mapatree.org/ The site is still under development and the UI is something that needs to be slicked up. Do report if you find any bugs or would like some enhancements. It would be great if you can also test the site from you mobile phones and let me know your feedback. Regards, Venkat From abpillai at gmail.com Mon May 3 06:01:12 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 3 May 2010 09:31:12 +0530 Subject: [BangPypers] hi can any one tell python job for freshers in bangalore ? In-Reply-To: References: Message-ID: On Sun, May 2, 2010 at 2:53 PM, jaya kumar wrote: > greetings from kumar > > i finished my mca 2009 passed out > > am looking for python jobs for freshers in bangalore > > if any available means please let me know > > if i would get a job surely i will move or relocate to bangalore > > please help am still unemployed from 2009 even my classmates few only > placed others still (including me not placed in any company ) due to > recession > > > in my class i decide to not to struck with microsoft windows > > so i choose my carrer path into open source > > now myself am learning python and php > > i dont know the growth in this field > > please i request you to suggest me to set good carrer path to me ? > > thanking u friends > > bye take care > > regards kumar > > thank u > You have asked similar questions in this list earlier and others have responded. Not sure what is the point in repeating the same questions like a robot. Please don't start threads which ask a bunch of questions without any apparent aim. People tend to ignore such questions after a while. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From ramdaz at gmail.com Mon May 3 06:35:03 2010 From: ramdaz at gmail.com (Ramdas S) Date: Mon, 3 May 2010 10:05:03 +0530 Subject: [BangPypers] hi can any one tell python job for freshers in bangalore ? In-Reply-To: References: Message-ID: On Mon, May 3, 2010 at 9:31 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Sun, May 2, 2010 at 2:53 PM, jaya kumar >wrote: > > > greetings from kumar > > > > i finished my mca 2009 passed out > > > > am looking for python jobs for freshers in bangalore > > > > if any available means please let me know > > > > if i would get a job surely i will move or relocate to bangalore > > > > please help am still unemployed from 2009 even my classmates few only > > placed others still (including me not placed in any company ) due to > > recession > > > > > > in my class i decide to not to struck with microsoft windows > > > > so i choose my carrer path into open source > > > > now myself am learning python and php > > > > i dont know the growth in this field > > > > please i request you to suggest me to set good carrer path to me ? > > > > thanking u friends > > > > bye take care > > > > regards kumar > > > > thank u > > > > You have asked similar questions in this list earlier and others > have responded. Not sure what is the point in repeating the > same questions like a robot. Please don't start threads which > ask a bunch of questions without any apparent aim. People > tend to ignore such questions after a while. > http://wiki.python.org/moin/BangPypers/PythonCompaniesInIndia Find them and talk to them. If they can't help you, no one in the group can .... > > > _______________________________________________ > > 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 > -- Ramdas S +91 9342 583 065 From kausikram at gmail.com Mon May 3 11:56:38 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Mon, 3 May 2010 15:26:38 +0530 Subject: [BangPypers] [OT] Venue for PyCon India 2010 In-Reply-To: References: Message-ID: > > Ideally, we're looking to hold this years conference also in an academic > institution that's easily accessible someone inside Bangalore. > > I presume that there are many students studying in Bangalore on this > list. If you feel that your college can host an event like this > (3 or 4 halls of around 100-200 capacity each, a couple of smaller rooms > and perhaps an open area for lunch), please reply to this > thread. > Would really appreciate if the students in this list came forward. the organizers of inpycon would seriously appreciate some help in this front. Leads, and suggestions would be great. the volunteers from the inpycon team would be ready to do all the grunt work required if they were given a proper lead on whom to contact. Other suggestions are welcome too. > > Please join the inpycon list > http://mail.python.org/mailman/listinfo/inpycon if you want to be part of > (and who wouldn't want to? ;)) the next all India conference of all things > Pythonic! > -- 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 noufal at gmail.com Tue May 4 05:35:14 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 4 May 2010 09:05:14 +0530 Subject: [BangPypers] [OT] Venue for PyCon India 2010 In-Reply-To: References: Message-ID: On Mon, May 3, 2010 at 3:26 PM, kausikram krishnasayee wrote: [..] > Would really appreciate if the students in this list came forward. the > organizers of inpycon would seriously appreciate some help in this front. > ?Leads, and suggestions would be great. the volunteers from the inpycon team > would be ready to do all the grunt work required if they were given a proper > lead on whom to contact.[..] Come on guys. I'm sure there are lots of students on this list. This is a great chance to get connected to the Python/software communities in Bangalore which will help you technically as well as with your job prospects when you complete your studies. -- ~noufal http://nibrahim.net.in From hiddenharmony at gmail.com Tue May 4 05:44:44 2010 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Tue, 4 May 2010 09:14:44 +0530 Subject: [BangPypers] [OT] Venue for PyCon India 2010 In-Reply-To: References: Message-ID: On Mon, May 3, 2010 at 3:26 PM, kausikram krishnasayee wrote: >> >> ? Ideally, we're looking to hold this years conference also in an academic >> institution that's easily accessible someone inside Bangalore. >> >> ? I presume that there are many students studying in Bangalore on this >> list. If you feel that your college can host an event like this >> (3 or 4 halls of around 100-200 capacity each, a couple of smaller rooms >> and perhaps an open area for lunch), please reply to this >> thread. Based on my experience on organizing conferences in colloeges, you should never rely on students. Best way is to contact the HOD of some department or even better have some contact in top management. Then things move really fast. Else, if you go the students way, you will end up with loads of problems/ego hassles/issues with the faculty. Paying for a facility and using it, is a better option as it gives you lots of freedom. regards Vivek -- The hidden harmony is better than the obvious!! From noufal at gmail.com Tue May 4 05:48:39 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 4 May 2010 09:18:39 +0530 Subject: [BangPypers] [OT] Venue for PyCon India 2010 In-Reply-To: References: Message-ID: On Tue, May 4, 2010 at 9:14 AM, Vivek Khurana wrote: [..] > ?Based on my experience on organizing conferences in colloeges, you > should never rely on students. Best way is to contact the HOD of some > department or even better have some contact in top management. Then > things move really fast. Else, if you go the students way, you will > end up with loads of problems/ego hassles/issues with the faculty. > ?Paying for a facility and using it, is a better option as it gives > you lots of freedom. [..] We need names and locations of colleges. That's what this thread is soliciting. The work once we get those is a separate issue. Once we have those, we can make phone calls or contact top management. -- ~noufal http://nibrahim.net.in From vikas.bn at gmail.com Tue May 4 06:23:48 2010 From: vikas.bn at gmail.com (Vikas BN) Date: Tue, 4 May 2010 09:53:48 +0530 Subject: [BangPypers] [OT] Venue for PyCon India 2010 In-Reply-To: References: Message-ID: On Tue, May 4, 2010 at 9:18 AM, Noufal Ibrahim wrote: > On Tue, May 4, 2010 at 9:14 AM, Vivek Khurana > wrote: > [..] > > Based on my experience on organizing conferences in colloeges, you > > should never rely on students. Best way is to contact the HOD of some > > department or even better have some contact in top management. Then > > things move really fast. Else, if you go the students way, you will > > end up with loads of problems/ego hassles/issues with the faculty. > > Paying for a facility and using it, is a better option as it gives > > you lots of freedom. > [..] > > We need names and locations of colleges. That's what this thread is > soliciting. The work once we get those is a separate issue. > > Once we have those, we can make phone calls or contact top management. > Just to let you know guys, I'll be contacting the following colleges: MSRIT (New BEL Road, behind IISc) BIT (KR Road, near city market) BMSCE (Bull temple road, basavanagudi) BMS has an audi with a capacity of around 250, and apparently MSR's audi is bigger. I know professors in all three colleges so please let me know which location works for most people so that I can prioritize talking with them. Getting an audi and 3-4 classrooms shouldn't be difficult and we may get it for free if we include the college name like so: InPyCon in association with BMSCE. But anyway, these are details that can be worked out later. -Vikas From noufal at gmail.com Tue May 4 06:27:37 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 4 May 2010 09:57:37 +0530 Subject: [BangPypers] [OT] Venue for PyCon India 2010 In-Reply-To: References: Message-ID: On Tue, May 4, 2010 at 9:53 AM, Vikas BN wrote: > On Tue, May 4, 2010 at 9:18 AM, Noufal Ibrahim wrote: > >> On Tue, May 4, 2010 at 9:14 AM, Vivek Khurana >> wrote: >> [..] >> > ?Based on my experience on organizing conferences in colloeges, you >> > should never rely on students. Best way is to contact the HOD of some >> > department or even better have some contact in top management. Then >> > things move really fast. Else, if you go the students way, you will >> > end up with loads of problems/ego hassles/issues with the faculty. >> > ?Paying for a facility and using it, is a better option as it gives >> > you lots of freedom. >> [..] >> >> We need names and locations of colleges. That's what this thread is >> soliciting. The work once we get those is a separate issue. >> >> Once we have those, we can make phone calls or contact top management. >> > > ? ? ? ? ?Just to let you know guys, I'll be contacting the following > colleges: > ? ? ? ? ?MSRIT (New BEL Road, behind IISc) > ? ? ? ? ?BIT (KR Road, near city market) > ? ? ? ? ?BMSCE (Bull temple road, basavanagudi) > > ? ? ? ? BMS has an audi with a capacity of around 250, and apparently MSR's > audi > ? ? ? ? is bigger. I know professors in all three colleges so please let me > know > ? ? ? ? which location works for most people so that I can prioritize > talking with them. > > ? ? ? ? Getting an audi and 3-4 classrooms shouldn't be difficult and we > may get it for > ? ? ? ? free if we include the college name like so: InPyCon in association > with BMSCE. > ? ? ? ? But anyway, these are details that can be worked out later. >[..] Thanks Vikas. All three sound okay (location wise). When you get some information, please send a mail to the inpycon list. This thread is really OT here. :) -- ~noufal http://nibrahim.net.in From aditya.gnu at gmail.com Tue May 4 15:37:41 2010 From: aditya.gnu at gmail.com (Aditya C.S) Date: Tue, 4 May 2010 19:07:41 +0530 Subject: [BangPypers] pycon Message-ID: As msrit is inside city,it will be very good venue.I have already told a guy in msrit to talk in his collge.Hope he does it From kkvaibhav at gmail.com Tue May 4 15:39:44 2010 From: kkvaibhav at gmail.com (VAIBHAV KATIYAR) Date: Tue, 4 May 2010 19:09:44 +0530 Subject: [BangPypers] Please help me get the CD ROM of "PYTHON PROGRAMMING FOR ABSOLUTE BEGINNERS " Message-ID: Dear All, I an a non programmer and just started to learn PYTHON language. I downloaded a textbook called "PYTHON PROGRAMMING FOR ABSOLUTE BEGINNERS " By MICHAEL DAWSON from the internet. But that does not contain the CD content which comes with the hard copy. I checked at the book stalls in Bangalore and came to know that an Indian edition of this book is not yet released. Can anybody please help me to get the content of the CD ROM that accompanies this book. I will be very grateful to you. Thank you Kind regards Vaibhav KK From dhananjay.nene at gmail.com Tue May 4 19:11:07 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Tue, 4 May 2010 22:41:07 +0530 Subject: [BangPypers] Please help me get the CD ROM of "PYTHON PROGRAMMING FOR ABSOLUTE BEGINNERS " In-Reply-To: References: Message-ID: On Tue, May 4, 2010 at 7:09 PM, VAIBHAV KATIYAR wrote: > Dear All, > I an a non programmer and just started to learn PYTHON > language. > I downloaded a textbook called "PYTHON PROGRAMMING FOR ABSOLUTE BEGINNERS " > By MICHAEL DAWSON from the internet. > But that does not contain the CD content which comes with the hard copy. > I checked at the book stalls in Bangalore and came to know that an Indian > edition of this book is not yet released. > > Can anybody please help me to get the content of the CD ROM that > accompanies > this book. > I will be very grateful to you. > I am not sure what the CD contains, but usually they often contain sources to the code samples in the book and a whole bunch of other open source or other freeware / trialware which you can often download directly from the publisher. You may want to check http://my.safaribooksonline.com/1592000738 for the sources to the code samples. That should hopefully get you started. Dhananjay > > Thank you > > Kind regards > Vaibhav KK > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From noufal at gmail.com Tue May 4 19:15:39 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 4 May 2010 22:45:39 +0530 Subject: [BangPypers] Please help me get the CD ROM of "PYTHON PROGRAMMING FOR ABSOLUTE BEGINNERS " In-Reply-To: References: Message-ID: On Tue, May 4, 2010 at 7:09 PM, VAIBHAV KATIYAR wrote: > Dear All, > ? ? ? ? ? ? ?I an a non programmer and just started to learn PYTHON > language. > I downloaded a textbook called "PYTHON PROGRAMMING FOR ABSOLUTE BEGINNERS " > By MICHAEL DAWSON from the internet. > But that does not contain the CD content which comes with the hard copy. > I checked at the book stalls in Bangalore and came to know that an Indian > edition of this book is not yet released. If this is a 'pirated' copy, I don't think your email will be well received. Why not try some of the other free excellent books on Python available online? http://diveintopython.org/ - Dive into Python http://www.swaroopch.com/notes/Python - A byte of Python http://docs.python.org/tutorial/index.html - Official tutorial With these books, the source code of the programs will be available too. -- ~noufal http://nibrahim.net.in From dhananjay.nene at gmail.com Tue May 4 19:21:36 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Tue, 4 May 2010 22:51:36 +0530 Subject: [BangPypers] Please help me get the CD ROM of "PYTHON PROGRAMMING FOR ABSOLUTE BEGINNERS " In-Reply-To: References: Message-ID: On Tue, May 4, 2010 at 10:45 PM, Noufal Ibrahim wrote: > On Tue, May 4, 2010 at 7:09 PM, VAIBHAV KATIYAR > wrote: > > Dear All, > > I an a non programmer and just started to learn PYTHON > > language. > > I downloaded a textbook called "PYTHON PROGRAMMING FOR ABSOLUTE BEGINNERS > " > > By MICHAEL DAWSON from the internet. > > But that does not contain the CD content which comes with the hard copy. > > I checked at the book stalls in Bangalore and came to know that an Indian > > edition of this book is not yet released. > > If this is a 'pirated' copy, I don't think your email will be well > received. Why not try some of the other free excellent books on Python > available online? > > http://diveintopython.org/ - Dive into Python > http://www.swaroopch.com/notes/Python - A byte of Python > http://docs.python.org/tutorial/index.html - Official tutorial > > Another nice book I can recommend is Hello World, http://www.manning.com/sande/ I purchased it for my daughter and she found it quite useful. While it is for absolute beginners it is also primarily targeted to a much younger audience. Dhananjay > With these books, the source code of the programs will be available too. > > > > > -- > ~noufal > http://nibrahim.net.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 From admin.nitjece at gmail.com Tue May 4 20:09:08 2010 From: admin.nitjece at gmail.com (Diptanu Choudhury) Date: Tue, 4 May 2010 23:39:08 +0530 Subject: [BangPypers] About Thoughtworks as a venue In-Reply-To: References: Message-ID: I will be glad to help:-) On Sun, May 2, 2010 at 10:53 AM, Noufal Ibrahim wrote: > Thanks man. :-) > > On 5/2/10, Sriram Narayanan wrote: > > Folks: > > > > I've been meaning to send this mail for a while. > > > > A number of teams at Thoughtworks were recently caught off-guard when > > there was a last minute office wide maintenance (pest control) > > scheduled at both our offices. This caused a venue problem for a > > number of user groups. > > > > Otherwise, the Thoughtworks offices are usually available gor user > > group meetings on weekend (and some weekdays too). > > > > I've been relatively busy with lots of things happening within > > Thoughtworks, as well as with researching some new technologies that > > we're about to roll out. > > > > I don't check my personal mail very often. > > > > Diptanu on this mailing list too is a Thoughtworker, and in case I > > don't respond on time about venue availability, he will. > > > > In case you don't get a timely response from either of us, please > > simply call me on my cell. Noufal, Svaksha and some others on this > > list know how to reach me. > > > > -- Ram > > > > -- > > Sent from my mobile device > > > > Belenix: www.belenix.org > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > 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 nishant at careerride.com Wed May 5 05:49:29 2010 From: nishant at careerride.com (nishant) Date: Wed, 5 May 2010 09:19:29 +0530 Subject: [BangPypers] Opportunity in Python! In-Reply-To: <98b2b2cd647330c61a0af464820d4911@profile.rediff.com> Message-ID: <000001caec05$f94523d0$0201a8c0@nishant> Hello, We at www.careerride.com help to crack job interviews. We are looking for someone who can share with us 30 most eligible interview questions on Python with answers. The answers will be posted under the writer's name and will be paid instantly. Interested? Mail us at jobs at careerride.com Thanks, Nishant Kumar www.CareerRide.com From ideamonk at gmail.com Wed May 5 14:28:29 2010 From: ideamonk at gmail.com (Abhishek Mishra) Date: Wed, 5 May 2010 17:58:29 +0530 Subject: [BangPypers] Cheap hosting In-Reply-To: References: <20100423051238.GA2239@remy> Message-ID: I've been using PC smart hosting since december 2009, You get *VZ-128* 128MB Guaranteed RAM 256MB Burstable RAM 10GB Disk Space 150GB Bandwidth *Price:* ?4.50/Month Where they double the ram as we paid annually. http://www.pcsmarthosting.com/linux-unmanaged.php So far the only issue if that I haven't seen an uptime more than 23 days. On the cheaper end while exploring I had found that many of cheap vps hosting providers were indirect resellers of burstnet which has mixed reviews from their users. regards, Abhishek From venkat83 at gmail.com Wed May 5 16:48:16 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 5 May 2010 20:18:16 +0530 Subject: [BangPypers] Cheap hosting In-Reply-To: References: <20100423051238.GA2239@remy> Message-ID: Just to answer my Q : If you are developing a new app from scratch (and in python/django), without much dependancy on libraries, then i would recommend Google App Engine. I am using them for http://www.mapatree.org/and its a wonderful experience so far. I just spent 400INR on getting the domain; thats it. The hierarchy of hosting goes like : VPS > Paas(like GAE) > Amazon EC2. -V- http://twitter.com/venkasub From ideamonk at gmail.com Wed May 5 16:57:46 2010 From: ideamonk at gmail.com (Abhishek Mishra) Date: Wed, 5 May 2010 20:27:46 +0530 Subject: [BangPypers] Cheap hosting In-Reply-To: References: <20100423051238.GA2239@remy> Message-ID: Oh I too do that :D How did it slip my mind http://lenny.in has been doing fine for a month for me without much stress on limited resources it gives for free. I hope google becomes more liberal about domain attachments soon and we would be able to attach a .in to our apps :) On Wed, May 5, 2010 at 8:18 PM, Venkatraman S wrote: > Just to answer my Q : If you are developing a new app from scratch (and in > python/django), without much dependancy on libraries, then i would > recommend Google App Engine. I am using them for > http://www.mapatree.org/and its a wonderful experience so far. > I just spent 400INR on getting the domain; thats it. > > The hierarchy of hosting goes like : VPS > Paas(like GAE) > Amazon EC2. > > -V- > http://twitter.com/venkasub > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From keith.chap at hotmail.com Fri May 7 13:02:57 2010 From: keith.chap at hotmail.com (Keith Chapman) Date: Fri, 7 May 2010 17:02:57 +0600 Subject: [BangPypers] XML manipulation using ElementTree Message-ID: Hi, I have two javascript functions. It has been written to retrieve information from the incoming XML message and return a new XML. My javascript functions are working perfectly fine. What I need to do is to write the same logic in python. Therefore I have used ElementTree to do my work. But it's giving errors. I am very new to Python programming language and I'm finding it difficult to understand some stuff related to Python. If someone can point me what's I'm doing wrong, I would be greateful? // javascript functions function transformRequest(mc) { var symbol = mc.getPayloadXML()..*::Code.toString(); mc.setPayloadXML( {symbol} ); } function transformResponse(mc) { var symbol = mc.getPayloadXML()..*::symbol.toString(); var price = mc.getPayloadXML()..*::last.toString(); mc.setPayloadXML( {symbol} {price} ); } # Python functions from elementtree.ElementTree as ET import Element, SubElement, QName def transformRequest(mc): tree = ET.parse(mc) symbol = tree.findtext("CheckPriceRequest/Code") tree.findtext("head/title") request = Element(mc) request.set( " " + symbol + " " ) return request def transformResponse(mc): tree = ET.parse(mc) symbol = tree.findtext("CheckPriceResponse/symbol") price = tree.findtext("CheckPriceResponse/last") tree.findtext("head/title") response = Element(mc) response.set( " " + symbol + " " + price + " " ) return response Thanks _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969 From vikas.bn at gmail.com Fri May 7 14:03:22 2010 From: vikas.bn at gmail.com (Vikas BN) Date: Fri, 7 May 2010 17:33:22 +0530 Subject: [BangPypers] XML manipulation using ElementTree In-Reply-To: References: Message-ID: Can you paste the traceback of the error you are getting? On Fri, May 7, 2010 at 4:32 PM, Keith Chapman wrote: > request.set( > " > > " + symbol + " > > " > ) > return request > Aside, you might want to use """ (triple quotes) for multi-line strings, like so: """""" (so that the double quotes within the string is kept intact.) -Vikas From jayakumargenius at gmail.com Fri May 7 19:38:30 2010 From: jayakumargenius at gmail.com (jaya kumar) Date: Fri, 7 May 2010 10:38:30 -0700 Subject: [BangPypers] i need to learn lamp stack ? Message-ID: hi to all i need to learn the lamp stack ? can any one tell what is lamp stack ? what it will be useful for ? how many days it will take to learn and is there any job opportunites for this programme ? where is the code available for web applications using lamp stack ? is there any one conducting seminar about lamp stack ? i hope i will get reply thank u From guruprevails at gmail.com Fri May 7 19:41:11 2010 From: guruprevails at gmail.com (Dattatreya Sharma) Date: Fri, 7 May 2010 23:11:11 +0530 Subject: [BangPypers] Looking for guest faculties in Python to take work shop for 16 hours over weekends In-Reply-To: References: Message-ID: > Dear Python Programmers, > > GuRu Prevails is India's only organizations that is into *private *training > in Machine Learning. > > We are looking for guest faculties who would be interested in taking a work > shop on Python for 16 hours starting this Sunday 9th May 2010 over > week-ends. > Interested candidates are requested to touch base with us immediately. > > To reach us please call 9972952810 and ask for Dattatreya > > -- > -- Thanks, Dattatreya P Sharma Zombie ( Founder - GuRu Prevails.com) +91 9972952810 From kunal.t2 at gmail.com Fri May 7 19:53:54 2010 From: kunal.t2 at gmail.com (kunal ghosh) Date: Fri, 7 May 2010 23:23:54 +0530 Subject: [BangPypers] Looking for guest faculties in Python to take work shop for 16 hours over weekends In-Reply-To: References: Message-ID: Hi Dattatreya, You had come over to Sir MVIT to create awareness about your Machine Learning course. Can you please email the dates and timings, along with the venue for the entrace test. regards. On Fri, May 7, 2010 at 11:11 PM, Dattatreya Sharma wrote: > > Dear Python Programmers, > > > > GuRu Prevails is India's only organizations that is into *private > *training > > in Machine Learning. > > > > We are looking for guest faculties who would be interested in taking a > work > > shop on Python for 16 hours starting this Sunday 9th May 2010 over > > week-ends. > > Interested candidates are requested to touch base with us immediately. > > > > To reach us please call 9972952810 and ask for Dattatreya > > > > -- > > > > > > -- > Thanks, > Dattatreya P Sharma > Zombie ( Founder - GuRu Prevails.com) > +91 9972952810 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- regards ------- Kunal Ghosh Dept of Computer Sc. & Engineering. Sir MVIT Bangalore,India Quote: "Ignorance is not a sin, the persistence of ignorance is" -- "If you find a task difficult today, you'll find it difficult 10yrs later too !" ----- "Failing to Plan is Planning to Fail" Blog:kunalghosh.wordpress.com Website:www.kunalghosh.net46.net V-card:http://tinyurl.com/86qjyk From gora at srijan.in Fri May 7 19:54:01 2010 From: gora at srijan.in (Gora Mohanty) Date: Fri, 7 May 2010 23:24:01 +0530 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: References: Message-ID: <20100507232401.3e6e5bb0@ibis> On Fri, 7 May 2010 10:38:30 -0700 jaya kumar wrote: > hi to all > > i need to learn the lamp stack ? > > can any one tell what is lamp stack ? what it will be useful for ? [...] Yes. One rubs the lamp and a genie appears, which then magically goes about fulfilling all one's frustrated ambitions. Which is sort of what your random questions to an unrelated list are attempting to do. An oldie, but a goodie: http://catb.org/~esr/faqs/smart-questions.html Alternatively: http://lmgtfy.com/?q=LAMP+stack Regards, Gora From guruprevails at gmail.com Fri May 7 19:59:57 2010 From: guruprevails at gmail.com (Dattatreya Sharma) Date: Fri, 7 May 2010 23:29:57 +0530 Subject: [BangPypers] Looking for guest faculties in Python to take work shop for 16 hours over weekends In-Reply-To: References: Message-ID: Dear Kunal, Prof Dilip Sen is not well, he has asked us to get the date from Suma Swamy, we understand she is on leave and will be back only on Tuesday. Prof Dilip Sen has told us that Suma will help us get a date in his absence, hopefully we will get the date on Tuesday, mean while if you have her number let us know so that we can complete the test process asap. -Thanks Dattatreya On Fri, May 7, 2010 at 11:23 PM, kunal ghosh wrote: > Hi Dattatreya, > > You had come over to Sir MVIT to create awareness about your Machine > Learning course. Can you please email the > dates and timings, along with the venue for the entrace test. > > regards. > > On Fri, May 7, 2010 at 11:11 PM, Dattatreya Sharma > wrote: > > > > Dear Python Programmers, > > > > > > GuRu Prevails is India's only organizations that is into *private > > *training > > > in Machine Learning. > > > > > > We are looking for guest faculties who would be interested in taking a > > work > > > shop on Python for 16 hours starting this Sunday 9th May 2010 over > > > week-ends. > > > Interested candidates are requested to touch base with us immediately. > > > > > > To reach us please call 9972952810 and ask for Dattatreya > > > > > > -- > > > > > > > > > > > -- > > Thanks, > > Dattatreya P Sharma > > Zombie ( Founder - GuRu Prevails.com) > > +91 9972952810 > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > regards > ------- > Kunal Ghosh > Dept of Computer Sc. & Engineering. > Sir MVIT > Bangalore,India > > Quote: > "Ignorance is not a sin, the persistence of ignorance is" > -- > "If you find a task difficult today, you'll find it difficult 10yrs later > too !" > ----- > "Failing to Plan is Planning to Fail" > > Blog:kunalghosh.wordpress.com > Website:www.kunalghosh.net46.net > V-card:http://tinyurl.com/86qjyk > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks, Dattatreya P Sharma Zombie ( Founder - GuRu Prevails.com) +91 9972952810 From stallomir at gmail.com Fri May 7 20:53:52 2010 From: stallomir at gmail.com (Mandar Gokhale) Date: Fri, 7 May 2010 14:53:52 -0400 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: <20100507232401.3e6e5bb0@ibis> References: <20100507232401.3e6e5bb0@ibis> Message-ID: I'm pretty much a rookie developer, but even* I* can't believe this chap is for real :D On Fri, May 7, 2010 at 1:54 PM, Gora Mohanty wrote: > On Fri, 7 May 2010 10:38:30 -0700 > jaya kumar wrote: > > > hi to all > > > > i need to learn the lamp stack ? > > > > can any one tell what is lamp stack ? what it will be useful for ? > [...] > > Yes. One rubs the lamp and a genie appears, which then magically > goes about fulfilling all one's frustrated ambitions. > > Which is sort of what your random questions to an unrelated list > are attempting to do. > > An oldie, but a goodie: > http://catb.org/~esr/faqs/smart-questions.html > > Alternatively: http://lmgtfy.com/?q=LAMP+stack > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From venkat83 at gmail.com Sat May 8 17:00:44 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Sat, 8 May 2010 20:30:44 +0530 Subject: [BangPypers] Looking for guest faculties in Python to take work shop for 16 hours over weekends In-Reply-To: References: Message-ID: Dont you think this can be done in private emails? Probably, a training on sending emails in DLs can be offered initially. On Fri, May 7, 2010 at 11:29 PM, Dattatreya Sharma wrote: > Dear Kunal, > > Prof Dilip Sen is not well, he has asked us to get the date from Suma > Swamy, > we understand she is on leave and will be back only on Tuesday. > > Prof Dilip Sen has told us that Suma will help us get a date in his > absence, > hopefully we will get the date on Tuesday, mean while > if you have her number let us know so that we can complete the test process > asap. > > -Thanks > Dattatreya > > On Fri, May 7, 2010 at 11:23 PM, kunal ghosh wrote: > > > Hi Dattatreya, > > > > You had come over to Sir MVIT to create awareness about your Machine > > Learning course. Can you please email the > > dates and timings, along with the venue for the entrace test. > > > > regards. > > > > On Fri, May 7, 2010 at 11:11 PM, Dattatreya Sharma > > wrote: > > > > > > Dear Python Programmers, > > > > > > > > GuRu Prevails is India's only organizations that is into *private > > > *training > > > > in Machine Learning. > > > > > > > > We are looking for guest faculties who would be interested in taking > a > > > work > > > > shop on Python for 16 hours starting this Sunday 9th May 2010 over > > > > week-ends. > > > > Interested candidates are requested to touch base with us > immediately. > > > > > > > > To reach us please call 9972952810 and ask for Dattatreya > > > > > > > > -- > > > > > > > > > > > > > > > > -- > > > Thanks, > > > Dattatreya P Sharma > > > Zombie ( Founder - GuRu Prevails.com) > > > +91 9972952810 > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > regards > > ------- > > Kunal Ghosh > > Dept of Computer Sc. & Engineering. > > Sir MVIT > > Bangalore,India > > > > Quote: > > "Ignorance is not a sin, the persistence of ignorance is" > > -- > > "If you find a task difficult today, you'll find it difficult 10yrs later > > too !" > > ----- > > "Failing to Plan is Planning to Fail" > > > > Blog:kunalghosh.wordpress.com > > Website:www.kunalghosh.net46.net > > V-card:http://tinyurl.com/86qjyk > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Thanks, > Dattatreya P Sharma > Zombie ( Founder - GuRu Prevails.com) > +91 9972952810 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From jayakumargenius at gmail.com Sat May 8 17:25:08 2010 From: jayakumargenius at gmail.com (jaya kumar) Date: Sat, 8 May 2010 08:25:08 -0700 Subject: [BangPypers] i installed jaunty jackapole ubuntu 9.04 version Message-ID: hi to all i installed ubuntu 9.04 jaunty jackapole version .... how i know LAMP stack installed in my o/s or not ? it is inbuilt featured with ubuntu o/s or we need to be installed ? what is the procedure for installing lamp stack in my ubuntu 9.04 version ? i need mysql and php to practice for web development ? is there any separate command for each ex:- mysql and apache and php ? or else it will combinely in one pack (i,e) lamp stack ? do i need net connection to download these packages to my o/s or else just i add on these package ? later after installing please can any one tell how to start the php and mysql and apache in my system before i going to work out ? please tell me sorry for asking so many questions From kausikram at gmail.com Sat May 8 17:33:49 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Sat, 8 May 2010 21:03:49 +0530 Subject: [BangPypers] i installed jaunty jackapole ubuntu 9.04 version In-Reply-To: References: Message-ID: Admin please ban this user. this is the 5th time an OT has been posted. Jaykumar, please post to relevant groups, questions that are smart and to the point. And please do your googling before you fire away questions this is utterly ridiculous. we are inclusive and are ready to help in what ever way possible but please dont take our niceness for granted. -- 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 fslash8 at gmail.com Sat May 8 17:38:10 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Sat, 8 May 2010 21:08:10 +0530 Subject: [BangPypers] i installed jaunty jackapole ubuntu 9.04 version In-Reply-To: References: Message-ID: >From your set of questions its evident that you have not done your part of reading about the lamp stack, IMHO RFTM. On May 8, 2010 8:55 PM, "jaya kumar" wrote: hi to all i installed ubuntu 9.04 jaunty jackapole version .... how i know LAMP stack installed in my o/s or not ? it is inbuilt featured with ubuntu o/s or we need to be installed ? what is the procedure for installing lamp stack in my ubuntu 9.04 version ? i need mysql and php to practice for web development ? is there any separate command for each ex:- mysql and apache and php ? or else it will combinely in one pack (i,e) lamp stack ? do i need net connection to download these packages to my o/s or else just i add on these package ? later after installing please can any one tell how to start the php and mysql and apache in my system before i going to work out ? please tell me sorry for asking so many questions _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From kunal.t2 at gmail.com Sat May 8 19:31:18 2010 From: kunal.t2 at gmail.com (kunal ghosh) Date: Sat, 8 May 2010 23:01:18 +0530 Subject: [BangPypers] Looking for guest faculties in Python to take work shop for 16 hours over weekends In-Reply-To: References: Message-ID: hi Venkatraman, my apologies, will keep it in mind hence forth. regards, On Sat, May 8, 2010 at 8:30 PM, Venkatraman S wrote: > Dont you think this can be done in private emails? > Probably, a training on sending emails in DLs can be offered initially. > > > On Fri, May 7, 2010 at 11:29 PM, Dattatreya Sharma > wrote: > > > Dear Kunal, > > > > Prof Dilip Sen is not well, he has asked us to get the date from Suma > > Swamy, > > we understand she is on leave and will be back only on Tuesday. > > > > Prof Dilip Sen has told us that Suma will help us get a date in his > > absence, > > hopefully we will get the date on Tuesday, mean while > > if you have her number let us know so that we can complete the test > process > > asap. > > > > -Thanks > > Dattatreya > > > > On Fri, May 7, 2010 at 11:23 PM, kunal ghosh wrote: > > > > > Hi Dattatreya, > > > > > > You had come over to Sir MVIT to create awareness about your Machine > > > Learning course. Can you please email the > > > dates and timings, along with the venue for the entrace test. > > > > > > regards. > > > > > > On Fri, May 7, 2010 at 11:11 PM, Dattatreya Sharma > > > wrote: > > > > > > > > Dear Python Programmers, > > > > > > > > > > GuRu Prevails is India's only organizations that is into *private > > > > *training > > > > > in Machine Learning. > > > > > > > > > > We are looking for guest faculties who would be interested in > taking > > a > > > > work > > > > > shop on Python for 16 hours starting this Sunday 9th May 2010 over > > > > > week-ends. > > > > > Interested candidates are requested to touch base with us > > immediately. > > > > > > > > > > To reach us please call 9972952810 and ask for Dattatreya > > > > > > > > > > -- > > > > > > > > > > > > > > > > > > > > > -- > > > > Thanks, > > > > Dattatreya P Sharma > > > > Zombie ( Founder - GuRu Prevails.com) > > > > +91 9972952810 > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > -- > > > regards > > > ------- > > > Kunal Ghosh > > > Dept of Computer Sc. & Engineering. > > > Sir MVIT > > > Bangalore,India > > > > > > Quote: > > > "Ignorance is not a sin, the persistence of ignorance is" > > > -- > > > "If you find a task difficult today, you'll find it difficult 10yrs > later > > > too !" > > > ----- > > > "Failing to Plan is Planning to Fail" > > > > > > Blog:kunalghosh.wordpress.com > > > Website:www.kunalghosh.net46.net > > > V-card:http://tinyurl.com/86qjyk > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > Thanks, > > Dattatreya P Sharma > > Zombie ( Founder - GuRu Prevails.com) > > +91 9972952810 > > _______________________________________________ > > 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 May 8 20:18:22 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 8 May 2010 23:48:22 +0530 Subject: [BangPypers] i installed jaunty jackapole ubuntu 9.04 version In-Reply-To: References: Message-ID: On 5/8/10, jaya kumar wrote: .. > please tell me > > sorry for asking so many questions Google for "asking smart questions" and read it. You really need to try before firing off like this. -- ~noufal http://nibrahim.net.in From dhavalsharma at gmail.com Sun May 9 08:35:30 2010 From: dhavalsharma at gmail.com (Dhaval Sharma) Date: Sun, 9 May 2010 12:05:30 +0530 Subject: [BangPypers] Django Jammers Message-ID: Hello Group, Let me know if this is the right forum to initiate coding initiative. I propose a monthly meet to jam and meet at a common place and produce some cool django stuff. It could be in day or night. A time constrained onus for us to produce the assigned module and integrate to produce an awesome site. All in a day. I propose the following steps 1. We produce the idea. Or there could be sponsors of idea. 2. We vote for the idea to code. 3. We design and create modules. Assign them. 4. We code. 5. We stuff the place with food and drinks if people want to eat and drink" while they jam. Please let me know when can we do it. -- With Warm Regards, @dhavalsharma http://dsteps.blogspot.com http://www.linkedin.com/in/dhavalsharma http://carpoolkaro.appspot.com From ideamonk at gmail.com Sun May 9 08:58:36 2010 From: ideamonk at gmail.com (Abhishek Mishra) Date: Sun, 9 May 2010 12:28:36 +0530 Subject: [BangPypers] Django Jammers In-Reply-To: References: Message-ID: We tried doing something similar - http://24camp.org/ in chennai as well as bangalore. But as for bangalore, the population was usually low - 2 to 4 but the kickstart was good. Hoping to be able to get back to such things in summer :) On Sun, May 9, 2010 at 12:05 PM, Dhaval Sharma wrote: > Hello Group, > > Let me know if this is the right forum to initiate coding initiative. > > I propose a monthly meet to jam and meet at a common place and produce some > cool django stuff. It could be in day or night. > > A time constrained onus for us to produce the assigned module and integrate > to produce an awesome site. All in a day. > > I propose the following steps > > 1. We produce the idea. Or there could be sponsors of idea. > 2. We vote for the idea to code. > 3. We design and create modules. Assign them. > 4. We code. > 5. We stuff the place with food and drinks if people want to eat and > drink" while they jam. > > > Please let me know when can we do it. > -- > With Warm Regards, > @dhavalsharma > http://dsteps.blogspot.com > http://www.linkedin.com/in/dhavalsharma > http://carpoolkaro.appspot.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From mail at manishsinha.net Sun May 9 13:45:09 2010 From: mail at manishsinha.net (Manish Sinha) Date: Sun, 9 May 2010 17:15:09 +0530 Subject: [BangPypers] Django Jammers In-Reply-To: References: Message-ID: On Sun, May 9, 2010 at 12:05 PM, Dhaval Sharma wrote: > Hello Group, > > Let me know if this is the right forum to initiate coding initiative. > > I propose a monthly meet to jam and meet at a common place and produce some > cool django stuff. It could be in day or night. > > A time constrained onus for us to produce the assigned module and integrate > to produce an awesome site. All in a day. > > I propose the following steps > > 1. We produce the idea. Or there could be sponsors of idea. > 2. We vote for the idea to code. > 3. We design and create modules. Assign them. > 4. We code. > 5. We stuff the place with food and drinks if people want to eat and > drink" while they jam. > This Saturday? Abhishek, if you are free this Saturday, then we can try to meet at Directi and get some stuff done. -- Manish Sinha From mail at manishsinha.net Sun May 9 13:53:04 2010 From: mail at manishsinha.net (Manish Sinha) Date: Sun, 9 May 2010 17:23:04 +0530 Subject: [BangPypers] i installed jaunty jackapole ubuntu 9.04 version In-Reply-To: References: Message-ID: > > i installed ubuntu 9.04 jaunty jackapole version .... > > Nice joke. > it is inbuilt featured with ubuntu o/s or we need to be installed ? > LAMP stack as a feature? > > what is the procedure for installing lamp stack in my ubuntu 9.04 version ? > sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server > > i need mysql and php to practice for web development ? > > is there any separate command for each ex:- mysql and apache and php ? > > or else it will combinely in one pack (i,e) lamp stack ? > https://help.ubuntu.com/community/ApacheMySQLPHP > > do i need net connection to download these packages to my o/s or else just > i > add on these package ? > You do need, would make installation very easy. > > later after installing please can any one tell how to start the php and > mysql and apache in my system before i going to work out ? > > You first need to learn PHP and MySQL and then ask questions. Gogle is your friend. > sorry for asking so many questions You should not be sorry for asking questions as this group is meant for that. Instead you should be sorry on three counts: 1) Asking a question which is not related to this group. 2) Cross posting to more than one group 3) Not doing "Googling" before asking a question. A simple google search brought this result http://www.google.co.in/search?q=ubuntu+wiki+install+lamp -- Manish Sinha From ideamonk at gmail.com Sun May 9 14:22:37 2010 From: ideamonk at gmail.com (Abhishek Mishra) Date: Sun, 9 May 2010 17:52:37 +0530 Subject: [BangPypers] Django Jammers In-Reply-To: References: Message-ID: > > This Saturday? > Abhishek, if you are free this Saturday, then we can try to meet at Directi > and get some stuff done. > > Not free this Sat buddy, but any other dates are fine. [ If this is specifically about django then I might not be able to jam much :) ] From madhav.bnk at gmail.com Sun May 9 19:41:41 2010 From: madhav.bnk at gmail.com (B.Nanda Kishore) Date: Sun, 9 May 2010 23:11:41 +0530 Subject: [BangPypers] Django Jammers In-Reply-To: References: Message-ID: +1 for this saturday. Any probable ideas, for a django project? Regards, Nandakishore On Sun, May 9, 2010 at 5:15 PM, Manish Sinha wrote: > On Sun, May 9, 2010 at 12:05 PM, Dhaval Sharma >wrote: > > > Hello Group, > > > > Let me know if this is the right forum to initiate coding initiative. > > > > I propose a monthly meet to jam and meet at a common place and produce > some > > cool django stuff. It could be in day or night. > > > > A time constrained onus for us to produce the assigned module and > integrate > > to produce an awesome site. All in a day. > > > > I propose the following steps > > > > 1. We produce the idea. Or there could be sponsors of idea. > > 2. We vote for the idea to code. > > 3. We design and create modules. Assign them. > > 4. We code. > > 5. We stuff the place with food and drinks if people want to eat and > > drink" while they jam. > > > > This Saturday? > Abhishek, if you are free this Saturday, then we can try to meet at Directi > and get some stuff done. > > -- > Manish Sinha > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Sun May 9 19:55:43 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 9 May 2010 23:25:43 +0530 Subject: [BangPypers] i installed jaunty jackapole ubuntu 9.04 version In-Reply-To: References: Message-ID: On Sat, May 8, 2010 at 8:55 PM, jaya kumar wrote: > hi to all > > i installed ubuntu 9.04 jaunty jackapole version .... > Cool. I searched for that version on Ubuntu's website and none the wiser for it. Are you sure it is spelled jack-a-pole ? Perhaps it is j-a-c-k-a-s-s ? > how i know LAMP stack installed in my o/s or not ? > > it is inbuilt featured with ubuntu o/s or we need to be installed ? > > what is the procedure for installing lamp stack in my ubuntu 9.04 version ? > > i need mysql and php to practice for web development ? > > is there any separate command for each ex:- mysql and apache and php ? > > or else it will combinely in one pack (i,e) lamp stack ? > > do i need net connection to download these packages to my o/s or else just > i > add on these package ? > > later after installing please can any one tell how to start the php and > mysql and apache in my system before i going to work out ? > > please tell me > > sorry for asking so many questions > Pretty soon I will be feeling sorry for not booting you off this list quicker. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Sun May 9 19:59:33 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 9 May 2010 23:29:33 +0530 Subject: [BangPypers] XML manipulation using ElementTree In-Reply-To: References: Message-ID: Hi Keith, > On Fri, May 7, 2010 at 4:32 PM, Keith Chapman >wrote: > > > request.set( > > " > > > > " + symbol + " > > > > " > > ) > > return request > > > > > Please paste the error you are getting somewhere like pastebin.ca > and post the link here. Also please post the full code along with the error. > > -Vikas > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From gora at srijan.in Sun May 9 21:20:39 2010 From: gora at srijan.in (Gora Mohanty) Date: Mon, 10 May 2010 00:50:39 +0530 Subject: [BangPypers] XML manipulation using ElementTree In-Reply-To: References: Message-ID: <20100510005039.5d404048@ibis> On Sun, 9 May 2010 23:29:33 +0530 Anand Balachandran Pillai wrote: [...] > > Please paste the error you are getting somewhere like > > pastebin.ca > > > and post the link here. Also please post the full code along with > the error. [...] Besides the above, I would also strongly suggest using lxml. lxml's support for XSL transformations makes the work of converting from one XML format to another very easy. Regards, Gora From noufal at gmail.com Mon May 10 11:33:26 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 10 May 2010 15:03:26 +0530 Subject: [BangPypers] @dabeaz visiting b'lore In-Reply-To: References: Message-ID: Wednesday evening. Say around 1900 at the venue mentioned in my earlier email. Fine with everyone? On 5/1/10, Vishal wrote: > On Fri, Apr 30, 2010 at 12:01 PM, Arvind Jamuna Dixit > wrote: > >> On Fri, Apr 30, 2010 at 11:34 AM, Noufal Ibrahim wrote: >> >> > No other suggestions? >> > The GIL thing is probably going to be a conversation about methods of >> > fixing it, improving it's performance. It'd probably require some in >> > depth knowledge of the GIL implementation. >> > >> >> I just looked up the TOC of his book ( The Python Essential Reference ). >> There I >> saw ABCs being listed under "Chapter 15. Data Structure, Algorithms and >> Code >> Simplification". >> >> Then there is "Generators and Coroutines". >> >> So, if others think GIL is a dry subject or something that requires >> preparation >> beforehand then we could ask him to talk about ABCs, Generators and >> Coroutines and >> then if time permits on the GIL. >> >> Is that OK? >> -- >> Arvind >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > Hi, > > my 2 cents and things I would be interested in... > > I think it would also help to know in general about interpreters, and the > python interpreter particularly. > about having JITs for Python interpreter etc. And improving Python > performance in general..using dataflow optimizations to the bytecode itself. > Also about packaging in Python, what are his thoughts on the ideal solution. > And about his experience on concurrency approaches in Python....coroutines > vs threads vs processes etc > > Thanks and best regards, > Vishal Sapre > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Mon May 10 12:26:17 2010 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Mon, 10 May 2010 15:56:17 +0530 Subject: [BangPypers] @dabeaz visiting b'lore In-Reply-To: References: Message-ID: On Mon, May 10, 2010 at 3:03 PM, Noufal Ibrahim wrote: > Wednesday evening. Say around 1900 at the venue mentioned in my > earlier email. Fine with everyone? > Yeah, fine with me. -- Arvind From dhavalsharma at gmail.com Mon May 10 12:49:41 2010 From: dhavalsharma at gmail.com (Dhaval Sharma) Date: Mon, 10 May 2010 16:19:41 +0530 Subject: [BangPypers] @dabeaz visiting b'lore Message-ID: Hi, Can you share the venue again as I have recently joined the group and must have missed previous email? -- With Warm Regards, @dhavalsharma http://dsteps.blogspot.com http://www.linkedin.com/in/dhavalsharma http://carpoolkaro.appspot.com From noufal at gmail.com Mon May 10 13:54:58 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 10 May 2010 17:24:58 +0530 Subject: [BangPypers] @dabeaz visiting b'lore In-Reply-To: References: Message-ID: The list archives will have it. I don't have complete access to the net right now. On 5/10/10, Dhaval Sharma wrote: > Hi, > > Can you share the venue again as I have recently joined the group and must > have missed previous email? > > > -- > With Warm Regards, > @dhavalsharma > http://dsteps.blogspot.com > http://www.linkedin.com/in/dhavalsharma > http://carpoolkaro.appspot.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From vsapre80 at gmail.com Mon May 10 14:34:53 2010 From: vsapre80 at gmail.com (Vishal) Date: Mon, 10 May 2010 18:04:53 +0530 Subject: [BangPypers] @dabeaz visiting b'lore In-Reply-To: References: Message-ID: +1 for this venue. its very close to my workplace as well. Noufal, can you send us your cell, so we can contact you once we reach the venue Prestige Loka Otherwise, just let us know where to reach in the building. On Mon, May 10, 2010 at 5:24 PM, Noufal Ibrahim wrote: > The list archives will have it. I don't have complete access to the > net right now. > > On 5/10/10, Dhaval Sharma wrote: > > Hi, > > > > Can you share the venue again as I have recently joined the group and > must > > have missed previous email? > > > > > > -- > > With Warm Regards, > > @dhavalsharma > > http://dsteps.blogspot.com > > http://www.linkedin.com/in/dhavalsharma > > http://carpoolkaro.appspot.com > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > -- > ~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 vnbang2003 at yahoo.com Mon May 10 14:23:37 2010 From: vnbang2003 at yahoo.com (vijay) Date: Mon, 10 May 2010 17:53:37 +0530 (IST) Subject: [BangPypers] Fw: Re: @dabeaz visiting b'lore Message-ID: <543478.212.qm@web95311.mail.in2.yahoo.com> Venue mail --- On Wed, 28/4/10, Noufal Ibrahim wrote: From: Noufal Ibrahim Subject: Re: [BangPypers] @dabeaz visiting b'lore To: "Bangalore Python Users Group - India" Date: Wednesday, 28 April, 2010, 6:22 PM There are around 10 people who've +1d Dave will be here from 10th May to 15th May (he's leaving on the 15th late at night). I've spoken to the people where I currently am (TANDBERG) and they're okay with a meeting in the evenings. The space is pretty decent and can house around 10 - 12 people. So the venue will work. Additionally, it's right next door to where he stays so it's convenient for him as well. http://maps.google.com/maps/place?cid=7402559017877928659&q=Prestige+Loka,+Brunton+Road,+Bangalore&hl=en&cd=1&cad=src:pplink&ei=Fi_YS5G0DI7kugPF-q3wDQ&sig2=YDSpYV-yI4TrnRpZzCsd6A for details on where. He's asked about possible topics to talk about. One is of course, the GIL (particularly various approaches on fixing it that are floating around). Another is Abstract base classes. Then there's the Python "advanced" features like decorators, generators etc. Any other suggestions? -- ~noufal http://nibrahim.net.in _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From noufal at gmail.com Mon May 10 14:57:47 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 10 May 2010 18:27:47 +0530 Subject: [BangPypers] @dabeaz visiting b'lore In-Reply-To: References: Message-ID: 2nd floor. Prestige Loka. Tandberg technologies india. It's on brunton road. You can't miss it. Same building as red hat. On 5/10/10, Vishal wrote: > +1 for this venue. > > its very close to my workplace as well. > > Noufal, can you send us your cell, so we can contact you once we reach the > venue Prestige Loka > Otherwise, just let us know where to reach in the building. > > > On Mon, May 10, 2010 at 5:24 PM, Noufal Ibrahim wrote: > >> The list archives will have it. I don't have complete access to the >> net right now. >> >> On 5/10/10, Dhaval Sharma wrote: >> > Hi, >> > >> > Can you share the venue again as I have recently joined the group and >> must >> > have missed previous email? >> > >> > >> > -- >> > With Warm Regards, >> > @dhavalsharma >> > http://dsteps.blogspot.com >> > http://www.linkedin.com/in/dhavalsharma >> > http://carpoolkaro.appspot.com >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> -- >> ~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 > -- ~noufal http://nibrahim.net.in From sethi.anubha at gmail.com Wed May 12 06:58:57 2010 From: sethi.anubha at gmail.com (Anubha Dadhich) Date: Wed, 12 May 2010 10:28:57 +0530 Subject: [BangPypers] Django Jammers In-Reply-To: References: Message-ID: Are there any concrete plans? +1 from my side for this saturday On Sun, May 9, 2010 at 11:11 PM, B.Nanda Kishore wrote: > +1 for this saturday. > > Any probable ideas, for a django project? > > Regards, > Nandakishore > > > On Sun, May 9, 2010 at 5:15 PM, Manish Sinha wrote: > >> On Sun, May 9, 2010 at 12:05 PM, Dhaval Sharma > >wrote: >> >> > Hello Group, >> > >> > Let me know if this is the right forum to initiate coding initiative. >> > >> > I propose a monthly meet to jam and meet at a common place and produce >> some >> > cool django stuff. It could be in day or night. >> > >> > A time constrained onus for us to produce the assigned module and >> integrate >> > to produce an awesome site. All in a day. >> > >> > I propose the following steps >> > >> > ? 1. We produce the idea. Or there could be sponsors of idea. >> > ? 2. We vote for the idea to code. >> > ? 3. We design and create modules. Assign them. >> > ? 4. We code. >> > ? 5. We stuff the place with food and drinks if people want to eat and >> > ? drink" while they jam. >> > >> >> This Saturday? >> Abhishek, if you are free this Saturday, then we can try to meet at Directi >> and get some stuff done. >> >> -- >> Manish Sinha >> _______________________________________________ >> 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 dhavalsharma at gmail.com Wed May 12 11:13:38 2010 From: dhavalsharma at gmail.com (Dhaval Sharma) Date: Wed, 12 May 2010 14:43:38 +0530 Subject: [BangPypers] Django Jammers Message-ID: I will be at appjam on this saturday. How about next saturday? -- With Warm Regards, @dhavalsharma http://dsteps.blogspot.com http://www.linkedin.com/in/dhavalsharma http://carpoolkaro.appspot.com From govind.menon at beacon.in Wed May 12 12:31:29 2010 From: govind.menon at beacon.in (Govind Menon) Date: Wed, 12 May 2010 16:01:29 +0530 Subject: [BangPypers] [JOB] - Opening for Python developers Message-ID: <3F5078CF066F4B89BE3A106E09F62B2E@Beaconnetbook> Hi, Beacon Consulting is a Human Resource and IT consulting firm with clear polarization towards candidate care. Established by people with extensive experience in the IT and IT enabled Services segment, Beacon Consulting understands the candidates' needs and aspirations and endeavors to meet their expectations without compromising the client's interests. Beacon Consulting is a young and vibrant organization that believes in understanding and enabling the candidates in their effort to move up the career graph. One of our clients is looking for strong Python developers with the profile given below: Senior Software Engineer - Core Engineering We are looking for a software engineer to join our core engineering team. Engineers on our team design, build, and optimize the servers/services for our high-volume sales transactions processing servers, high-volume incentives processing servers, which currently handle millions of transactions a day. Responsibilities * Code primarily in Java and Python. * Design and implement highly scalable, fault-tolerant, multi-tenant servers and services. * Propose, prototype and test positive improvements on scaling transaction processing servers/services. Requirements * B.E/B.Tech computer science preferably or equivalent experience. * Experience in building large scale applications/servers. * Knowledge of SQL, Data modelling for high volume transaction processing, accessing data from data warehouse/mart. * Experience in Spring (web, core, aop etc), Hibernate/Ibatis, ActiveMQ (any other Messaging server) on java, experience in RESTFul/SOAP web services. Experience in Django or other web app frame work in python/experience in Ruby On Rails or other web app frame work in Ruby. Worked on SQL Alchemy or Pylons. * Demonstrated hands-on experience working in an Agile development team. * Experienced in continuous integration/iterative/test driven development. * Passionate about working in small focussed teams. * Experience with UI integration like JSPs, PHP, Jquery is a plus. * Experience in Hadoop, Solr/Lucene (full text indexing), CouchDB is a plus. * 3 - 6 years of experience. Those interested in exploring this opening, please mail me directly at govind.menon at beacon.in or call me at the number given in the signature. Kindly refrain from replying to the mailing list. Thanks and Regards, Govind Menon Director, Beacon Consulting www.beacon.in cell: +91 94483 79144 From sethi.anubha at gmail.com Wed May 12 12:44:41 2010 From: sethi.anubha at gmail.com (Anubha Dadhich) Date: Wed, 12 May 2010 16:14:41 +0530 Subject: [BangPypers] Django Jammers In-Reply-To: References: Message-ID: +1 for next saturday. Can we discuss a few project ideas for the session. Also would like to know the duration of the session. On Wed, May 12, 2010 at 2:43 PM, Dhaval Sharma wrote: > I will be at appjam on this saturday. How about next saturday? > > -- > With Warm Regards, > @dhavalsharma > http://dsteps.blogspot.com > http://www.linkedin.com/in/dhavalsharma > http://carpoolkaro.appspot.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From mail at manishsinha.net Wed May 12 18:16:18 2010 From: mail at manishsinha.net (Manish Sinha) Date: Wed, 12 May 2010 21:46:18 +0530 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: References: Message-ID: <4BEAD452.2030206@manishsinha.net> On 5/7/2010 11:08 PM, jaya kumar wrote: > hi to all > > i need to learn the lamp stack ? > > can any one tell what is lamp stack ? what it will be useful for ? > > how many days it will take to learn and is there any job opportunites for > this programme ? > > where is the code available for web applications using lamp stack ? > > is there any one conducting seminar about lamp stack ? > > > i hope i will get reply > List Mods, This person has gone berserk. Please moderate the posts from this user. Most of the queries can be answered by simply Googling. Jaya, n offense meant but I have a good resource for you - > http://is.gd/c60m5 -- Manish Sinha From dhavalsharma at gmail.com Thu May 13 08:07:41 2010 From: dhavalsharma at gmail.com (Dhaval Sharma) Date: Thu, 13 May 2010 11:37:41 +0530 Subject: [BangPypers] Django Jammers Message-ID: Have created another google group to manage the logistics and ideas for such event at djangojammers at googlegroups.com let me know if you would be comfortable with another group specifically focused on organizing such meets. Have posted few initial ideas at the google groups. please review and let's discuss -- With Warm Regards, @dhavalsharma http://dsteps.blogspot.com http://www.linkedin.com/in/dhavalsharma http://carpoolkaro.appspot.com From abpillai at gmail.com Thu May 13 08:33:01 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 13 May 2010 12:03:01 +0530 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: <4BEAD452.2030206@manishsinha.net> References: <4BEAD452.2030206@manishsinha.net> Message-ID: On Wed, May 12, 2010 at 9:46 PM, Manish Sinha wrote: > On 5/7/2010 11:08 PM, jaya kumar wrote: > >> hi to all >> >> i need to learn the lamp stack ? >> >> can any one tell what is lamp stack ? what it will be useful for ? >> >> how many days it will take to learn and is there any job opportunites for >> this programme ? >> >> where is the code available for web applications using lamp stack ? >> >> is there any one conducting seminar about lamp stack ? >> >> >> i hope i will get reply >> >> > > List Mods, > > This person has gone berserk. Please moderate the posts from this user. > Most of the queries can be answered by simply Googling. > It has been done since the day he started this thread. Btw I don't think this is a some stupid guy trying to figure things out. I suspect it is someone who is intentionally spamming the list with what is meant to look like a series of questions from a confused character. > Jaya, n offense meant but I have a good resource for you - > > http://is.gd/c60m5 > > -- > Manish Sinha > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Thu May 13 08:45:38 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 13 May 2010 12:15:38 +0530 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: References: <4BEAD452.2030206@manishsinha.net> Message-ID: On Thu, May 13, 2010 at 12:03 PM, Anand Balachandran Pillai wrote: [..] > ?Btw I don't think this is a some stupid guy trying to figure things > ?out. I suspect it is someone who is intentionally ?spamming the list > ?with what is meant to look like a series of questions from a confused > ?character. [..] What's in a name? That which we call spam By another name would stink as bad. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Thu May 13 08:47:57 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 13 May 2010 12:17:57 +0530 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: References: <4BEAD452.2030206@manishsinha.net> Message-ID: <201005131217.57967.lawgon@au-kbc.org> On Thursday 13 May 2010 12:03:01 Anand Balachandran Pillai wrote: > > This person has gone berserk. Please moderate the posts from this user. > > Most of the queries can be answered by simply Googling. > > It has been done since the day he started this thread. > > Btw I don't think this is a some stupid guy trying to figure things > out. I suspect it is someone who is intentionally spamming the list > with what is meant to look like a series of questions from a confused > character. > some stupid guy - I gave a detailed reply on the ilugc list - then he went ahead and installed ubuntu something and was looking for some button to press to start the lamp stack. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From abpillai at gmail.com Thu May 13 09:01:46 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 13 May 2010 12:31:46 +0530 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: <201005131217.57967.lawgon@au-kbc.org> References: <4BEAD452.2030206@manishsinha.net> <201005131217.57967.lawgon@au-kbc.org> Message-ID: On Thu, May 13, 2010 at 12:17 PM, Kenneth Gonsalves wrote: > On Thursday 13 May 2010 12:03:01 Anand Balachandran Pillai wrote: > > > This person has gone berserk. Please moderate the posts from this user. > > > Most of the queries can be answered by simply Googling. > > > > It has been done since the day he started this thread. > > > > Btw I don't think this is a some stupid guy trying to figure things > > out. I suspect it is someone who is intentionally spamming the list > > with what is meant to look like a series of questions from a confused > > character. > > > > some stupid guy - I gave a detailed reply on the ilugc list - then he went > ahead and installed ubuntu something and was looking for some button to > press > to start the lamp stack. > I can't believe it. Someone so stupid trying to play with Linux and open source ? Come on, he seems to have less than a hare's brain. A parrot given access to a Linux machine, keyboard and internet would have sent out more intelligent emails. -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From orsenthil at gmail.com Thu May 13 09:09:24 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 13 May 2010 12:39:24 +0530 Subject: [BangPypers] trying to close the thread In-Reply-To: References: <4BEAD452.2030206@manishsinha.net> <201005131217.57967.lawgon@au-kbc.org> Message-ID: <20100513070924.GA5751@remy> On Thu, May 13, 2010 at 12:31:46PM +0530, Anand Balachandran Pillai wrote: > > > > some stupid guy - I gave a detailed reply on the ilugc list - then he went > > ahead and installed ubuntu something and was looking for some button to > > press > > to start the lamp stack. > > > > I can't believe it. Someone so stupid trying to play with Linux and open > source ? Come on, he seems to have less than a hare's brain. A parrot > given access to a Linux machine, keyboard and internet would have > sent out more intelligent emails. > Forgive my alternative stance. But it is pointless in abusing someone like this many times. He is a learner perhaps at a wrong place. I would not have restarted this thread and if it is restarted, just ignore it. -- Senthil From abpillai at gmail.com Thu May 13 09:18:41 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 13 May 2010 12:48:41 +0530 Subject: [BangPypers] trying to close the thread In-Reply-To: <20100513070924.GA5751@remy> References: <4BEAD452.2030206@manishsinha.net> <201005131217.57967.lawgon@au-kbc.org> <20100513070924.GA5751@remy> Message-ID: On Thu, May 13, 2010 at 12:39 PM, Senthil Kumaran wrote: > On Thu, May 13, 2010 at 12:31:46PM +0530, Anand Balachandran Pillai wrote: > > > > > > some stupid guy - I gave a detailed reply on the ilugc list - then he > went > > > ahead and installed ubuntu something and was looking for some button to > > > press > > > to start the lamp stack. > > > > > > > I can't believe it. Someone so stupid trying to play with Linux and open > > source ? Come on, he seems to have less than a hare's brain. A parrot > > given access to a Linux machine, keyboard and internet would have > > sent out more intelligent emails. > > > > Forgive my alternative stance. But it is pointless in abusing someone > Who abused him ? Can you look up the meaning of the word "abuse" in some dictionary to find out what you are talking about here ? To me as moderator, he was abusing this list, none here was abusing him. Please choose your words with care and don't use strong words where it is not called for. > like this many times. He is a learner perhaps at a wrong place. I > would not have restarted this thread and if it is restarted, just > ignore it. > This person doesn't look like a learner to me. A learner tries things and utilizes services available to him more intelligently before shooting off emails like some dummy bot or parakeet. > > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Thu May 13 09:25:37 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 13 May 2010 12:55:37 +0530 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: References: <201005131217.57967.lawgon@au-kbc.org> Message-ID: <201005131255.37386.lawgon@au-kbc.org> On Thursday 13 May 2010 12:31:46 Anand Balachandran Pillai wrote: > > some stupid guy - I gave a detailed reply on the ilugc list - then he > > went ahead and installed ubuntu something and was looking for some button > > to press > > to start the lamp stack. > > I can't believe it. Someone so stupid trying to play with Linux and open > source ? > believe it. It all depends on where one is coming from. A dotnet guy is told that LAMP stack is the greatest thing since the invention of the masala dosai, he immediately looks for buttons to press. Something similar happened to me once - some years ago when integrating a payment portal, the code was given to me in php. I could figure out more or less what it meant and rewrite it in python. For some stuff I had to run the php code. Naturally I could not ask anyone, so like a good cgi programmer, I put the php file in cgi-bin, made it executable and tried to run it. I spend a full day tweaking apache (since my interpreter had php4 installed and this file had a php3 extension). But whatever I tried I could not get the thing to run. I finally had to go over to a friends place and ask him to run the code. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From steve at lonetwin.net Thu May 13 11:00:48 2010 From: steve at lonetwin.net (steve) Date: Thu, 13 May 2010 14:30:48 +0530 Subject: [BangPypers] i need to learn lamp stack ? In-Reply-To: <201005131255.37386.lawgon@au-kbc.org> References: <201005131217.57967.lawgon@au-kbc.org> <201005131255.37386.lawgon@au-kbc.org> Message-ID: <4BEBBFC0.2060104@lonetwin.net> On 05/13/2010 12:55 PM, Kenneth Gonsalves wrote: > On Thursday 13 May 2010 12:31:46 Anand Balachandran Pillai wrote: >> > some stupid guy - I gave a detailed reply on the ilugc list - then he >> > went ahead and installed ubuntu something and was looking for some button >> > to press >> > to start the lamp stack. >> >> I can't believe it. Someone so stupid trying to play with Linux and open >> source ? >> > > believe it. It all depends on where one is coming from. A dotnet guy is told > that LAMP stack is the greatest thing since the invention of the masala dosai, > he immediately looks for buttons to press. Heh, but to be fair, this works the other direction too. Every time I have to configure or run something on a windoze box I think in terms of config files or running cli commands and only later think about looking for pointy-clickly interfaces. :-) cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From gvkalra at gmail.com Sat May 15 09:38:17 2010 From: gvkalra at gmail.com (Gaurav Kalra) Date: Sat, 15 May 2010 13:08:17 +0530 Subject: [BangPypers] python - print spooling monitoring Message-ID: Hi. I need some help for the following scenario. A process that keeps on monitoring the print spooler ..... when u try to spool something, it asks for ur details like name, number etc., save them along with the number of pages u printed and prints only when u provide the same .... (nice stuff for public pc's where u need to make an entry into the register after printing) ...... how wud i make this abstract view tangible ?? .... plz show a road to start on ... one reply that i have got is: U need to wrap the print service with your program and make programs that want to communicate with the driver through your own service. i am fairly new to python. hope to hear from the group. From orsenthil at gmail.com Sat May 15 17:14:13 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sat, 15 May 2010 20:44:13 +0530 Subject: [BangPypers] python - print spooling monitoring In-Reply-To: References: Message-ID: <20100515151413.GA4010@remy> On Sat, May 15, 2010 at 01:08:17PM +0530, Gaurav Kalra wrote: > Hi. I need some help for the following scenario. > A process that keeps on monitoring the print spooler ..... when u try to > spool something, it asks for ur details like name, number etc., save them > along with the number of pages u printed and prints only when u provide the > same .... (nice stuff for public pc's where u need to make an entry into the > register after printing) ...... how wud i make this abstract view tangible > ?? .... plz show a road to start on ... You might want to split your requirement into more tangible and defined items for your programing solution. - If you need a monitoring service. First try write a small monitoring service. Active state cookbook has some recipes. - If you need to wrap a system executable using Python. Write a python function which wraps that system executable. E.g. is if you want to wrap 'ls and its options' you write a function like def listdir(dir, *options) and then inside the function construct the ls command and pass it subprocess module. This is just a crude definition. YMMV. - Try to combine these two steps and see if that is your desired result. If not, rinse and repeat. HTH, -- Senthil Thank God I'm an atheist. From gvkalra at gmail.com Mon May 17 21:12:01 2010 From: gvkalra at gmail.com (Gaurav Kalra) Date: Tue, 18 May 2010 00:42:01 +0530 Subject: [BangPypers] BangPypers Digest, Vol 33, Issue 21 In-Reply-To: References: Message-ID: Thanks Senthil, I'll work upon that If am not wrong, are you the same SK as on gre-success ?? ...... Small World! :-) On 05/16/2010, bangpypers-request at python.org wrote: > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. Re: python - print spooling monitoring (Senthil Kumaran) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 15 May 2010 20:44:13 +0530 > From: Senthil Kumaran > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] python - print spooling monitoring > Message-ID: <20100515151413.GA4010 at remy> > Content-Type: text/plain; charset=us-ascii > > On Sat, May 15, 2010 at 01:08:17PM +0530, Gaurav Kalra wrote: >> Hi. I need some help for the following scenario. >> A process that keeps on monitoring the print spooler ..... when u try to >> spool something, it asks for ur details like name, number etc., save them >> along with the number of pages u printed and prints only when u provide >> the >> same .... (nice stuff for public pc's where u need to make an entry into >> the >> register after printing) ...... how wud i make this abstract view tangible >> ?? .... plz show a road to start on ... > > You might want to split your requirement into more tangible and > defined items for your programing solution. > > - If you need a monitoring service. First try write a small monitoring > service. Active state cookbook has some recipes. > - If you need to wrap a system executable using Python. Write a python > function which wraps that system executable. E.g. is if you want to > wrap 'ls and its options' you write a function like > def listdir(dir, *options) and then inside the function construct > the ls command and pass it subprocess module. This is just a crude > definition. YMMV. > - Try to combine these two steps and see if that is your desired > result. If not, rinse and repeat. > > HTH, > > -- > Senthil > > Thank God I'm an atheist. > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 33, Issue 21 > ****************************************** > -- -- With Thanks Gaurav Kalra gvkalra at googlemail.com From vinayakh at gmail.com Tue May 18 11:57:58 2010 From: vinayakh at gmail.com (Vinayak Hegde) Date: Tue, 18 May 2010 15:27:58 +0530 Subject: [BangPypers] @dabeaz visiting b'lore In-Reply-To: References: Message-ID: Did this meet happen. Slides / comments on the meet ? -- Vinayak On Mon, May 10, 2010 at 6:27 PM, Noufal Ibrahim wrote: > 2nd floor. Prestige Loka. Tandberg technologies india. It's on brunton > road. You can't miss it. Same building as red hat. > > On 5/10/10, Vishal wrote: >> +1 for this venue. >> >> its very close to my workplace as well. >> >> Noufal, can you send us your cell, so we can contact you once we reach the >> venue Prestige Loka >> Otherwise, just let us know where to reach in the building. >> >> >> On Mon, May 10, 2010 at 5:24 PM, Noufal Ibrahim wrote: >> >>> The list archives will have it. I don't have complete access to the >>> net right now. >>> >>> On 5/10/10, Dhaval Sharma wrote: >>> > Hi, >>> > >>> > Can you share the venue again as I have recently joined the group and >>> must >>> > have missed previous email? >>> > >>> > >>> > -- >>> > With Warm Regards, >>> > @dhavalsharma >>> > http://dsteps.blogspot.com >>> > http://www.linkedin.com/in/dhavalsharma >>> > http://carpoolkaro.appspot.com >>> > _______________________________________________ >>> > BangPypers mailing list >>> > BangPypers at python.org >>> > http://mail.python.org/mailman/listinfo/bangpypers >>> > >>> >>> >>> -- >>> ~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 >> > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Tue May 18 12:33:18 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 18 May 2010 16:03:18 +0530 Subject: [BangPypers] @dabeaz visiting b'lore In-Reply-To: References: Message-ID: On Tue, May 18, 2010 at 3:27 PM, Vinayak Hegde wrote: > Did this meet happen. Yes it did. > Slides No presentations/slides. > / comments on the meet ? It was very general. More of a fun evening rather than a hardcore discussion. I quite enjoyed it. -- ~noufal http://nibrahim.net.in From srp at ideadevice.com Fri May 21 07:33:47 2010 From: srp at ideadevice.com (Saju Pillai) Date: Fri, 21 May 2010 11:03:47 +0530 Subject: [BangPypers] Weekly meeting - IIMB - New Venue Message-ID: Hello, Idea Device is a startup based in NSRCEL, IIM-B. We develop products in the IT/Data Center automation space. We use Python extensively in our products & therefore have a major interest in seeing a flourishing, *independent*, Python community in Bangalore/India. To this end we would like to offer a formal meeting place for the Monthly bangpyper meetups as well as one-off Python community meetings as they happen. Idea Device & NSRCEL,IIM-B would like to provide the following to the bangpypers community: 1. Free access to a 20 -30(squeeze) seater conference/meeting room with OHP for monthly meetings and one-offs 2. Free Internet access during the meetings There are multiple coffee shops in the campus including a CCD next door suitable for break-out sessions. Do consider IIM-B as a candidate venue for your meetings. We will be happy to host you. regards srp -- Idea Device Automation Technologies www.ideadevice.com +91 9945196516 From mbaiju at zeomega.com Fri May 21 07:51:02 2010 From: mbaiju at zeomega.com (Baiju M) Date: Fri, 21 May 2010 11:21:02 +0530 Subject: [BangPypers] Weekly meeting - IIMB - New Venue In-Reply-To: References: Message-ID: On Fri, May 21, 2010 at 11:03 AM, Saju Pillai wrote: > Hello, > > ?Idea Device is a startup based in NSRCEL, IIM-B. We develop products in the > IT/Data Center automation space. ?We use Python extensively in our products > & therefore have a major interest in seeing a flourishing, *independent*, > Python community in Bangalore/India. ?To this end we would like to offer a > formal meeting place for the Monthly bangpyper meetups as well as one-off > Python community meetings as they happen. Idea Device & NSRCEL,IIM-B would > like to provide the following to the bangpypers community: > > 1. Free access to a 20 -30(squeeze) seater conference/meeting room with OHP > for monthly meetings and one-offs > 2. Free Internet access during the meetings > > There are multiple coffee shops in the campus including a CCD next door > suitable for break-out sessions. > > Do consider IIM-B as a candidate venue for your meetings. We will be happy > to host you. Thanks Saju for the offering. I think we should try different locations for meetings. BTW, I am happy with TW office as the venue. Regards, Baiju M From noufal at gmail.com Fri May 21 08:15:48 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 21 May 2010 11:45:48 +0530 Subject: [BangPypers] Weekly meeting - IIMB - New Venue In-Reply-To: References: Message-ID: On Fri, May 21, 2010 at 11:21 AM, Baiju M wrote: [..] > Thanks Saju for the offering. ?I think we should try different locations > for meetings. ?BTW, I am happy with TW office as the venue. +1. I like the idea of multiple venues. Also, Python meetings at a Python company is a good thing. :) -- ~noufal http://nibrahim.net.in From murty_murty at yahoo.com Fri May 21 09:23:15 2010 From: murty_murty at yahoo.com (M.V.Ramana Murty) Date: Fri, 21 May 2010 00:23:15 -0700 (PDT) Subject: [BangPypers] [JOB Postnging !] Message-ID: <438127.58968.qm@web52104.mail.re2.yahoo.com> Dear All, ?This is a job Posting for our company. We need a 2 developers with 3-5 yrs experience in Python, Zope/Django,? Javascript, JQuery and?MySQL. Exposure to PHP& Zend Framework will be advantageious. The Intrested, please get back to me ASAP at murty.mvr at utthunga.com. The position is based out of bangalore and may involve oveseas travel initially ? ? Best Regards Murty ?B A N G A L O R E ================== From venkat83 at gmail.com Fri May 21 09:28:22 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Fri, 21 May 2010 12:58:22 +0530 Subject: [BangPypers] [JOB Postnging !] In-Reply-To: <438127.58968.qm@web52104.mail.re2.yahoo.com> References: <438127.58968.qm@web52104.mail.re2.yahoo.com> Message-ID: On Fri, May 21, 2010 at 12:53 PM, M.V.Ramana Murty wrote: > We need a 2 developers with 3-5 yrs experience in Python, Zope/Django, > Javascript, JQuery and MySQL. Exposure to PHP& Zend Framework will be > advantageious. > Neat!! From abpillai at gmail.com Fri May 21 11:50:29 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 21 May 2010 15:20:29 +0530 Subject: [BangPypers] Weekly meeting - IIMB - New Venue In-Reply-To: References: Message-ID: On Fri, May 21, 2010 at 11:03 AM, Saju Pillai wrote: > Hello, > > Idea Device is a startup based in NSRCEL, IIM-B. We develop products in > the > IT/Data Center automation space. We use Python extensively in our products > & therefore have a major interest in seeing a flourishing, *independent*, > Python community in Bangalore/India. To this end we would like to offer a > formal meeting place for the Monthly bangpyper meetups as well as one-off > Python community meetings as they happen. Idea Device & NSRCEL,IIM-B would > like to provide the following to the bangpypers community: > > 1. Free access to a 20 -30(squeeze) seater conference/meeting room with OHP > for monthly meetings and one-offs > 2. Free Internet access during the meetings > > There are multiple coffee shops in the campus including a CCD next door > suitable for break-out sessions. > > Do consider IIM-B as a candidate venue for your meetings. We will be happy > to host you. > Thanks for the offer. IIM-B would be a cool place to meet up for sure. Apart from the fact that it is a bit far away for some of us, I think the other options are pretty good. We can use IIM-B as a fallback for larger meetups where presentations are required. For our regular meetings we rely on ThoughtWorks - it has been a great arrangement for quite some time. > > regards > srp > -- > Idea Device > Automation Technologies > www.ideadevice.com > +91 9945196516 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From scorpion032 at gmail.com Fri May 21 17:56:23 2010 From: scorpion032 at gmail.com (Lakshman Prasad) Date: Fri, 21 May 2010 21:26:23 +0530 Subject: [BangPypers] Weekly meeting - IIMB - New Venue In-Reply-To: References: Message-ID: Speaking of which, I am wondering if there is a meeting this weekend? Or any in the next weekend? On Fri, May 21, 2010 at 3:20 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Fri, May 21, 2010 at 11:03 AM, Saju Pillai wrote: > > > Hello, > > > > Idea Device is a startup based in NSRCEL, IIM-B. We develop products in > > the > > IT/Data Center automation space. We use Python extensively in our > products > > & therefore have a major interest in seeing a flourishing, *independent*, > > Python community in Bangalore/India. To this end we would like to offer > a > > formal meeting place for the Monthly bangpyper meetups as well as one-off > > Python community meetings as they happen. Idea Device & NSRCEL,IIM-B > would > > like to provide the following to the bangpypers community: > > > > 1. Free access to a 20 -30(squeeze) seater conference/meeting room with > OHP > > for monthly meetings and one-offs > > 2. Free Internet access during the meetings > > > > There are multiple coffee shops in the campus including a CCD next door > > suitable for break-out sessions. > > > > Do consider IIM-B as a candidate venue for your meetings. We will be > happy > > to host you. > > > > Thanks for the offer. IIM-B would be a cool place to meet up for sure. > Apart from the fact that it is a bit far away for some of us, I think > the other options are pretty good. > > We can use IIM-B as a fallback for larger meetups where > presentations are required. For our regular meetings we > rely on ThoughtWorks - it has been a great arrangement > for quite some time. > > > > > > regards > > srp > > -- > > Idea Device > > Automation Technologies > > www.ideadevice.com > > +91 9945196516 > > _______________________________________________ > > 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 noufal at gmail.com Fri May 21 18:04:56 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 21 May 2010 21:34:56 +0530 Subject: [BangPypers] Weekly meeting - IIMB - New Venue In-Reply-To: References: Message-ID: On Fri, May 21, 2010 at 9:26 PM, Lakshman Prasad wrote: > Speaking of which, I am wondering if there is a meeting this weekend? > > Or any in the next weekend? There have been no plans discussed yet. I guess the meeting with Dabeaz with this month's gathering. However, if there's interest, we can do one next weekend. Any talks/topics? -- ~noufal http://nibrahim.net.in From scorpion032 at gmail.com Fri May 21 19:00:39 2010 From: scorpion032 at gmail.com (Lakshman Prasad) Date: Fri, 21 May 2010 22:30:39 +0530 Subject: [BangPypers] Weekly meeting - IIMB - New Venue In-Reply-To: References: Message-ID: Thanks for the information. I am interested if there is one in the next weekend. +1 (Thats how we express interest right? ;) ) On Fri, May 21, 2010 at 9:34 PM, Noufal Ibrahim wrote: > On Fri, May 21, 2010 at 9:26 PM, Lakshman Prasad > wrote: > > Speaking of which, I am wondering if there is a meeting this weekend? > > > > Or any in the next weekend? > > There have been no plans discussed yet. I guess the meeting with > Dabeaz with this month's gathering. However, if there's interest, we > can do one next weekend. Any talks/topics? > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From rahul8590 at gmail.com Sun May 23 21:21:17 2010 From: rahul8590 at gmail.com (Rahul R) Date: Sun, 23 May 2010 23:21:17 +0400 Subject: [BangPypers] python for parsing Message-ID: Hello everyone , I am new to this community . recently i attended a python workshop in my college and got a lot mesmerised by the language so finally decided to port my mini project which i have partially written using LEX and Yacc into python. i would be glad if you could provide me some valuable suggestions on how to go about doing so. Thanking You Rahul From noufal at gmail.com Sun May 23 21:28:38 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 24 May 2010 00:58:38 +0530 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: On Mon, May 24, 2010 at 12:51 AM, Rahul R wrote: > Hello everyone , > I am new to this community . recently i attended a python workshop in my > college and got a lot mesmerised by the language so finally decided to port > my mini project which i have partially written using LEX and Yacc into > python. i would be glad if you could provide me some valuable suggestions on > how to go about doing so. there are literally tons of options - Here's a good list - http://nedbatchelder.com/text/python-parsers.html I've had good experiences with the SPARK http://pages.cpsc.ucalgary.ca/~aycock/spark/ library. Very Pythonic. None of the Yacc/Lex boilerplate. -- ~noufal http://nibrahim.net.in From dhananjay.nene at gmail.com Sun May 23 22:00:36 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 24 May 2010 01:30:36 +0530 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: On Mon, May 24, 2010 at 12:51 AM, Rahul R wrote: > Hello everyone , > I am new to this community . recently i attended a python workshop in my > college and got a lot mesmerised by the language so finally decided to port > my mini project which i have partially written using LEX and Yacc into > python. i would be glad if you could provide me some valuable suggestions > on > how to go about doing so. > > I had once found pyparsing http://pyparsing.wikispaces.com/ quite nice though I used it in a casual experiment. I had documented my usage here : http://codeblog.dhananjaynene.com/2010/01/extracting-data-using-recursive-descent-parsing/which hopefully should indicate how its usage is in many ways far simpler than traditional lex/yacc one. Dhananjay > > Thanking You > Rahul > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From rahul8590 at gmail.com Sun May 23 22:32:50 2010 From: rahul8590 at gmail.com (Rahul R) Date: Mon, 24 May 2010 00:32:50 +0400 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: On Mon, May 24, 2010 at 12:00 AM, Dhananjay Nene wrote: > On Mon, May 24, 2010 at 12:51 AM, Rahul R wrote: > > > Hello everyone , > > I am new to this community . recently i attended a python workshop in my > > college and got a lot mesmerised by the language so finally decided to > port > > my mini project which i have partially written using LEX and Yacc into > > python. i would be glad if you could provide me some valuable suggestions > > on > > how to go about doing so. > > > > I had once found pyparsing http://pyparsing.wikispaces.com/ quite nice > though I used it in a casual experiment. > > I had documented my usage here : > > http://codeblog.dhananjaynene.com/2010/01/extracting-data-using-recursive-descent-parsing/which > hopefully should indicate how its usage is in many ways far simpler > than traditional lex/yacc one. > > Dhananjay > > > Thanks Dhananjay & Noufal , now i have tons of options. But then again i am trying to find the most suitable one for my program. Well basically what i am trying to achieve is to create my own syntax (reasonably simple ) which will help the user to write simple HTML ( +CSS hopefully) pages without actually coding any of it . i.e for example if the user writes this is heading ============ --> { the '=' would be a token for headers } the rest paragraph the equivalent html generated could be

this is heading

the rest paragraph

besides i am also trying to incorporate inline CSS and other basic functualities . From kunal.t2 at gmail.com Mon May 24 03:02:09 2010 From: kunal.t2 at gmail.com (kunal ghosh) Date: Mon, 24 May 2010 06:32:09 +0530 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: Hi, Rahul It looks like you are trying to create an abstraction above the HTML+JS etc. Have you looked at pyjamas pyjs.org ? Though GWT uses java for the same thing. On Mon, May 24, 2010 at 2:02 AM, Rahul R wrote: > On Mon, May 24, 2010 at 12:00 AM, Dhananjay Nene > wrote: > > > On Mon, May 24, 2010 at 12:51 AM, Rahul R wrote: > > > > > Hello everyone , > > > I am new to this community . recently i attended a python workshop in > my > > > college and got a lot mesmerised by the language so finally decided to > > port > > > my mini project which i have partially written using LEX and Yacc into > > > python. i would be glad if you could provide me some valuable > suggestions > > > on > > > how to go about doing so. > > > > > > I had once found pyparsing http://pyparsing.wikispaces.com/ quite nice > > though I used it in a casual experiment. > > > > I had documented my usage here : > > > > > http://codeblog.dhananjaynene.com/2010/01/extracting-data-using-recursive-descent-parsing/which > > hopefully should indicate how its usage is in many ways far simpler > > than traditional lex/yacc one. > > > > Dhananjay > > > > > > > Thanks Dhananjay & Noufal , now i have tons of options. But then again i > am trying to find the most suitable one for my program. > Well basically what i am trying to achieve is to create my own syntax > (reasonably simple ) which will help the user to write simple HTML ( +CSS > hopefully) pages without actually coding any of it . > > i.e for example > > if the user writes > > this is heading > ============ --> { the '=' would be a token for headers } > > the rest paragraph > > > the equivalent html generated could be > >

this is heading

>

the rest paragraph

> > besides i am also trying to incorporate inline CSS and other basic > functualities . > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- regards ------- Kunal Ghosh Dept of Computer Sc. & Engineering. Sir MVIT Bangalore,India Blog:kunalghosh.wordpress.com Website:www.kunalghosh.net46.net From rahul8590 at gmail.com Mon May 24 08:36:43 2010 From: rahul8590 at gmail.com (Rahul R) Date: Mon, 24 May 2010 10:36:43 +0400 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: Thanks Kunal , i am happy as well as sad , happy because my job has become much simpler and sad because everytime i think of a novel (honeslty ) idea .. i see someone else has already executed it .. :( On Mon, May 24, 2010 at 5:02 AM, kunal ghosh wrote: > Hi, Rahul > It looks like you are trying to create an abstraction above the HTML+JS > etc. > Have you looked at pyjamas pyjs.org ? > Though GWT uses java for the same thing. > > On Mon, May 24, 2010 at 2:02 AM, Rahul R wrote: > > > On Mon, May 24, 2010 at 12:00 AM, Dhananjay Nene > > wrote: > > > > > On Mon, May 24, 2010 at 12:51 AM, Rahul R wrote: > > > > > > > Hello everyone , > > > > I am new to this community . recently i attended a python workshop in > > my > > > > college and got a lot mesmerised by the language so finally decided > to > > > port > > > > my mini project which i have partially written using LEX and Yacc > into > > > > python. i would be glad if you could provide me some valuable > > suggestions > > > > on > > > > how to go about doing so. > > > > > > > > I had once found pyparsing http://pyparsing.wikispaces.com/ quite > nice > > > though I used it in a casual experiment. > > > > > > I had documented my usage here : > > > > > > > > > http://codeblog.dhananjaynene.com/2010/01/extracting-data-using-recursive-descent-parsing/which > > > hopefully should indicate how its usage is in many ways far simpler > > > than traditional lex/yacc one. > > > > > > Dhananjay > > > > > > > > > > > Thanks Dhananjay & Noufal , now i have tons of options. But then again > i > > am trying to find the most suitable one for my program. > > Well basically what i am trying to achieve is to create my own syntax > > (reasonably simple ) which will help the user to write simple HTML ( +CSS > > hopefully) pages without actually coding any of it . > > > > i.e for example > > > > if the user writes > > > > this is heading > > ============ --> { the '=' would be a token for headers } > > > > the rest paragraph > > > > > > the equivalent html generated could be > > > >

this is heading

> >

the rest paragraph

> > > > besides i am also trying to incorporate inline CSS and other basic > > functualities . > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > regards > ------- > Kunal Ghosh > Dept of Computer Sc. & Engineering. > Sir MVIT > Bangalore,India > > Blog:kunalghosh.wordpress.com > Website:www.kunalghosh.net46.net > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Mon May 24 08:40:59 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 24 May 2010 12:10:59 +0530 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: On Mon, May 24, 2010 at 12:06 PM, Rahul R wrote: > Thanks Kunal , i am happy as well as sad ?, happy because my job has become > much simpler and sad because everytime i think of a novel (honeslty ) idea > .. i see someone else has already executed it .. :( There are still lots of things to do. Read the other code and learn from it, perhaps implement your own thing and compare it with the other to see if there are things to learn. Reinventing the wheel is usually pointless but as an educational experience, I think it's nice. -- ~noufal http://nibrahim.net.in From vsapre80 at gmail.com Mon May 24 12:56:28 2010 From: vsapre80 at gmail.com (Vishal) Date: Mon, 24 May 2010 16:26:28 +0530 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: Hi Rahul, Not sure if you'd be interested, however, david beazly who was here a couple of weeks back, has a straight forward implementation of Lex and Yacc in Python named: PLY : http://www.dabeaz.com/ply/index.html See if this interests you. This might be easier for the porting part, and then adding other stuff over this can be continued in Python. Vishal On Mon, May 24, 2010 at 12:10 PM, Noufal Ibrahim wrote: > On Mon, May 24, 2010 at 12:06 PM, Rahul R wrote: > > Thanks Kunal , i am happy as well as sad , happy because my job has > become > > much simpler and sad because everytime i think of a novel (honeslty ) > idea > > .. i see someone else has already executed it .. :( > > There are still lots of things to do. Read the other code and learn > from it, perhaps implement your own thing and compare it with the > other to see if there are things to learn. Reinventing the wheel is > usually pointless but as an educational experience, I think it's nice. > > > > -- > ~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 eknath.iyer at gmail.com Mon May 24 15:43:26 2010 From: eknath.iyer at gmail.com (Eknath Venkataramani) Date: Mon, 24 May 2010 19:13:26 +0530 Subject: [BangPypers] extracting unicode text from pdfs Message-ID: I have around 45 pdfs to convert into raw text containing text in _HINDI_ . When I use the xpdf package, the generated text is very weird, so I'd like to write a program which would convert the pdf text into Unicode text as it is. The fonts used in the pdfs: name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- APKAPP+Usha-Bold Type 1C yes yes yes 72 0 APKBBB+Agenda-Light Type 1C yes yes yes 77 0 APKBGF+Usha Type 1C yes yes yes 41 0 APKBKJ+Agenda-Medium Type 1C yes yes yes 46 0 APKBON+Agenda-Bold Type 1C yes yes yes 49 0 For eg. in the pdf: ???? ??????? ?? when I use pdftotext, I get some very weird symbols: '... .......' while i'd like '???? ??????? ??' to be the output -- Eknath Venkataramani From dhananjay.nene at gmail.com Mon May 24 16:21:57 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 24 May 2010 19:51:57 +0530 Subject: [BangPypers] extracting unicode text from pdfs In-Reply-To: References: Message-ID: You may want to try out pdfminer. Its very similar to xpdf in structure and should give you the parsed data into unicode directly. On Mon, May 24, 2010 at 7:13 PM, Eknath Venkataramani wrote: > I have around 45 pdfs to convert into raw text containing text in _HINDI_ . > When I use the xpdf package, the generated text is very weird, so I'd like > to write a program which would convert the pdf text into Unicode text as it > is. > > The fonts used in the pdfs: > name type emb sub uni object > ID > ------------------------------------ ----------------- --- --- --- > --------- > APKAPP+Usha-Bold Type 1C yes yes yes 72 > 0 > APKBBB+Agenda-Light Type 1C yes yes yes 77 > 0 > APKBGF+Usha Type 1C yes yes yes 41 > 0 > APKBKJ+Agenda-Medium Type 1C yes yes yes 46 > 0 > APKBON+Agenda-Bold Type 1C yes yes yes 49 > 0 > > For eg. in the pdf: ???? ??????? ?? > when I use pdftotext, I get some very weird symbols: '... > .......' > while i'd like '???? ??????? ??' to be the output > > > -- > Eknath Venkataramani > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From gora at srijan.in Mon May 24 17:08:04 2010 From: gora at srijan.in (Gora Mohanty) Date: Mon, 24 May 2010 20:38:04 +0530 Subject: [BangPypers] extracting unicode text from pdfs In-Reply-To: References: Message-ID: <20100524203804.55406a18@ibis> On Mon, 24 May 2010 19:13:26 +0530 Eknath Venkataramani wrote: > I have around 45 pdfs to convert into raw text containing text in > _HINDI_ . When I use the xpdf package, the generated text is very > weird, so I'd like to write a program which would convert the pdf > text into Unicode text as it is. Probably because xpdf does not have the fonts available. Are these installed on your system? > The fonts used in the pdfs: [...] APKAPP+Usha-Bold [...] Are you sure that these are indeed Unicode fonts, as your table seems to suggest? Would it be possible to share a PDF, or a page or two from one? Regards, Gora From eknath.iyer at gmail.com Mon May 24 17:15:45 2010 From: eknath.iyer at gmail.com (Eknath Venkataramani) Date: Mon, 24 May 2010 20:45:45 +0530 Subject: [BangPypers] extracting unicode text from pdfs In-Reply-To: References: Message-ID: Tried .. didn't work out well enough. The output is same as what I get out of xpdf On Mon, May 24, 2010 at 7:51 PM, Dhananjay Nene wrote: > You may want to try out pdfminer. Its very similar to xpdf in structure and > should give you the parsed data into unicode directly. > > On Mon, May 24, 2010 at 7:13 PM, Eknath Venkataramani < > eknath.iyer at gmail.com > > wrote: > > > I have around 45 pdfs to convert into raw text containing text in _HINDI_ > . > > When I use the xpdf package, the generated text is very weird, so I'd > like > > to write a program which would convert the pdf text into Unicode text as > it > > is. > > > > The fonts used in the pdfs: > > name type emb sub uni > object > > ID > > ------------------------------------ ----------------- --- --- --- > > --------- > > APKAPP+Usha-Bold Type 1C yes yes yes 72 > > 0 > > APKBBB+Agenda-Light Type 1C yes yes yes 77 > > 0 > > APKBGF+Usha Type 1C yes yes yes 41 > > 0 > > APKBKJ+Agenda-Medium Type 1C yes yes yes 46 > > 0 > > APKBON+Agenda-Bold Type 1C yes yes yes 49 > > 0 > > > > For eg. in the pdf: ???? ??????? ?? > > when I use pdftotext, I get some very weird symbols: '... > > .......' > > while i'd like '???? ??????? ??' to be the output > > > > > > -- > > Eknath Venkataramani > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Eknath Venkataramani From eknath.iyer at gmail.com Mon May 24 17:23:06 2010 From: eknath.iyer at gmail.com (Eknath Venkataramani) Date: Mon, 24 May 2010 20:53:06 +0530 Subject: [BangPypers] extracting unicode text from pdfs In-Reply-To: References: Message-ID: On Mon, May 24, 2010 at 7:51 PM, Dhananjay Nene wrote: > You may want to try out pdfminer. Its very similar to xpdf in structure and > should give you the parsed data into unicode directly. > Tried but I got the same output as xpdf. I guess it's because of the point mentioned by Gora- 'you might not have those fonts installed in your system' -- Eknath Venkataramani From indudhar at gmail.com Tue May 25 04:15:05 2010 From: indudhar at gmail.com (Indudhar Devanath) Date: Tue, 25 May 2010 07:45:05 +0530 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: On 24 May 2010 12:06, Rahul R wrote: > Thanks Kunal , i am happy as well as sad , happy because my job has become > much simpler and sad because everytime i think of a novel (honeslty ) idea > .. i see someone else has already executed it .. :( > > David Heinemeier Hansson once said that reuse is over-rated. He wouldn't have invented Ruby on Rails if he felt, "well, someone has already invented what I thought would be cool to do." And many were open source! If you think there were none implemented in Ruby, then think of Django. There were already huge number of web frameworks implemented in Python, yet Adrian and Jacob felt they can do better. There were many web based email solutions before Gmail came to existence. And they did a lot of things differently. They broke rules. I once read that somebody at the US Patent office quit because they thought everything that can be invented has already been invented. Yet, there are lot of patents pending and more to come. Let your novel ideas flow, let them run wild and see what else you can come up with. Change is the only constant and you will always have opportunities. Good luck. - Indudhar From kunal.t2 at gmail.com Tue May 25 04:21:01 2010 From: kunal.t2 at gmail.com (kunal ghosh) Date: Tue, 25 May 2010 07:51:01 +0530 Subject: [BangPypers] python for parsing In-Reply-To: References: Message-ID: > > > Thanks Kunal , i am happy as well as sad , happy because my job has > become > > much simpler and sad because everytime i think of a novel (honeslty ) > idea > > .. i see someone else has already executed it .. :( > My intension of telling about the existing works was to let you know of the possibilities. So that you can leverage their advantages and work on their weaknesses. > > > > David Heinemeier Hansson once said that reuse is over-rated. He wouldn't > have invented Ruby on Rails if he felt, "well, someone has already invented > what I thought would be cool to do." And many were open source! If you > think there were none implemented in Ruby, then think of Django. There > were > already huge number of web frameworks implemented in Python, yet Adrian and > Jacob felt they can do better. There were many web based email solutions > before Gmail came to existence. And they did a lot of things differently. > They broke rules. I once read that somebody at the US Patent office quit > because they thought everything that can be invented has already been > invented. Yet, there are lot of patents pending and more to come. Let > your > novel ideas flow, let them run wild and see what else you can come up with. > Change is the only constant and you will always have opportunities. Good > luck. > +1 and i agree with Indudhar. -- regards ------- Kunal Ghosh Dept of Computer Sc. & Engineering. Sir MVIT Bangalore,India Blog:kunalghosh.wordpress.com Website:www.kunalghosh.net46.net From guruprevails at gmail.com Tue May 25 06:01:58 2010 From: guruprevails at gmail.com (Dattatreya Sharma) Date: Tue, 25 May 2010 09:31:58 +0530 Subject: [BangPypers] Work Shop on Python in Bangalore Message-ID: Dear Friends, Greetings from GuRu Prevails! GuRu Prevails is the only organization in India that offers training program in Machine Learning for MS aspirants and corporate employees. As an add on module we offer a 16 hours workshop on Python. The work-shop will be held at our training facility on Ulsoor starting 3rd July 2010. Students who are interested to learn Python and Machine Learning Can touch base through email @ guruprevails at gmail.com. The last date for registration is 20th May 2010 To know more about students activities at GuRu Prevails watch the video http://www.youtube.com/watch?v=FrA13_5xso0 -Thanks GuRu Prevails Labs On Mon, May 24, 2010 at 4:26 PM, Vishal wrote: > Hi Rahul, > > Not sure if you'd be interested, however, david beazly who was here a > couple > of weeks back, has a straight forward implementation of Lex and Yacc in > Python named: PLY : http://www.dabeaz.com/ply/index.html > See if this interests you. This might be easier for the porting part, and > then adding other stuff over this can be continued in Python. > > Vishal > > > > On Mon, May 24, 2010 at 12:10 PM, Noufal Ibrahim wrote: > > > On Mon, May 24, 2010 at 12:06 PM, Rahul R wrote: > > > Thanks Kunal , i am happy as well as sad , happy because my job has > > become > > > much simpler and sad because everytime i think of a novel (honeslty ) > > idea > > > .. i see someone else has already executed it .. :( > > > > There are still lots of things to do. Read the other code and learn > > from it, perhaps implement your own thing and compare it with the > > other to see if there are things to learn. Reinventing the wheel is > > usually pointless but as an educational experience, I think it's nice. > > > > > > > > -- > > ~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 > -- Thanks, Dattatreya P Sharma Zombie ( Founder - GuRu Prevails.com) +91 9972952810 From venkat83 at gmail.com Tue May 25 19:38:22 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 25 May 2010 23:08:22 +0530 Subject: [BangPypers] File Upload with Progress Bar Message-ID: Well, I have trying this for quiet sometime, sans html5 coolness, but has anyone got a simple file upload with a progress bar running? Either using uploadify or jquploader? I know it sounds simple, and so did i think when i started, but the darn thing just fails to work. I dont want the server be overloaded to track the progress - as in, the client/server need not do async calls. Please share code if you have already done it. -V- From murugadoss2884 at gmail.com Thu May 27 02:49:13 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Thu, 27 May 2010 09:49:13 +0900 Subject: [BangPypers] Extracting tar.gz file Message-ID: Hi all, I am trying to extract tar.gz file using python script. when i do so, i get an error, tar = tarfile.open("sample.tar.gz","r") File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open raise ReadError("file could not be opened successfully") tarfile.ReadError: file could not be opened successfully can anyone say me, what this error exactly and how to solve this? Thanks in advance -- Thanks & Regards V.Murugadoss From dhananjay.nene at gmail.com Thu May 27 03:09:22 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Thu, 27 May 2010 06:39:22 +0530 Subject: [BangPypers] Extracting tar.gz file In-Reply-To: References: Message-ID: Instinctively, the error seems to be opening the file and not with the tarfile decoding. You may want to check if open("sample.tar.gz","r") works. Dhananjay On Thu, May 27, 2010 at 6:19 AM, murugadoss wrote: > Hi all, > > I am trying to extract tar.gz file using python script. when i do so, i get > an error, > > tar = tarfile.open("sample.tar.gz","r") > File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open > raise ReadError("file could not be opened successfully") > tarfile.ReadError: file could not be opened successfully > > can anyone say me, what this error exactly and how to solve this? > > Thanks in advance > -- > Thanks & Regards > V.Murugadoss > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From dhananjay.nene at gmail.com Thu May 27 03:11:13 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Thu, 27 May 2010 06:41:13 +0530 Subject: [BangPypers] Extracting tar.gz file In-Reply-To: References: Message-ID: On Thu, May 27, 2010 at 6:39 AM, Dhananjay Nene wrote: > Instinctively, the error seems to be opening the file and not with the > tarfile decoding. > You may want to check if open("sample.tar.gz","r") works. > > Dhananjay > > > On Thu, May 27, 2010 at 6:19 AM, murugadoss wrote: > >> Hi all, >> >> I am trying to extract tar.gz file using python script. when i do so, i >> get >> an error, >> >> tar = tarfile.open("sample.tar.gz","r") >> File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open >> raise ReadError("file could not be opened successfully") >> tarfile.ReadError: file could not be opened successfully >> >> can anyone say me, what this error exactly and how to solve this? >> >> You may want to check out http://old.nabble.com/Re%3A-tarfile-doesn%27t-work-with-tgz-files--p23576622.html > Thanks in advance >> -- >> Thanks & Regards >> V.Murugadoss >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From murugadoss2884 at gmail.com Thu May 27 03:20:29 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Thu, 27 May 2010 10:20:29 +0900 Subject: [BangPypers] Extracting tar.gz file In-Reply-To: References: Message-ID: Hello, Thanks for the Reply. I am able to extract the file manually, using "tar -xzvf sample.tar.gz" command. -- Thanks & Regards V.Murugadoss On Thu, May 27, 2010 at 10:11 AM, Dhananjay Nene wrote: > On Thu, May 27, 2010 at 6:39 AM, Dhananjay Nene >wrote: > > > Instinctively, the error seems to be opening the file and not with the > > tarfile decoding. > > You may want to check if open("sample.tar.gz","r") works. > > > > Dhananjay > > > > > > On Thu, May 27, 2010 at 6:19 AM, murugadoss >wrote: > > > >> Hi all, > >> > >> I am trying to extract tar.gz file using python script. when i do so, i > >> get > >> an error, > >> > >> tar = tarfile.open("sample.tar.gz","r") > >> File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open > >> raise ReadError("file could not be opened successfully") > >> tarfile.ReadError: file could not be opened successfully > >> > >> can anyone say me, what this error exactly and how to solve this? > >> > >> You may want to check out > > http://old.nabble.com/Re%3A-tarfile-doesn%27t-work-with-tgz-files--p23576622.html > > > > Thanks in advance > >> -- > >> Thanks & Regards > >> V.Murugadoss > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > > > > -- > > -------------------------------------------------------- > > blog: http://blog.dhananjaynene.com > > twitter: http://twitter.com/dnene > > > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From murugadoss2884 at gmail.com Thu May 27 03:21:10 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Thu, 27 May 2010 10:21:10 +0900 Subject: [BangPypers] Extracting tar.gz file In-Reply-To: References: Message-ID: Hello, Thanks for the Reply. I am able to extract the file manually, using "tar -xzvf sample.tar.gz" command. -- Thanks & Regards V.Murugadoss On Thu, May 27, 2010 at 10:09 AM, Dhananjay Nene wrote: > Instinctively, the error seems to be opening the file and not with the > tarfile decoding. > You may want to check if open("sample.tar.gz","r") works. > > Dhananjay > > On Thu, May 27, 2010 at 6:19 AM, murugadoss >wrote: > > > Hi all, > > > > I am trying to extract tar.gz file using python script. when i do so, i > get > > an error, > > > > tar = tarfile.open("sample.tar.gz","r") > > File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open > > raise ReadError("file could not be opened successfully") > > tarfile.ReadError: file could not be opened successfully > > > > can anyone say me, what this error exactly and how to solve this? > > > > Thanks in advance > > -- > > Thanks & Regards > > V.Murugadoss > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From dhananjay.nene at gmail.com Thu May 27 03:26:30 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Thu, 27 May 2010 06:56:30 +0530 Subject: [BangPypers] Extracting tar.gz file In-Reply-To: References: Message-ID: On Thu, May 27, 2010 at 6:51 AM, murugadoss wrote: > Hello, > Thanks for the Reply. > I am able to extract the file manually, using "tar -xzvf sample.tar.gz" > command. > Probably needs a "r;gz" mode instead of just "r" >From the tarfile module doc : tarfile.open(*name=None*, *mode='r'*, *fileobj=None*, *bufsize=10240*, * **kwargs*)? Return a TarFileobject for the pathname *name*. For detailed information on TarFileobjects and the keyword arguments that are allowed, see *TarFile Objects* . *mode* has to be a string of the form 'filemode[:compression]', it defaults to 'r'. Here is a full list of mode combinations: mode action 'r' or 'r:*' Open for reading with transparent compression (recommended). 'r:' Open for reading exclusively without compression. * 'r:gz'* *Open for reading with gzip compression.* 'r:bz2' Open for reading with bzip2 compression. > -- > Thanks & Regards > V.Murugadoss > > > On Thu, May 27, 2010 at 10:09 AM, Dhananjay Nene > wrote: > > > Instinctively, the error seems to be opening the file and not with the > > tarfile decoding. > > You may want to check if open("sample.tar.gz","r") works. > > > > Dhananjay > > > > On Thu, May 27, 2010 at 6:19 AM, murugadoss > >wrote: > > > > > Hi all, > > > > > > I am trying to extract tar.gz file using python script. when i do so, i > > get > > > an error, > > > > > > tar = tarfile.open("sample.tar.gz","r") > > > File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open > > > raise ReadError("file could not be opened successfully") > > > tarfile.ReadError: file could not be opened successfully > > > > > > can anyone say me, what this error exactly and how to solve this? > > > > > > Thanks in advance > > > -- > > > Thanks & Regards > > > V.Murugadoss > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > -------------------------------------------------------- > > blog: http://blog.dhananjaynene.com > > twitter: http://twitter.com/dnene > > _______________________________________________ > > 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 > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From nikunjbadjatya at gmail.com Thu May 27 09:05:51 2010 From: nikunjbadjatya at gmail.com (nikunj badjatya) Date: Thu, 27 May 2010 12:35:51 +0530 Subject: [BangPypers] Program_to_catch_changes_in_webpage Message-ID: Hi All, I am actually using a web interface for outlook mails. Pointing the link to my browser opens a page which shows me all my mails. I had to refresh it to check for a new mail. Many a times I was very late to send a reply because of it. So a thought to make a script which will automatically refresh that web page, and tells to user for any new mails by popping a dialog or making a sound. * It should periodically check for any changes in that webpage . * If their is any, then notification should be sent to user. ( some dialog pop up, or some sound. ) Any idea as to how to proceed on this. ? OS - Linux ( CentOS 5.4) Browser - Firefox, Opera Thanks, Nikunj Badjatya Bangalore, India From nikunjbadjatya at gmail.com Thu May 27 10:19:28 2010 From: nikunjbadjatya at gmail.com (nikunj badjatya) Date: Thu, 27 May 2010 13:49:28 +0530 Subject: [BangPypers] [Tutor] Program_to_catch_changes_in_webpage In-Reply-To: References: Message-ID: Hi, >Is it the standard Outlook Web Access(OWA) tool that >comes with MS Exchange? Yes. >Are you trying to write a script that talks to the web >browser to refresh the page? Or are you looking to monitor >the server? Yes, Talking to the web browser seems to be easiest way without notifying admin. Nikunj Badjatya BTech On Thu, May 27, 2010 at 1:20 PM, Alan Gauld wrote: > "nikunj badjatya" > > > I am actually using a web interface for outlook mails. >> > > * It should periodically check for any changes in that webpage . >> >> * If their is any, then notification should be sent to user. ( some >> dialog >> pop up, or some sound. ) >> > > Is it the standard Outlook Web Access(OWA) tool that > comes with MS Exchange? If so you can adjust your > settings to have both an audible and visual notification > of new mail. > > > OS - Linux ( CentOS 5.4) >> Browser - Firefox, Opera >> > > Although that might only work on IE under Windows... > I've never tried on Linux although the basic GUI works OK there. > > > So a thought to make a script which will automatically refresh that web >> page, and tells to user for any new mails by popping a dialog or making a >> sound. >> > > Are you trying to write a script that talks to the web > browser to refresh the page? Or are you looking to monitor > the server? I suspect the second option is easier, but could > make you unpopular with the admin team! > > HTH, > > -- > Alan Gauld > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > > > _______________________________________________ > Tutor maillist - Tutor at python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > From noufal at gmail.com Thu May 27 10:23:58 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 27 May 2010 13:53:58 +0530 Subject: [BangPypers] Program_to_catch_changes_in_webpage In-Reply-To: References: Message-ID: On Thu, May 27, 2010 at 12:35 PM, nikunj badjatya wrote: > Hi All, > I am actually using a web interface for outlook mails. Pointing the link to > my browser opens a page which shows me all my mails. > I had to refresh it to check for a new mail. ?Many a times I was very late > to send a reply because of it. > So a thought to make a script which will automatically refresh that web > page, and tells to user for any new mails by popping a dialog or making a > sound. > > * ?It should periodically check for any changes in that webpage . > * ?If their is any, then notification should be sent to user. ( some dialog > pop up, or some sound. ) > > Any idea as to how to proceed on this. ? Please don't cross post to multiple mailing lists. If you're using FF to do this, it might make sense to write a small greasemonkey script to do your refresh + notification. -- ~noufal http://nibrahim.net.in From vsapre80 at gmail.com Thu May 27 12:18:30 2010 From: vsapre80 at gmail.com (Vishal) Date: Thu, 27 May 2010 15:48:30 +0530 Subject: [BangPypers] Program_to_catch_changes_in_webpage In-Reply-To: References: Message-ID: Hi, See if this makes sense for your needs: Adrian Holovaty, one of the makers of Django, has solved the Outlook Web Access new email notification problem by using a python module to do some screen scrapping to find out if a new mail has come in. http://www.holovaty.com/writing/331/ Take care, Vishal Sapre On Thu, May 27, 2010 at 1:53 PM, Noufal Ibrahim wrote: > On Thu, May 27, 2010 at 12:35 PM, nikunj badjatya > wrote: > > Hi All, > > I am actually using a web interface for outlook mails. Pointing the link > to > > my browser opens a page which shows me all my mails. > > I had to refresh it to check for a new mail. Many a times I was very > late > > to send a reply because of it. > > So a thought to make a script which will automatically refresh that web > > page, and tells to user for any new mails by popping a dialog or making a > > sound. > > > > * It should periodically check for any changes in that webpage . > > * If their is any, then notification should be sent to user. ( some > dialog > > pop up, or some sound. ) > > > > Any idea as to how to proceed on this. ? > > Please don't cross post to multiple mailing lists. > > If you're using FF to do this, it might make sense to write a small > greasemonkey script to do your refresh + notification. > > > > -- > ~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 srinivas_thatiparthy at akebonosoft.com Thu May 27 13:00:12 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Thu, 27 May 2010 16:30:12 +0530 Subject: [BangPypers] Any compiled all PEP's into pdf Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> Hi list, Does anyone compiled all PEP's into a PDF document or chm file.I searched the internet but didn't get it.If you guys found pdf/chm file, please send the link. TIA, Srinivas Reddy Thatiparthy. From abpillai at gmail.com Thu May 27 13:25:20 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 27 May 2010 16:55:20 +0530 Subject: [BangPypers] Any compiled all PEP's into pdf In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> Message-ID: On Thu, May 27, 2010 at 4:30 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > Hi list, > > Does anyone compiled all PEP's into a PDF document or chm file.I searched > the internet but didn't get it.If you guys found pdf/chm file, please send > the link. > > Why do you need all PEPs compiled into PDF anyway ? If you really need one, I suggest writing a simple script that searches the PEP index, downloads the PEP text files and uses pytext2pdf to convert it to PDFs. If you want a single PDF, concat the peps together and call pytext2pdf on it. pytext2pdf can be obtained from http://code.activestate.com/recipes/532908-text-to-pdf-converter-rewrite/ (yeah, I wrote it, so this is a bit of self-trumpeting!) The PEP index is here. http://www.python.org/dev/peps/ Crawl it using some crawler or Firefox (downthemall) and you can do this. With HarvestMan, the whole thing can be automated with 15 mins of programming. --Anand > TIA, > Srinivas Reddy Thatiparthy. > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Thu May 27 14:02:13 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 27 May 2010 17:32:13 +0530 Subject: [BangPypers] Any compiled all PEP's into pdf In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> Message-ID: On Thu, May 27, 2010 at 4:55 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > > On Thu, May 27, 2010 at 4:30 PM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > >> Hi list, >> >> Does anyone compiled all PEP's into a PDF document or chm file.I searched >> the internet but didn't get it.If you guys found pdf/chm file, please send >> the link. >> >> > Why do you need all PEPs compiled into PDF anyway ? > If you really need one, I suggest writing a simple script that > searches the PEP index, downloads the PEP text files and uses > pytext2pdf to convert it to PDFs. > > If you want a single PDF, concat the peps together and call pytext2pdf > on it. > > pytext2pdf can be obtained from > http://code.activestate.com/recipes/532908-text-to-pdf-converter-rewrite/ > (yeah, I wrote it, so this is a bit of self-trumpeting!) > > The PEP index is here. > > http://www.python.org/dev/peps/ > Crawl it using some crawler or Firefox (downthemall) and you > can do this. With HarvestMan, the whole thing can be automated > with 15 mins of programming. > This felt like a fun thing to do so I actually did it but not from the PEPS index since it didn't give me text files but HTML files. Thankfully the PEPS are available in text format from http://svn.python.org/projects/peps/trunk/, so I just checked out the text files and using some quick work ran text2pdf on a single text file which I created by concatenating all PEP files into a single text file in sorted order. I have uploaded this to http://harvestmanontheweb.com/python/peps_all.pdf. Total time taken for me: 15 mins Enjoy. > > --Anand > > >> TIA, >> Srinivas Reddy Thatiparthy. >> >> >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > --Anand > > > > -- --Anand From anandology at gmail.com Thu May 27 14:43:24 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 27 May 2010 18:13:24 +0530 Subject: [BangPypers] Any compiled all PEP's into pdf In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> Message-ID: > pytext2pdf can be obtained from > http://code.activestate.com/recipes/532908-text-to-pdf-converter-rewrite/ > (yeah, I wrote it, so this is a bit of self-trumpeting!) Wow, that looks interesting. Do you know how to make it work with unicode text? Anand From delegbede at dudupay.com Thu May 27 14:03:26 2010 From: delegbede at dudupay.com (Dipo Elegbede) Date: Thu, 27 May 2010 13:03:26 +0100 Subject: [BangPypers] HELLO WORLD Message-ID: This is about my first mail to this group and so I think it is just reasonable to start with the ritual incantation. HELLO WORLD. I am new in Python and I'm already getting help from similar mailing group. I have however come to conclude I need a one on one tutor to help me out. Someone had been doing that for a while but I hope to get one or two hands more. I can do some telephone tutorials if need be atleast to compare note. The bottom line is I am desperate about learning Python. I want to know it so well. I'm resident in Nigeria. Is there any organisation known training people for Python? I would appreciate online classes if there are. i hope to start pasting my queries after this mail and responses I get. Besides, I just read about the policy on attachments and it's understandable. If I want to send my codes for examination and possible corrections, how do I get that done. I want to get the best out of this group without running foul of any policy, please help. Thanks and Best Regards, -- Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile Banking Solutions | Transaction Processing | Enterprise Application Development From anil.kumar.848 at gmail.com Thu May 27 15:45:22 2010 From: anil.kumar.848 at gmail.com (anil kumar) Date: Thu, 27 May 2010 19:15:22 +0530 Subject: [BangPypers] HELLO WORLD In-Reply-To: References: Message-ID: Hi, for beginners you could get hold of a book "Byte of python" very good for noobs and for code analysis you could use paste bins like http://pastebin.com and give us a link and some of us can help you with the corrections. regards, Anil On Thu, May 27, 2010 at 5:33 PM, Dipo Elegbede wrote: > This is about my first mail to this group and so I think it is just > reasonable to start with the ritual incantation. > HELLO WORLD. > > I am new in Python and I'm already getting help from similar mailing group. > > I have however come to conclude I need a one on one tutor to help me out. > > Someone had been doing that for a while but I hope to get one or two > hands more. I can do some telephone tutorials if need be atleast to > compare note. > > The bottom line is I am desperate about learning Python. I want to > know it so well. > > I'm resident in Nigeria. Is there any organisation known training > people for Python? I would appreciate online classes if there are. > > i hope to start pasting my queries after this mail and responses I get. > > Besides, I just read about the policy on attachments and it's > understandable. > If I want to send my codes for examination and possible corrections, > how do I get that done. > > I want to get the best out of this group without running foul of any > policy, please help. > > Thanks and Best Regards, > > -- > Elegbede Muhammed Oladipupo > OCA > +2348077682428 > +2347042171716 > www.dudupay.com > Mobile Banking Solutions | Transaction Processing | Enterprise > Application Development > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From murugadoss2884 at gmail.com Thu May 27 16:46:36 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Thu, 27 May 2010 23:46:36 +0900 Subject: [BangPypers] Tcp/ip server client program Message-ID: Hello, I am trying out client/server program in python using both udp and tcp/ip. UDP is working,but for tcp/ip program, i get an error as Traceback (most recent call last): File "./server.py", line 11, in client_socket, address = server_socket.accept() File "/usr/local/lib/python2.5/socket.py", line 172, in accept sock, addr = self._sock.accept() KeyboardInterrupt Help please !! Thanks in advance -- Thanks & Regards V.Murugadoss From delegbede at dudupay.com Thu May 27 17:22:36 2010 From: delegbede at dudupay.com (Dipo Elegbede) Date: Thu, 27 May 2010 16:22:36 +0100 Subject: [BangPypers] HELP ME CHECK Message-ID: Hi all, I was reading through Alan Gauld's website: http://www.alan-g.me.uk/l2p/index.htm Under, Handling files, I copied the following codes and tried to run it but it didn't. I have written to him though but would like to get someone to look at it for me again. I have pasted the code in the pastebin and the link is as follows: http://pastebin.com/g6Ls6p9J. Please help. -- Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile Banking Solutions | Transaction Processing | Enterprise Application Development From punchagan at gmail.com Thu May 27 18:54:25 2010 From: punchagan at gmail.com (Puneeth Chaganti) Date: Thu, 27 May 2010 22:24:25 +0530 Subject: [BangPypers] HELP ME CHECK In-Reply-To: References: Message-ID: On Thu, May 27, 2010 at 8:52 PM, Dipo Elegbede wrote: > Hi all, > > I was reading through Alan Gauld's website: > http://www.alan-g.me.uk/l2p/index.htm > Under, Handling files, I copied the following codes and tried to run > it but it didn't. > I have written to him though but would like to get someone to look at > it for me again. > I have pasted the code in the pastebin and the link is as follows: > > http://pastebin.com/g6Ls6p9J. This is how I learnt to use the interpreter and the Error messages it shows, to debug my code. # Run your script. # The interpreter barks, saying - NameError: global name 'readBook' is not defined # "But, I did define readBook, didn't I?", you wonder. Go back and confirm. You find a readBook. You are confused. # You run the script again, but the interpreter barks again! You are even more confused. # You re-read the error message. NameError: global name 'readBook' is not defined. You look back at the code more carefully, to find that indeed 'readBook' has not been defined. It was 'readbook' that was defined. readbook is not the same as readBook. Python is case sensitive. HTH ~punchagan > > Please help. > -- > Elegbede Muhammed Oladipupo > OCA > +2348077682428 > +2347042171716 > www.dudupay.com > Mobile Banking Solutions | Transaction Processing | Enterprise > Application Development > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Fri May 28 05:04:22 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 28 May 2010 08:34:22 +0530 Subject: [BangPypers] Any compiled all PEP's into pdf In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> Message-ID: <20100528030422.GA3483@remy> On Thu, May 27, 2010 at 04:30:12PM +0530, Srinivas Reddy Thatiparthy wrote: > Does anyone compiled all PEP's into a PDF document or chm file.I > searched the internet but didn't get it.If you guys found pdf/chm > file, please send the link. You got the pdf version from Anand. Active State Distribution compiles the PEPS a CHM version its documentation. It also includes Dive into python. -- Senthil falsie salesman, n: Fuller bust man. From orsenthil at gmail.com Fri May 28 05:26:16 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 28 May 2010 08:56:16 +0530 Subject: [BangPypers] Tcp/ip server client program In-Reply-To: References: Message-ID: <20100528032616.GB3483@remy> On Thu, May 27, 2010 at 11:46:36PM +0900, murugadoss wrote: > I am trying out client/server program in python using both udp and tcp/ip. > UDP is working,but for tcp/ip program, i get an error as Please share the snippet of client and server code. > KeyboardInterrupt means you pressed CNTL+C or something else sent a SIGINT signal. -- Senthil that's a Kludge(TM) It Works(tm) AIX works(TM) no it doesn't => From noufal at gmail.com Fri May 28 07:11:23 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 28 May 2010 10:41:23 +0530 Subject: [BangPypers] Any compiled all PEP's into pdf In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> Message-ID: On Thu, May 27, 2010 at 5:32 PM, Anand Balachandran Pillai wrote: [..] > > This felt like a fun thing to do so I actually did it but not from > the PEPS index since it didn't give me text files but HTML files. > Thankfully the PEPS are available in text format from > http://svn.python.org/projects/peps/trunk/, so I just checked out > the text files and using some quick work ran text2pdf on > a single text file which I created by concatenating all PEP > files into a single text file in sorted order. [..] This is nice and your recipe is certainly useful. One small thing is that the PEPs are originally in rst format. The rst2pdf renderer (at http://code.google.com/p/rst2pdf/) is a reportlab based utility to compile rst files into pdf. It understands the markup and renders it properly (links, TOC etc.). It looks much better than a raw text->pdf conversion. The crawling, combining still has to be done. I've compiled the first PEP here. Take a look http://nibrahim.net.in/pep-0001.pdf -- ~noufal http://nibrahim.net.in From orsenthil at gmail.com Fri May 28 07:42:05 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 28 May 2010 11:12:05 +0530 Subject: [BangPypers] Any compiled all PEP's into pdf In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> Message-ID: <20100528054205.GA3233@remy> On Fri, May 28, 2010 at 10:41:23AM +0530, Noufal Ibrahim wrote: > and renders it properly (links, TOC etc.). It looks much better than > a raw text->pdf conversion. The crawling, combining still has to be Except for the heading in the PEP data. The solution would be to indent it so that it behaves like a pre-formatted text. You can also do a sphinx-quickstart and in the index file, mention all the pep names in the current directory (use your editor facilities instead of script) and then do a make latex;cd _build/latex;make all-pdf. There you go again. One indexed PDF with all PEPS. These are just options available to play with. :) -- Senthil The worst thing about some men is that when they are not drunk they are sober. -- William Butler Yeats From abpillai at gmail.com Fri May 28 09:09:14 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 28 May 2010 12:39:14 +0530 Subject: [BangPypers] Any compiled all PEP's into pdf In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D8339E@astserver3.akebonosoft.com> Message-ID: On Fri, May 28, 2010 at 10:41 AM, Noufal Ibrahim wrote: > On Thu, May 27, 2010 at 5:32 PM, Anand Balachandran Pillai > wrote: > [..] > > > > This felt like a fun thing to do so I actually did it but not from > > the PEPS index since it didn't give me text files but HTML files. > > Thankfully the PEPS are available in text format from > > http://svn.python.org/projects/peps/trunk/, so I just checked out > > the text files and using some quick work ran text2pdf on > > a single text file which I created by concatenating all PEP > > files into a single text file in sorted order. > [..] > > This is nice and your recipe is certainly useful. > > One small thing is that the PEPs are originally in rst format. The > rst2pdf renderer (at http://code.google.com/p/rst2pdf/) is a reportlab > based utility to compile rst files into pdf. It understands the markup > and renders it properly (links, TOC etc.). It looks much better than > a raw text->pdf conversion. The crawling, combining still has to be > done. I've compiled the first PEP here. Take a look > http://nibrahim.net.in/pep-0001.pdf > Yeah, I noticed it was not pure text file and then upon reading further figured out they were in RST format. But the amount of work involved in converting the rst to pdf with proper links/images etc makes this less fun, more hard work, so I opted for the short-cut. The PDF is very readable but no fancy, since it ignores images embedded if any and also has these ugly rst headers floating around. But enough for someone to understand the PEP contents. > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From delegbede at dudupay.com Fri May 28 09:12:17 2010 From: delegbede at dudupay.com (Dipo Elegbede) Date: Fri, 28 May 2010 08:12:17 +0100 Subject: [BangPypers] HELP ME CHECK In-Reply-To: References: Message-ID: Oh My, thanks for the correction. I'll look up the codes again and revert. Thanks peeps. On 5/27/10, Puneeth Chaganti wrote: > On Thu, May 27, 2010 at 8:52 PM, Dipo Elegbede > wrote: >> Hi all, >> >> I was reading through Alan Gauld's website: >> http://www.alan-g.me.uk/l2p/index.htm >> Under, Handling files, I copied the following codes and tried to run >> it but it didn't. >> I have written to him though but would like to get someone to look at >> it for me again. >> I have pasted the code in the pastebin and the link is as follows: >> >> http://pastebin.com/g6Ls6p9J. > > This is how I learnt to use the interpreter and the Error messages it > shows, to debug my code. > > # Run your script. > # The interpreter barks, saying - > NameError: global name 'readBook' is not defined > # "But, I did define readBook, didn't I?", you wonder. Go back and > confirm. You find a readBook. You are confused. > # You run the script again, but the interpreter barks again! You are > even more confused. > # You re-read the error message. NameError: global name 'readBook' is > not defined. You look back at the code more carefully, to find that > indeed 'readBook' has not been defined. It was 'readbook' that was > defined. > > readbook is not the same as readBook. Python is case sensitive. > > HTH > > ~punchagan > > >> >> Please help. >> -- >> Elegbede Muhammed Oladipupo >> OCA >> +2348077682428 >> +2347042171716 >> www.dudupay.com >> Mobile Banking Solutions | Transaction Processing | Enterprise >> Application Development >> _______________________________________________ >> 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 > -- Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile Banking Solutions | Transaction Processing | Enterprise Application Development From murugadoss2884 at gmail.com Fri May 28 09:19:31 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Fri, 28 May 2010 16:19:31 +0900 Subject: [BangPypers] pack data Message-ID: Hello all, I am trying a sample program for send set of data [ kept in array]. I have attached the code below, import struct sendvalues = [181, 98, 11, 01] for i in range(4): snddata = struct.pack('int',int(sendvalue[i])) sendto(sndData,("localhost")) i am getting error as, Traceback (most recent call last): File "./clientudp.py", line 10, in snddata = struct.pack('hhl',sendvalue[i]) File "/usr/local/lib/python2.5/struct.py", line 63, in pack return o.pack(*args) struct.error: pack requires exactly 3 arguments can anyone please tell me, what is the issue and how to solve it. Thank in advance -- Thanks & Regards V.Murugadoss From noufal at gmail.com Fri May 28 09:26:59 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 28 May 2010 12:56:59 +0530 Subject: [BangPypers] pack data In-Reply-To: References: Message-ID: On Fri, May 28, 2010 at 12:49 PM, murugadoss wrote: > Hello all, > > I am trying a sample program for send set of data [ kept in array]. I have > attached the code below, > > import struct > > sendvalues = [181, 98, 11, 01] > for i in range(4): > snddata = struct.pack('int',int(sendvalue[i])) > sendto(sndData,("localhost")) 'int' is not a valid struct.pack format specifier. You'll have to say 'i'. Since you have 4 arguments (all signed integers), you'll have to say 'i'*4. Something like struct.pack('i'*4, *sendvalues) will pack all four integers into a string. The * before sendvalues it to unpack the list into arguments. You can send it then. If you want to send it int by int, you can put snddata = struct.pack('i', sendvalue[i]) in your loop (the int constructor is redundant since all the elements are integers anyway). Also, you wouldn't use "for i in range(4)" to loop through a list in Python. You'd say for i in sendvalues: snddata = struct.pack('i', i) ... > i am getting error as, > > Traceback (most recent call last): > ?File "./clientudp.py", line 10, in > ? ?snddata = struct.pack('hhl',sendvalue[i]) > ?File "/usr/local/lib/python2.5/struct.py", line 63, in pack > ? ?return o.pack(*args) > struct.error: pack requires exactly 3 arguments This is somewhat fundamental. Are you sure you read http://docs.python.org/library/struct.html before trying this? If not, you know what to do. :) -- ~noufal http://nibrahim.net.in From rahul8590 at gmail.com Fri May 28 09:49:17 2010 From: rahul8590 at gmail.com (Rahul R) Date: Fri, 28 May 2010 11:49:17 +0400 Subject: [BangPypers] Tcp/ip server client program In-Reply-To: <20100528032616.GB3483@remy> References: <20100528032616.GB3483@remy> Message-ID: welll i did try a client server program in TCP/IP , from http://www.jroller.com/RickHigh/entry/notes_on_creating_a_socket this tutorial . It helped me a lot , i hope it would help u too. On Fri, May 28, 2010 at 7:26 AM, Senthil Kumaran wrote: > On Thu, May 27, 2010 at 11:46:36PM +0900, murugadoss wrote: > > I am trying out client/server program in python using both udp and > tcp/ip. > > UDP is working,but for tcp/ip program, i get an error as > > Please share the snippet of client and server code. > > > KeyboardInterrupt > > means you pressed CNTL+C or something else sent a SIGINT signal. > > -- > Senthil > > that's a Kludge(TM) > It Works(tm) > AIX works(TM) > no it doesn't > => > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Fri May 28 10:42:46 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 28 May 2010 14:12:46 +0530 Subject: [BangPypers] pack data In-Reply-To: References: Message-ID: On Fri, May 28, 2010 at 12:56 PM, Noufal Ibrahim wrote: > On Fri, May 28, 2010 at 12:49 PM, murugadoss > wrote: > > Hello all, > > > > I am trying a sample program for send set of data [ kept in array]. I > have > > attached the code below, > > > > import struct > > > > sendvalues = [181, 98, 11, 01] > > for i in range(4): > > snddata = struct.pack('int',int(sendvalue[i])) > > sendto(sndData,("localhost")) > Just do this. >>> l=[181, 98, 11, 01] >>> b=struct.pack('H'*4, *l) >>> b '\xb5\x00b\x00\x0b\x00\x01\x00' >>> struct.unpack('H'*4,b) (181, 98, 11, 1) Since your integers are small you can use "unsigned short" for which the specifier is 'H'. If you have any doubts, ask. -- --Anand From murugadoss2884 at gmail.com Sat May 29 09:55:12 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Sat, 29 May 2010 16:55:12 +0900 Subject: [BangPypers] Packing set of character and string Message-ID: Hi, I am trying to pack set of strings, can anyone suggest me a better way to do it. -- Thanks & Regards V.Murugadoss From noufal at gmail.com Sat May 29 10:05:03 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 29 May 2010 13:35:03 +0530 Subject: [BangPypers] Packing set of character and string In-Reply-To: References: Message-ID: On Sat, May 29, 2010 at 1:25 PM, murugadoss wrote: > Hi, > > I am trying to pack set of strings, can anyone suggest me a better way to do > it. Better than what? I'm not sure what you mean by packing. -- ~noufal http://nibrahim.net.in From murugadoss2884 at gmail.com Sat May 29 10:17:02 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Sat, 29 May 2010 17:17:02 +0900 Subject: [BangPypers] Packing string and character Message-ID: Hi all, I want to know how to pack a set of character or string, for example Data = ['Date','time',year',23] ( data can be any combination of string,character,integer ..etc) Pack the data to single message to send in network, Can any suggest me, how to do it Thank in advance -- Thanks & Regards V.Murugadoss From mbaiju at zeomega.com Sat May 29 10:44:28 2010 From: mbaiju at zeomega.com (Baiju M) Date: Sat, 29 May 2010 14:14:28 +0530 Subject: [BangPypers] Packing string and character In-Reply-To: References: Message-ID: On Sat, May 29, 2010 at 1:47 PM, murugadoss wrote: > Hi all, > I want to know how to pack a set of character or string, for example > > Data = ['Date','time',year',23] ( data can be any combination of > string,character,integer ..etc) > > Pack the data to single message to send in network, You mean "Serialization" ? http://en.wikipedia.org/wiki/Serialization Please look at pickle module: http://docs.python.org/library/pickle.html Regards, Baiju M From murugadoss2884 at gmail.com Sat May 29 11:17:40 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Sat, 29 May 2010 18:17:40 +0900 Subject: [BangPypers] splitting the string Message-ID: Hi, I want to split the string using the delimiter, can any please suggest me way to do it in python for example: one;two;three;four (string) i need to split this string using ; like one,two,three,four Thank in advance -- Thanks & Regards V.Murugadoss From jaganadhg at gmail.com Sat May 29 11:21:31 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Sat, 29 May 2010 14:51:31 +0530 Subject: [BangPypers] splitting the string In-Reply-To: References: Message-ID: On Sat, May 29, 2010 at 2:47 PM, murugadoss wrote: > Hi, > > I want to split the string using the delimiter, can any please suggest me > way to do it in python > > for example: > one;two;three;four (string) > > i need to split this string using ; like one,two,three,four > Have you reffered any Python documentation or books or even used Gooogle ? -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From dhananjay.nene at gmail.com Sat May 29 11:23:50 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Sat, 29 May 2010 14:53:50 +0530 Subject: [BangPypers] Simple queries which can be googled for Was: splitting the string Message-ID: On Sat, May 29, 2010 at 2:47 PM, murugadoss wrote: > Hi, > > I want to split the string using the delimiter, can any please suggest me > way to do it in python > > for example: > one;two;three;four (string) > > i need to split this string using ; like one,two,three,four > I am not sure what other in the group think about this, but there are times when doing a quick google search (or referring the docs) is better than posting a query to the mailing list. a. It gets the answer much quicker b. Saves the people in the mailing list from having to read one extra mail. Quick answer to the question above : http://tinyurl.com/298rua2 > > Thank in advance > > -- > Thanks & Regards > V.Murugadoss > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From noufal at gmail.com Sat May 29 11:38:32 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 29 May 2010 15:08:32 +0530 Subject: [BangPypers] Packing string and character In-Reply-To: References: Message-ID: You can json encode the data and send it. On 5/29/10, murugadoss wrote: > Hi all, > I want to know how to pack a set of character or string, for example > > Data = ['Date','time',year',23] ( data can be any combination of > string,character,integer ..etc) > > Pack the data to single message to send in network, > > Can any suggest me, how to do it > Thank in advance > > -- > Thanks & Regards > V.Murugadoss > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Sat May 29 11:48:29 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sat, 29 May 2010 15:18:29 +0530 Subject: [BangPypers] Packing string and character In-Reply-To: References: Message-ID: On Sat, May 29, 2010 at 3:08 PM, Noufal Ibrahim wrote: > You can json encode the data and send it. > Most probably he just means using struct.pack considering his earlier posts. > > On 5/29/10, murugadoss wrote: > > Hi all, > > I want to know how to pack a set of character or string, for example > > > > Data = ['Date','time',year',23] ( data can be any combination of > > string,character,integer ..etc) > > > > Pack the data to single message to send in network, > > > > Can any suggest me, how to do it > > Thank in advance > > > > -- > > Thanks & Regards > > V.Murugadoss > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Sat May 29 11:50:21 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sat, 29 May 2010 15:20:21 +0530 Subject: [BangPypers] Simple queries which can be googled for Was: splitting the string In-Reply-To: References: Message-ID: On Sat, May 29, 2010 at 2:53 PM, Dhananjay Nene wrote: > On Sat, May 29, 2010 at 2:47 PM, murugadoss >wrote: > > > Hi, > > > > I want to split the string using the delimiter, can any please suggest me > > way to do it in python > > > > for example: > > one;two;three;four (string) > > > > i need to split this string using ; like one,two,three,four > > > > I am not sure what other in the group think about this, but there are times > when doing a quick google search (or referring the docs) is better than > posting a query to the mailing list. > +1. The group should not be used like a documentation reference. Most of these questions can be answered yourself by looking up the Python documentation or plain googling or just some afternoon exploration with the Python interactive interpreter. > > a. It gets the answer much quicker > b. Saves the people in the mailing list from having to read one extra mail. > > Quick answer to the question above : http://tinyurl.com/298rua2 > > > > > > > Thank in advance > > > > -- > > Thanks & Regards > > V.Murugadoss > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From gvkalra at gmail.com Sat May 29 12:56:13 2010 From: gvkalra at gmail.com (Gaurav Kalra) Date: Sat, 29 May 2010 16:26:13 +0530 Subject: [BangPypers] Packing string and character Message-ID: Hi Noufal. >From Wikipedia: JSON only handle basic Python types like strings, integers, and collections of basic types, whereas pickle is intended for arbitrary objects. pickle won't be more suitable for what Murugadoss is asking for ? -- With Thanks Gaurav Kalra gvkalra at googlemail.com > Message: 8 > Date: Sat, 29 May 2010 15:08:32 +0530 > From: Noufal Ibrahim > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Packing string and character > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > You can json encode the data and send it. > > On 5/29/10, murugadoss wrote: >> Hi all, >> I want to know how to pack a set of character or string, for example >> >> Data = ['Date','time',year',23] ( data can be any combination of >> string,character,integer ..etc) >> >> Pack the data to single message to send in network, >> >> Can any suggest me, how to do it >> Thank in advance >> >> -- >> Thanks & Regards >> V.Murugadoss >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > -- > ~noufal > http://nibrahim.net.in-- From noufal at gmail.com Sat May 29 16:49:55 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 29 May 2010 20:19:55 +0530 Subject: [BangPypers] Packing string and character In-Reply-To: References: Message-ID: On Sat, May 29, 2010 at 4:26 PM, Gaurav Kalra wrote: > Hi Noufal. > > >From Wikipedia: > JSON only handle basic Python types like strings, integers, and > collections of basic types, whereas pickle is intended for arbitrary > objects. > > pickle won't be more suitable for what Murugadoss is asking for ? For general purpose serialisation, json is better. Pickle is a Python specific format that will necessitate that the remote end be Python (or atleast have a sawn off depickler). Also, unpickling involves something like execution and the data is to be treated as malicious (check out the warning here - http://docs.python.org/library/pickle.html). JSON has no such issues since it's just data . With JSON, the remote end is free to be in whatever language you want which is a good thing. It is possible to jsonify arbitrary types but you'll have to decide how. I'm not sure there's much point in serialising code itself and sending it across a line. Well, maybe for something like an RPC mechanism but even then, it shouldn't be code but some data representing an instruction of some kind. -- ~noufal http://nibrahim.net.in From jeffjosejeff at gmail.com Sat May 29 17:20:59 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sat, 29 May 2010 20:50:59 +0530 Subject: [BangPypers] splitting the string In-Reply-To: References: Message-ID: python strings have a "split" function it works like this. >>> "this is a string".split() ["this", "is", "a", "string"] >>> "one, two, three, four".split(',') ["one", "two", "three", "four"] Note: without any arguments, split function split a string on whitespace. Passing an additional parameter, (like in second example ',') will split a string on that parameter For your case, you just have to do >>> "one;two;three;four".split(';') ["one", "two", "three", "four"] HTH jeff PS: Your question is considered as the most basic. Next time, make an effort to find an answer in official docs or Google. Take my word, python official docs are superb. From abpillai at gmail.com Sun May 30 07:56:07 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 30 May 2010 11:26:07 +0530 Subject: [BangPypers] Packing string and character In-Reply-To: References: Message-ID: On Sat, May 29, 2010 at 8:19 PM, Noufal Ibrahim wrote: > On Sat, May 29, 2010 at 4:26 PM, Gaurav Kalra wrote: > > Hi Noufal. > > > > >From Wikipedia: > > JSON only handle basic Python types like strings, integers, and > > collections of basic types, whereas pickle is intended for arbitrary > > objects. > > > > pickle won't be more suitable for what Murugadoss is asking for ? > > For general purpose serialisation, json is better. Pickle is a Python > specific format that will necessitate that the remote end be Python > (or atleast have a sawn off depickler). Also, unpickling involves > something like execution and the data is to be treated as malicious > (check out the warning here - > http://docs.python.org/library/pickle.html). JSON has no such issues > since it's just data . With JSON, the remote end is free to be in > whatever language you want which is a good thing. > > It is possible to jsonify arbitrary types but you'll have to decide > how. I'm not sure there's much point in serialising code itself and > sending it across a line. Well, maybe for something like an RPC > mechanism but even then, it shouldn't be code but some data > representing an instruction of some kind. > I use a few thumb rules when deciding between JSON and Pickle. 1. If data is to be persisted to disk and not sent out to network, use Pickle, especially when only a Python runtime is involved. 2. If the data has to be portable not just across Python runtimes, use JSON. Finally if I dont have much time to decide what the data format should be in terms of portability, safety etc, I always default to JSON, since that is generally safer. > > -- > ~noufal > http://nibrahim.net.in. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From jaganadhg at gmail.com Sun May 30 18:26:56 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Sun, 30 May 2010 21:56:56 +0530 Subject: [BangPypers] Harvestman error Message-ID: Dear All I was trying to run Harvestman(A Python tool for web harvesting). I got the following error http://pastebin.com/uPzUs0Xw My configuration file is http://pastebin.com/dfhiy2Q6 Can any body help me regarding this. I was trying to harvest my blog with a word filter 'Python' -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From jeffjosejeff at gmail.com Sun May 30 18:53:54 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sun, 30 May 2010 22:23:54 +0530 Subject: [BangPypers] Harvestman error In-Reply-To: References: Message-ID: Let me state at the outset that I have no idea what Harvestman is or what you're trying to acheieve. Looking at the stacktrace, I'll give you some pointers as to what I'd do if I had got this error. 1. File "/usr/lib/python2.6/site-packages/HarvestMan-2.0.4betadev_r253-py2.6.egg/harvestman/lib/rules.py", line 355, in apply_word_filter 2. if self._configobj.wordfilterre.search(data): 3. AttributeError: 'NoneType' object has no attribute 'search' This tells me that self._configobj is None, which clearly it shouldnt be. Your first step should be to identify where is self._configobj gets defined. search for "self._configobj = " or "self._configobj=" in the py files ( that is if its something that gets defined automatically) Since the error comes from one of the library files ( /usr/lib/python2.6/site-packages/HarvestMan-2.0.4betadev_r253-py2.6.egg/harvestman/lib/rules.py) it shows something you've done wrongly. One of the things you should keep in mind while using third party frameworks (Harvestman is some kinda framwork right ? ) it needs to have all things in place to get it working. Read the docs, search google for example programs/code snippets. Another clue is configobj -> "config" .. so this has something to do with config. Probably a bad config file ? I know this is too vague, as I said I have no idea what this Harvestman is. Good Luck /jeff On Sun, May 30, 2010 at 9:56 PM, JAGANADH G wrote: > Dear All I was trying to run Harvestman(A Python tool for web harvesting). > I got the following error > http://pastebin.com/uPzUs0Xw > > My configuration file is http://pastebin.com/dfhiy2Q6 > > Can any body help me regarding this. > > I was trying to harvest my blog with a word filter 'Python' > > -- > ********************************** > JAGANADH G > http://jaganadhg.freeflux.net/blog > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From ramdaz at gmail.com Sun May 30 18:57:49 2010 From: ramdaz at gmail.com (Ramdas S) Date: Sun, 30 May 2010 22:27:49 +0530 Subject: [BangPypers] Harvestman error In-Reply-To: References: Message-ID: On Sun, May 30, 2010 at 10:23 PM, Jeffrey Jose wrote: > Let me state at the outset that I have no idea what Harvestman is or what > > FYI Author of Harvestman Anand Pillai is on this list. -- Ramdas S +91 9342 583 065 From jeffjosejeff at gmail.com Sun May 30 19:20:19 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sun, 30 May 2010 22:50:19 +0530 Subject: [BangPypers] Harvestman error In-Reply-To: References: Message-ID: that's great. I'm sure he'll have better input. On Sun, May 30, 2010 at 10:27 PM, Ramdas S wrote: > On Sun, May 30, 2010 at 10:23 PM, Jeffrey Jose >wrote: > > > Let me state at the outset that I have no idea what Harvestman is or what > > > > > FYI Author of Harvestman Anand Pillai is on this list. > > -- > Ramdas S > +91 9342 583 065 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From delegbede at dudupay.com Sun May 30 20:17:43 2010 From: delegbede at dudupay.com (Dipo Elegbede) Date: Sun, 30 May 2010 19:17:43 +0100 Subject: [BangPypers] PYTHON ON NOKIA E71 Message-ID: Hi all, Pls does anyone know whether I can install python and code on my Nokia E71? I have full access to computer at my office but not at home. This is creating a serious break in my flow of study. With python on my phone,I can learn and code on the fly. Already,I read Alan Gauld's note from my phone browser but I need to start doing stuffs with my phone. If you got an idea or the link, pls bring it on. Thanks and Best regards, -- Sent from my mobile device Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile Banking Solutions | Transaction Processing | Enterprise Application Development From steve at lonetwin.net Sun May 30 22:31:15 2010 From: steve at lonetwin.net (steve) Date: Mon, 31 May 2010 02:01:15 +0530 Subject: [BangPypers] PYTHON ON NOKIA E71 In-Reply-To: References: Message-ID: <4C02CB13.1070501@lonetwin.net> Hi Dipo, On 05/30/2010 11:47 PM, Dipo Elegbede wrote: > Hi all, > Pls does anyone know whether I can install python and code on my Nokia E71? > I have full access to computer at my office but not at home. This is > creating a serious break in my flow of study. > With python on my phone,I can learn and code on the fly. > Already,I read Alan Gauld's note from my phone browser but I need to > start doing stuffs with my phone. > If you got an idea or the link, pls bring it on. http://wiki.opensource.nokia.com/projects/PyS60 I doubt it's feasibility as a learning tool for python by itself, but have fun anyways :) cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From gvkalra at gmail.com Mon May 31 00:22:31 2010 From: gvkalra at gmail.com (Gaurav Kalra) Date: Mon, 31 May 2010 03:52:31 +0530 Subject: [BangPypers] UI Designing Message-ID: Hi. Can you please share what sort of UI Design tools the members on the list currently use for designing web applications ? -- With Thanks Gaurav Kalra gvkalra at googlemail.com From murugadoss2884 at gmail.com Mon May 31 02:26:59 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Mon, 31 May 2010 09:26:59 +0900 Subject: [BangPypers] Extracting zipfile Message-ID: Hi, I am trying to extract a zipfile, using zipfile.extractall(). when i do so, i am getting an error as "AttributeError: 'module' object has no attribute 'extractall' " >>> zipfile.extractall("home/murugadoss/testfile.zip") Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'extractall' I have checked the file using zipfile.is_zipfile(), >>> zipfile.is_zipfile("/home/murugadoss/testfile.zip") True can anyone please help me. -- Thanks & Regards V.Murugadoss From rmathews at gmail.com Mon May 31 04:00:50 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Mon, 31 May 2010 07:30:50 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 05:56, murugadoss wrote: >>>> zipfile.extractall("home/murugadoss/testfile.zip") > Traceback (most recent call last): > ?File "", line 1, in > AttributeError: 'module' object has no attribute 'extractall' http://docs.python.org/library/zipfile.html#zipfile.ZipFile.extractall `extractall' is a method on ZipFile objects. You might need to do something like: z = zipfile.ZipFile(path_to_file) z.extractall(...) From jeffjosejeff at gmail.com Mon May 31 05:02:01 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Mon, 31 May 2010 08:32:01 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: Dear Murugadoss, If you're starting out Python, I highly recommend IPython ( http://ipython.scipy.org/moin/ ). With its excellent tab completion, you would never run into an "AttributeError" /jeff On Mon, May 31, 2010 at 7:30 AM, Roshan Mathews wrote: > On Mon, May 31, 2010 at 05:56, murugadoss > wrote: > >>>> zipfile.extractall("home/murugadoss/testfile.zip") > > Traceback (most recent call last): > > File "", line 1, in > > AttributeError: 'module' object has no attribute 'extractall' > > http://docs.python.org/library/zipfile.html#zipfile.ZipFile.extractall > > `extractall' is a method on ZipFile objects. > > You might need to do something like: > z = zipfile.ZipFile(path_to_file) > z.extractall(...) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Mon May 31 05:28:41 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 31 May 2010 08:58:41 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: <20100531032841.GA4403@remy> On Mon, May 31, 2010 at 08:32:01AM +0530, Jeffrey Jose wrote: > Dear Murugadoss, > > If you're starting out Python, I highly recommend IPython ( > http://ipython.scipy.org/moin/ ). With its excellent tab completion, you > would never run into an "AttributeError" I doubt. We better recommend him to read some docs and tutorial material to 'understand' what is really happening. -- Senthil You can learn many things from children. How much patience you have, for instance. -- Franklin P. Jones From noufal at gmail.com Mon May 31 07:35:44 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 31 May 2010 11:05:44 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 8:32 AM, Jeffrey Jose wrote: > Dear Murugadoss, > > If you're starting out Python, I highly recommend IPython ( > http://ipython.scipy.org/moin/ ). With its excellent tab completion, you > would never run into an ?"AttributeError" -1. Tab completion is there in the standard interpreter and ipython is not a substitute for reading the documentation and going through the tutorial which evidently the OP has not done. -- ~noufal http://nibrahim.net.in From jeffjosejeff at gmail.com Mon May 31 11:25:12 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Mon, 31 May 2010 14:55:12 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: Correct me if I'm wrong but tab-completion doesn't work out of the box for standard python interpreter. On Mon, May 31, 2010 at 11:05 AM, Noufal Ibrahim wrote: > On Mon, May 31, 2010 at 8:32 AM, Jeffrey Jose > wrote: > > Dear Murugadoss, > > > > If you're starting out Python, I highly recommend IPython ( > > http://ipython.scipy.org/moin/ ). With its excellent tab completion, you > > would never run into an "AttributeError" > > -1. Tab completion is there in the standard interpreter and ipython is > not a substitute for reading the documentation and going through the > tutorial which evidently the OP has not done. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From jeffjosejeff at gmail.com Mon May 31 11:28:40 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Mon, 31 May 2010 14:58:40 +0530 Subject: [BangPypers] UI Designing In-Reply-To: References: Message-ID: For UI design, I 1. Start off with pen and paper, quickly mock up several designs and interaction patterns 2. Proceed onto Photoshop/Illustrator to get a feel of how things would "look" at the end. Repeat 1 and 2 over and over Once I'm ok with a design, I proceed to the next phase, probably writing some code. /jeff On Mon, May 31, 2010 at 3:52 AM, Gaurav Kalra wrote: > Hi. > > Can you please share what sort of UI Design tools the members on the > list currently use for designing web applications ? > > > -- > With Thanks > Gaurav Kalra > gvkalra at googlemail.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Mon May 31 11:32:26 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 31 May 2010 15:02:26 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: <20100531093226.GA8069@remy> On Mon, May 31, 2010 at 02:55:12PM +0530, Jeffrey Jose wrote: > Correct me if I'm wrong but tab-completion doesn't work out of the box for > standard python interpreter. You are right. Tab Completion does not work out of box for standard python interpreter. But IDLE has auto-completion on . (os. will give all supported methods and parameters for os module). -- Senthil Sometimes a cigar is just a cigar. -- Sigmund Freud From abpillai at gmail.com Mon May 31 11:34:32 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 31 May 2010 15:04:32 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 2:55 PM, Jeffrey Jose wrote: > Correct me if I'm wrong but tab-completion doesn't work out of the box for > standard python interpreter. > Not by default. But it is quite easy to enable. http://docs.python.org/library/rlcompleter.html > > -- --Anand From ankur at thinklabs.in Mon May 31 11:40:26 2010 From: ankur at thinklabs.in (Ankur Gupta) Date: Mon, 31 May 2010 15:10:26 +0530 Subject: [BangPypers] UI Designing In-Reply-To: References: Message-ID: Pencil is a firefox extension with which you can make wireframes. If you want to make wireframes that look like paper prototypes then just search for stencils. On Mon, May 31, 2010 at 3:52 AM, Gaurav Kalra wrote: > Hi. > > Can you please share what sort of UI Design tools the members on the > list currently use for designing web applications ? > > > -- > With Thanks > Gaurav Kalra > gvkalra at googlemail.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Mon May 31 11:46:35 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 31 May 2010 15:16:35 +0530 Subject: [BangPypers] Harvestman error In-Reply-To: References: Message-ID: On Sun, May 30, 2010 at 9:56 PM, JAGANADH G wrote: > Dear All I was trying to run Harvestman(A Python tool for web harvesting). > I got the following error > http://pastebin.com/uPzUs0Xw > > My configuration file is http://pastebin.com/dfhiy2Q6 > > Can any body help me regarding this. > > I was trying to harvest my blog with a word filter 'Python' > There is no word filter anymore. You hit upon a bug which seems to still apply the word-filter code :) For filtering based on words or regular expressions on the page content, you can implement a custom crawler. It is pretty easy and a sample already exists. Just modify the code to suit the keyword(s) you want to filter. Look for "searchingcrawler.py" inside apps/samples folder and modify the code. > > -- > ********************************** > JAGANADH G > http://jaganadhg.freeflux.net/blog > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From steve at lonetwin.net Mon May 31 11:53:02 2010 From: steve at lonetwin.net (steve) Date: Mon, 31 May 2010 15:23:02 +0530 Subject: [BangPypers] UI Designing In-Reply-To: References: Message-ID: <4C0386FE.6080408@lonetwin.net> Hi, Please, please, please ..do not top post ! On 05/31/2010 02:58 PM, Jeffrey Jose wrote: > For UI design, I > > 1. Start off with pen and paper, quickly mock up several designs and > interaction patterns > 2. Proceed onto Photoshop/Illustrator to get a feel of how things would > "look" at the end. > > Repeat 1 and 2 over and over > > Once I'm ok with a design, I proceed to the next phase, probably writing > some code. > I stumbled upon this recently which might help with 1 and 2: http://konigi.com/tools/graph-paper cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From kgthegreat at gmail.com Mon May 31 11:53:54 2010 From: kgthegreat at gmail.com (Kumar Gaurav) Date: Mon, 31 May 2010 15:23:54 +0530 Subject: [BangPypers] UI Designing In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 3:52 AM, Gaurav Kalra wrote: > Hi. > > Can you please share what sort of UI Design tools the members on the > list currently use for designing web applications ? If you are talking about some quick wireframes and prototyping then check out http://www.balsamiq.com/builds/mockups-web-demo/ The free demo version also might suffice in lot of cases. Balsamiq also has a useful tool in their market place which allows you to convert the image to html. -- Kumar Gaurav Latest Post -- Gitting things right http://wp.me/pbU2Q-2j From steve at lonetwin.net Mon May 31 11:57:20 2010 From: steve at lonetwin.net (steve) Date: Mon, 31 May 2010 15:27:20 +0530 Subject: [BangPypers] UI Designing In-Reply-To: <4C0386FE.6080408@lonetwin.net> References: <4C0386FE.6080408@lonetwin.net> Message-ID: <4C038800.7080401@lonetwin.net> Hi, addendum ... On 05/31/2010 03:23 PM, steve wrote: > Hi, > > [...snip...] > I stumbled upon this recently which might help with 1 and 2: > http://konigi.com/tools/graph-paper > I am not a designer, but a quick google threw up this: http://www.geekchix.org/blog/2010/01/03/a-collection-of-printable-sketch-templates-and-sketch-books-for-wireframing/ which might be interesting too ! cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From jaganadhg at gmail.com Mon May 31 12:01:38 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Mon, 31 May 2010 15:31:38 +0530 Subject: [BangPypers] Harvestman error In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 3:16 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Sun, May 30, 2010 at 9:56 PM, JAGANADH G wrote: > > > Dear All I was trying to run Harvestman(A Python tool for web > harvesting). > > I got the following error > > http://pastebin.com/uPzUs0Xw > > > > My configuration file is http://pastebin.com/dfhiy2Q6 > > > > Can any body help me regarding this. > > > > I was trying to harvest my blog with a word filter 'Python' > > > > There is no word filter anymore. You hit upon a bug which seems to > still apply the word-filter code :) > > For filtering based on words or regular expressions on the page content, > you can implement a custom crawler. It is pretty easy and a sample > already exists. Just modify the code to suit the keyword(s) you want > to filter. > > Look for "searchingcrawler.py" inside apps/samples folder and > modify the code. > > Thanks Anand . I will try this -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From rmathews at gmail.com Mon May 31 12:11:16 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Mon, 31 May 2010 15:41:16 +0530 Subject: [BangPypers] UI Designing In-Reply-To: <4C038800.7080401@lonetwin.net> References: <4C0386FE.6080408@lonetwin.net> <4C038800.7080401@lonetwin.net> Message-ID: On Mon, May 31, 2010 at 15:27, steve wrote: > http://www.geekchix.org/blog/2010/01/03/a-collection-of-printable-sketch-templates-and-sketch-books-for-wireframing/ > That's a very nice find, Steve. Although I guess it's something that only the artistically inclined could use well. I usually prefer text ("there's this input, which will respond so to valid input, and so to invalid input") and boxes and arrows on paper/whiteboard. Roshan Mathews From noufal at gmail.com Mon May 31 13:35:23 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 31 May 2010 17:05:23 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 2:55 PM, Jeffrey Jose wrote: > Correct me if I'm wrong but tab-completion doesn't work out of the box for > standard python interpreter. Not by default but you need to stick 2 or 3 lines into your startup file to get it going. -- ~noufal http://nibrahim.net.in From fslash8 at gmail.com Mon May 31 13:41:07 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Mon, 31 May 2010 17:11:07 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: You could try Dream Pie, its from the same guy who worked on code completion for idle. Its a pretty cool replacement for both IDLE and out of the box interpreter. -- shiv From murugadoss2884 at gmail.com Mon May 31 14:04:12 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Mon, 31 May 2010 21:04:12 +0900 Subject: [BangPypers] packing floating data Message-ID: Hi all, I am trying to pack a float value like 45.90,43.78,543.87. i am using struct.pack( ) function. When i unpack (using struct.unpack) and print it i am getting only real part of the number. Type of the variable is long, var = 45.90 data = struct.pack("!l",float(var)) when i unpack and print, i am getting as 45,0,0,0. I am using byte type while unpacking [struct.unpack("!B",data) ]. 2. How to unpack short and long type data. can anyone help me. Thanks in advance -- Thanks & Regards V.Murugadoss From noufal at gmail.com Mon May 31 14:14:14 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 31 May 2010 17:44:14 +0530 Subject: [BangPypers] packing floating data In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 5:34 PM, murugadoss wrote: > Hi all, > > I am trying to pack a float value like 45.90,43.78,543.87. i am using > struct.pack( ) function. When i unpack (using struct.unpack) and print it i > am getting only real part of the number. > > Type of the variable is long, > var = 45.90 > data = struct.pack("!l",float(var)) http://docs.python.org/library/struct.html#format-characters -- ~noufal http://nibrahim.net.in From murugadoss2884 at gmail.com Mon May 31 14:52:58 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Mon, 31 May 2010 21:52:58 +0900 Subject: [BangPypers] packing floating data In-Reply-To: References: Message-ID: hi, When i pack and unpack, i am able to get real part of the float number. can anyone please tell me, how i can pack both the real and imaginary part. Do i need to split n store the values ?? -- Thanks & Regards V.Murugadoss On Mon, May 31, 2010 at 9:14 PM, Noufal Ibrahim wrote: > On Mon, May 31, 2010 at 5:34 PM, murugadoss > wrote: > > Hi all, > > > > I am trying to pack a float value like 45.90,43.78,543.87. i am using > > struct.pack( ) function. When i unpack (using struct.unpack) and print it > i > > am getting only real part of the number. > > > > Type of the variable is long, > > var = 45.90 > > data = struct.pack("!l",float(var)) > > http://docs.python.org/library/struct.html#format-characters > > > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From srsy70 at gmail.com Mon May 31 15:00:10 2010 From: srsy70 at gmail.com (S.Ramaswamy) Date: Mon, 31 May 2010 18:30:10 +0530 Subject: [BangPypers] Extracting zipfile In-Reply-To: References: Message-ID: > > Not by default but you need to stick 2 or 3 lines into your startup > file to get it going. > > -- > > Tab completion with the standard interpreter doesn't work on Windows even with those 2-3 lines in the startup file - GNU Readline doesn't work on Windows AFAIK. With IPython you can get it working on Windows with the PyReadline ( https://launchpad.net/pyreadline ). DreamPie tab-completion also works OOB on Windows. Ramaswamy From abpillai at gmail.com Mon May 31 15:05:33 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 31 May 2010 18:35:33 +0530 Subject: [BangPypers] packing floating data In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 6:22 PM, murugadoss wrote: > hi, > > When i pack and unpack, i am able to get real part of the float number. can > anyone please tell me, how i can pack both the real and imaginary part. Do > i > need to split n store the values ?? > You seem to keep posting without taking the hints. Noufal's reply was to try and lead you to the answer which is the Python documentation on formatting for struct.pack method. Please don't expect answers to be presented on a platter. All of us are very nice and all that, but if you have habit (as you seem to) of posting basic questions without looking it up yourselves first, it gets a bit tiresome pretty soon. In this case you need to use 'f' as format character. Try this. >>> s=struct.pack('f', 45.90) >>> s '\x9a\x997B' >>> struct.unpack('f',s) (45.900001525878906,) This is mentioned quite clearly in struct module's documentation - Have you ever tried to see that ? Thanks --Anand > > -- > Thanks & Regards > V.Murugadoss > > > On Mon, May 31, 2010 at 9:14 PM, Noufal Ibrahim wrote: > > > On Mon, May 31, 2010 at 5:34 PM, murugadoss > > wrote: > > > Hi all, > > > > > > I am trying to pack a float value like 45.90,43.78,543.87. i am using > > > struct.pack( ) function. When i unpack (using struct.unpack) and print > it > > i > > > am getting only real part of the number. > > > > > > Type of the variable is long, > > > var = 45.90 > > > data = struct.pack("!l",float(var)) > > > > http://docs.python.org/library/struct.html#format-characters > > > > > > > > > > > > -- > > ~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 > -- --Anand From srinivas_thatiparthy at akebonosoft.com Mon May 31 15:21:13 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 31 May 2010 18:51:13 +0530 Subject: [BangPypers] packing floating data References: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833AA@astserver3.akebonosoft.com> Yes, you need to pack real and imaginary parts separately.I mean ,there is no way to pass Complex object to pack method(well,struct performs conversions between Python values and C structs represented as Python bytes objects),so struct.pack('ff',realpart,imaginarypart) #provided both parts are floats. Thanks&Regards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org on behalf of murugadoss Sent: Mon 5/31/2010 6:22 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] packing floating data hi, When i pack and unpack, i am able to get real part of the float number. can anyone please tell me, how i can pack both the real and imaginary part. Do i need to split n store the values ?? -- Thanks & Regards V.Murugadoss On Mon, May 31, 2010 at 9:14 PM, Noufal Ibrahim wrote: > On Mon, May 31, 2010 at 5:34 PM, murugadoss > wrote: > > Hi all, > > > > I am trying to pack a float value like 45.90,43.78,543.87. i am using > > struct.pack( ) function. When i unpack (using struct.unpack) and print it > i > > am getting only real part of the number. > > > > Type of the variable is long, > > var = 45.90 > > data = struct.pack("!l",float(var)) > > http://docs.python.org/library/struct.html#format-characters > > > > > > -- > ~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 abpillai at gmail.com Mon May 31 15:37:26 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 31 May 2010 19:07:26 +0530 Subject: [BangPypers] packing floating data In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 6:22 PM, murugadoss wrote: > hi, > > When i pack and unpack, i am able to get real part of the float number. can > anyone please tell me, how i can pack both the real and imaginary part. Do > i > need to split n store the values ?? > Did I imagine this or did you say "imaginary part" of a float ? Maybe you meant "fractional part" ? > > -- > Thanks & Regards > V.Murugadoss > > > On Mon, May 31, 2010 at 9:14 PM, Noufal Ibrahim wrote: > > > On Mon, May 31, 2010 at 5:34 PM, murugadoss > > wrote: > > > Hi all, > > > > > > I am trying to pack a float value like 45.90,43.78,543.87. i am using > > > struct.pack( ) function. When i unpack (using struct.unpack) and print > it > > i > > > am getting only real part of the number. > > > > > > Type of the variable is long, > > > var = 45.90 > > > data = struct.pack("!l",float(var)) > > > > http://docs.python.org/library/struct.html#format-characters > > > > > > > > > > > > -- > > ~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 > -- --Anand