Re: [BangPypers] Regarding web framework in Python

2010-06-03 Thread Gora Mohanty
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 scripts at the back end, gives back the results in the gui > (result

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Gora Mohanty
On Mon, 9 Aug 2010 17:04:16 +0530 Vishal wrote: > Hello fellas, > > I am trying to create a python function that can take an plain > english description of a regular expression and return the > regular expression to the caller. [...] > - literal: 'a' > - one_of: 'b,c' > - one_or_more_of: 'd' >

Re: [BangPypers] Python Meetups in NCR?

2010-08-27 Thread Gora Mohanty
On Fri, 27 Aug 2010 19:20:11 +0530 Diptanu Choudhury wrote: > Sounds good to me. Let's plan up something really quick. However > I would prefer something during the weekends. [...] I would like to be there, too. As it is already Fri. evening, and weekends are usually good for most people, could

Re: [BangPypers] Python Meetups in NCR?

2010-08-29 Thread Gora Mohanty
On Fri, 27 Aug 2010 21:00:39 +0530 Vivek Khurana wrote: [...] > Gurgaon is far far... [...] Yes, but Howzzat beer is cold, cold, and good, good. Worth the journey. Dilli Haat is fine with me, but might not be the best of venues if it is raining. In case of rain, there are also no nearby places

Re: [BangPypers] Python Meetups in NCR?

2010-08-30 Thread Gora Mohanty
On Mon, 30 Aug 2010 09:32:07 +0530 "Mehndi, Sibtey" wrote: > > I am also interested but the preferred venue is Delhi. [...] People! I am interested in this meetup, but as of the moment, there is exactly one vote for each of the venues. I am seriously tired of this nonsense of trying to organis

Re: [BangPypers] Python Meetups in NCR?

2010-08-30 Thread Gora Mohanty
On Tue, 31 Aug 2010 00:15:34 +0530 Gora Mohanty wrote: [...] > I am seriously tired of this nonsense of trying to organise > meetings, where all and sundry feel free to mouth off, but nobody > can be bothered to even click on a link to vote. [...] To follow up to myself: I apologise for

Re: [BangPypers] Python Meetups in NCR?

2010-08-31 Thread Gora Mohanty
Hi, Just so that people know, given that the expressed interest in any one FOSS-related topic, and on any one mailing list, has been rather lukewarm, I have also posted a notice of the proposed meeting to the ILUG-Delhi list, and the Apache Solr user list. The objective was to combine interest i

Re: [BangPypers] Python Meetups in NCR?

2010-08-31 Thread Gora Mohanty
On Tue, 31 Aug 2010 21:55:15 +0530 Vivek Khurana wrote: [...] > Combined meet o_o, looks like this one has to be missed. [...] Like I said, please *do* feel free to have a top-S3KR1T, Pythonistas-only, invitation-required, meeting. Regards, Gora ___ B

Re: [BangPypers] Python Meetups in NCR?

2010-09-01 Thread Gora Mohanty
On Wed, 1 Sep 2010 06:16:58 +0530 Vivek Khurana wrote: [...] > No for top-s3kr1t, invitation only. But I will like to have > pythonistas only meet. [...] OK, that is fair enough, though I fail to understand why. I am going to suggest Dilli Haat at 5pm on Sun. for the other meetups, but have no

Re: [BangPypers] Generating rss feeds, feed genetation

2010-10-07 Thread Gora Mohanty
On Thu, Oct 7, 2010 at 10:33 AM, Avinash TM wrote: > Hi all, > So far i learnt few things about how to parse the feeds using feedparser. > Now i would like to know much about 'creating rss feeds and rss feed > generation using *python*'. > But i didn't get any good simple examples or referring sit

[BangPypers] Looking for recommendation for Python image-processing library

2010-11-14 Thread Gora Mohanty
Hi, We have been happily using the Python Imaging Library (PIL) in a Django image -processing project for the last year or so. Of late, we have been running into problems with support for newer .TIFF images. The details of this are not important, but we are seriously worried about the complete lac

Re: [BangPypers] Looking for recommendation for Python image-processing library

2010-11-18 Thread Gora Mohanty
On Mon, Nov 15, 2010 at 4:20 PM, Senthil Kumaran wrote: [...] > I have heard positively of ImageMagick's python wrapper for doing > Image Processing where PIL is not sufficient. For most of my simple > needs PIL was enough. If ImageMagick has what you are looking for, I > think you should safely g

Re: [BangPypers] Looking for recommendation for Python image-processing library

2010-11-18 Thread Gora Mohanty
On Wed, Nov 17, 2010 at 6:43 PM, Anand Balachandran Pillai wrote: [...] > Have you used scipy ndimage  ? > > http://docs.scipy.org/doc/scipy/reference/tutorial/ndimage.html [...] Thanks for the suggestion. I will take a closer look at ndimage, but at first glance it looks like it is geared more

Re: [BangPypers] Django-based CMS recommendations?

2010-11-24 Thread Gora Mohanty
On Wed, Nov 24, 2010 at 9:59 PM, Kiran Jonnalagadda wrote: > Hi all, > > Does this list have a recommendation for a Django-based CMS? Or a review of > the one conveniently named "Django CMS"? We looked at django-cms, but went with page-cms, though this was also partly because of client requiremen

Re: [BangPypers] [django] Directory Listing

2010-11-25 Thread Gora Mohanty
On Thu, Nov 25, 2010 at 4:38 PM, Venkatraman S wrote: > Is there a Directory Listing app? By directory i meant categories. > Lets say, a system to manage the various types of categories in eBay and > associate items and other categories within it. [...] What do you mean by an "app" in the context

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] 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

