Re: [BangPypers] file handling

2010-06-14 Thread Sridhar Ratnakumar
On Mon, Jun 14, 2010 at 2:48 AM, Supreet Sethi wrote: > On Mon, 2010-06-14 at 11:48 +0530, madhuri vio wrote: >> a = open("human","rb") >> print a.readlines() >> >> this is the code i have >> written to read a text file but i am unable to .. >> i get a very weird output... >> "PK\x03\x04\x14\x00\x

Re: [BangPypers] ReadError: opening tar file

2010-06-07 Thread Sridhar Ratnakumar
On Sun, Jun 6, 2010 at 6:10 PM, murugadoss wrote: > 1. > This is regarding installing python in 64-bit linux pc. one of the issue, > which we were talking earlier. It was recommended to install python with > 32-bit gcc compiler in 64-bit m/c. > step: > while installing python in 64-bit m/c, try us

Re: [BangPypers] What are the best python books , you have read.

2010-06-06 Thread Sridhar Ratnakumar
On Wed, Jun 2, 2010 at 1:14 AM, Kenneth Gonsalves wrote: > On Wednesday 02 June 2010 10:59:59 Srinivas Reddy Thatiparthy wrote: >> What are the best python books you have read? should be at least  on par >>  with python cookbook. TIA for suggestions. > > python in a nutshell Same here. Also I re

Re: [BangPypers] ReadError: opening tar file

2010-06-06 Thread Sridhar Ratnakumar
Hi Murugadoss, Try Python 2.5.5 (the latest 2.5 release), and if this problem still occurs, please report a bug at bugs.python.org with full steps to reproduce, including the original tarfile as an attachment. C:\Python25\Lib\tarfile.py is a pure Python module; so if you are inclined, you may deb

Re: [BangPypers] Cheap hosting

2010-04-23 Thread Sridhar Ratnakumar
On Thu, Apr 22, 2010 at 10:12 PM, Senthil Kumaran wrote: > On Thu, Apr 22, 2010 at 09:00:09PM -0700, Sridhar Ratnakumar wrote: > > NearlyFreeSpeech.Net > > They don't seem to offer Python interpreter in their hosting. > They do: http://example.nfshost.com/versions.php. Fur

Re: [BangPypers] Cheap hosting

2010-04-22 Thread Sridhar Ratnakumar
NearlyFreeSpeech.Net They recently announced (beta) support arbitrary HTTP servers: http://blog.nearlyfreespeech.net/2010/04/03/pools-arbitrary-http-servers-resource-reservation-and-scalability/

Re: [BangPypers] January user group meeting

2010-01-22 Thread Sridhar Ratnakumar
On Mon, Jan 18, 2010 at 11:41 PM, Noufal Ibrahim wrote: > On Tue, Jan 19, 2010 at 12:47 PM, Baiju M wrote: > >> On Tue, Jan 19, 2010 at 12:09 PM, Noufal Ibrahim wrote: >> > Any ideas? Suggestions? Presentations? Sessions? It would be on 23/24th. >> >> I am fine with 23rd/24th. >> >> I can give a

Re: [BangPypers] Multiple versions of Python

2009-12-01 Thread Sridhar Ratnakumar
On Wed, Nov 11, 2009 at 10:12 PM, Noufal Ibrahim wrote: > Someone on this list asked a while ago about installing and using > different versions of Python on the same machine. Here's something > relevant that might be useful. > http://tartley.com/?p=883 This is not necessary for ActivePython [act

Re: [BangPypers] Help-subversion_python

2009-07-21 Thread Sridhar Ratnakumar
Not rocket science: 1) read the entire contents of the file into memory and write it back (after writing your "hello world") 2) move the file (if it is on disk) to some other location; write "hello world" and append the moved file back to this new file. On Mon, 20 Jul 2009 22:24:00 -0700,

Re: [BangPypers] Help-subversion_python

2009-07-20 Thread Sridhar Ratnakumar
Not rocket science: 1) read the entire contents of the file into memory and write it back (after writing your "hello world") 2) move the file (if it is on disk) to some other location; write "hello world" and append the moved file back to this new file. -srid On Mon, 20 Jul 2009 21:58:

Re: [BangPypers] Responding to people who lack the curiosity

2009-06-28 Thread Sridhar Ratnakumar
Some interesting comments from reddit (alluding to authority and a servile attitude): [quote]'(...)he found Indian programmers to be very reluctant to speak up to management. He said they would rarely, if ever, say they were overburdened with too much work, and instead of asking for help, or

