Re: [BangPypers] [commercial] python/django training

2011-05-15 Thread Pradeep Gowda
On Sun, May 15, 2011 at 1:13 PM, kaushik kalyanaraman wrote: > On Sun, May 15, 2011 at 11:31 AM, Santosh Rajan wrote: >> I have been reading this thread with interest, and I think this whole thread >> is degenerating into a level of immaturity. >> > >> This is not about PAID or FREE. If you can

Re: [BangPypers] Web Application Development

2011-05-14 Thread Pradeep Gowda
On Sat, May 14, 2011 at 11:43 AM, vivek durai wrote: > I've been examining the Pyramid docs recently. Stuff that put me off include > the zope elements... What zope elements? Just because it depends on ONE library called zope.interface, does not make it Zope. Zope.interface is a way of providin

Re: [BangPypers] Django + NoSQL

2011-04-20 Thread Pradeep Gowda
This "SqlAlchmeny" must be a new library then. Is it anything like the SQLAlchemy library that talks only to relational databases? On Wed, Apr 20, 2011 at 12:58 PM, vijay wrote: > I have used Django with SqlAlchmeny. > > > --- On Wed, 20/4/11, Anush Shetty wrote: > > From: Anush Shetty > Subje

Re: [BangPypers] Django + NoSQL

2011-04-20 Thread Pradeep Gowda
All popular NoSQL solutions (Couch, MongoDB, Riak ..) have Python bindings. Core django modules still assume a relational backend. Why the insistence on "django " ? Putting on the Django glasses everytime is not a healthy development. +PG On Wed, Apr 20, 2011 at 7:50 AM, Anush Shetty wrote: >

Re: [BangPypers] How to handle files efficiently in python

2011-03-23 Thread Pradeep Gowda
On Tue, Mar 22, 2011 at 12:49 PM, Noufal Ibrahim wrote: > On Tue, Mar 22 2011, briji...@gmail.com wrote: > >> Hi All, >>         How can I print last five lines of a file using python. The file may >> contain thousands of lines each line may differ in length. > > [...] > > You'd have to use some k

Re: [BangPypers] How to handle files efficiently in python

2011-03-22 Thread Pradeep Gowda
If you are on Linux/Unix, use the tail command $ tail -n 5 somefile.txt On Tue, Mar 22, 2011 at 11:09 AM, briji...@gmail.com wrote: > Hi All, >        How can I print last five lines of a file using python. The file may > contain thousands of lines each line may differ in length. > > > * > Reg

Re: [BangPypers] Suggestion for GUI

2011-01-09 Thread Pradeep Gowda
On Mon, Jan 10, 2011 at 12:26 AM, Narendra Sisodiya wrote: > On Mon, Jan 10, 2011 at 10:38 AM, Pradeep Gowda wrote: > >> On Sun, Jan 9, 2011 at 11:39 PM, Narendra Sisodiya >> wrote: >> > On Mon, Jan 10, 2011 at 7:55 AM, Pradeep Gowda >> wrote: >>

Re: [BangPypers] Suggestion for GUI

2011-01-09 Thread Pradeep Gowda
On Sun, Jan 9, 2011 at 11:39 PM, Narendra Sisodiya wrote: > On Mon, Jan 10, 2011 at 7:55 AM, Pradeep Gowda wrote: > >> On Sun, Jan 9, 2011 at 6:22 PM, Narendra Sisodiya >> wrote: >> > On Mon, Jan 10, 2011 at 3:54 AM, Vivek Khurana > >wrote: >> > >&

Re: [BangPypers] Suggestion for GUI

2011-01-09 Thread Pradeep Gowda
On Sun, Jan 9, 2011 at 6:22 PM, Narendra Sisodiya wrote: > On Mon, Jan 10, 2011 at 3:54 AM, Vivek Khurana wrote: > >> On Mon, Jan 10, 2011 at 3:44 AM, Narendra Sisodiya >> wrote: >> > At the same time, I do not want to use any restricted Libraries.. Can >> > somebody explain license of PyQT ? >>

Re: [BangPypers] Distributing a python project as a binary.

2011-01-08 Thread Pradeep Gowda
On Sat, Jan 8, 2011 at 10:41 AM, kunal wrote: > Hi all, > I am just curious , and do not intend to start any flame wars. > If a company wants to use python in a commercial project and does not want > the source code to go public (i.e closed source ). > How would one go about packaging the python p

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] Access xml file form python script

2010-10-31 Thread Pradeep Gowda
On Sun, Oct 31, 2010 at 7:42 AM, Avinash TM wrote: > Hi All, > > I have created a simple xml document i.e., preferences.xml as follows > > > >   >   Cricket >   >     > >   >   > This looks like xml generated by a Microsoft product, and not by/for a human.. How is this better than:

Re: [BangPypers] ZeroMQ & Python

