[BangPypers] Teaching Python in school

2013-09-24 Thread Lakshman Prasad
Here is a teacher in Alaska who is pleased using IPython Notebooks stored on Github for teaching his students : http://peak5390.wordpress.com/2013/09/22/how-ipython-notebook-and-github-have-changed-the-way-i-teach-python/ In the programming community, it should be fairly obvious to us that this is

Re: [BangPypers] Favorite tips/techniques

2013-09-10 Thread Lakshman Prasad
My first random password (until it is replaced with SHA, MD5, bCrypt, whatever): > str(random.random())[2:] '742557965797' On Tue, Sep 10, 2013 at 11:34 AM, Vinayak Hegde wrote: > On Tue, Sep 10, 2013 at 10:45 AM, Noufal Ibrahim >wrote: > > > Anand Chitipothu writes: > > > > [...] > > > > >

Re: [BangPypers] folder initialization issues

2013-08-29 Thread Lakshman Prasad
Such a nice explanation, Anand! On Thu, Aug 29, 2013 at 7:07 AM, Anand Chitipothu wrote: > On Thu, Aug 29, 2013 at 6:55 AM, Adivandhya > wrote: > > > hi friends, > > Im a basic python developer, and i could not understand fully the > > purpose of adding __init__.py in every folder we w

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

2010-12-01 Thread Lakshman Prasad
ib.comments.urls')),) On Wed, Dec 1, 2010 at 5:36 PM, Anubha Dadhich wrote: > 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&#x

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

Re: [BangPypers] regular expression for Indian landline numbers

2010-11-25 Thread Lakshman Prasad
Rather than flexing the regex to everything it *can do*, I'd do the following: * Capture 2 parts of the number separated by a "-" or a whitespace: /^(\d+)[ \-]+(\d+)$/ * Use the captured parts to verify the lengths etc, using simple normal python. On Thu, Nov 25, 2010 at 4:11 PM, Kenneth Gonsalve

Re: [BangPypers] silly question regarding virtualenv

2010-08-02 Thread Lakshman Prasad
> Now how do I install virtualenv under python2.6? $ cd virtualenv/ $ path/to/python2.6 setup.py install Or just symlink it, $ ln -s path/to/virtualenv/sources /path/to/python2.6/dist-packages/ Assuming the unstable repo replaces and updates the python to 2.6, it is just the normal "python setu

Re: [BangPypers] Request for session

2010-07-31 Thread Lakshman Prasad
which is specifically in my area of expertise. On Fri, Jul 30, 2010 at 11:35 PM, Senthil Kumaran wrote: > On Fri, Jul 30, 2010 at 11:28 PM, Lakshman Prasad > wrote: > > > > I would find a talk on the lines of "Data Structures and Algorithms using > > Python" in

[BangPypers] Request for session

2010-07-30 Thread Lakshman Prasad
I would find a talk on the lines of "Data Structures and Algorithms using Python" interesting. No body has submitted it so far: http://in.pycon.org/2010/talks I am sure there are people on this list that have expertise to do that. I am just planting an idea and encouraging someone to do that! The

Re: [BangPypers] July meetup

2010-07-27 Thread Lakshman Prasad
Hi, I have been looking forward to attending a BangPypers meet. I am going to be in Bangalore this Saturday and can co-ordinate efforts to help organize it. On Tue, Jul 27, 2010 at 10:32 PM, Santosh Rajan wrote: > Hi All, > > I have volunteered to help out in setting up this next meetup. This i

Re: [BangPypers] Weekly meeting - IIMB - New Venue

2010-05-21 Thread Lakshman Prasad
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

Re: [BangPypers] Weekly meeting - IIMB - New Venue

2010-05-21 Thread Lakshman Prasad
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 < abpil...@gmail.com> wrote: > On Fri, May 21, 2010 at 11:03 AM, Saju Pillai wrote: > > > Hello, > > > > Idea Device is a startup based i

Re: [BangPypers] why is round() not working?

2010-02-19 Thread Lakshman Prasad
It is a standard IEEE-754 representation: http://en.wikipedia.org/wiki/IEEE_754. This is the same that is followed by most platforms. In this representation, there are 53 bits available to store the precision; so the closest number to the actual number is represented. The arithmetic of floating p