Re: [BangPypers] refactoring

2010-12-05 Thread Gora Mohanty
On Mon, Dec 6, 2010 at 10:10 AM, Sirtaj Singh Kang wrote: > [snip] >> >> [dubious aside: remember this one? > > Please note that there is no deeper meaning to be read into the fact that I > mistakenly pasted the quote twice. [...] Man, and here was I thinking that you were killing two birds with

Re: [BangPypers] Suggestion for GUI

2011-01-10 Thread Gora Mohanty
Hi Narendra, I hate to step in here, and debated whether to do it at all or not, as I certainly do not like to dictate to people that they should do this, or that. However, if you will permit me certain observations: I respect what you are trying to do, probably also from a perspective that peopl

Re: [BangPypers] Suggestion for GUI

2011-01-10 Thread Gora Mohanty
On Tue, Jan 11, 2011 at 1:15 AM, Narendra Sisodiya wrote: [...] > Dear narendra, why not you have used DuckDuckGo, > You know duckduckgo is a search engine which gives you privary.. > Also, why the hell you are promoting yourself.. you can promote Google.. [...] OK, fine. If you are determined to

Re: [BangPypers] Python for mobile apps Deveopment

2011-01-25 Thread Gora Mohanty
On Tue, Jan 25, 2011 at 12:19 PM, ravi krishna wrote: > Hi all, > > I am new to this group and i am really looking for some help with Python in > mobile apps development. I have seen some applications in mobile phones > developed purely in Python. What are the requirements for doing it ? I am > re

Re: [BangPypers] User group meeting

2011-01-29 Thread Gora Mohanty
On 1/29/11, vikas ruhil wrote: > anyone going to meet up Delhi tell i can't afford to come up Bangalore if > furthure any meeting there in delhi inform us please.love python & cram > Google yeahhh [...] There is a Linux Users' Group, Delhi (which is focused on FOSS, despite the name), t

Re: [BangPypers] User group meeting

2011-01-31 Thread Gora Mohanty
On Mon, Jan 31, 2011 at 12:15 PM, vikas ruhil wrote: > YEP ready for meeting is it fine at rohini sec-11 ,near metro walk , all > python lovers welcome there tell other friends if anyone ready so meet up > like bengalru it is first meeting at delhi or anyone have office space then > tell yep  we d

Re: [BangPypers] User group meeting

2011-01-31 Thread Gora Mohanty
On Mon, Jan 31, 2011 at 2:44 PM, vikas ruhil wrote: > SO  School of Information Technology, JNU is final  date  Feb 6  ,time 12:00 > to 3:00 or any body want date ,time according to them nice to meet up tell > all friends , fans of python in Delhi , NCR  SO READY...TO MEET UP [...] Hang o

Re: [BangPypers] User group meeting

2011-01-31 Thread Gora Mohanty
On Mon, Jan 31, 2011 at 3:52 PM, vikas ruhil wrote: > okay then look for Feb 5 because i have to go freelancer trainer for CEH > test after  8th of Feb   for some organization   so please confirm me [...] 6th might work, if people at JNU can be there. I might not be able to make it on the 6th. Th

Re: [BangPypers] User group meeting

2011-01-31 Thread Gora Mohanty
On Mon, Jan 31, 2011 at 4:16 PM, vikas ruhil wrote: > oki am getting what to i do okay till that can you suggest me a date that is > appropriate before 8th fab , and after 25 feb because in betwwen i going for > CEH  TRAINING  IN USA FOR SOME organization so please suggest.. [...] OK, wil

Re: [BangPypers] User group meeting

2011-01-31 Thread Gora Mohanty
On Mon, Jan 31, 2011 at 4:27 PM, Anubha Dadhich wrote: > Can we please take this decision to *delhi only* mailing list. [...] You are right. However, please bear with us for a little longer, while we get such a list set up. This list has traditionally been the pan-Indian Python list, so I ask for

Re: [BangPypers] User group meeting

2011-01-31 Thread Gora Mohanty
On Tue, Feb 1, 2011 at 11:21 AM, Baiju M wrote: >  > a Python-only group: > > -1 for generic group. > > It would be good if the group is Python specific.  Otherwise there > is a chance for conflicts when decide upon agenda for meeting > and selection of topics for talks etc. [...] Fair enough. Th

Re: [BangPypers] [Ann] [Commercial] Weekend training program on Core Python

2011-02-02 Thread Gora Mohanty
On Thu, Feb 3, 2011 at 12:23 AM, Noufal Ibrahim wrote: [Nothing at all] Er, either I am finally going blind due to unmentionable practices, or that message was blank. Regards, Gora ___ BangPypers mailing list BangPypers@python.org http://mail.python.or

Re: [BangPypers] Problem installing Maverick on lenovo

2011-02-03 Thread Gora Mohanty
On Thu, Feb 3, 2011 at 5:11 PM, Noufal Ibrahim wrote: > > This is *way* off topic for a Python programming language list. You > should find a forum more appropriate. [...] Agreed. I would suggest the Ubuntu India list: https://lists.ubuntu.com/mailman/listinfo/ubuntu-in Regards, Gora ___

Re: [BangPypers] BangPypers meeting February 2011

2011-02-12 Thread Gora Mohanty
On Sat, Feb 12, 2011 at 10:30 PM, Santosh Rajan wrote: > My 2 cents before you jump into the nosql bandwagon. [...] > 4) And if you still think you need nosql, god help you. All of the above were fair comments, until this last. I think that you might need to re-investigate your own biases. Contr