2010-10-30 Thread Pradeep Gowda
On Sat, Oct 30, 2010 at 12:52 PM, Gopalakrishnan Subramani wrote: > Anybody had experience in using ZeroMQ? I heard that AMQP has flaw in the > design through news posting. When I want to make independent applications > who works based on message queue, it is worth considering ZeroMQ? I am using

Re: [BangPypers] Simplest way to do web programming in python.

2010-10-28 Thread Pradeep Gowda
On Thu, Oct 28, 2010 at 9:31 AM, Noufal Ibrahim wrote: > On Wed, Oct 27 2010, ishan chhabra wrote: > >> Hi all, >> I have a set of scripts in python that visualize a search result (produce an >> image) given a query. I will be building a flash based interface (to surf >> this visualized search spa

Re: [BangPypers] Simplest way to do web programming in python.

2010-10-26 Thread Pradeep Gowda
On Tue, Oct 26, 2010 at 2:54 PM, ishan chhabra wrote: > Hi all, > I have a set of scripts in python that visualize a search result (produce an > image) given a query. I will be building a flash based interface (to surf > this visualized search space) to serve this over the web. I needed the most >

Re: [BangPypers] diffrerence between lambda function and ordinary one

2010-08-06 Thread Pradeep Gowda
On Fri, Aug 6, 2010 at 10:45 AM, Shashwat Anand wrote: > I would prefer LC anyway: > sum(i for i in range(0,10,2)) > 20 why use LC at all? >> sum(range(0,10,2)) ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listin

Re: [BangPypers] diffrerence between lambda function and ordinary one

2010-08-06 Thread Pradeep Gowda
On Fri, Aug 6, 2010 at 10:20 AM, Rahul R wrote: > i was writing some basic code . for understanding lambda functions , but > couldnt understand the difference between a lambda function and an ordinary > function. > > for example > def f (x): return x**2 > ... print f(8) 64 g = l

Re: [BangPypers] python for management studies

2010-06-03 Thread Pradeep Gowda
On Thu, Jun 3, 2010 at 1:34 PM, Pradeep Gowda wrote: > On Thu, Jun 3, 2010 at 1:19 PM, Kenneth Gonsalves wrote: >> hi, >> >> I have been commissioned to create and implement a course (compulsory with 2 >> credits for first semester) on computer programming for business

Re: [BangPypers] python for management studies

2010-06-03 Thread Pradeep Gowda
On Thu, Jun 3, 2010 at 1:19 PM, Kenneth Gonsalves wrote: > hi, > > I have been commissioned to create and implement a course (compulsory with 2 > credits for first semester) on computer programming for business managers for > MBA's in a new B school that is starting up. I envisage something like t

Re: [BangPypers] Regarding web framework in Python

2010-06-03 Thread Pradeep Gowda
On Thu, Jun 3, 2010 at 3:45 AM, Jins Thomas wrote: > On Sat, Jan 30, 2010 at 12:32 AM, Pradeep Gowda wrote: > >> On Fri, Jan 29, 2010 at 3:47 AM, Jins Thomas wrote: >> > Hi All, >> > >> > Would like to ask one suggestion from bangpypers. >> > &g

Re: [BangPypers] Regarding web framework in Python

2010-06-03 Thread Pradeep Gowda
On Thu, Jun 3, 2010 at 3:57 AM, Gora Mohanty wrote: > On Thu, 3 Jun 2010 13:15:12 +0530 > Jins Thomas wrote: > [...] >> Current requirement is like we are planning to build such an >> application which should have >> >> 1.  (Web) client gui  which can connect to a database, run some >> perl scrip

Re: [BangPypers] time in seconds and milliseconds

2010-05-31 Thread Pradeep Gowda
On Mon, May 31, 2010 at 8:33 PM, murugadoss wrote: > how to represent the time in seconds and milliseconds ?A function similar to > gettimeofday() in c. > > gettimeofday(&tv, NULL) http://docs.python.org/library/time.html Which functions have you YOU tried so far? Your attempts at getting other

Re: [BangPypers] Getting process handle and thread handles from DEOS

2010-03-25 Thread Pradeep Gowda
On Mar 25, 2010, at 2:28, "Goudar, Girish" wrote: Is there ant command from the Python script to get these information from the DEOS? What is DEOS? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangp

Re: [BangPypers] Simple python database library

2010-03-05 Thread Pradeep Gowda
On Fri, Mar 5, 2010 at 8:28 AM, Anand Chitipothu wrote: >> Aaargh, few hours after I decide that I run into this. From an intent >> perspective it is much more consistent with what I was looking for - >> http://www.pauldeden.com/2009/01/edendb-thin-flexible-and-fast-python.html >> >> The sample us

Re: [BangPypers] Simple python database library

2010-03-04 Thread Pradeep Gowda
On Wed, Mar 3, 2010 at 9:38 PM, Noufal Ibrahim wrote: > You could use the sql builder component of sql alchemy and skip the > orm part. The web.db part of web.py might work as well. +1 for web.py Having used web.py for data munging tasks, I think that web.db is a step up from writing raw sql wit

[BangPypers] PyCon 2010

2010-02-14 Thread Pradeep Gowda
#x27;m very excited about the sprints, though I haven't chosen any projects to work on. I'm leaving that to serendipity ;) Looking forward to meet fellow Bangpypers! Cheers, Pradeep Gowda ___ BangPypers mailing list BangPypers@python.org http

Re: [BangPypers] Trouble installing psycopg2 in Snow Leopard

2010-02-09 Thread Pradeep Gowda
On Tue, Feb 9, 2010 at 11:07 AM, Diptanu Choudhury wrote: > 2): Symbol not found: _PQbackendPID Looks like a 32/64 bit related mixup. See:http://stubblog.wordpress.com/2009/06/07/installing-psycopg2-on-osx/ Report back if you had any success. ___ Bang