Re: [BangPypers] which is better solution of the question

2009-06-17 Thread Sridhar Ratnakumar
On Tue, Jun 16, 2009 at 9:35 AM, Anand Chitipothu wrote: >> The zip solution is succinct. >> >> Also, by the virtue of being a built-in function zip() should be >> faster than the second approach. > > Complexity of first solution is O(n) > values, items = list(zip(*sorted(zip(values,items), revers

Re: [BangPypers] Responding to people who lack the curiosity

2009-06-11 Thread Sridhar Ratnakumar
On Thu, Jun 11, 2009 at 10:31 PM, Pradeep Gowda wrote: > (...) it might still be worth answering them, In light of this conversation's topic, we certainly wouldn't spoon-feed them, would we? > at the same time also > pointing them to a net etiquette > link [2]. > [2] http://catb.org/esr/faqs/smar

[BangPypers] Responding to people who lack the curiosity

2009-06-11 Thread Sridhar Ratnakumar
On Thu, Jun 4, 2009 at 3:22 AM, Srijayanth Sridhar wrote: > Hello, > > My name is Jayanth. I am new to BangPypers and Python in general. I have > been working on Ruby however so I am not lost or anything. > > I wanted to point out that on ruby-lang several posters from India seem to > have no conce

Re: [BangPypers] Zine for weblogging

2009-04-27 Thread Sridhar Ratnakumar
On 09-04-27 03:07 PM, Kiran Jonnalagadda wrote: One critical pending feature is the ability to upgrade tables automatically. Zine uses SQLAlchemy -- if anyone has the relevant SQLALchemy experience (I don't), please help out. Are you looking for RoR-style migrations? http://packages.python.o

Re: [BangPypers] Help in reading the pdf file

2009-04-03 Thread Sridhar Ratnakumar
On 3/26/09 3:29 PM, M Kumar wrote: I need to read one pdf file and extract data from it. Is there any one can guide me pyPdf? http://pybrary.net/pyPdf/ There is also reportlab toolkit http://www.reportlab.org/rl_toolkit.html ___ BangPypers mail

Re: [BangPypers] Python switches to Mercurial

2009-04-01 Thread Sridhar Ratnakumar
On 31/03/09 12:18 AM, Anand Balachandran Pillai wrote: I wonder if there were some real reasons for choosing hg over git, except perhaps to be different from the kernel folks ? reasons for the move to hg (instead of git or bzr) - http://sayspy.blogspot.com/2009/03/why-python-is-switching-to

[BangPypers] collected postings from the various Python usergroups around the world

2009-03-16 Thread Sridhar Ratnakumar
Should bangpypers be part of this? http://python-groups.blogspot.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Classmethod, Decorators and staticmethod

2009-03-06 Thread Sridhar Ratnakumar
On Thu, Mar 5, 2009 at 7:59 PM, Anand Balachandran Pillai wrote: > Btw, I charge 20K for 2 day training course where I will go through > the entire Python OOP at a single stretch. 2 lunch breaks are allowed > and if required, urgent restroom breaks. Tutorials are extra, > charged at 1000 per head

Re: [BangPypers] how to learn programming

2009-01-24 Thread Sridhar Ratnakumar
On Sat, Jan 24, 2009 at 7:46 AM, Roshan Mathews wrote: > The 'knowing the rules' vs. 'being proficient' argument is > also made in SICP > > ... another good read, (Indian version of the dead trees version > available from Uni

Re: [BangPypers] how to learn programming

2009-01-24 Thread Sridhar Ratnakumar
On Fri, Jan 23, 2009 at 10:13 PM, prasanna diwadkar wrote: > > That was the observation made by professors.I won't say C/c++ will make > better programmer than say java/Python But you already said that: "I have found those how have programmed in C/C++ are generally better(in problem solving

Re: [BangPypers] how to learn programming

2009-01-23 Thread Sridhar Ratnakumar
On Fri, Jan 23, 2009 at 7:22 AM, prasanna diwadkar wrote: > I was talking in general.I am not saying python/java programmers are lesser > quality than C/C++ .Ultimately programming is a programming is a > programming. > Since 80s to late 90s many Indian/foreign(US etc) have been teaching > program

Re: [BangPypers] how to learn programming

2009-01-22 Thread Sridhar Ratnakumar
On Thu, Jan 22, 2009 at 11:29 PM, Darkseid wrote: > >> have found those how have programmed in C/C++ are generally better(in >> problem solving) than who program in other languages. > > I would disagree quite strongly based on my experience. I don't thing C/C++ > programmers are any worse, but th

Re: [BangPypers] how to learn programming

2009-01-22 Thread Sridhar Ratnakumar
On Wed, Jan 21, 2009 at 1:04 PM, Anand Balachandran Pillai wrote: > I never understood language wars. Got a programming > language you love, good. But such comparisons are frankly > a waste of time... I think it is related to instinctually defending one's identity. http://www.units.muohio.edu/

Re: [BangPypers] how to learn programming

2009-01-21 Thread Sridhar Ratnakumar
On Tue, Jan 20, 2009 at 10:37 PM, Venkatraman S wrote: > A language is a tool to solve a problem. Each of the problem(s) has its own > characteristics, which makes us to choose one among the many languages > around - and hence the choice of the best tool to solve that problem. I'd add that practi

Re: [BangPypers] hi all

2009-01-16 Thread Sridhar Ratnakumar
On Mon, Jan 12, 2009 at 7:18 AM, shridhar kyrlageri wrote: > hi.. > i m an engineering student.. i want to be a very good programmer... but i > dont know where to start and what to do... can u please help me.. Hi Shridhar, The best way for me to get started was by *writing* programs. I started

Re: [BangPypers] Suggest me for Desktop development

2008-11-03 Thread Sridhar Ratnakumar
IronPython is good for Windows-only apps. Here is a tutorial to get started - http://www.voidspace.org.uk/ironpython/winforms/index.shtml IronPython can be downloaded from http://www.codeplex.com/IronPython On Sat, Nov 1, 2008 at 11:34 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > Try IronPython if y

Re: [BangPypers] GUI framework in Python...

2008-10-04 Thread Sridhar Ratnakumar
http://www.uxpython.com/ looks like an interesting project. On Sun, Sep 21, 2008 at 4:36 AM, Vishal <[EMAIL PROTECTED]> wrote: > We would like to use a GUI framework with our Python code. > Any pointers by actual users of a GUI framework in Python. The web gives too > many options to easily choose

Re: [BangPypers] GUI framework in Python...

2008-10-04 Thread Sridhar Ratnakumar
On Fri, Oct 3, 2008 at 4:01 AM, Vishal <[EMAIL PROTECTED]> wrote: > I wouldn't recommend option (c) as writing GUI code over > HTML/JavaScript is the most painful development option even if you > were to use those fancy and buggy GUI javascript toolkits. > > Any specific reason for this? The one I

Re: [BangPypers] GUI framework in Python...

2008-10-02 Thread Sridhar Ratnakumar
On Tue, Sep 30, 2008 at 2:22 AM, Vishal <[EMAIL PROTECTED]> wrote: > So the options left are: > a) Use IronPython to get all the Windows Forms stuff > b) Use PythonWin and use MFC to build the GUI > c) Use the Embedded Websever approach and make the web browser as your GUI > host. > d) Use Delphi t

Re: [BangPypers] GUI framework in Python...

2008-09-29 Thread Sridhar Ratnakumar
http://www.awaretek.com/toolkits.html On Sun, Sep 21, 2008 at 4:36 AM, Vishal <[EMAIL PROTECTED]> wrote: > We would like to use a GUI framework with our Python code. > Any pointers by actual users of a GUI framework in Python. The web gives too > many options to easily choose from. > Just trying t

Re: [BangPypers] which framework is better pylon or django

2008-09-10 Thread Sridhar Ratnakumar
On Mon, Sep 8, 2008 at 8:47 PM, Sibtey Mehdi <[EMAIL PROTECTED]> wrote: > Hi > > I am planning to develop a website but I don't have any idea about the > python framework. I found 2 or 3 framework (pylon, Django, turbo Gear) on > net but couldn't understand which one should be used. http://code.go

Re: [BangPypers] Tray Popup

2008-05-23 Thread Sridhar Ratnakumar
On Wed, May 21, 2008 at 5:04 AM, soorjith p <[EMAIL PROTECTED]> wrote: > Hi,,, > > Anyone know how to create tray popup in pygtk? You mean system tray icon? - http://www.pygtk.org/docs/pygtk/class-gtkstatusicon.html ___ BangPypers mailing list BangPyp

Re: [BangPypers] FAQ

2008-05-09 Thread Sridhar Ratnakumar
On Fri, May 9, 2008 at 11:46 AM, Vishal <[EMAIL PROTECTED]> wrote: > A few days back there was a long discussion about IDEs and Editors in > general. > > Please look at that thread. We need a wiki that filers (according to informativeness) and archives the responses for most frequently asked ques

Re: [BangPypers] BangPypers Digest, Vol 8, Issue 15

2008-05-05 Thread Sridhar Ratnakumar
On Mon, May 5, 2008 at 7:09 PM, Siddharta <[EMAIL PROTECTED]> wrote: > Wing is just way better. Its not free, but its worth it, especially if you > do a lot of python programming involving multiple files - > http://www.wingide.com/wingide/index Wing IDE is *free* for open source projects. ___

Re: [BangPypers] My book on Python for newbies

2008-04-04 Thread Sridhar Ratnakumar
On Fri, Apr 4, 2008 at 8:19 PM, Ramdas S <[EMAIL PROTECTED]> wrote: > > But do not stop at the beginners level, and continue the > work on branch out and make it special Right. When MOST of the open source projects are dying/dead, it is indeed an achievement to _continue_ to maintain/improve a pro

Re: [BangPypers] The Jobs Blog

2008-03-10 Thread Sridhar Ratnakumar
On Mon, Mar 10, 2008 at 4:21 AM, Anand Balachandran Pillai <[EMAIL PROTECTED]> wrote: > http://pythonjobs.blogspot.com > It could also be extended to post [JOB] postings from different local mailing lists for Python. bangalore.pythonjobs.com, vancouver.pythonjobs.com, tokyo.pythonjobs.com, etc...

Re: [BangPypers] FOSS India Awards

2008-02-19 Thread Sridhar Ratnakumar
On Feb 19, 2008 6:47 PM, Anand Balachandran Pillai <[EMAIL PROTECTED]> wrote: > FOSS India Awards were declared last friday at OSI week, New Delhi. > However the full list of awardees have been published only today. > > http://www.efytimes.com/efytimes/24867/news.htm > > HarvestMan and Gnusim8085 a

[BangPypers] [JOB] Python hacker required for a Web2.0 project (dot org)

2008-01-14 Thread Sridhar Ratnakumar
Hi, We've been working on a web application that helps user make decisions. We are using Python (Django, jQuery) for development. At this point in time, we need one more developer to continue developing the project (so far I've been the only developer). There is a lot of client-side JavaScript cod

