[BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Jins Thomas
Hi all, Would somebody advise some good beginner level books on Python, where Object Oriented concepts are also being discussed. May be because I haven't used much of the OO concepts, I'm feeling a bit difficulty in understanding this. Getting a feel like most of the python books deal like reade

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Venkatraman S
Couple of Qs you might want to ask yourself before you venture into OO: # Why do i want to learn OO # What are the advantages of OO # What are the other design paradigms # How good am I with the basics of Python (if not spend sometime learning this) # Does OO and Python go together well? # If I am

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Senthil Kumaran
On Wed, Dec 1, 2010 at 4:55 PM, Venkatraman S wrote: > Couple of Qs you might want to ask yourself before you venture into OO: Please no. Venkat, a -1 to your response as it might confuse a newcomer. IMHO, the questions are not related at all. Jins, forget these questions. Just learn it as you a

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Venkatraman S
On Wed, Dec 1, 2010 at 2:43 PM, Senthil Kumaran wrote: > On Wed, Dec 1, 2010 at 4:55 PM, Venkatraman S wrote: > > Couple of Qs you might want to ask yourself before you venture into OO: > > Please no. Venkat, a -1 to your response as it might confuse a > newcomer. IMHO, the questions are not rel

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Noufal Ibrahim
On Wed, Dec 01 2010, Jins Thomas wrote: > Hi all, > > Would somebody advise some good beginner level books on Python, where > Object Oriented concepts are also being discussed. > > May be because I haven't used much of the OO concepts, I'm feeling a bit > difficulty in understanding this. Getting

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Kenneth Gonsalves
On Wed, 2010-12-01 at 14:25 +0530, Venkatraman S wrote: > Couple of Qs you might want to ask yourself before you venture into > OO: > # Why do i want to learn OO > # What are the advantages of OO > # What are the other design paradigms > # How good am I with the basics of Python (if not spend somet

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Senthil Kumaran
On Wed, Dec 1, 2010 at 5:25 PM, Venkatraman S wrote: > Most of the people(especially newbies) get into OO without knowing what the > language has to offer, and they overdo OO. If they do Python, they are doing OO. So if they over do python, they are overdoing OO. :) > I have seen some dreaded >

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Kenneth Gonsalves
On Wed, 2010-12-01 at 15:11 +0530, Noufal Ibrahim wrote: > > May be because I haven't used much of the OO concepts, I'm feeling a > bit > > difficulty in understanding this. Getting a feel like most of the > python > > books deal like reader has already some conceptual understanding on > Object > >

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Avinash TM
you can go through 'Learning Python' by Mark Lutz (O'REILLY publications) -Avinash On Wed, Dec 1, 2010 at 1:53 PM, Jins Thomas wrote: > Hi all, > > Would somebody advise some good beginner level books on Python, where > Object Oriented concepts are also being discussed. > > May be because I ha

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Sidu Ponnappa
Perhaps you need a single sign-on option? Something like OAuth 2 might help. Best, Sidu. http://c42.in On Wed, Dec 1, 2010 at 11:40 AM, Anubha Dadhich wrote: > Hi, > > Can two django projects be made to communicate with each other and share > the same session, user_authentication etc., either a

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Sidu Ponnappa
> > but does using classes mean one is > doing OOP? > Not necessarily, no. Also, one can do perfectly good OO in languages like javascript or Io which have no classes. To answer the OP's question, assuming you're already a competent progammer in any one language, I'd recommend Fowler's 'Refactorin

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Siddharta G
Yes you can, we do something like what you mentioned. If both projects share the database, and are on the same domain (ie they share the cookie) then you can login in one and be authenticated in the other. Both projects need to be configured to use the same auth backend (its like this by default)

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Anubha Dadhich
On Wed, Dec 1, 2010 at 4:14 PM, Siddharta G wrote: > Yes you can, we do something like what you mentioned. > > If both projects share the database, and are on the same domain (ie they > share the cookie) then you can login in one and be authenticated in the > other. Both projects need to be config

[BangPypers] refactoring

2010-12-01 Thread Kenneth Gonsalves
hi, I know that this has cropped up in a parallel thread, but anyway I would like a new thread on this. In a LUG list a ruby guy made a statement that 'No self respecting developer could function without having read the refactoring book'. How relevant is this to python? I do not see much except ye

Re: [BangPypers] refactoring

2010-12-01 Thread Santosh Rajan
I don't want to start an argument here. But here is my personal take on this. 1) A self respecting developer will NOT need to refactor his code in the first place. 2) Given the movement towards functional programming, you don't need refactoring at all. On Wed, Dec 1, 2010 at 4:33 PM, Kenneth Gons

Re: [BangPypers] refactoring

2010-12-01 Thread Anand Chitipothu
2010/12/1 Santosh Rajan : > I don't want to start an argument here. That is a good way to start an argument. :) > But here is my personal take on this. > > 1) A self respecting developer will NOT need to refactor his code in > the first place. > 2) Given the movement towards functional programmin

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Lakshman Prasad
If I understand what you are saying, You have 2 different projects in django, (in different repos) and you don't want to have user logged in, in each site. The *simplest* way to solve this is to configure the django.contrib.auth of both the projects to use the same database. - And yes, it is a go

[BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread sreedhar ambati
Hi I am new to Python. I am from PHP,Microsoft .net background. Can you tell me the real power behind Python language? What kind of applications we can develop? Please quote some real time projects where industries are using Python Thanks Sreedhar Ambati http://ambatisreedhar.spaces.live.com http

Re: [BangPypers] refactoring

2010-12-01 Thread Sidu Ponnappa
In a LUG list a ruby guy made a statement > that 'No self respecting developer could function without having read > the refactoring book'. How relevant is this to python? > I'd say this is relevant if you're working in an OO language. Refactoring applies anywhere, but the patterns documented in th

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Anubha Dadhich
On Wed, Dec 1, 2010 at 5:16 PM, Lakshman Prasad wrote: > If I understand what you are saying, > > You have 2 different projects in django, (in different repos) and you don't > want to have user logged in, in each site. > They are in the same repository. Yes we do not want user to log in at both t

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Lakshman Prasad
If you have 2 base urls.py, I think correspondingly, you also need 2 settings.py and hence 2 WSGI files. As far as I know, each Apache virtualhost can only take 1 WSGIProcess. So you will need 2 apache processes. - I might be wrong on this, and there might be a better way. The best way, I can thi

Re: [BangPypers] refactoring

2010-12-01 Thread Ramakrishna Reddy
On Wed, Dec 1, 2010 at 4:33 PM, Kenneth Gonsalves wrote: > hi, > > I know that this has cropped up in a parallel thread, but anyway I would > like a new thread on this. In a LUG list a ruby guy made a statement > that 'No self respecting developer could function without having read > the refactori

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Vikas BN
one that I know of is flickr. About the power of the language there are others on this list who can better articulate. -Vikas Sent from my mobile device On Dec 1, 2010 5:25 PM, "sreedhar ambati" wrote: Hi I am new to Python. I am from PHP,Microsoft .net background. Can you tell me the real pow

[BangPypers] Fwd: India Map by State for Viz

2010-12-01 Thread Venkatraman S
I had sent this to Chennai-LUG, any thoughts from this group? -- Forwarded message -- From: Venkatraman S Date: Wed, Dec 1, 2010 at 8:57 AM Subject: India Map by State for Viz To: ILUG-C I was wondering whether there is anything similar for India(which allows us to show viz by

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Baishampayan Ghose
> one that I know of is flickr. About the power of the language there are > others on this list who can better articulate. Flickr is written in PHP. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com ___ BangPypers mailing list BangPypers@python.o

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Ramakrishna Reddy
On Wed, Dec 1, 2010 at 6:05 PM, Vikas BN wrote: > one that I know of is flickr. About the power of the language there are > others on this list who can better articulate. w00t! when did this happen ? last I heard was their own version of PHP regards -- Ramakrishna Reddy                       

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Pradeep Gowda
On Wed, Dec 1, 2010 at 6:52 AM, sreedhar ambati wrote: > Hi > > I am new to Python. > I am from PHP,Microsoft .net background. > Can you tell me the real power behind Python language? > What kind of applications we can develop? > Please quote some real time projects where industries are using Pyth

Re: [BangPypers] Fwd: India Map by State for Viz

2010-12-01 Thread Gora Mohanty
On Wed, Dec 1, 2010 at 6:06 PM, Venkatraman S wrote: > I had sent this to Chennai-LUG, any thoughts from this group? > > -- Forwarded message -- > From: Venkatraman S > Date: Wed, Dec 1, 2010 at 8:57 AM > Subject: India Map by State for Vizilab > To: ILUG-C > > > I was wondering

Re: [BangPypers] refactoring

2010-12-01 Thread Noufal Ibrahim
On Wed, Dec 01 2010, Kenneth Gonsalves wrote: [...] > 'No self respecting developer could function without having read the > refactoring book'. [...] If that's his tone of voice and his attitude, I'd pigeonhole him as a zealot and ignore him. Given Fowlers reputation, I'm sure it's a good book

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Noufal Ibrahim
On Wed, Dec 01 2010, Baishampayan Ghose wrote: >> one that I know of is flickr. About the power of the language there are >> others on this list who can better articulate. > > Flickr is written in PHP. [...] And Cal Henderson's Djangocon keynote on "Why I hate Django" is real fun to watch http:

Re: [BangPypers] Fwd: India Map by State for Viz

2010-12-01 Thread Venkatraman S
On Wed, Dec 1, 2010 at 7:02 PM, Gora Mohanty wrote: > > > http://code.google.com/apis/visualization/documentation/gallery/intensitymap.html > > What do you mean by "anything similar for India"? Are you asking whether > there is an already-existing site that does this, or are you asking whether >

Re: [BangPypers] Fwd: India Map by State for Viz

2010-12-01 Thread Gora Mohanty
On Wed, Dec 1, 2010 at 8:01 PM, Venkatraman S wrote: [...] > Google provides a means by which by just mentioning the country code,  we > get handle to that country and then encode other information(say, literacy > rate, etc etc) > along with it and show as a map with relevant viz. > > I am ref to

[BangPypers] Python version 2.x or 3.x

2010-12-01 Thread Jins Thomas
Hi all, Would like to ask one more doubt regarding which version we should concentrate, considering a newbie to python. Cheers Jins Thomas ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Jeffrey Jose
IIRC, most of the backend of youtube is written in python (unladen swallow ?) /jeff On Wed, Dec 1, 2010 at 7:36 PM, Noufal Ibrahim wrote: > On Wed, Dec 01 2010, Baishampayan Ghose wrote: > > >> one that I know of is flickr. About the power of the language there are > >> others on this list who

Re: [BangPypers] Fwd: India Map by State for Viz

2010-12-01 Thread Venkatraman S
Just an FYI : such maps are called as Choropleth Maps. http://vis.stanford.edu/protovis/ex/choropleth.html -V- ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Python version 2.x or 3.x

2010-12-01 Thread Noufal Ibrahim
On Wed, Dec 01 2010, Jins Thomas wrote: > Hi all, > > Would like to ask one more doubt regarding which version we should > concentrate, considering a newbie to python. [...] Most production software right now is still using 2.* -- ~noufal http://nibrahim.net.in

[BangPypers] [django] django-cms page templates

2010-12-01 Thread Umar Shah
Hi, I have to built a django-cms based app. While I have experience with django I never used django-cms before. I want to create various page type templates that could be used in the system. What is the best way to do it. I couldn't find much information from django-cms docs/ google. Can someone s

Re: [BangPypers] Python version 2.x or 3.x

2010-12-01 Thread Senthil Kumaran
On Wed, Dec 01, 2010 at 10:55:54PM +0530, Jins Thomas wrote: > Hi all, > > Would like to ask one more doubt regarding which version we should > concentrate, considering a newbie to python. If you want to study and get started, start with python3. There is not much difference between the Python2 a

Re: [BangPypers] refactoring

2010-12-01 Thread Kenneth Gonsalves
On Wed, 2010-12-01 at 18:03 +0530, Ramakrishna Reddy wrote: > > the refactoring book'. How relevant is this to python? I do not see > much > > except years ago something called bicycle repair man - is that still > > used? or is this whole thing buzz? > > Its not a Buzz for sure. Refactoring is jus

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Kenneth Gonsalves
On Wed, 2010-12-01 at 18:05 +0530, Vikas BN wrote: > one that I know of is flickr. About the power of the language there > are > others on this list who can better articulate. facebook -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPyper

Re: [BangPypers] Python version 2.x or 3.x

2010-12-01 Thread Kenneth Gonsalves
On Wed, 2010-12-01 at 22:55 +0530, Jins Thomas wrote: > Would like to ask one more doubt regarding which version we should > concentrate, considering a newbie to python. 2.x if you are going into production - 3.x if you are doing it for fun - both if you have the time -- regards Kenneth Gonsalve

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Anubha Dadhich
On Wed, Dec 1, 2010 at 5:59 PM, Lakshman Prasad wrote: > If you have 2 base urls.py, I think correspondingly, you also need 2 > settings.py and hence 2 WSGI files. > > As far as I know, each Apache virtualhost can only take 1 WSGIProcess. So > you will need 2 apache processes. - I might be wrong o

Re: [BangPypers] Object Oriented Python - Advice on books

2010-12-01 Thread Anand Balachandran Pillai
On Wed, Dec 1, 2010 at 3:24 PM, Kenneth Gonsalves wrote: > > > also python in a nutshell. btw, I have been using classes for a long > time - got into it with wxPython - but does using classes mean one is > doing OOP? > Fond memories of this book. Was the first and only Python book I ever bou

Re: [BangPypers] refactoring

2010-12-01 Thread Anand Balachandran Pillai
On Wed, Dec 1, 2010 at 7:33 PM, Noufal Ibrahim wrote: > On Wed, Dec 01 2010, Kenneth Gonsalves wrote: > > > [...] > > > 'No self respecting developer could function without having read the > > refactoring book'. > > I just realized that I am not a self-respecting developer after reading this. W

Re: [BangPypers] Python version 2.x or 3.x

2010-12-01 Thread Anand Balachandran Pillai
On Wed, Dec 1, 2010 at 10:55 PM, Jins Thomas wrote: > Hi all, > > Would like to ask one more doubt regarding which version we should > concentrate, considering a newbie to python. > If your idea is to learn the language and its tools while being on cutting-edge you should start with Python 3.x

Re: [BangPypers] refactoring

2010-12-01 Thread Sateesh Kumar
On Wed, Dec 1, 2010 at 4:33 PM, Kenneth Gonsalves wrote: > hi, > > I know that this has cropped up in a parallel thread, but anyway I would > like a new thread on this. In a LUG list a ruby guy made a statement > that 'No self respecting developer could function without having read > the refactor

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Kumar Gaurav
> Please quote some real time projects where industries are using Python > This could be instructive : http://stackoverflow.com/questions/415627/big-web-2-0-sites-written-in-python -- Kumar Gaurav Latest Post -- CSS and Performance http://bit.ly/css-and-performance _