Re: [BangPypers] [OT] Mark Pilgrim on the setup

2010-02-03 Thread Pradeep Gowda
On Wed, Feb 3, 2010 at 10:37 AM, Senthil Kumaran wrote: > On Tue, Feb 02, 2010 at 01:38:14AM -0500, Pradeep Gowda wrote: >> Using xmonad + tmux has been the biggest boost to my productivity last year. > > I found ratpoison and screen to the similar effect. > ratpoison helps you

Re: [BangPypers] [OT] Mark Pilgrim on the setup

2010-02-01 Thread Pradeep Gowda
On Tue, Feb 2, 2010 at 1:12 AM, Varun Thacker wrote: > Very nice read.I want one too! > > Which method is more productive? > Having multiple virtual desktops or having several monitors. I use two monitors (21¨x2, portrait) with a tiling window manager (xmonad) with a terminal multiplexer (tmux) f

Re: [BangPypers] Pointers on where to try for internships

2010-01-31 Thread Pradeep Gowda
Have you considered google summer of code. G soc attracts very good mentors across the python ecosphere. +pg Sent from my iPhone. On Jan 31, 2010, at 3:24, Varun Thacker wrote: I'm Varun and I'm doing computer science at Manipal and I'm in my 2nd .Ive been using python for 1.5 years or so

Re: [BangPypers] Regarding web framework in Python

2010-01-29 Thread Pradeep Gowda
On Fri, Jan 29, 2010 at 3:47 AM, Jins Thomas wrote: > Hi All, > > Would like to ask one suggestion from bangpypers. > > I have a oracle  database in Unix and need to create a web based GUI to > execute some queries/scripts  (via buttons) and save that in csv either in > Unix or in windows. I was t

Re: [BangPypers] Python syntax highligting in Latex beamer

2010-01-29 Thread Pradeep Gowda
On Fri, Jan 29, 2010 at 10:49 AM, JAGANADH G wrote: > Dear All > Can somebody give me a clear example how to highlight Python code in latex > beamer. > I used listings but no result . I do not have the direct answer, but.. Documentation generated by Sphinx/restrcuturedText has python highlightin

Re: [BangPypers] Python/Django issue

2010-01-25 Thread Pradeep Gowda
On Mon, Jan 25, 2010 at 9:51 AM, Noufal Ibrahim wrote: > On Mon, Jan 25, 2010 at 7:29 PM, Praveen Kumar > wrote: > [..] >> However at least IE4.5 for the Mac, will only allow you to send and retrieve >> information to the server that contains the flash file. >> For this reason it is recommended t

Re: [BangPypers] upload

2010-01-04 Thread Pradeep Gowda
On Mon, Jan 4, 2010 at 6:05 AM, steve wrote: > On 01/01/2010 07:30 PM, sudhakar s wrote: >> >> Hi friends... >> Happy New Year >> >> How to upload a photo from python into MySQL r any database... >> please suggest me.. > > a. kill the python > b. retrieve the photo from the python's stomach >

Re: [BangPypers] Execute Windows "shutdown" command through python !

2009-12-29 Thread Pradeep Gowda
here as I can find it by windows > command line. > > > > > On Tue, Dec 29, 2009 at 8:24 PM, Pradeep Gowda wrote: > >> On Tue, Dec 29, 2009 at 9:22 AM, ™aßlเίlαslเ ► >> wrote: >> >> > *import os >> > os.system("shutdown /?")*

Re: [BangPypers] Execute Windows "shutdown" command through python !

2009-12-29 Thread Pradeep Gowda
On Tue, Dec 29, 2009 at 9:22 AM, ™aßlเίlαslเ ► wrote: > *import os > os.system("shutdown /?")* > > *its saying "shutdown is not an internal or external command or executable > batch file"* Is shutdown a valid command in the new OS? Atleast it looks like that from the error message. Try running

Re: [BangPypers] can not connect to Mobile Broadband