Re: [BangPypers] in CGI using getcwd

2009-11-23 Thread Lakshman Prasad
Yes, os.getcwd() does not give the directory where your code is located, but where the call happens from. Otherwise it would always point to the where python is installed on your system. In order to get the directory of where the code is, you should something like follows: this_file = os.path

Re: [BangPypers] Best Python IDE with compiler

2009-11-12 Thread Lakshman Prasad
I am a happy WingIDE Professional customer. It is simply the best IDE for Python today. Plus it has VI mode, that I like, and a lot of other features, some of it I have described here: http://stackoverflow.com/questions/81584/what-ide-to-use-for-python/495355#495355 On Thu, Nov 12, 2009 at 1:59 P

Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Lakshman Prasad
On a similar note, here's a question I recently asked and obtained good input about tail recursion optimization. http://stackoverflow.com/questions/1414581/python-recursive-program-to-prime-factorize-a-number On Wed, Oct 21, 2009 at 1:14 PM, Sidharth Kuruvila < sidharth.kuruv...@gmail.com> wrote:

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

2009-06-13 Thread Lakshman Prasad
> Take TCS, they have 50K java programmers- they can't afford to retrain them. It is not so much the effort involved to retrain in a particular programming language as it is to change the prevelant culture. I am curious to see how they change and adapt, as I am skeptical that the cost difference ad

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

2009-06-13 Thread Lakshman Prasad
This is not the first time someone has questioned, why it is Indians most often caught asking questions without a little basic research. There has been an interesting discussion on this topic on reddit recently. http://www.reddit.com/r/programming/comments/7wnha/more_hword_confusion_a_blog_post_ab

Re: [BangPypers] Fwd: [PyCon-Organizers] Global PyCon open space on Sunday

2009-03-28 Thread Lakshman Prasad
You guys are ay Pycon? Wow! On Sat, Mar 28, 2009 at 7:08 AM, Senthil Kumaran wrote: > Baiju / Pradeep, > > Lets plan to attend this one. > > -- > Senthil > > > > -- Forwarded message -- > From: A.M. Kuchling > Date: Fri, Mar 27, 2009 at 7:06 PM > Subject: [PyCon-Organizers] Globa

Re: [BangPypers] PyCon India IRC Dicussion #2

2009-03-13 Thread Lakshman Prasad
Rather than having Irc limit people's availablity at a particular time, could we have discussion on friendfeed? Like the discussion in between emails and irc. And yea, i ve created a bangpypers room on friendfeed. On 3/13/09, Kenneth Gonsalves wrote: > On Friday 13 March 2009 18:23:51 Parthan SR

Re: [BangPypers] IRC Logs

2009-03-03 Thread Lakshman Prasad
I created a friendfeed bangpypers room; just in case. The web 2.0 way! http://friendfeed.com/rooms/bangpypers On Tue, Mar 3, 2009 at 10:25 PM, VidA wrote: > Hi, > > Here are the meeting logs : > http://wiki.python.org/moin/BangPypers/IRCLogs/2009March03 > > -- > || Vid || http://www.svaksha.co

Re: [BangPypers] Questions regarding Image cropping

2009-03-02 Thread Lakshman Prasad
Gimp provides more tools to achieve different Image processing effects. It is script-able in Python. U may want to consider Gimp + Python: http://www.jamesh.id.au/software/pygimp/ Image.show() just calls the picture viewer in the OS. If Ur using windows, U may want to call a function to perform "O

Re: [BangPypers] Open source India

2009-02-27 Thread Lakshman Prasad
+1 for the PyCon India. A 3 day event. I think its high time! If not a Conference or a Track within barcamp, which is next weekend (March 7 and 8) at Yahoo EGL campus, I think we could do with a few more technical sessions of Python. The event this time around is a technology focussed event and ma

Re: [BangPypers] IDEs Presentation (was Re: Do we have any NetBeans IDE for Python users here?)

2009-02-27 Thread Lakshman Prasad
While we are at the discussion about Py IDEs, May I suggest an awesome thread on stackoverflow, discussing about Python IDEs. Here is my 2 cents to that thread: http://stackoverflow.com/questions/81584/what-ide-to-use-for-python/495355#495355 For all professional python developers, I think Wing