Re: [BangPypers] BangPypers meeting February 2011

2011-02-13 Thread Gora Mohanty
On Sun, Feb 13, 2011 at 1:19 PM, Anand Balachandran Pillai wrote: [...] > So an approximate rule of thumb would be, > > 1. If your data is highly structured and you have complex queries > and your clients expect consistent results, stick to RDBMs. > 2. If your data is more like a simple key-value

Re: [BangPypers] UDP Hole Punching using python

2011-02-25 Thread Gora Mohanty
On 2/25/11, kunal ghosh wrote: > Hi all, i am working on UDP hole punching to allow communication between two > computers hidden > behind their respective NATs (Home Router). [...] > Now i try to do the same thing using python and sockets, > step 1: holepunch , send UDP packet from receiver to sen

Re: [BangPypers] [OT] NoSQL Bangalore Meetup

2011-02-26 Thread Gora Mohanty
On Sat, Feb 26, 2011 at 8:22 PM, Ramdas S wrote: > On Sat, Feb 26, 2011 at 8:12 PM, Anand Chitipothu wrote: [...] >> >> Venue: C42 - http://maps.google.co.in/maps?q=C42 [...] >> Strange. It shows me a single result. >> >> Try this: http://maps.google.com/maps?q=C42+bangalore >> >> me too. I didn't

Re: [BangPypers] Regular Expressions

2011-03-16 Thread Gora Mohanty
On Wed, Mar 16, 2011 at 11:27 PM, Santhosh Edukulla wrote: > Hi All, > > I have a list of regular expressions under a file(EX: inp.txt). Then, I have > another file (EX: search.txt).The task is that i have to read the list of > regular expressions from the inp.txt and then search for the same in >

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

2011-03-22 Thread Gora Mohanty
On Wed, Mar 23, 2011 at 10:15 AM, briji...@gmail.com wrote: > Hi, > > I too answered this way to this question. I thought there may be some other > efficient way to handle this situation. [...] Is this a question for students? Otherwise, what is the rationale of doing this in Python? Regards, Go

Re: [BangPypers] X-Post: Amazon Web Services User Group, Bangalore

2011-03-23 Thread Gora Mohanty
On Wed, Mar 23, 2011 at 1:54 PM, Sreekandh B wrote: >> Incidentally, reddit.com, which hosts on amazon web services, crashed last >> week. You can read about it here. >> http://blog.reddit.com/2011/03/why-reddit-was-down-for-6-of-last-24.html > > Interesting read ! Very interesting read, indeed.

Re: [BangPypers] Fwd: Help with Python IDE's

2011-03-27 Thread Gora Mohanty
On Mon, Mar 28, 2011 at 9:13 AM, Anand Balachandran Pillai wrote: > Hi Folks, > >  Any suggestions for Cherian ? I am not myself aware of any Django specific > IDE. You could refer him to http://lmgtfy.com/?q=django+ide :-) Most any IDE that one is using, and that handles Python should work. Pe

Re: [BangPypers] Web Application Development