2009-12-22 Thread Pradeep Gowda
On Tue, Dec 22, 2009 at 11:55 PM, BR!j!TH wrote: > > > Does any one have any solution this problem ? > > Have you tried configuring it using the "Network Manager" app? You are on the wrong mailing list. And even if someone does attempt to answer, your question does not carry sufficient informati

Re: [BangPypers] Is it possible to run python software in WinxP?

2009-12-22 Thread Pradeep Gowda
On Tue, Dec 22, 2009 at 11:00 PM, 74yrs old wrote: > for download at website viz http://code.google.com/p/tesseractindic/. ( > On > request, the said program - shall forward the same to you) > > You need GTK2+ libraries and PyGTK The first one is available at: http://gtk-win.sourceforge.net/h

Re: [BangPypers] mobile application development

2009-12-16 Thread Pradeep Gowda
On Wed, Dec 16, 2009 at 1:55 PM, Mandar Gokhale wrote: > *tl;dr* : If some people have vague responses, it could be because they are > vaguely interested in the subject. Is that sufficient grounds to shoot them > down? Yes. This is not 199x and information is freely and widely available to everyb

Re: [BangPypers] mobile application development

2009-12-16 Thread Pradeep Gowda
On Wed, Dec 16, 2009 at 11:34 AM, Baiju M wrote: > On Wed, Dec 16, 2009 at 7:09 PM, pradeep T wrote: >> hi friends, >>  am a begginer of this language and dont know much. >> >>  Is it possible for me to develop a mobile application using this   >> language... > > http://opensource.nokia.com/proje

Re: [BangPypers] mobile application development

2009-12-16 Thread Pradeep Gowda
On Wed, Dec 16, 2009 at 8:39 AM, pradeep T wrote: > hi friends, >  am a begginer of this language and dont know much. > >  Is it possible for me to develop a mobile application using this  language... The phrase "mobile application" encompasses so many different approaches. Even a web app writt

Re: [BangPypers] Python place holder doubt

2009-11-12 Thread Pradeep Gowda
On Thu, Nov 12, 2009 at 3:04 AM, Aravind Muthu wrote: > Try this ..i dont know exactlly correct or not. > url=self.BASEURL > final=+ "pmid=%d" + "&tag=ntag&type=ge" %d > urlparse.urljoin(url,final) There are two errors in the second line 1. what is =+ ? 2. and what is the purpose of %d at th

Re: [BangPypers] Python place holder doubt

2009-11-11 Thread Pradeep Gowda
On Wed, Nov 11, 2009 at 12:47 PM, JAGANADH G wrote: > url = self.BASEURL + "pmid=%d" + "&tag=ntag&type=ge" %d Did you mean: url = self.BASEURL + "pmid=%d" % (d, ) + "&tag=ntag&type=ge" ? Even though this might fix your problem, don't use it. To encode URLs always use urlencode: http://docs.py

Re: [BangPypers] But IDEs rock! (was Google Go)

2009-11-11 Thread Pradeep Gowda
On Wed, Nov 11, 2009 at 10:51 AM, Darkseid wrote: > Yes, yes, I know, I know. While I'm no vi or emacs guru, I've paired (for a > fair amount of time) with experienced VI and Emacs users. Snippets, Ctags > etc. help a great deal - but have you ever worked with an AST aware > development environmen

Re: [BangPypers] But IDEs rock! (was Google Go)

2009-11-11 Thread Pradeep Gowda
On Wed, Nov 11, 2009 at 9:36 AM, Darkseid wrote: >> >> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >> technology" > > I do most of my work in Ruby (and have done for a few years now). Every day > I bemoan the lack of a powerful refactoring IDE like Java has in IntelliJ. A

Re: [BangPypers] Google Go

2009-11-11 Thread Pradeep Gowda
On Wed, Nov 11, 2009 at 7:55 AM, Anand Balachandran Pillai wrote: > On Wed, Nov 11, 2009 at 6:06 PM, Roshan Mathews wrote: > >> On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai >> wrote: >> >  Upon 2nd reading, I also thought they did, but not a very good >> >  disambiguation there I d

Re: [BangPypers] Google Go

2009-11-11 Thread Pradeep Gowda
> That's what the big boys of the world wants you to believe. I had met a very > senior official in the government a techy himself and spent 3 hours showing > him virtues of Python and Django, hoping that they will change the RFP > terms. > > I found out yesterday that the application has to be dev

Re: [BangPypers] Google Go

2009-11-11 Thread Pradeep Gowda
On Wed, Nov 11, 2009 at 6:18 AM, steve wrote: > On 11/11/2009 04:17 PM, Ramdas S wrote: >>> >>> >>>  But I don't see the Python connection at all here. >>> >>> >> Yeah! I jumped the line without reading. Actually going through now and >> downloading the stuff I cant see much  from Python perspecti

Re: [BangPypers] Unstructured data and python