Re: [BangPypers] Python grows in 2007

2008-01-09 Thread Sridhar Ratnakumar
http://blog.showmedo.com/2008/01/08/growth-in-python-project-popularity/ -- http://nearfar.org/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Python grows in 2007

2008-01-04 Thread Sridhar Ratnakumar
'Comments ratio' looks interesting, http://www.ohloh.net/languages?sort=comment_ratio (ohloh covers most active open source projects) The lack of abstractions in Java code is reflected by its huge 35% comment ratio! Python is way below in rank for obvious reasons. :-) -- http://nearfar.org/ ___

Re: [BangPypers] Python grows in 2007

2008-01-03 Thread Sridhar Ratnakumar
On Jan 3, 2008 7:53 PM, Dorai Thodla <[EMAIL PROTECTED]> wrote: > This is a great discussion. We can look at some factors and trends: > > 1. Adoption of Python in leading influencers in marketplace (Third most used > language in Google, IronPython on the rise in Microsoft, Python efforts at > Sun e

Re: [BangPypers] Python Source to Exe

2007-12-28 Thread Sridhar Ratnakumar
On Dec 28, 2007 5:17 PM, karthikeyan r <[EMAIL PROTECTED]> wrote: > > > Hi, > I never heard about this.. what is that setup.py, in that documentation they > mentioned its a > installation script.. where i can get that one.. bdist_wininst only creates the Windows installer. py2exe should work for

Re: [BangPypers] HarvestMan with eventlets

2007-12-26 Thread Sridhar Ratnakumar
On Dec 27, 2007 11:46 AM, Anand Balachandran Pillai <[EMAIL PROTECTED]> wrote: > Hi, > > I have been planning to rewrite HarvestMan using a non-blocking approach > rather than the current design of achieving concurrency using multiple > threads (which do not scale very well in Python). +1 > Also

Re: [BangPypers] Python modules

2007-12-19 Thread Sridhar Ratnakumar
On Dec 19, 2007 6:57 PM, Anand Balachandran Pillai <[EMAIL PROTECTED]> wrote: > > How about writing a plugin to HarvestMan to do that ? It can crawl the PyPI, > and report the metadata for every package. Is wget/curl not enough - http://pypi.python.org/simple/ -- http://nearfar.org/