2011-05-14 Thread Gora Mohanty
On Sat, May 14, 2011 at 9:13 PM, vivek durai wrote: [...] > Anyone with experience in Pyramid who can lend their wisdom would be much > appreciated (or anyone who can show the way with the django formwizard - svn > version). [...] Haven't used pyramid, but what issues are you facing with Django f

Re: [BangPypers] The myth of free software

2011-05-16 Thread Gora Mohanty
On Mon, May 16, 2011 at 8:22 PM, Santosh Rajan wrote: > I have been reading a few threads on this forum, and even participated in > them. However I thought I must write my views on this subject separately. > Also before I start my tirade, I want to make a couple of disclaimers. Come > to think of

Re: [BangPypers] How to compare the relevancy between news headlines?

2011-06-14 Thread Gora Mohanty
On Tue, Jun 14, 2011 at 1:28 PM, Gopalakrishnan Subramani wrote: > Thanks for suggestion. Can you give me a specific NLT toolset/approach with > example if you have experience already? Try clustering with Python NLTK ( http://www.nltk.org/ ). NLTK is well documented, and what you are looking for

Re: [BangPypers] Image comparison using Python

2011-06-14 Thread Gora Mohanty
On Tue, Jun 14, 2011 at 12:07 PM, Nitin Kumar wrote: > we need to compare text also but most of the time Image Quality between two > pdf. [...] How do you define "image quality"? Regards, Gora ___ BangPypers mailing list BangPypers@python.org http://ma

Re: [BangPypers] How to read barcoded value from the PDF

2011-06-28 Thread Gora Mohanty
On Tue, Jun 28, 2011 at 10:59 AM, Asif Jamadar wrote: > Hi, > > >  I have a PDF document which consist of barcode characters. Now how can I > retrieve that bar-coded value programmatically. When I googled I found a tool > called Pypdf which provides a function called 'PdfFileReader' > > To read

Re: [BangPypers] svg string to pdf

2011-06-29 Thread Gora Mohanty
On Wed, Jun 29, 2011 at 1:04 PM, Venkatraman S wrote: > On Wed, Jun 29, 2011 at 11:17 AM, Venkatraman S wrote: > >> I am trying to use reportlab(along with svglib) to draw a svg string into a >> pdf, but so far have not been successful. >> I can share the code for the same; but was wondering if a

Re: [BangPypers] svg string to pdf

2011-06-29 Thread Gora Mohanty
On Wed, Jun 29, 2011 at 1:47 PM, Venkatraman S wrote: > On Wed, Jun 29, 2011 at 1:37 PM, Gora Mohanty wrote: [...] > Problem statement : given a svg string, i want this to be > converted-to/embedded-in > pdf. The svg file should NOT be created on the file system. Not sure what y

Re: [BangPypers] svg string to pdf

2011-06-29 Thread Gora Mohanty
On Thu, Jun 30, 2011 at 10:25 AM, Venkatraman S wrote: > On Thu, Jun 30, 2011 at 8:53 AM, Kenneth Gonsalves wrote: > >> On Thu, 2011-06-30 at 01:40 +0530, Gora Mohanty wrote: >> > You must have mistaken me for someone willing to do your homework for >> > you >

Re: [BangPypers] Spell Checker Python

2011-06-30 Thread Gora Mohanty
On Thu, Jun 30, 2011 at 6:49 PM, Puneet Aggarwal wrote: > Hello Everyone, > > Anyone knows any good package for spell checker/corrector in python ? The best open-source spellchecker that I know of is aspell. Unfortunately, only C bindings are available by default, but one can build Python binding

Re: [BangPypers] Spell Checker Python

2011-06-30 Thread Gora Mohanty
On Thu, Jun 30, 2011 at 6:59 PM, Puneet Aggarwal wrote: > Hi Gora, > > Thanks for the quick reply. Basically I am looking for spell correction in > the sense if someone does a mistake in spelling. > > Let say someone want to search "restaurant" and types the spelling wrong as > resturant or someth

Re: [BangPypers] how to Identify file type

2011-07-15 Thread Gora Mohanty
On Fri, Jul 15, 2011 at 2:12 PM, Sibtey Mehdi wrote: > Hi , > > I am writing a script in python to identify the type of a file.In most of > the cases I got the correct file type on the basis of file extension. > Is there any way to identify a PLSQL, TSQL or SQl file as these files may > have the s

Re: [BangPypers] parsing xml

2011-07-28 Thread Gora Mohanty
On Thu, Jul 28, 2011 at 10:37 PM, Venkatraman S wrote: > parsing using minidom is one of the slowest. if you just want to extract the > distance and assuming that it(the tag) will always be consistent, then i > would always suggest regexp. xml parsing is a pain. [...] Strongly disagree. IMHO, reg

Re: [BangPypers] parsing xml

2011-07-29 Thread Gora Mohanty
On Fri, Jul 29, 2011 at 10:55 AM, Baishampayan Ghose wrote: >> minidom is the fastest solution if you consider the programmer time >> instead of developer time.  Minidom is available in standard library, >> you don't have to add another dependency and worry about PyPI >> downtimes and lxml compila

Re: [BangPypers] Python T-shirt

2011-08-10 Thread Gora Mohanty
On Wed, Aug 10, 2011 at 10:31 PM, Nitin Kumar wrote: > whatever we got in last pycon was of very good quality and with good logo. > So i don't know how you wrote that [...] As already requested, please take this discussion offline. Thanks. Regards, Gora __

Re: [BangPypers] two dropdowns dependents on each other

2011-08-16 Thread Gora Mohanty
On Tue, Aug 16, 2011 at 11:16 AM, Asif Jamadar wrote: > I have two dropdowns one dropdown is dependent on other (Ex. Country/State > dropdowns) > > Now how can I implement this thing in django? [...] This is probably best done with a layer on top of Javascript: I would recommend jQuery. Dependin

Re: [BangPypers] Installation of SIP ( Python binding generator )

2011-08-25 Thread Gora Mohanty
On Thu, Aug 25, 2011 at 9:58 PM, Ashutosh Narayan wrote: [...] > I have downloaded SIP tar file :sip-4.12.4.tar.gz > While building it using "make" I encountered the following error : [...] > make[1]: Entering directory > `/misc/tar_balls/projects_related/sip-4.12.4/siplib' > gcc -c -pipe -fPIC -

Re: [BangPypers] what should be memory size memcached for Django on Ubuntu Os?

2011-08-27 Thread Gora Mohanty
On Sat, Aug 27, 2011 at 4:56 PM, vikas ruhil wrote: > A brief Description of system On i  need help for memcached size:- [...] > Using Command line  :- memcached -d -m -l 127.0.0.1 -p 11222 > Anybody able to suggest memory size for Django, or for Dynamic python usage > for high Performance comput

Re: [BangPypers] [JOB] - Yahoo!

2011-09-12 Thread Gora Mohanty
On Tue, Sep 13, 2011 at 11:02 AM, Noufal Ibrahim wrote: > > Lokesh, > > This post has nothing to do with Python. Why are you sending it to a > Python list? [...] I hear that they have an opening for a CEO. Maybe that person could introduce Python to Y! Regards, Gora _

Re: [BangPypers] Parsing data

2011-09-16 Thread Gora Mohanty
On Sat, Sep 17, 2011 at 9:56 AM, Ananya Sharma wrote: [...] Could you explain the logic that you are trying to use in the code below, because it is not making much sense. Also, is this a homework problem? > *Script-* > * > * > f1=open('fileA','r') > f2=open('fileB','r') > a="" > b="" > for n in

Re: [BangPypers] Parsing data

2011-09-17 Thread Gora Mohanty
On Sat, Sep 17, 2011 at 9:33 PM, Ananya Sharma wrote: > I am trying to look up each value from file A and loop it through file B. As > i already said that I am new in python programming so this is what I could > come up with. Um, the code is quite far from accomplishing that. While I am sure that

Re: [BangPypers] Parsing data

2011-09-17 Thread Gora Mohanty
On Sun, Sep 18, 2011 at 2:19 AM, Ananya Sharma wrote: > The logic is that i have file A which has some names and file B which has > values for each name in file A and some extra values. I want to make a > script which gives me the values from file B corresponding to all the names > given in file A

Re: [BangPypers] Python 3.2 and Django

2011-09-28 Thread Gora Mohanty
On Thu, Sep 29, 2011 at 10:07 AM, Hussain Bohra wrote: > Hi All, > > I am trying to install django on top of python 3.2, but getting following > error: Django is not supported on Python 3.x, though some ports are in the works. Please see https://docs.djangoproject.com/en/dev/faq/install/#can-i-u

Re: [BangPypers] Read barcode input

2011-10-13 Thread Gora Mohanty
On Thu, Oct 13, 2011 at 2:25 PM, Asif Jamadar wrote: > I have django form which consist of input field (CharField). How can I read > barcode input directly into this form field. Any suggestions? What does that mean? Read barcode input from where? Hold up the barcode to the screen? Regards, Gora

Re: [BangPypers] Generate Dynamic lists

2011-10-20 Thread Gora Mohanty
On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar wrote: > So I'm trying to generate dynamic choices for  django form. Here i'm usig > formset concept (CODE is mentioned below) Sorry, but your examples do not quite make sense, at least not to me. Your Django example is too confused, and has at leas

Re: [BangPypers] Generate Dynamic lists

2011-10-20 Thread Gora Mohanty
On Fri, Oct 21, 2011 at 12:38 AM, Gora Mohanty wrote: > On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar > wrote: [...] > list1 = [] > for i in criteria_list[:2]: >    for j in range(4): >        l.append( ( i, j + 1 ) ) Oops, that last line should be list1.append(...) i

Re: [BangPypers] Getting label of the choicefield in django form

2011-10-21 Thread Gora Mohanty
+On Sat, Oct 22, 2011 at 12:05 PM, Asif Jamadar wrote: [...] > It is returning the value ( I,e attr1 or attr2) .in this case how can I get > the label(or name) of the choicefield. > > > I tried > > for val in cf.fields['value'].choices: [...] Since you created the form, would you not already kno

Re: [BangPypers] Getting label of the choicefield in django form

2011-10-22 Thread Gora Mohanty
On Sat, Oct 22, 2011 at 12:45 PM, Asif Jamadar wrote: > But I have same lables( or names) in my choice list > > Choices = [ ('attr1', 1), ('attr1', 2), ('attr1' , 3) , ('attr2', 1), > ('attr2', 2), ('attr2', 3) ] > > All these are displayed as radio buttons. > > When I select 2 then it is returni

Re: [BangPypers] Getting label of the choicefield in django form

2011-10-22 Thread Gora Mohanty
On Sat, Oct 22, 2011 at 1:32 PM, Asif Jamadar wrote: > Can you explain this with example so that I can understand? GENDERS = ( ('U', 'Unspecified',), ('M', 'Male',), ('F', 'Female'), ) Now, say you have a gender = forms.ChoiceField( label='Gender', choices=GROUPS ) after validati

[BangPypers] [Commercial] Python/Django and other developers needed in Delhi/NCR

2011-10-31 Thread Gora Mohanty
Hello everyone, Mimir Technologies, Pvt. Ltd., India ( http://www.mimirtech.com ) has several positions open immediately for developers, QA and UX people in Delhi/NCR. o Job description * Our main focus currently is software services and product engineering for several companies based mostly o

Re: [BangPypers] Generate Dynamic lists

2011-11-06 Thread Gora Mohanty
On Fri, Oct 21, 2011 at 6:12 AM, Saager Mhatre wrote: [...] > While I'd usually suggest a list comprehension like... > > [(criteria, level) for level in range(1, 4) for criteria in > criteria_list[:2]] [...] List comprehensions would indeed be the Pythonic way to do it. The idea here was to get c

Re: [BangPypers] ChoiceField in django models

2011-11-10 Thread Gora Mohanty
On Thu, Nov 10, 2011 at 3:25 PM, Asif Jamadar wrote: > Suppose I have choicefield in my django model which consist of several > choices. Now in future if I changed the existing choice (option) with some > other name (choice), then whether the existing records in model with that > choice(option)

Re: [BangPypers] google api and facebook api ?

2011-11-12 Thread Gora Mohanty
On Sat, Nov 12, 2011 at 7:35 PM, vishnu prasad wrote: > Hi to all > > How google internally running the code my doubt is python ? > i mean api means we need to learn the code for separately apart from > andriod,python,php, ruby ? > knowing the api code and how can i start that ? is it python api i

Re: [BangPypers] Import Error

2011-11-14 Thread Gora Mohanty
On Mon, Nov 14, 2011 at 3:07 PM, Subhodip Biswas wrote: > Hi, > > On Mon, Nov 14, 2011 at 1:10 PM, Noufal Ibrahim wrote: >> Subhodip Biswas writes: >> >>> Hi all, >>> >>> I am trying to install lxml in my windows box with jython 2.5.2. I can >>> see a lxml egg folder in site packages under jytho

Re: [BangPypers] seantis questionnaire - Django App

2011-11-14 Thread Gora Mohanty
On Tue, Nov 15, 2011 at 10:07 AM, Asif Jamadar wrote: > Can you provide me the url for their webite? Are you reading replies to your message? Senthil already provided you a URL: https://github.com/rmt/seantis-questionnaire/wiki and you could have found the same with a minimal expenditure of effor

Re: [BangPypers] django signals

2011-11-15 Thread Gora Mohanty
On Tue, Nov 15, 2011 at 1:39 PM, Asif Jamadar wrote: > > Is there any way to implement timer using django for each page? Timers are best done with Javascript at the front-end, backed by verification in the back-end. Normally, the back-end can only be informed of changes on a page reload, or via a

Re: [BangPypers] seantis questionnaire - Django App

2011-11-15 Thread Gora Mohanty
On Tue, Nov 15, 2011 at 6:51 PM, Asif Jamadar wrote: > Thank you for your answer. > > Another question how we can check the feature 'export CSV' in this > questionnaire app? No offence, but you really need to learn how to better frame your questions so that people can answer them: * It is unlike

Re: [BangPypers] Dynamic color for table column (color stored in model)

2011-11-17 Thread Gora Mohanty
On Thu, Nov 17, 2011 at 7:03 AM, kracekumar ramaraju wrote: [...] > One advice is use css to set colors.In your template check for color value > ="red" and then render css for that colour, else if you are using only 2 > colour you can  even and odd property. [...] Reportlab generates PDF, which i

Re: [BangPypers] Parsing and updating XML files with python

2011-11-17 Thread Gora Mohanty
On Thu, Nov 17, 2011 at 4:47 PM, Balachandran Sivakumar wrote: > Hi, > >             I have to parse an xml file, get to a spefic node, and > set it to a different value and write it back to the file. What is the > best way to do it ? The xml file can be a few hundred lines(with > proper formattin

Re: [BangPypers] Pexpect

2011-11-19 Thread Gora Mohanty
On Sat, Nov 19, 2011 at 7:59 PM, Arunkumar Jigajinni wrote: > Hi All, > > I would like to know whether Pexpect is supported on windows. Did you try searching Google? The very first result for +pexpect +windows, and many others, answer your question. > If anybody has used it, Can you share some i

Re: [BangPypers] How to use special character in

2011-11-28 Thread Gora Mohanty
On Mon, Nov 28, 2011 at 6:02 PM, Asif Jamadar wrote: > Dear all, > > I'm using reportlab tool generate PDF reports > > If character is '<' or  '>' how can I use these characters in tag Your question is not very clear, but my magic 8-ball tells me that what you are probably looking for is < and >

Re: [BangPypers] golf problem

2011-12-25 Thread Gora Mohanty
On Sun, Dec 25, 2011 at 12:52 PM, Kenneth Gonsalves wrote: > hi, > > a golf course has 18 holes. There are three types of hole - par 3, par 4 > and par 5. For a certain type of tournament it is necessary to generate > a random list of 6 holes. The only condition is that this list should > contain

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 7:23 PM, Ganesh Kumar wrote: > Hi Guys, > > I want parse multiple line. with re.module, this is my given string > http://dpaste.com/680760/ I have try with re.compile module. I want parse > two line mac address and channel, > I have done with for mac address finding > > r =

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 8:03 PM, Pratap Chakravarthy wrote: > Hi Ganesh, may be you can try this out, > >> re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str ) Try: re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', 'Searching for OPUSH on in all the wrong

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 8:07 PM, Gora Mohanty wrote: > On Tue, Jan 3, 2012 at 8:03 PM, Pratap Chakravarthy > wrote: >> Hi Ganesh, may be you can try this out, >> >>> re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str ) > > Try: &g

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 8:31 PM, Pratap Chakravarthy wrote: >> Mean no offence to you personally, > > None taken. Thank you for taking things in a good spirit: Personally speaking, I discover almost each day how ignorant I am compared to other people, in many contexts. True knowledge should be the

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 9:19 PM, Pratap Chakravarthy wrote: > The ball is in my court alright. But you have played my turn as well, with > your > explanations, and you played it good. Except for the paragraph about the > boss. I only beg to differ from your suggestion "... used sparingly, if at >

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 9:36 PM, Pratap Chakravarthy wrote: >> *Really?* I believe that the ball is currently in your court. >> It was *your* regex that was broken, and badly, if I may >> add. > > By saying broken, do you mean that this regex >   r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n

Re: [BangPypers] Truth Tests (bool)

2012-01-10 Thread Gora Mohanty
On Tue, Jan 10, 2012 at 10:28 PM, Ganesh Kumar wrote: > Hi Guys, > 3 and 4, [3, 4] and [] >      (4, []) 3 and 4 > 4 > > How to compare value in logical operation > > empty list [] = False > How to and operation working, please guide me guys. Google turns up a few million links (literal

Re: [BangPypers] Is there any relation between web2py and webpy

2012-01-11 Thread Gora Mohanty
On Wed, Jan 11, 2012 at 6:03 PM, Senthil Kumaran wrote: > Other than the fact that they are both web frameworks. > > Given their levenshtein distance being 1, [...] Bah! So is the distance between "Gora" and "Gori" (apply smileys as needed). Regards, Gora ___

Re: [BangPypers] RTP Library in python

2012-02-22 Thread Gora Mohanty
On 22 February 2012 12:26, Guru wrote: > *Hi All,* > *         I wanted to write one small tool to generate different types of > RTP with different parameters, can anybody suggest me from where i have to > start, is there any modules available for this. > * You might wish to explain what RTP stan

Re: [BangPypers] something similar to file command for python

2012-02-28 Thread Gora Mohanty
On 28 February 2012 23:19, Amit Sethi wrote: > Hi All , I am trying to read some file attachments being sent from > blackberrys . However blackberry compresses the document into base64 . Now > I am able to get the document by converting it back. However I wish to know > the file extension of the o

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread Gora Mohanty
On 29 February 2012 22:35, Balachandran Sivakumar wrote: > Hi, > > On Wed, Feb 29, 2012 at 10:10 PM, Amit Sethi > wrote: >> Well interestingly in case of blackberry devices the header is >> name="=?utf-8?B?UFVSQ0hBU0UgT1JERVJfUmVsaWFuY2UuZG9j?=" >> Content-Disposition: attachment >> > >      Ok,

Re: [BangPypers] Https and http difference in behaviour urllib2

2012-03-02 Thread Gora Mohanty
On 3 March 2012 09:41, Baiju M wrote: [...] > Sometimes features are very important.  I stared using requests for one > work, but later I found that it is not thread safe, then I switched to > urllib3: > http://urllib3.readthedocs.org/en/latest/index.html Sorry, but I am confused. Is requests no

Re: [BangPypers] Sort names in a list by order of importance

2012-04-23 Thread Gora Mohanty
On 24 April 2012 01:13, S Pratap Singh wrote: [...] > Above works fine but in the scenario mentioned below it fails : > mylist = ["Alan","aLan","alAn","alaN","ALan","AlAn","AlaN","aLAn","aLaN",*"alAN"*] This is a syntax error. What do you mean by the asterisks? [...] > The desired ou

Re: [BangPypers] Sort names in a list by order of importance

2012-04-24 Thread Gora Mohanty
On 24 April 2012 12:06, S Pratap Singh wrote: > I need to sort list with names and without loosing the alphabet case (lower > or upper). In each list last name is important and should get priority in > sorting. If there are two or more name similar to the last name in the > list. Then the last nam

Re: [BangPypers] Two days course on Python

2012-06-26 Thread Gora Mohanty
On 27 June 2012 10:08, kala Vinay wrote: >  Dear All, > > credativ India specialized in open source, conducting a two days course on > Python Programming on 13th and 14th July 2012. > > Interested candidates can contact:   train...@credativ.in [...] Are these paid courses? If so, please mark such

Re: [BangPypers] Job list (was: [JOB] Aspirae Bangalore)

2012-07-02 Thread Gora Mohanty
On 3 July 2012 07:07, Anand Chitipothu wrote: > On Tue, Jul 3, 2012 at 5:24 AM, Noufal Ibrahim wrote: >> >> Having lots of job postings is a good sign of a healthy >> community. However, it does dilute the list a little. Sidu suggested a >> separate bangalore-python-jobs (or something similar) li

Re: [BangPypers] Configuring web2py to run on apache with Centos5.8

2012-07-20 Thread Gora Mohanty
Hi, While I am far from being an expert in setting up Apache, there seem to be several things wrong with your Apache config. 1. Your ServerName is wrong unless you have aliased it locally, or are hosting on example.com :-) 2. Your WSGIScriptAlias is at /wpy , but in some cases you are acce

Re: [BangPypers] Call for Python programmers interested in building social applications

2012-08-01 Thread Gora Mohanty
On 1 August 2012 20:18, Deepak Garg wrote: > Diaspora is AGPL (version 3), some parts dual-licensed under MIT License > http://en.wikipedia.org/wiki/Diaspora_(software) Erm, you are the second person to suggest that, but Diaspora is RoR. A better bet might be Pinax ( http://pinaxproject.com/ ) i

Re: [BangPypers] Call for Python programmers interested in building social applications

2012-08-01 Thread Gora Mohanty
On 1 August 2012 23:27, Anand Chitipothu wrote: > On Wed, Aug 1, 2012 at 10:08 PM, Gora Mohanty wrote: >> On 1 August 2012 20:18, Deepak Garg wrote: >>> Diaspora is AGPL (version 3), some parts dual-licensed under MIT License >>> http://en.wikipedia.org/wiki/Diaspor

Re: [BangPypers] Sad demise of our dear KG (Keneth Gonsalvas)

2012-08-03 Thread Gora Mohanty
On 3 August 2012 15:25, JAGANADH G wrote: > Hi All, > > Just now I got a message that our dear KG (Kenneth Gonsalvas) passed away. > He was admitted in hospital due to Asthma attack and passed away today > morning. > Cremation will be held at ooty on 4th Aug 2012. Yikes! My condolences to all his

Re: [BangPypers] hook file download

2012-09-07 Thread Gora Mohanty
On 7 September 2012 15:59, Nitin Kumar wrote: > Say for example: > > from a site http://www.winzip.com/downwz.htm we click "download" button. > So i file download will start. > but I want to do some other activities before file start to download. so is > there a way to pause start of download do

<    1   2   3   >