2009-10-16 Thread Pradeep Gowda
On Fri, Oct 16, 2009 at 2:31 PM, Carl Trachte wrote: > On 10/16/09, Ramdas S wrote: >> Has anyone worked/seen any project which involves migrating unstructured >> data, mostly text files to a reasonably indexed databas preferably written >> in Python or has Python APIs. >> I am even ok if its com

Re: [BangPypers] Running multiple versions of python on Fedora

2009-10-12 Thread Pradeep Gowda
On Mon, Oct 12, 2009 at 7:30 AM, Arvind Jamuna Dixit wrote: > Has anyone here tried installing multiple versions of python ( say 2.6 and > 3.0 ) > onto a Fedora system ( specifically fedora 11 )? Having multiple versions on the same machine is not the problem. Most distros already ship with at le

Re: [BangPypers] line understanding problem

2009-10-08 Thread Pradeep Gowda
On Thu, Oct 8, 2009 at 11:22 PM, harshal jadhav wrote: > though i get the output but i also get the following statement > > > i donot understand what this line means. My aim is to capture the samples of > src0. for that purpose i have given print src0 command. try this line instead: print d

Re: [BangPypers] [ANN][X-Post] SciPy India conference in Dec. 2009

2009-10-07 Thread Pradeep Gowda
On Wed, Oct 7, 2009 at 2:37 PM, Pradeep Gowda wrote: >> On Wed, Oct 7, 2009 at 3:32 PM, Anand Chitipothu >> wrote: >> [..] >>> If there are good CMS softwares in Python then why nobody in this >>> group hasn't named a single one other than P

Re: [BangPypers] [ANN][X-Post] SciPy India conference in Dec. 2009

2009-10-07 Thread Pradeep Gowda
> On Wed, Oct 7, 2009 at 3:32 PM, Anand Chitipothu wrote: > [..] >> If there are good CMS softwares in Python then why nobody in this >> group hasn't named a single one other than Plone? > [..] There is Skeletonz http://orangoo.com/skeletonz/ Which is pretty "user friendly" from the demos I see.

Re: [BangPypers] SciPy India 2009 - SciPy.in

2009-10-04 Thread Pradeep Gowda
tabase, I'd chose something based on Php simply because that's > what I have some recent experience working with, so I spend less time wasted > trying to learn the tools. > ___ > BangPypers mailing list > BangPypers@python.org &g

Re: [BangPypers] SciPy India 2009 - SciPy.in

2009-10-04 Thread Pradeep Gowda
On Sun, Oct 4, 2009 at 3:12 AM, Sidharth Kuruvila wrote: > Hey Hey, no need to dis Php, or Drupal for that matter, it's actually a > mighty fine language for what it does. And they have been making it a lot > better(namespaces, closures and, possibly just for Pradeep, goto). Pretty weak sauce, do

Re: [BangPypers] SciPy India 2009 - SciPy.in

2009-10-03 Thread Pradeep Gowda
On Sun, Oct 4, 2009 at 2:03 AM, Kenneth Gonsalves wrote: > On Sunday 04 Oct 2009 11:22:28 am Anand Balachandran Pillai wrote: >> > >  6 days... isn't it rather too long for a specific interest >> > >  conference. >> > >> > weird: http://fossee.in/whydrupal >> >>   Hadn't noticed it was written in

Re: [BangPypers] Can we create proprietary database in Python

2009-09-26 Thread Pradeep Gowda
On Sat, Sep 26, 2009 at 3:15 PM, Arun Python wrote: > I am a novice to Python. I have a few doubts. > a) How useful is python in the development of database applications when > compared to C++. > b) Can we able to create proprietary or sequential database like in C++ in > python for database app

Re: [BangPypers] Help Python framework for report creation (bar graph, pie etc)

2009-09-16 Thread Pradeep Gowda
On Wed, Sep 16, 2009 at 11:31 AM, Noufal Ibrahim wrote: > On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: >> Hi all, >> >> I'm relatively a newbie to python. But i do read most of the posts in this >> list.  Currently I'm doing a study on developing one reporting framework to >> pull the data

Re: [BangPypers] Help Python framework for report creation (bar graph, pie etc)

2009-09-16 Thread Pradeep Gowda
On Wed, Sep 16, 2009 at 10:24 AM, Santhosh Divakar wrote: > For plotting you can use gnuplot or pychart. > > Now for my project I used both gnuplot and pychart , but went with pychart > since the latter is easier to integrate with a web-framework. I can ask > pychart to give me the output in a PNG

Re: [BangPypers] Python Coding Standards

2009-09-13 Thread Pradeep Gowda
On Sun, Sep 13, 2009 at 5:16 AM, Karthik wrote: > Hello Friends, Can anybody please let me know if there are any coding > standards for python coding? Thanks. Sure, why not : http://tinyurl.com/qxeylp ___ BangPypers mailing list BangPypers@python.org ht

Re: [BangPypers] Low level Python

2009-09-12 Thread Pradeep Gowda
On Sat, Sep 12, 2009 at 10:43 AM, Noufal Ibrahim wrote: > On Sat, Sep 12, 2009 at 8:02 PM, Pradeep Gowda wrote: >> On Sat, Sep 12, 2009 at 10:11 AM, Noufal Ibrahim wrote: >>> The speed of Python is something that keeps comng up. >> I see what you did there. > > ?

Re: [BangPypers] Low level Python

2009-09-12 Thread Pradeep Gowda
On Sat, Sep 12, 2009 at 10:11 AM, Noufal Ibrahim wrote: > The speed of Python is something that keeps comng up. I see what you did there. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Friendfeed's web server framework open sourced

2009-09-11 Thread Pradeep Gowda
On Fri, Sep 11, 2009 at 10:57 AM, Dhananjay Nene wrote: > I am curious about the objective .. to the best of my knowledge wsgi is > essentially blocking (unless my understanding is incorrect), whereas tornado > is primarily non-blocking. So would you see any specific advantages of > deploying a ws

Re: [BangPypers] google app engine and python

2009-09-10 Thread Pradeep Gowda
On Thu, Sep 10, 2009 at 10:39 AM, Abhishek Mishra wrote: > Lets see what cool apps bangpypers come up with :) I have built a blogging engine: http://teh.appspot.com code: http://github.com/btbytes/teh/tree a "Djangosites.com" clone: http://www.zopesites.org code: http://github.com/btbytes/gappsit

Re: [BangPypers] how to embed the python interpreter into web App

2009-07-29 Thread Pradeep Gowda
>     I am trying to embed the python interpreter in to a web page but > could not get the way, any one can suggest me how to do this. http://werkzeug.pocoo.org/documentation/0.5.1/debug.html ___ BangPypers mailing list BangPypers@python.org http

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

2009-06-16 Thread Pradeep Gowda
On Tue, Jun 16, 2009 at 1:42 PM, Senthil Kumaran wrote: > On Tue, Jun 16, 2009 at 12:55:28PM -0400, Pradeep Gowda wrote: >> >> I wrote a script to test this hypothesis : http://dpaste.com/55994/ >> >> The zip() version is 100 times faster on average than the other

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

2009-06-16 Thread Pradeep Gowda
On Tue, Jun 16, 2009 at 12:40 PM, Senthil Kumaran wrote: > > On Tue, Jun 16, 2009 at 11:58:32AM -0400, Pradeep Gowda wrote: > >> > On Tue, Jun 16, 2009 at 9:52 AM, Abhishek >> > Tiwari wrote: >> >> I would like to know which method is better and why? > &

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

2009-06-16 Thread Pradeep Gowda
On Tue, Jun 16, 2009 at 10:42 AM, Pradeep Gowda wrote: > On Tue, Jun 16, 2009 at 9:52 AM, Abhishek > Tiwari wrote: >> I would like to know which method is better and why? > > Better for what purpose? > 1. speed of execution? > 2. elegance? The list comprehension s

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

2009-06-16 Thread Pradeep Gowda
On Tue, Jun 16, 2009 at 9:52 AM, Abhishek Tiwari wrote: > I would like to know which method is better and why? Looks like this exact question was discussed earlier here: http://www.nabble.com/sorting-two-corresponding-lists--td23139787.html ___ BangPyper

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

2009-06-16 Thread Pradeep Gowda
On Tue, Jun 16, 2009 at 9:52 AM, Abhishek Tiwari wrote: > I would like to know which method is better and why? Better for what purpose? 1. speed of execution? 2. elegance? More importantly, which method do you think is better and why? +PG ___ BangPyper

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

2009-06-12 Thread Pradeep Gowda
On Fri, Jun 12, 2009 at 8:38 PM, Kenneth Gonsalves wrote: > On Friday 12 June 2009 14:30:57 Srijayanth Sridhar wrote: >> What are your experiences as a person from a "small town"? My question is >> more directed towards your 'programming culture' now vis-a-vis to your >> programming culture from yo

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

2009-06-12 Thread Pradeep Gowda
On Fri, Jun 12, 2009 at 2:20 AM, Sridhar Ratnakumar wrote: > Now do you think a person who is lazy to type a few characters in an > Internet search engine (as evidenced by "Is there any tutorial. Should > we include any library?") would be interested at all in reading a > 60,000 words document? On

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

2009-06-12 Thread Pradeep Gowda
On Fri, Jun 12, 2009 at 9:36 AM, Pradeep Gowda wrote: > On Fri, Jun 12, 2009 at 8:57 AM, Srijayanth Sridhar > wrote: >> Names are irrelevant on the internet, so I agree with both of you in a >> certain way. > > Well, there is one way to be relevant   in programming c

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

2009-06-12 Thread Pradeep Gowda
On Fri, Jun 12, 2009 at 8:57 AM, Srijayanth Sridhar wrote: > Names are irrelevant on the internet, so I agree with both of you in a > certain way. Well, there is one way to be relevant in programming circles, which is often condensed to -- "show your code or GTFO". Ruby language recently lost a

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

2009-06-12 Thread Pradeep Gowda
On Fri, Jun 12, 2009 at 7:43 AM, vid wrote: > hmm kindly define "real name"[0], "real identity" with respect to > the online world. If the owner of had used > "Manmohan Singh" or "Rita Rai" instead of "testing123 test", would you > trust them more ? > > [0]  i've been using a nick, for years a

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

2009-06-11 Thread Pradeep Gowda
On Fri, Jun 12, 2009 at 12:31 AM, Sridhar Ratnakumar wrote: > On Thu, Jun 4, 2009 at 3:22 AM, Srijayanth Sridhar > wrote: > I don't know the reasons either, but would like to know too. > > I often think the best way to handle such posters is to momentarily > divert the topic of the conversation t

Re: [BangPypers] Zine for weblogging

2009-04-24 Thread Pradeep Gowda
Do you have a TODO List somewhere? (The bitbucket wiki maybe) so that interested parties can poke at the source code/contribute? +PG On Fri, Apr 24, 2009 at 1:52 AM, Roshan Mathews wrote: > Nice writeup, thank you. > > Roshan > > On Fri, Apr 24, 2009 at 10:58 AM, Kiran Jonnalagadda wrote: >> Wh

Re: [BangPypers] MIT moving from Scheme to Python

2009-03-26 Thread Pradeep Gowda
resting to know that "MIT" is using Python, we never got to hear why they are using Python(except maybe Python had better robot libraries), but Dr. Punch's study has more *data* to support such an initiative in Indian universities. +PG On Thu, Mar 26, 2009 at 7:24 AM, Pradeep Go

Re: [BangPypers] MIT moving from Scheme to Python

2009-03-26 Thread Pradeep Gowda
This course : http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2007/CourseHome/index.htm replaced this: http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-001Spring-2005/CourseHome/index.htm The assignments are terrific: http://ocw.mit.edu/OcwWe

Re: [BangPypers] Cloud Camp at IIM Bangalore on March 29

2009-03-13 Thread Pradeep Gowda
Sorry! I'm away from namma Bengaluru ATM :) That aside, I've been using EC2 recently to run long running computations and the cloud camp would be a great conf to attend. all the best. +PG On Fri, Mar 13, 2009 at 5:49 AM, Vinayak Hegde wrote: > Would anyone be interested in Giving a talk on Goo

Re: [BangPypers] IndentationError: expected an indented block

2009-03-11 Thread Pradeep Gowda
(resending reply to the list.. ) Python uses indentation for blocks your code has uneven indentation(1 space?) and no indentation in some places. You have to indent code correctly. Use FOUR spaces for indentation. eg: if len(args) == 0: print "Fatal: no indication type provided." sys.exit(1)

Re: [BangPypers] Reply from David Goodger about PyCon

2009-02-28 Thread Pradeep Gowda
On Sat, Feb 28, 2009 at 11:03 PM, Baiju M wrote: > We required one web app like the one used for PyCon.  Any idea whether > we can use > the same software and customize it ?  Or is there any other free > software for co-ordinating >  an entire conference ? https://pycon.coderanger.net/ __

Re: [BangPypers] Country look up for an IP address

2009-02-19 Thread Pradeep Gowda
I'm curious.. What is the advantage of doing this over using a database? I did this back in 2006 using a DB. URL : http://pradeepgowda.com/programming/ip-to-country-for-pylons-comments +PG On Thu, Feb 19, 2009 at 5:21 AM, Chetan Nichkawde wrote: > Dear BangPypers, > >There was a problem po

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Pradeep Gowda
That's rot13 print of `import this`. However, the programmer has chosen to use a lookup table `print this.d` instead of a rot13() fn. I wonder why. +PG On Tue, Feb 10, 2009 at 8:18 AM, Senthil Kumaran wrote: > Well, my favorite is not just import this but > import this print this.s > > --

Re: [BangPypers] how to learn programming

2009-01-25 Thread Pradeep Gowda
Hopefully this scientific study with hard numbers conveys what I was saying in my earlier mail about Python being a better choice for learning vocational programming. This is the summary of a talk accepted for PyCon 2009. http://us.pycon.org/2009/conference/talks/ Python for CS1 Not Harmful to CS

[BangPypers] Announcing PyOFC2

2009-01-24 Thread Pradeep Gowda
I've written a python library to generate data files used by the excellent open Flash chart 2. The project page: http://btbytes.github.com/pyofc2/ Click on the links on the left to see the resulting charts. There are a couple of advantages PyOFC2 has over the one distributed with OFC2. 1. Compl

Re: [BangPypers] how to learn programming

2009-01-23 Thread Pradeep Gowda
Learning programming via C will force you to understand data structures like lists, queues and hash tables better purely for the reason that C does not provide them in the standard library. C++/Java/Python do via STL and standard libraries respectively. Generalizing C++ with C shows how misunderst

Re: [BangPypers] python

2009-01-09 Thread Pradeep Gowda
On Fri, Jan 9, 2009 at 2:20 PM, (श्री) Sreekanth B wrote: > hi kenneth, > what u said may not be really true there are thousands out there > in France and Germany who cannot even write a sentence in English;-) > That's because they study in French/German medium schools and not in English med

Re: [BangPypers] Congratulations to India for Landing on the Moon!

2008-11-16 Thread Pradeep Gowda
On Mon, Nov 17, 2008 at 1:29 AM, Anand Balachandran Pillai <[EMAIL PROTECTED]> wrote: > On Sat, Nov 15, 2008 at 4:59 AM, Deepak Thukral <[EMAIL PROTECTED]> wrote: >>> A job well done! >>> (It is unknown whether Python was running onboard ;-) >> >> ISRO is in stone age as far as Computer Technology

Re: [BangPypers] Scaling Django-Mysql

2008-11-12 Thread Pradeep Gowda
icontains is syntactic sugar for "WHERE xxx ILIKE" and is best used for sting searches on a small subset. For 50,000 records, IMO, you will have to investigate full text search. Using Full text search in MySQL is a straight forward affair. You will have to create a FULLTEXT index. +PG On Wed,

Re: [BangPypers] hi all

2008-11-07 Thread Pradeep Gowda
On Fri, Nov 7, 2008 at 9:23 AM, shridhar kyrlageri <[EMAIL PROTECTED]> wrote: > i m very new to python.. but i m very much interested in learnin this > laguage.. i have worked only on C.. so kindly suggest from where should i > start learnin.. i want to do some small projects using python.. please

[BangPypers] Python news

2008-10-22 Thread Pradeep Gowda
Ask.com [1] is using web.py for their http://today.ask.com/default service. [1] http://en.wikipedia.org/wiki/Ask.com +PG http://pradeepgowda.com ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

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

2008-09-30 Thread Pradeep Gowda
On Sep 30, 2008, at 4:49 AM, Vishal wrote: Hi, Sometime back, I came across the idea of bundling a basic webserver in a python application and using a browser window as the GUI host. That's probably one of the most universal kind of GUI framework possible...though it might not have all th

Re: [BangPypers] py2exe

2008-09-20 Thread Pradeep Gowda
On Sep 20, 2008, at 12:14 PM, Abhinav Sarkar wrote: Mahaboob subhan wrote: we can install py2exe only in windows, it's not available for Linux . meaning we can't install py2exe in Linux any other alternatives? If you are trying to make python scripts executable in Linux, then you don't ne

Re: [BangPypers] One python question (from verilog)

2008-09-19 Thread Pradeep Gowda
The syntax looks familiar, almost python like. The equivalent python code would be*: def poll_reg(bit_pos, poll_val, reg_offset): matched = 0 while matched != 1: read_data = read_reg(reg_offset) if read_data[bit_pos] === poll_val:

[BangPypers] The web framework for ponies with magical powers

2008-09-09 Thread Pradeep Gowda
http://avalonstar.com/blog/2008/sep/9/web-framework-ponies/ and http://www.flickr.com/photos/avalonstar/2844663076/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

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

2008-09-09 Thread Pradeep Gowda
On Sep 9, 2008, at 7:41 AM, Sibtey Mehdi wrote: Thanks to all of you for giving me the good suggestions. I am a python developer and didn’t get the chance to work on web app. Now I am thinking to learn something about web app. Hi Sibtey, Thanks for reinvigorating the sleepy pypers. Noth

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

2008-09-08 Thread Pradeep Gowda
On Sep 8, 2008, at 11:47 PM, Sibtey Mehdi 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. Can you suggest me which framework sh

Re: [BangPypers] Python Web development collaterals...

2008-07-25 Thread Pradeep Gowda
On Jul 25, 2008, at 3:35 AM, Banibrata Dutta wrote: Yup. I generally trust Ohloh's analysis -- while it may not be perfect, it is comprehensive in the parameters it considers for it's ratings. As per Ohloh, this is "web.py"'s profile -- http://www.ohloh.net/projects/5941 & this is Django's -

Re: [BangPypers] Python Web development collaterals...

2008-07-24 Thread Pradeep Gowda
On Jul 24, 2008, at 12:17 PM, Banibrata Dutta wrote: http://news.ycombinator.com/item?id=34576 says that Reddit itself moved to Django after Aaron left. Its pylons not django. http://code.reddit.com/browser ___ BangPypers mailing list BangPyper

  1   2   >