From anirudh.asokan at gmail.com Mon Nov 1 10:47:45 2010 From: anirudh.asokan at gmail.com (Anirudh Asokan) Date: Mon, 1 Nov 2010 09:47:45 +0000 Subject: [BangPypers] Bridging in ubuntu, Message-ID: Hey, This question is probably off topic by miles in this mail list.. Apologies in advance. I couldnt find the solution to this problem on google(yes, its possible!). So I thought you guys might know the solution. The background - 1) I run Ubuntu linix (Karmic Koala) 2) I got bsnl internet, I use UTStarcom router (model no:WA3002G4) 3) I got apache2 installed. I got bridge-utils also installed Im currently connected to internet using pppoe protocol(username and password are stored in the router itself.) Here, when i run my ip address(11 7.192.x.x) in the address bar of my browser, it lands me in my router login page. I want my localhost page to appear when i run by ip address in my browser. This way i can use my computer as a server for hosting my python programs. I was told this was only possible if i connect to internet using bridge protocol(here we login to the router from pc every time). I managed to do in Win xp but not in Ubuntu. Any help will be deeply appreciated -- Cheers, Anirudh Asokan From dhananjay.nene at gmail.com Tue Nov 2 06:56:44 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Tue, 2 Nov 2010 11:26:44 +0530 Subject: [BangPypers] Access xml file form python script In-Reply-To: References: Message-ID: On Sun, Oct 31, 2010 at 5:12 PM, Avinash TM wrote: > Hi All, > > I have created a simple xml document i.e., preferences.xml as follows > > > > > Cricket > > > > > > > > > My favourite light weight tool for xml is minidom http://docs.python.org/library/xml.dom.minidom.html http://www.boddie.org.uk/python/XML_intro.html If you are needing simple xml parsing capabilities - it might just suffice your needs and is built into python. > Now i want to access the above data from a python script. > I gone through some websites. But not getting actual idea. > Should i use any data structures ( Lists, Dictionary, Tuples) in my python > script. > Can anybody help me > > Thanks & Regards > Avinash > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From srp at ideadevice.com Tue Nov 2 08:29:32 2010 From: srp at ideadevice.com (Saju Pillai) Date: Tue, 2 Nov 2010 12:59:32 +0530 Subject: [BangPypers] JOB: Idea Device - Startup hiring E #3, #4 Message-ID: Idea Device is a software product startup based out of IIM Bangalore. We create Epsilon, a leading run book automation solution targeted at IT/OPS/KPO divisions of large enterprises. Our customers include a large financial company, a global pharma giant and India's leading mobility company. Our stack is based on Python, JS/HTML & MySQL. We are looking to hire our employee #3 & #4. Please contact srp at ideadevice.com with your CV if you are interested. Idea Device: http://www.ideadevice.com Run book automation: http://en.wikipedia.org/wiki/Run_Book_Automation -srp -- Idea Device Automation Technologies www.ideadevice.com +91 9945196516 From shashidhar85 at gmail.com Tue Nov 2 09:17:43 2010 From: shashidhar85 at gmail.com (Shashidhar P) Date: Tue, 2 Nov 2010 13:47:43 +0530 Subject: [BangPypers] Access xml file form python script In-Reply-To: References: Message-ID: Hi Avinash, There is simple python library for parsing the XML file, accessing data, adding, editing. It is LXML. You can refer its documentation at: http://codespeak.net/lxml/. On Tue, Nov 2, 2010 at 11:26 AM, Dhananjay Nene wrote: > On Sun, Oct 31, 2010 at 5:12 PM, Avinash TM wrote: > > > Hi All, > > > > I have created a simple xml document i.e., preferences.xml as follows > > > > > > > > > > Cricket > > > > > > > > > > > > > > > > > > My favourite light weight tool for xml is minidom > http://docs.python.org/library/xml.dom.minidom.html > > http://www.boddie.org.uk/python/XML_intro.html > > If you are needing simple xml parsing capabilities - it might just suffice > your needs and is built into python. > > > > > Now i want to access the above data from a python script. > > I gone through some websites. But not getting actual idea. > > Should i use any data structures ( Lists, Dictionary, Tuples) in my > python > > script. > > Can anybody help me > > > > Thanks & Regards > > Avinash > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From jace at pobox.com Tue Nov 2 11:41:26 2010 From: jace at pobox.com (Kiran Jonnalagadda) Date: Tue, 2 Nov 2010 16:11:26 +0530 Subject: [BangPypers] Bridging in ubuntu, In-Reply-To: References: Message-ID: On Mon, Nov 1, 2010 at 3:17 PM, Anirudh Asokan wrote: > The background - > 1) I run Ubuntu linix (Karmic Koala) > 2) I got bsnl internet, I use UTStarcom router (model no:WA3002G4) > 3) I got apache2 installed. I got bridge-utils also installed > Most basic routers have an option to forward all connections from the WAN side to a local IP. Yours will too. Advanced routers can forward selected ports. Be warned that your desktop may not be configured securely for exposure to the Internet. If you use Samba to share files on the LAN, for instance, you will find your shared folders regularly littered with virus droppings -- if your files haven't been copied or deleted, that is. Kiran From gopalakrishnan.subramani at gmail.com Wed Nov 3 05:02:30 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Wed, 3 Nov 2010 09:32:30 +0530 Subject: [BangPypers] Access xml file form python script In-Reply-To: References: Message-ID: lxml also can be used along with the elementtree. Personally I liked the element tree APIs and elegance. On Tue, Nov 2, 2010 at 1:47 PM, Shashidhar P wrote: > Hi Avinash, > There is simple python library for parsing the XML file, accessing data, > adding, editing. > It is LXML. You can refer its documentation at: http://codespeak.net/lxml/ > . > > On Tue, Nov 2, 2010 at 11:26 AM, Dhananjay Nene >wrote: > > > On Sun, Oct 31, 2010 at 5:12 PM, Avinash TM wrote: > > > > > Hi All, > > > > > > I have created a simple xml document i.e., preferences.xml as follows > > > > > > > > > > > > > > > Cricket > > > > > > > > > > > > > > > > > > > > > > > > > > > My favourite light weight tool for xml is minidom > > http://docs.python.org/library/xml.dom.minidom.html > > > > http://www.boddie.org.uk/python/XML_intro.html > > > > If you are needing simple xml parsing capabilities - it might just > suffice > > your needs and is built into python. > > > > > > > > > Now i want to access the above data from a python script. > > > I gone through some websites. But not getting actual idea. > > > Should i use any data structures ( Lists, Dictionary, Tuples) in my > > python > > > script. > > > Can anybody help me > > > > > > Thanks & Regards > > > Avinash > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > -------------------------------------------------------- > > blog: http://blog.dhananjaynene.com > > twitter: http://twitter.com/dnene > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919449073835 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From vid at svaksha.com Wed Nov 3 09:50:36 2010 From: vid at svaksha.com (=?UTF-8?B?4KWlIOCkuOCljeCkteCkleCljeCktyDgpaUg?=) Date: Wed, 3 Nov 2010 14:35:36 +0545 Subject: [BangPypers] [x-post] [ANN] nonameconf.in Message-ID: Hello, As per subject, announcing http://nonameconf.in Feel free to circulate the information. -- Regards, vid ? http://svaksha.com From kadambari.devarajan at gmail.com Wed Nov 3 14:24:34 2010 From: kadambari.devarajan at gmail.com (Kadambari Devarajan) Date: Wed, 3 Nov 2010 18:54:34 +0530 Subject: [BangPypers] [ANN][X-Post] SciPy 2010 Call for Papers & Participation Message-ID: ========================================== SciPy 2010 Call for Papers & Participation ========================================== The second SciPy India Conference (scipy.in) will be held from December 13th to 18th, 2010 at IIIT-Hyderabad (http://www.iiit.ac.in/). Scipy.in is a conference providing opportunities to spread the use of the Python programming language in the Scientific Computing community in India. It provides a unique opportunity to interact with the "Who's who" of the Python for Scientific Computing fraternity and learn, understand, participate and contribute what is happening in the realms of Scientific Computing using Python. Attendees of the conference and participants of the sprints planned will be able to access and review the tools available, apart from learning domain-specific applications and how the tools apply to a plethora of application problems. One of the goals of the conference is to combine education, engineering and science with computing through the medium of Python and thereby extrapolate on how powerful Scientific Computing is in various fields and among different communities. At this conference, novel applications and breakthroughs made in the pursuit of science using Python are presented. Attended by leading figures from both academia and industry, it is an excellent opportunity to experience the cutting edge of scientific software development. The conference is followed by three days of tutorials and code sprints, during which community experts provide training on several scientific Python packages. We invite you to take part by submitting a talk abstract or register as a participant on the conference website at: http://scipy.in Talk/Paper Submission ===================== We solicit talks and accompanying papers (either formal academic or magazine-style articles) that discuss topics regarding scientific computing using Python, including applications, teaching, development and research. Papers are included in the peer-reviewed conference proceedings, published online. Please note that submissions primarily aimed at the promotion of a commercial product or service will not be considered. Important Dates =============== Wednesday, Nov. 10: Abstracts Due Monday, Nov. 15: Schedule announced Sunday, Dec. 05: Proceedings paper submission due Monday-Tuesday, Dec. 13-14: Conference Wednesday-Friday, Dec. 15-17: Tutorials/Sprints Saturday, Dec. 18: Sprints The invited speakers ================== * Fernando Perez -- PhD from University of Colorado. Currently at the Helen Wills Neuroscience Institute at the University of California, Berkeley. Original author and leader of the IPython project for interactive computing (http://ipython.scipy.org), and member of the Python Software Foundation. * John Hunter -- Ph.D. from University of Chicago. Currently at Tradelink, Inc. Chicago. Original author and lead developer of the scientific visualization package *matplotlib*. * Perry Greenfield -- PhD, MIT. Currently at Space Telescope Science Institute, Maryland, USA. Has pioneered the use of Python in astronomy. He and his group have developed PyRAF, numarray (the precursor to current numpy capabilities), PyFITS and involved with the development of matplotlib. * Prabhu Ramachandran -- PhD, IIT Madras. Currently a faculty member at IIT Bombay. He is the co-founder of the Indian Linux User Group - Chennai (ILUGC) and is the creator and lead developer of the (FOSS-India-award-winning) Mayavi and TVTK Python packages ( http://code.enthought.com/projects/mayavi). Currently heads the FOSSEE ( http://fossee.in) project. * St?fan van der Walt -- PhD, Stellenbosch University, SA. Currently a researcher and lecturer in Applied Mathematics at Stellenbosch University. One of the developers of the NumPy and SciPy packages. * Jarrod Millman -- Member of the SciPy steering committee and an active contributor to both the NumPy and SciPy projects. He is the acting managing director and the director of computing for UC Berkeley's Neuroscience Institute, where he helped found the Neuroimaging in Python (NiPy) project. * Satrajit Ghosh -- PhD Boston University. Currently a faculty member of the Speech and Hearing Biosciences and Technology program, Harvard-MIT. He is managing the development of the NiPy project (http://nipy.org/nipype/). * Asokan Pichai -- Head - Software Engineering at TalentSprint. Consultant/Project manager for the Python group of the FOSSEE project. He has immense experience in the field of training and instructional design. Organizers ========== * Jarrod Millman, Neuroscience Institute, UC Berkeley, USA (Conference Co-Chair) * Prabhu Ramachandran, Department of Aerospace Engineering, IIT Bombay, India (Conference Co-Chair) * FOSSEE Team * EnhanceEdu Team About Python ============ Python is an interpreted, interactive, object-oriented, open source, extensible programming language. It combines clarity and readability, making it an extremely powerful language that can be used for various applications and problems. Python is simple and easy to learn and apply. It offers an interactive environment in which to explore procedural, functional and object oriented approaches to problem solving. Its high level data structures, extensive documentation and clear syntax make it an ideal first language, while the large number of existing libraries make it suitable to tackle almost any programming tasks. Its simplicity makes it easy to adapt to multiple educational domains. Python has several libraries that enable numeric and symbolic computing. It also interfaces well with native codes in C,C++ and FORTRAN and has excellent libraries for plotting/visualization. Python also provides libraries for general purpose computing including generating user interfaces and web development. These, coupled with it's interactive interpreter, make Python an excellent language for Scientific Computing. All these features when combined with their wide-ranging applications make Python a perfect fit for use in Education, Industry and Scientific Computing. Registration Fees =============== Registration, accommodation and food are offered at highly subsidized rates for teachers and students, while registration and food will be offered to all conference participants at subsidized rates. Details about the fees can be found at: http://scipy.in/scipyin/2010/about/fees/ Publicity ======== The posters can be downloaded from the website : http://scipy.in/scipyin/2010/publicity/ Contact ======= Feel free to email the organizers at info at fossee.in From kadambari.devarajan at gmail.com Mon Nov 8 16:27:42 2010 From: kadambari.devarajan at gmail.com (Kadambari Devarajan) Date: Mon, 8 Nov 2010 20:57:42 +0530 Subject: [BangPypers] [ANN][X-Post] Reminder - SciPy India 2010 Last 2 Days for Talk Abstracts Message-ID: Please find below the call for papers and participation for the scipy.inconference, for this year. It would be wonderful if you could speak on your use of Python in any area of education/science/technology/engineering, or participate in the conference and sprints. Please also feel free to forward this to interested people. There will be tutorials and sprints, apart from the conference days, and it would make a big difference if you could spread the word at offices and institutions using Python, apart from individuals. You will need to register on the website and submit a talk abstract, if interested. We will be happy to help in case you need any help with the registration process. ========================================== SciPy 2010 Call for Papers & Participation ========================================== The second SciPy India Conference (scipy.in) will be held from December 13th to 18th, 2010 at IIIT-Hyderabad (http://www.iiit.ac.in/). Scipy.in is a conference providing opportunities to spread the use of the Python programming language in the Scientific Computing community in India. It provides a unique opportunity to interact with the "Who's who" of the Python for Scientific Computing fraternity and learn, understand, participate and contribute what is happening in the realms of Scientific Computing using Python. Attendees of the conference and participants of the sprints planned will be able to access and review the tools available, apart from learning domain-specific applications and how the tools apply to a plethora of application problems. One of the goals of the conference is to combine education, engineering and science with computing through the medium of Python and thereby extrapolate on how powerful Scientific Computing is in various fields and among different communities. At this conference, novel applications and breakthroughs made in the pursuit of science using Python are presented. Attended by leading figures from both academia and industry, it is an excellent opportunity to experience the cutting edge of scientific software development. The conference is followed by three days of tutorials and code sprints, during which community experts provide training on several scientific Python packages. We invite you to take part by submitting a talk abstract or register as a participant on the conference website at: http://scipy.in Talk/Paper Submission ===================== We solicit talks and accompanying papers (either formal academic or magazine-style articles) that discuss topics regarding scientific computing using Python, including applications, teaching, development and research. Papers are included in the peer-reviewed conference proceedings, published online. Please note that submissions primarily aimed at the promotion of a commercial product or service will not be considered. Important Dates =============== Wednesday, Nov. 10: Abstracts Due Monday, Nov. 15: Schedule announced Sunday, Dec. 05: Proceedings paper submission due Monday-Tuesday, Dec. 13-14: Conference Wednesday-Friday, Dec. 15-17: Tutorials/Sprints Saturday, Dec. 18: Sprints The invited speakers ================== * Fernando Perez -- PhD from University of Colorado. Currently at the Helen Wills Neuroscience Institute at the University of California, Berkeley. Original author and leader of the IPython project for interactive computing (http://ipython.scipy.org), and member of the Python Software Foundation. * John Hunter -- Ph.D. from University of Chicago. Currently at Tradelink, Inc. Chicago. Original author and lead developer of the scientific visualization package matplotlib. * Perry Greenfield -- PhD, MIT. Currently at Space Telescope Science Institute, Maryland, USA. Has pioneered the use of Python in astronomy. He and his group have developed PyRAF, numarray (the precursor to current numpy capabilities), PyFITS and involved with the development of matplotlib. * Prabhu Ramachandran -- PhD, IIT Madras. Currently a faculty member at IIT Bombay. He is the co-founder of the Indian Linux User Group - Chennai (ILUGC) and is the creator and lead developer of the (FOSS-India-award-winning) Mayavi and TVTK Python packages ( http://code.enthought.com/projects/mayavi). Currently heads the FOSSEE ( http://fossee.in) project. * St?fan van der Walt -- PhD, Stellenbosch University, SA. Currently a researcher and lecturer in Applied Mathematics at Stellenbosch University. One of the developers of the NumPy and SciPy packages. * Jarrod Millman -- Member of the SciPy steering committee and an active contributor to both the NumPy and SciPy projects. He is the acting managing director and the director of computing for UC Berkeley's Neuroscience Institute, where he helped found the Neuroimaging in Python (NiPy) project. * Satrajit Ghosh -- PhD Boston University. Currently a faculty member of the Speech and Hearing Biosciences and Technology program, Harvard-MIT. He is managing the development of the NiPy project (http://nipy.org/nipype/). * Asokan Pichai -- Head - Software Engineering at TalentSprint. Consultant/Project manager for the Python group of the FOSSEE project. He has immense experience in the field of training and instructional design. Organizers ========== * Jarrod Millman, Neuroscience Institute, UC Berkeley, USA (Conference Co-Chair) * Prabhu Ramachandran, Department of Aerospace Engineering, IIT Bombay, India (Conference Co-Chair) * FOSSEE Team * EnhanceEdu Team About Python ============ Python is an interpreted, interactive, object-oriented, open source, extensible programming language. It combines clarity and readability, making it an extremely powerful language that can be used for various applications and problems. Python is simple and easy to learn and apply. It offers an interactive environment in which to explore procedural, functional and object oriented approaches to problem solving. Its high level data structures, extensive documentation and clear syntax make it an ideal first language, while the large number of existing libraries make it suitable to tackle almost any programming tasks. Its simplicity makes it easy to adapt to multiple educational domains. Python has several libraries that enable numeric and symbolic computing. It also interfaces well with native codes in C,C++ and FORTRAN and has excellent libraries for plotting/visualization. Python also provides libraries for general purpose computing including generating user interfaces and web development. These, coupled with it's interactive interpreter, make Python an excellent language for Scientific Computing. All these features when combined with their wide-ranging applications make Python a perfect fit for use in Education, Industry and Scientific Computing. Registration Fees =============== Registration, accommodation and food are offered at highly subsidized rates for teachers and students, while registration and food will be offered to all conference participants at subsidized rates. Details about the fees can be found at: http://scipy.in/scipyin/2010/about/fees/ Publicity ======== The posters can be downloaded from the website : http://scipy.in/scipyin/2010/publicity/ Contact ======= Feel free to email the organizers at info at fossee.in From gora at mimirtech.com Sun Nov 14 20:04:56 2010 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 15 Nov 2010 00:34:56 +0530 Subject: [BangPypers] Looking for recommendation for Python image-processing library Message-ID: 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 lack of response to both multiple requests the email address listed for PIL commercial support, and a message on the mailing list asking for such (paid) support. Given this, we have no option but to start looking at other alternatives. ImageMagick is one possibility, and indeed, we are already using it in some areas. I would like to ask for people's opinions on other Python imaging libraries, whether commercial or free. Thanks in advance for your help. Regards, Gora From orsenthil at gmail.com Mon Nov 15 11:50:54 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 15 Nov 2010 18:50:54 +0800 Subject: [BangPypers] Looking for recommendation for Python image-processing library In-Reply-To: References: Message-ID: <20101115105054.GB20767@rubuntu> On Mon, Nov 15, 2010 at 12:34:56AM +0530, Gora Mohanty wrote: > Given this, we have no option but to start looking at > other alternatives. ImageMagick is one possibility, and > indeed, we are already using it in some areas. I would 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 go for it. It well maintained when compared to PIL and sure it has wealth options too -- Senthil From nagappan at gmail.com Wed Nov 17 00:52:53 2010 From: nagappan at gmail.com (Nagappan Alagappan) Date: Tue, 16 Nov 2010 15:52:53 -0800 Subject: [BangPypers] Fwd: Running large radio telescope software on top of PyPy and twisted In-Reply-To: References: Message-ID: This should be of interest to PyPy followers as well as the scientific python community http://tinyurl.com/33sznhy -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com From anish at sugarlabs.org Wed Nov 17 06:39:47 2010 From: anish at sugarlabs.org (Anish Mangal) Date: Wed, 17 Nov 2010 11:09:47 +0530 Subject: [BangPypers] Participate in a project that is changing kids' lives worldwide Message-ID: == Introduction == The One Laptop Per Child (OLPC) and Sugarlabs initiatives are part of a global effort which aims to provide every child with equal opportunity for a quality education. Sugarlabs is an open source project which develops and maintains the award winning Sugar Learning Platform which is used daily by over two million kids; users of OLPC laptops. For more information, log on to http://laptop.org and http://sugarlabs.org. The award-winning Sugar Learning Platform promotes collaborative learning through Sugar Activities that encourage critical thinking, the heart of a quality education. Designed from the ground up especially for children, Sugar offers an alternative to traditional ?office-desktop? software. Sugar is the core component of a worldwide effort, known as the One Laptop Per Child (OLPC) project, which aims to provide every child with equal opportunity for a quality education. Available in 25 languages, Sugar?s Activities are used every school day by two-million children in more than forty countries. To know more about OLPC and sugarlabs, visit http://laptop.org and http://sugarlabs.org. == Call for participation == Seeking your participation if you are an enthusiastic: - Software Developer OR - Educator OR - Interested in creating a huge positive social impact in the field of education We, at Innovation For Social Change (IFSC) are making efforts to involve the FOSS community in India into this worldwide effort. There is immense potential for prospective community members to affect changes that will benefit kids globally. Sugar is an open-source project that is supported and maintained by a very active community of developers spread worldwide. The focus of sugar is not just developing and maintaining great code, but to understand how it affects learning. Thus, the sugar community not only comprises of software developers, but also people from an education/teaching background. In the past few months, thousands more OLPC laptops have been deployed at various locations with the promise of millions more being deployed in the coming few years. Thus, the need is greater than ever for the sugar community to include more promising contributors. == FAQ == Q. Do I have to pay anything initially? Will I get paid for my work? The answer to the first question is No. Regarding receiving payment, it entirely depends on the magnitude of an individual's contribution. One could participate purely as a volunteer, or work part-time/full-time committing a certain quantum of work and receive payment accordingly. We are open to anyone and everyone who is willing to contribute in any of these forms. Q. What type of contributions are you looking for? As previously mentioned, the sugar community is a mix of great software developers and people from teaching and educational backgrounds. We are looking for both. Q. I'm interested! What next? Drop us an e-mail at the below mentioned address. Best Regards, Innovation for Social Change; admin at innovation.org.in From abpillai at gmail.com Wed Nov 17 14:13:15 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 17 Nov 2010 18:43:15 +0530 Subject: [BangPypers] Looking for recommendation for Python image-processing library In-Reply-To: <20101115105054.GB20767@rubuntu> References: <20101115105054.GB20767@rubuntu> Message-ID: On Mon, Nov 15, 2010 at 4:20 PM, Senthil Kumaran wrote: > On Mon, Nov 15, 2010 at 12:34:56AM +0530, Gora Mohanty wrote: > > Given this, we have no option but to start looking at > > other alternatives. ImageMagick is one possibility, and > > indeed, we are already using it in some areas. I would > > 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 go for it. It well maintained when compared to > PIL and sure it has wealth options too > Have you used scipy ndimage ? http://docs.scipy.org/doc/scipy/reference/tutorial/ndimage.html > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From nitin.nitp at gmail.com Thu Nov 18 05:05:41 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Wed, 17 Nov 2010 20:05:41 -0800 Subject: [BangPypers] parsing directory and subdirecties Message-ID: hi all, is there any simple way where a can parse into directory and subdirectories to get the detail of files and count. or do i need to use looping and other functionalities. -- Nitin K From pasokan at gmail.com Thu Nov 18 05:56:33 2010 From: pasokan at gmail.com (Asokan Pichai) Date: Thu, 18 Nov 2010 10:26:33 +0530 Subject: [BangPypers] parsing directory and subdirecties In-Reply-To: References: Message-ID: On 18 November 2010 09:35, Nitin Kumar wrote: > hi all, > > is there any simple way where a can parse into directory and subdirectories > to get the detail of files and count. Check if os.walk() is useful. -- Asokan Pichai *-------------------* We will find a way. Or, make one. (Hannibal) From lawgon at au-kbc.org Thu Nov 18 06:16:47 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 18 Nov 2010 10:46:47 +0530 Subject: [BangPypers] parsing directory and subdirecties In-Reply-To: References: Message-ID: <1290057407.2117.326.camel@localhost> On Thu, 2010-11-18 at 10:26 +0530, Asokan Pichai wrote: > On 18 November 2010 09:35, Nitin Kumar wrote: > > hi all, > > > > is there any simple way where a can parse into directory and > subdirectories > > to get the detail of files and count. > > Check if os.walk() is useful. but that is looping - which he does not want. -- regards Kenneth Gonsalves From orsenthil at gmail.com Thu Nov 18 10:44:55 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 18 Nov 2010 17:44:55 +0800 Subject: [BangPypers] parsing directory and subdirecties In-Reply-To: <1290057407.2117.326.camel@localhost> References: <1290057407.2117.326.camel@localhost> Message-ID: <20101118094455.GA2002@rubuntu> On Thu, Nov 18, 2010 at 10:46:47AM +0530, Kenneth Gonsalves wrote: > > > > Check if os.walk() is useful. > > but that is looping - which he does not want. Then he can wrap python over 'find -type f |wc -l' - Provided he is on POSIX and wants to just count the files. os.system('find -type f |wc -l') OR proc1 = subprocess.Popen(['find','-type','f'],stdout=subprocess.PIPE) proc2 = subprocess.Popen(['wc','-l'],stdin=proc1.stdout,stdout=subprocess.PIPE) out,err = proc2.communicate() From gora at mimirtech.com Thu Nov 18 15:32:54 2010 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 18 Nov 2010 20:02:54 +0530 Subject: [BangPypers] Looking for recommendation for Python image-processing library In-Reply-To: <20101115105054.GB20767@rubuntu> References: <20101115105054.GB20767@rubuntu> Message-ID: 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 go for it. It well maintained when compared to > PIL and sure it has wealth options too [...] Thanks, ImageMagick is probably what we are going to go with. Regards, Gora From gora at mimirtech.com Thu Nov 18 15:40:06 2010 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 18 Nov 2010 20:10:06 +0530 Subject: [BangPypers] Looking for recommendation for Python image-processing library In-Reply-To: References: <20101115105054.GB20767@rubuntu> Message-ID: 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 towards scientific / medical image processing. Our needs are a little more mundane, e.g., colour-space conversion, converting .TIFFs from 16 bits/channel to 8 bits/channel, changing the compression scheme for .TIFFs, etc. Regards, Gora From dhananjay.nene at gmail.com Thu Nov 18 18:26:51 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Thu, 18 Nov 2010 22:56:51 +0530 Subject: [BangPypers] parsing directory and subdirecties In-Reply-To: <1290057407.2117.326.camel@localhost> References: <1290057407.2117.326.camel@localhost> Message-ID: On Thu, Nov 18, 2010 at 10:46 AM, Kenneth Gonsalves wrote: > On Thu, 2010-11-18 at 10:26 +0530, Asokan Pichai wrote: > > On 18 November 2010 09:35, Nitin Kumar wrote: > > > hi all, > > > > > > is there any simple way where a can parse into directory and > > subdirectories > > > to get the detail of files and count. > > > > Check if os.walk() is useful. > > but that is looping - which he does not want. > Am unclear by what specifically is the issue here with looping, but list comprehensions can be quite useful (even though implicitly they use iterators as do loops). Something along the lines of print list((dirpath, len(filenames)) for dirpath, dirnames, filenames in os.walk('/home/user')) > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From learningpython at aol.com Thu Nov 18 22:25:07 2010 From: learningpython at aol.com (learningpython at aol.com) Date: Thu, 18 Nov 2010 16:25:07 -0500 (EST) Subject: [BangPypers] waiting for Third Party Applications in python Message-ID: <8CD557E351B2E0F-BD4-2799E@Webmail-m109.sysops.aol.com> Hi Experts, Step 1: I am using batch file/ Dos commands currently to call a third party appplication to publish a document. Step 2: As of now, i scheduled to run a second set of batch file leaving a long approximate time to allow third party to complete the above task where i get a dialog box, that it's done. The dialog box lingers on (Modal dialog box) from third party application comes when i run step 1 above. I have inherited these batch files. I would like to convert them into Python and i know a tiny little bit till now. My questions: 1. Can i call these DOS commands from python ? example please 2. Is there a way, i can know that third pary application has thrown up a dialog box, so that i can wait in Python till that point and execute clean up commands like killing the application, renaming the document etc. Psuedocode: execute dos commands wait ( until third party shows up dialog window) If ( Third party dialog) run the enter command as "OK" is highlighted and only option. execute further commands call Another batch file . Any help is appreciated. Regards -L From lawgon at au-kbc.org Fri Nov 19 04:48:55 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 19 Nov 2010 09:18:55 +0530 Subject: [BangPypers] [commercial] web mobile developers wanted for remote work Message-ID: <1290138535.2117.376.camel@localhost> hi, A company doing sales and service of it's products around India wants to set up a portal to monitor it's work and optimise it's services. They have agreed to make the project open source, and will pay developers to develop it. The rates will be 'industry standard' (what ever that is). The framework will be django/postgresql. Extensive use of GIS is also contemplated and the company is committed to putting in some resources to develop OSM in India. People with django skills, mobile application development, design (css, html, js), and GIS are needed. Please contact me offlist - both individuals or companies may contact. -- regards Kenneth Gonsalves From mandarvaze at gmail.com Fri Nov 19 06:34:16 2010 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Fri, 19 Nov 2010 11:04:16 +0530 Subject: [BangPypers] waiting for Third Party Applications in python In-Reply-To: <8CD557E351B2E0F-BD4-2799E@Webmail-m109.sysops.aol.com> References: <8CD557E351B2E0F-BD4-2799E@Webmail-m109.sysops.aol.com> Message-ID: > 1. Can i call these DOS commands from python ? example please > You can execute third party commands using os.system() - Details and example here : http://docs.python.org/tutorial/stdlib.html But generally it is used for starting commands that execute and return some value. To read input/output/error pipes - http://docs.python.org/library/subprocess.html 2. Is there a way, i can know that third pary application has thrown up a > dialog box, so that i can wait in Python till that point and execute clean > up commands > like killing the application, renaming the document etc. > I'm not sure if there is a way to interact with GUI application -Mandar From orsenthil at gmail.com Fri Nov 19 07:50:51 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 19 Nov 2010 14:50:51 +0800 Subject: [BangPypers] waiting for Third Party Applications in python In-Reply-To: References: <8CD557E351B2E0F-BD4-2799E@Webmail-m109.sysops.aol.com> Message-ID: <20101119065051.GA1181@rubuntu> On Fri, Nov 19, 2010 at 11:04:16AM +0530, Mandar Vaze / ????? ??? wrote: > > 2. Is there a way, i can know that third pary application has thrown > > up a dialog box, so that i can wait in Python till that point and > > execute clean up commands like killing the application, renaming > > the document etc. > > > > I'm not sure if there is a way to interact with GUI application There is one called PywinAuto: http://pywinauto.pbworks.com/w/page/9546216/FrontPage -- Senthil From noufal at gmail.com Fri Nov 19 09:23:18 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 19 Nov 2010 13:53:18 +0530 Subject: [BangPypers] waiting for Third Party Applications in python In-Reply-To: <20101119065051.GA1181@rubuntu> (Senthil Kumaran's message of "Fri, 19 Nov 2010 14:50:51 +0800") References: <8CD557E351B2E0F-BD4-2799E@Webmail-m109.sysops.aol.com> <20101119065051.GA1181@rubuntu> Message-ID: <874obdhgcp.fsf@gmail.com> On Fri, Nov 19 2010, Senthil Kumaran wrote: > On Fri, Nov 19, 2010 at 11:04:16AM +0530, Mandar Vaze / ????? ??? wrote: >> > 2. Is there a way, i can know that third pary application has thrown >> > up a dialog box, so that i can wait in Python till that point and >> > execute clean up commands like killing the application, renaming >> > the document etc. >> > >> >> I'm not sure if there is a way to interact with GUI application > > There is one called PywinAuto: > http://pywinauto.pbworks.com/w/page/9546216/FrontPage There are a bunch of them but most rely either on cursor position or on the widget hierarchies to get what you want to click on. I played with sendKeys, pywinauto, watsup and something else but unless your application *is* very well behaved, it can be hard to "script the GUI". -- ~noufal http://nibrahim.net.in From vasudevan.in at gmail.com Sat Nov 20 00:58:13 2010 From: vasudevan.in at gmail.com (Vasudevan N) Date: Fri, 19 Nov 2010 15:58:13 -0800 Subject: [BangPypers] parsing directory and subdirecties In-Reply-To: References: Message-ID: The simplest way would be to use recursive calls. Thanks, Vasu On Wed, Nov 17, 2010 at 8:05 PM, Nitin Kumar wrote: > hi all, > > is there any simple way where a can parse into directory and subdirectories > to get the detail of files and count. > > or do i need to use looping and other functionalities. > > -- > Nitin K > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From dhananjay.nene at gmail.com Sat Nov 20 08:32:41 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Sat, 20 Nov 2010 13:02:41 +0530 Subject: [BangPypers] parsing directory and subdirecties In-Reply-To: References: Message-ID: On Sat, Nov 20, 2010 at 5:28 AM, Vasudevan N wrote: > The simplest way would be to use recursive calls. > Vasu, a. That could still entail a loop on a files per directory basis b. If you avoid the loop and recurse on a per file (eg by shaving the head off the sequence and passing on the tail), there's no tail call optimization to avoid a stack overflow. Dhananjay > > Thanks, > Vasu > > On Wed, Nov 17, 2010 at 8:05 PM, Nitin Kumar wrote: > > > hi all, > > > > is there any simple way where a can parse into directory and > subdirectories > > to get the detail of files and count. > > > > or do i need to use looping and other functionalities. > > > > -- > > Nitin K > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From souri.istheone at gmail.com Mon Nov 22 11:45:26 2010 From: souri.istheone at gmail.com (souri datta) Date: Mon, 22 Nov 2010 16:15:26 +0530 Subject: [BangPypers] Python 2.3.4 and IPV6 compliance Message-ID: Hi , I would like to know whether the packages urllib and urllib2 are ipv6 compliant or not? >From this link http://bugs.python.org/issue1675455 , it is not very clear. Can someone please clear my doubt? Thanks in advance. Souri From orsenthil at gmail.com Mon Nov 22 12:10:02 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 22 Nov 2010 19:10:02 +0800 Subject: [BangPypers] Python 2.3.4 and IPV6 compliance In-Reply-To: References: Message-ID: <20101122111002.GA1840@rubuntu> On Mon, Nov 22, 2010 at 04:15:26PM +0530, souri datta wrote: > I would like to know whether the packages urllib and urllib2 are > ipv6 compliant or not? Python 2.3.4 supports IPv6. By that, I mean, socket module will recognize and talk to a IPv6 address. But if you want to anything at the higher level like parsing a IPv6 URL, it is added only the much later versions of Python - 2.6 release. > >From this link http://bugs.python.org/issue1675455 , it is not very clear. This is an open bug. What this indicates is, IPv6 access on local files and ftp access via IPv6 would fail. If you are going to do HTTP, this bug should not affect you. -- Senthil From lawgon at au-kbc.org Tue Nov 23 12:05:39 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 23 Nov 2010 16:35:39 +0530 Subject: [BangPypers] converting utf to octal Message-ID: <1290510339.2137.85.camel@localhost> hi, say I have an indic (tamil) string like ????. This is actually represented by the following: 0x0ba8,0x0bbe,0x0ba9,0x0bcd. How can I convert the above string into these characters - or at least into base 10 integers? -- regards Kenneth Gonsalves From orsenthil at gmail.com Tue Nov 23 12:21:41 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 23 Nov 2010 19:21:41 +0800 Subject: [BangPypers] converting utf to octal In-Reply-To: <1290510339.2137.85.camel@localhost> References: <1290510339.2137.85.camel@localhost> Message-ID: On Tue, Nov 23, 2010 at 7:05 PM, Kenneth Gonsalves wrote: > say I have an indic (tamil) string like ????. This is actually > represented by the following: > 0x0ba8,0x0bbe,0x0ba9,0x0bcd. Under which encoding? > How can I convert the above string into > these characters - or at least into base 10 integers? If you use utf-8 encoding, it goes like this: # -*- coding: utf-8 -*- str1 = u"????" print repr(str1.encode('utf-8')) # output: '\xe0\xae\xa8\xe0\xae\xbe\xe0\xae\xa9\xe0\xaf\x8d' You can try/test things here: http://uthcode.codepad.org/oSPpyrzs -- Senthil From lawgon at au-kbc.org Tue Nov 23 12:42:20 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 23 Nov 2010 17:12:20 +0530 Subject: [BangPypers] converting utf to octal In-Reply-To: References: <1290510339.2137.85.camel@localhost> Message-ID: <1290512540.2137.87.camel@localhost> On Tue, 2010-11-23 at 19:21 +0800, Senthil Kumaran wrote: > On Tue, Nov 23, 2010 at 7:05 PM, Kenneth Gonsalves > wrote: > > say I have an indic (tamil) string like ????. This is actually > > represented by the following: > > 0x0ba8,0x0bbe,0x0ba9,0x0bcd. > > Under which encoding? I am not sure - this was what the unicode chart gives > > > How can I convert the above string into > > these characters - or at least into base 10 integers? > > If you use utf-8 encoding, it goes like this: > > # -*- coding: utf-8 -*- > str1 = u"????" > print repr(str1.encode('utf-8')) > > # output: > > '\xe0\xae\xa8\xe0\xae\xbe\xe0\xae\xa9\xe0\xaf\x8d' but this gives 12 groups - I require 4 -- regards Kenneth Gonsalves From jaganadhg at gmail.com Tue Nov 23 13:06:06 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Tue, 23 Nov 2010 17:36:06 +0530 Subject: [BangPypers] converting utf to octal In-Reply-To: <1290510339.2137.85.camel@localhost> References: <1290510339.2137.85.camel@localhost> Message-ID: On Tue, Nov 23, 2010 at 4:35 PM, Kenneth Gonsalves wrote: > hi, > > say I have an indic (tamil) string like ????. This is actually > represented by the following: > 0x0ba8,0x0bbe,0x0ba9,0x0bcd. How can I convert the above string into > these characters - or at least into base 10 integers? > -- > Are you looking something similar to this http://silpa.smc.org.in/CharDetails -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From noufal at gmail.com Tue Nov 23 13:38:48 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 23 Nov 2010 18:08:48 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" Message-ID: <87fwuscizr.fsf@gmail.com> Hello everyone, I've been working on a project to conduct public trainings on technologies/applications that I use on a semi-daily basis (Emacs, Git, Python etc.) As part of this, I'm organising my first training in Bangalore. It's on extending Python using C. I have a blog post detailing the course and with links to register at http://nibrahim.net.in/2010/11/22/python_extension_training.html Thanks -- ~noufal http://nibrahim.net.in From rmathews at gmail.com Tue Nov 23 14:48:40 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 23 Nov 2010 19:18:40 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <87fwuscizr.fsf@gmail.com> References: <87fwuscizr.fsf@gmail.com> Message-ID: On Tue, Nov 23, 2010 at 18:08, Noufal Ibrahim wrote: > ? ? ? ?As part of this, I'm organising my first training in > Bangalore. It's on extending Python using C. I have a blog post > detailing the course and with links to register at > http://nibrahim.net.in/2010/11/22/python_extension_training.html > Noufal, This sounds fantastic. I wish was in Bangalore (or able to travel to Bangalore) to attend. Do post slides, or any other material you present later on. All the best for your talks. Roshan -- http://about.me/rosh From lawgon at au-kbc.org Wed Nov 24 03:38:30 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 24 Nov 2010 08:08:30 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: References: <87fwuscizr.fsf@gmail.com> Message-ID: <1290566310.2137.102.camel@localhost> On Tue, 2010-11-23 at 19:18 +0530, Roshan Mathews wrote: > On Tue, Nov 23, 2010 at 18:08, Noufal Ibrahim > wrote: > > As part of this, I'm organising my first training in > > Bangalore. It's on extending Python using C. I have a blog post > > detailing the course and with links to register at > > http://nibrahim.net.in/2010/11/22/python_extension_training.html > > > Noufal, > > This sounds fantastic. I wish was in Bangalore (or able to travel to > Bangalore) to attend. Do post slides, or any other material you > present later on. did you check out the link? -- regards Kenneth Gonsalves From rmathews at gmail.com Wed Nov 24 03:56:25 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 24 Nov 2010 08:26:25 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <1290566310.2137.102.camel@localhost> References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> Message-ID: On Wed, Nov 24, 2010 at 08:08, Kenneth Gonsalves wrote: > On Tue, 2010-11-23 at 19:18 +0530, Roshan Mathews wrote: >> This sounds fantastic. ?I wish was in Bangalore (or able to travel to >> Bangalore) to attend. ?Do post slides, or any other material you >> present later on. > > did you check out the link? > Yes. Didn't notice that it was a paid lecture till I saw the registration page though. But that's that. Why is it relevant? -- http://about.me/rosh From lawgon at au-kbc.org Wed Nov 24 04:45:41 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 24 Nov 2010 09:15:41 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> Message-ID: <1290570341.2137.115.camel@localhost> On Wed, 2010-11-24 at 08:26 +0530, Roshan Mathews wrote: > On Wed, Nov 24, 2010 at 08:08, Kenneth Gonsalves > wrote: > > On Tue, 2010-11-23 at 19:18 +0530, Roshan Mathews wrote: > >> This sounds fantastic. I wish was in Bangalore (or able to travel > to > >> Bangalore) to attend. Do post slides, or any other material you > >> present later on. > > > > did you check out the link? > > > Yes. Didn't notice that it was a paid lecture till I saw the > registration page though. But that's that. Why is it relevant? well, if it is paid lecture, normally slides are only available to those who pay. And anyway, having watched Noufal teaching python at last year's conference, I would say his lectures would be worth every paisa. We are desperately short of python programmers and we need more initiatives like this to fill the gap - otherwise suits opt for lesser languages because they are afraid they cannot get people to maintain their code if the team they employ vanishes. -- regards Kenneth Gonsalves From lawgon at au-kbc.org Wed Nov 24 04:51:35 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 24 Nov 2010 09:21:35 +0530 Subject: [BangPypers] converting utf to octal In-Reply-To: References: <1290510339.2137.85.camel@localhost> Message-ID: <1290570695.2137.122.camel@localhost> On Tue, 2010-11-23 at 17:36 +0530, JAGANADH G wrote: > On Tue, Nov 23, 2010 at 4:35 PM, Kenneth Gonsalves > wrote: > > > hi, > > > > say I have an indic (tamil) string like ????. This is actually > > represented by the following: > > 0x0ba8,0x0bbe,0x0ba9,0x0bcd. How can I convert the above string into > > these characters - or at least into base 10 integers? > > -- > > > > > Are you looking something similar to this > http://silpa.smc.org.in/CharDetails something like that, but the code on that site is all thoroughly GPLed and hence cannot be used. Actually the moment I saw the GPL notice, I shut my eyes and closed the site. Unfortunately, before closing my eyes I noticed that they import codecs - which is central to my solution. I do not think I have violated the GPL by importing codecs - but am a bit apprehensive about getting a legal notice. Anyway, what I wanted to do is here: http://bitbucket.org/lawgon/tamtrans/src/21197e0f1388/syllcount.py why do people make useful code unusable by GPLing it? -- regards Kenneth Gonsalves From santrajan at gmail.com Wed Nov 24 04:54:00 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 24 Nov 2010 09:24:00 +0530 Subject: [BangPypers] Random hacks of kindness 4th 5th Dec Bangalore Message-ID: "On December 4th and 5th, 2010 Random Hacks of Kindness, in collaboration with partners worldwide, is hosting its third hackathon?a global gathering of hackers in many locations around the world, coming together in real time for a marathon weekend of coding around problems relating to natural disaster risk and response." http://www.rhok.org/events/rhok-2/ -- http://hi.im/santosh From noufal at gmail.com Wed Nov 24 05:24:52 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 24 Nov 2010 09:54:52 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <1290570341.2137.115.camel@localhost> (Kenneth Gonsalves's message of "Wed, 24 Nov 2010 09:15:41 +0530") References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> Message-ID: <877hg3bb6z.fsf@gmail.com> On Wed, Nov 24 2010, Kenneth Gonsalves wrote: [...] > well, if it is paid lecture, normally slides are only available to > those who pay. And anyway, having watched Noufal teaching python at > last year's conference, I would say his lectures would be worth every > paisa. We are desperately short of python programmers and we need > more initiatives like this to fill the gap - otherwise suits opt for > lesser languages because they are afraid they cannot get people to > maintain their code if the team they employ vanishes. Thank you for the endorsement Kenneth. I considered making it a free thing but dropped the idea. Preparing something complete with notes and stuff takes up a considerable amount of time (as I've found out) and I simply cannot just do it in my free time. I've put my projects on hold to do this properly. I've even half built an Emacs mode that will help in presenting the code. Designing and testing all aspects of this course is pretty much my day job right now. -- ~noufal http://nibrahim.net.in From rmathews at gmail.com Wed Nov 24 05:36:33 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 24 Nov 2010 10:06:33 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <877hg3bb6z.fsf@gmail.com> References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> Message-ID: On Wed, Nov 24, 2010 at 09:54, Noufal Ibrahim wrote: > I considered making it a free thing but dropped the idea. Preparing > something complete with notes and stuff takes up a considerable amount > of time (as I've found out) and I simply cannot just do it in my free > time. > > I've put my projects on hold to do this properly. I've even half built > an Emacs mode that will help in presenting the code. Designing and > testing all aspects of this course is pretty much my day job right now. > Fwiw, I still think this is fantastic. I don't think you should share the notes for a paid talk (except maybe a teaser) unless you want to, and I wouldn't have asked if I had realized it wasn't free. Roshan -- http://about.me/rosh From abpillai at gmail.com Wed Nov 24 08:31:40 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 24 Nov 2010 13:01:40 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> Message-ID: On Wed, Nov 24, 2010 at 10:06 AM, Roshan Mathews wrote: > On Wed, Nov 24, 2010 at 09:54, Noufal Ibrahim wrote: > > I considered making it a free thing but dropped the idea. Preparing > > something complete with notes and stuff takes up a considerable amount > > of time (as I've found out) and I simply cannot just do it in my free > > time. > > > > I've put my projects on hold to do this properly. I've even half built > > an Emacs mode that will help in presenting the code. Designing and > > testing all aspects of this course is pretty much my day job right now. > > > Fwiw, I still think this is fantastic. I don't think you should share > the notes for a paid talk (except maybe a teaser) unless you want to, > and I wouldn't have asked if I had realized it wasn't free. > I see nothing wrong in Roshan asking for the material though he might have missed it is a paid talk. He has a point even if inadvertently. IMHO, now a days, the right thing to do is to actually share the material even if the actual talk is a paid one. People are paying mainly for being in the class and getting taught by the speaker, not only for the teaching material. If the lecture is good, people will still come though the material is free. If not the whole material, then at least the code samples. All the best for the talk. > Roshan > > > -- > http://about.me/rosh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From venkat83 at gmail.com Wed Nov 24 08:50:23 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 24 Nov 2010 13:20:23 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> Message-ID: On Wed, Nov 24, 2010 at 1:01 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > IMHO, now a days, the right thing to do is to actually share > the material even if the actual talk is a paid one. People are paying > mainly for being in the class and getting taught by the speaker, not > only for the teaching material. > > If the lecture is good, people will still come though the material > is free. > True. I dont think sharing the slides is going to do any harm in any case; especially when the speaker is not known well; though its the speaker's discretion to share or not. Actually, i attend most of the sessions/conferences only when the talk agenda/slides are available in advance. -V- http://twitter.com/venkasub From noufal at gmail.com Wed Nov 24 09:37:46 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 24 Nov 2010 14:07:46 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: (Venkatraman S.'s message of "Wed, 24 Nov 2010 13:20:23 +0530") References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> Message-ID: <877hg39kx1.fsf@gmail.com> On Wed, Nov 24 2010, Venkatraman S wrote: [...] > True. I dont think sharing the slides is going to do any harm in any > case; especially when the speaker is not known well; though its the > speaker's discretion to share or not. > > Actually, i attend most of the sessions/conferences only when the talk > agenda/slides are available in advance. [...] I haven't really decided. There's a mix of slides and notes. Some of it will be online. I'm still undecided about how much. -- ~noufal http://nibrahim.net.in From jace at pobox.com Wed Nov 24 17:29:22 2010 From: jace at pobox.com (Kiran Jonnalagadda) Date: Wed, 24 Nov 2010 21:59:22 +0530 Subject: [BangPypers] Django-based CMS recommendations? Message-ID: Hi all, Does this list have a recommendation for a Django-based CMS? Or a review of the one conveniently named "Django CMS"? I'm looking for a CMS that is convenient to use over the web, has blogging abilities, and is extensible the way Django is. Should be in Python for the comfort factor. I'm a long time Plone hacker and intimately familiar with its internals, but find it too heavyweight for current needs. I've also hacked Zine, but it's in need of a new maintainer as author Armin Ronacher's energies are now focused on Flask, his new (and superb) app framework. The Django architecture has its own issues, but is stable enough to not need worrying about maintenance. So, Django-based CMS, anyone? -- Kiran Jonnalagadda http://hasgeek.in From venkat83 at gmail.com Wed Nov 24 17:35:25 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 24 Nov 2010 22:05:25 +0530 Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: On Wed, Nov 24, 2010 at 9:59 PM, Kiran Jonnalagadda wrote: > Does this list have a recommendation for a Django-based CMS? Or a review of > the one conveniently named "Django CMS"? > Try http://djangopluggables.com/ for the download stats and other options. If all you want is a simple blogging app then can write your own? or assemble together the various django-xxxxx apps? or try customizing Pinax? or try any of the above ones from django-pluggables? -V- http://twitter.com/venkasub From ramdaz at gmail.com Wed Nov 24 17:53:21 2010 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 24 Nov 2010 22:23:21 +0530 Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: On Wed, Nov 24, 2010 at 10:05 PM, Venkatraman S wrote: > On Wed, Nov 24, 2010 at 9:59 PM, Kiran Jonnalagadda > wrote: > > > Does this list have a recommendation for a Django-based CMS? Or a review > of > > the one conveniently named "Django CMS"? > > > > Try http://djangopluggables.com/ for the download stats and other > options. > If all you want is a simple blogging app then can write your own? > or assemble together the various django-xxxxx apps? > or try customizing Pinax? > customizing Pinax is not a great idea. Try writing one > or try any of the above ones from django-pluggables? > > -V- > http://twitter.com/venkasub > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From gora at mimirtech.com Wed Nov 24 17:58:45 2010 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 24 Nov 2010 22:28:45 +0530 Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: 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 requirements. These days, I would recommend feincms. Please see http://pydanny.blogspot.com/2009/09/show-me-your-open-source-django-cms.html for a blog article about how a NASA division picked feincms (django-cms was the close, second choice). > I'm looking for a CMS that is convenient to use over the web, has blogging > abilities, and is extensible the way Django is. Should be in Python for the > comfort factor. [...] It is probably best to use an external blogging application. There are several choices here, but I would go with Mingus: https://github.com/montylounge/django-mingus http://blog.montylounge.com/2009/07/1/welcome/ http://blog.montylounge.com/2009/09/24/apps-that-power-django-mingus/ One big advantage of Mingus is that it is a collection of Django applications, and hence can easily be integrated into a Django project. Now, there is also apparently some integration with feincms, though I have not tried out this aspect: http://www.toolpart.hu/blog/2010/01/28/feincms-integration-mingus/ Regards, Gora From jace at pobox.com Wed Nov 24 17:59:23 2010 From: jace at pobox.com (Kiran Jonnalagadda) Date: Wed, 24 Nov 2010 22:29:23 +0530 Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: On Wed, Nov 24, 2010 at 10:05 PM, Venkatraman S wrote: > Try http://djangopluggables.com/ for the download stats and other > options. > If all you want is a simple blogging app then can write your own? > or assemble together the various django-xxxxx apps? > or try customizing Pinax? > or try any of the above ones from django-pluggables? > That's a good site, thanks. I wasn't aware of Pinax. The trouble with custom code is that long term maintenance is expensive and, with smaller teams, turns into a permanent "someday" task. Kiran From steve at lonetwin.net Wed Nov 24 17:30:53 2010 From: steve at lonetwin.net (steve) Date: Wed, 24 Nov 2010 22:00:53 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <877hg39kx1.fsf@gmail.com> References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> <877hg39kx1.fsf@gmail.com> Message-ID: <4CED3DBD.8090902@lonetwin.net> On 11/24/2010 02:07 PM, Noufal Ibrahim wrote: > On Wed, Nov 24 2010, Venkatraman S wrote: > > > [...] > >> True. I dont think sharing the slides is going to do any harm in any >> case; especially when the speaker is not known well; though its the >> speaker's discretion to share or not. >> >> Actually, i attend most of the sessions/conferences only when the talk >> agenda/slides are available in advance. > > [...] > > I haven't really decided. There's a mix of slides and notes. Some of it > will be online. I'm still undecided about how much. > > Firstly, wish you the best with this !! Like KG mentioned, we could do with some more python programmers. On the topic of slides/notes, IMHO, free (as in freedom) documents are good. My recommendation would be to make your slides/notes available (possibly for a fee) under a CC-BY-SA (and possibly NC) license. This might also help people who cannot/do not want to attend the training but would like to buy/download the courseware. I understand completely the point about the time and effort it takes to create content (having conducted trainings myself) but that's a one time investment. Having free documents /might/ help you improve them via suggestions/patches from others. just my opinion. cheers, - steve From noufal at gmail.com Wed Nov 24 18:06:23 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 24 Nov 2010 22:36:23 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <4CED3DBD.8090902@lonetwin.net> (steve@lonetwin.net's message of "Wed, 24 Nov 2010 22:00:53 +0530") References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> <877hg39kx1.fsf@gmail.com> <4CED3DBD.8090902@lonetwin.net> Message-ID: <87d3pu7isw.fsf@gmail.com> On Wed, Nov 24 2010, steve wrote: [...] > Firstly, wish you the best with this !! Like KG mentioned, we could do > with some more python programmers. > > On the topic of slides/notes, IMHO, free (as in freedom) documents are > good. My recommendation would be to make your slides/notes available > (possibly for a fee) under a CC-BY-SA (and possibly NC) license. This > might also help people who cannot/do not want to attend the training > but would like to buy/download the courseware. > > I understand completely the point about the time and effort it takes > to create content (having conducted trainings myself) but that's a one > time investment. Having free documents /might/ help you improve them > via suggestions/patches from others. [...] What I intended as a simple announcement has become a rather useful thread on how to structure my material. Thanks for the suggestions. :) -- ~noufal http://nibrahim.net.in From steve at lonetwin.net Wed Nov 24 18:35:00 2010 From: steve at lonetwin.net (steve) Date: Wed, 24 Nov 2010 23:05:00 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <87d3pu7isw.fsf@gmail.com> References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> <877hg39kx1.fsf@gmail.com> <4CED3DBD.8090902@lonetwin.net> <87d3pu7isw.fsf@gmail.com> Message-ID: <4CED4CC4.50500@lonetwin.net> On 11/24/2010 10:36 PM, Noufal Ibrahim wrote: > On Wed, Nov 24 2010, steve wrote: > > [...] > >> Firstly, wish you the best with this !! Like KG mentioned, we could do >> with some more python programmers. >> >> On the topic of slides/notes, IMHO, free (as in freedom) documents are >> good. My recommendation would be to make your slides/notes available >> (possibly for a fee) under a CC-BY-SA (and possibly NC) license. This >> might also help people who cannot/do not want to attend the training >> but would like to buy/download the courseware. >> >> I understand completely the point about the time and effort it takes >> to create content (having conducted trainings myself) but that's a one >> time investment. Having free documents /might/ help you improve them >> via suggestions/patches from others. > > [...] > > What I intended as a simple announcement has become a rather useful > thread on how to structure my material. > > Thanks for the suggestions. :) > I remembered this only after I sent the mail, here is an example of what I was speaking of: http://www.upfrontsystems.co.za/courses I had used that to conduct one zope course myself (with explicit permission from the guys at Upfront). If you skim through the material you'll see that they make references to the handouts and code but that isn't available for download (but that does not make the content less useful). cheers, - steve From venkat83 at gmail.com Wed Nov 24 20:04:30 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 25 Nov 2010 00:34:30 +0530 Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: On Wed, Nov 24, 2010 at 10:29 PM, Kiran Jonnalagadda wrote: > On Wed, Nov 24, 2010 at 10:05 PM, Venkatraman S > wrote: > > > Try http://djangopluggables.com/ for the download stats and other > > options. > > If all you want is a simple blogging app then can write your own? > > or assemble together the various django-xxxxx apps? > > or try customizing Pinax? > > or try any of the above ones from django-pluggables? > > > > That's a good site, thanks. I wasn't aware of Pinax. The trouble with > custom > code is that long term maintenance is expensive and, with smaller teams, > turns into a permanent "someday" task. > > Let me give you a word of caution : Pinax is a monster and sometimes cane make you go mad. By monster , i dont mean the hugeness, but how sometimes certain customizing aspects of it can cause involuntary hair loss. But, Pinax is a great solution when you want to do anything 'social' quickly. -V- http://twitter.com/venkasub From jace at pobox.com Wed Nov 24 20:37:25 2010 From: jace at pobox.com (Kiran Jonnalagadda) Date: Thu, 25 Nov 2010 01:07:25 +0530 Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: On Thu, Nov 25, 2010 at 12:34 AM, Venkatraman S wrote: > But, Pinax is a great solution when you > want to do anything > 'social' quickly. > I'm not after 'quickly' as much as 'maintainable even after you get bored and move on'. With Plone prior to 3.x, for instance, if you attempted customizations with your own content types, or even any of the 3rd party types, you were completely on your own for upgrades. APIs changed with every release, only the core content types had tested upgrade paths, and third party content type developers often gave up and quit maintaining their add-ons. Two months ago I shut down a Zope site I had been maintaining since 2001 from Zope 2.3 to 2.7 because some of that code wouldn't work with Zope 2.8 and later, and Zope 2.7 will not work with Python 2.4 and later, and Python 2.3 no longer compiles on a modern Ubuntu release. I lost all the photos I had been hosting there prior to moving to Flickr. Now I will happily pay Flickr $25 a year to take away this maintenance pain. Last year I started working on Zine. Among my patches was one that changed storage of keywords from Python pickles to JSON because pickles are dangerous (see above -- they die if code changes). Armin rejected this because there was no upgrade path from pickle to JSON storage, and he never got around to implementing a generic db upgrade solution, so I'm now marooned in a year-old copy of code while Zine has received many patches from others. Merging with trunk and upgrading my data is my headache, but I have neither time nor money to outsource. So this is the problem. I want to code special features, but want a base platform where my code won't block upgrades. Django is nice* because the base platform is reasonably stable and has a well defined extension mechanism. If there's a CMS that lives up to these principles, that would be fantastic. * Django's interdependencies also remind me of Zope in the Python 2.1 days, which is scary. I'm in love with Flask because it's so airy, and admire BFG (now Pyramid) because it's battle-tested, but neither is suited for a CMS. Kiran From renukaprasadb at gmail.com Wed Nov 24 20:52:30 2010 From: renukaprasadb at gmail.com (renuka prasad) Date: Thu, 25 Nov 2010 01:22:30 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <4CED3DBD.8090902@lonetwin.net> References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> <877hg39kx1.fsf@gmail.com> <4CED3DBD.8090902@lonetwin.net> Message-ID: On Wed, Nov 24, 2010 at 10:00 PM, steve wrote: > On 11/24/2010 02:07 PM, Noufal Ibrahim wrote: > >> On Wed, Nov 24 2010, Venkatraman S wrote: >> >> >> [...] >> >> True. I dont think sharing the slides is going to do any harm in any >>> case; especially when the speaker is not known well; though its the >>> speaker's discretion to share or not. >>> >>> Actually, i attend most of the sessions/conferences only when the talk >>> agenda/slides are available in advance. >>> >> >> [...] >> >> I haven't really decided. There's a mix of slides and notes. Some of it >> will be online. I'm still undecided about how much. >> >> >> > Firstly, wish you the best with this !! Like KG mentioned, we could do with > some more python programmers. > > On the topic of slides/notes, IMHO, free (as in freedom) documents are > good. My recommendation would be to make your slides/notes available > (possibly for a fee) under a CC-BY-SA (and possibly NC) license. This might > also help people who cannot/do not want to attend the training but would > like to buy/download the courseware. > > I understand completely the point about the time and effort it takes to > create content (having conducted trainings myself) but that's a one time > investment. Having free documents /might/ help you improve them via > suggestions/patches from others. > > just my opinion. > > +100 All Forms of Knowledge are born copyable . why we have to restrict from anybody knowing from what we know ? Knowledge is made of symbols irrespective of language ( mother tongue or programming language ) language is made of symbols and all forms of symbols are born copyable , restricting in any way will not be of any use Any ways Keep in mind to put all your tutorials under proper license Wish you all the best > cheers, > - steve > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Renuka Prasad 9901945674 From navin.kabra at gmail.com Thu Nov 25 03:08:32 2010 From: navin.kabra at gmail.com (Navin Kabra) Date: Thu, 25 Nov 2010 07:38:32 +0530 Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: On Thu, Nov 25, 2010 at 12:34 AM, Venkatraman S wrote: > Let me give you a word of caution : Pinax is a monster and sometimes cane > make you go mad. > By monster , i dont mean the hugeness, but how sometimes certain > customizing > aspects of it > can cause involuntary hair loss. But, Pinax is a great solution when you > want to do anything > 'social' quickly. > I agree with Venkat. Pinax is good if you want only what comes out of the box. I would really not recommend it if you want to make your own customizations. It has not yet reached the stage where (unlike Django) you can do customizations without touching the base Pinax code. Pinax is not yet at 1.x and that shows. From larryt at winfirst.com Thu Nov 25 05:06:07 2010 From: larryt at winfirst.com (larryt at winfirst.com) Date: Wed, 24 Nov 2010 20:06:07 -0800 (PST) Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: <20101124200607.BES21504@ms1.mc.surewest.net> You might also look at django-lfc which has a user management section designed after Plone. For a dedicated blog engine you might consider zine, dev.pocoo.org/projects/zine/, which is, however, not django basedr. -larry ---- Original message ---- >Date: Wed, 24 Nov 2010 22:29:23 +0530 >From: bangpypers-bounces+larryt=winfirst.com at python.org (on behalf of Kiran Jonnalagadda ) >Subject: Re: [BangPypers] Django-based CMS recommendations? >To: Bangalore Python Users Group - India > >On Wed, Nov 24, 2010 at 10:05 PM, Venkatraman S wrote: > >> Try http://djangopluggables.com/ for the download stats and other >> options. >> If all you want is a simple blogging app then can write your own? >> or assemble together the various django-xxxxx apps? >> or try customizing Pinax? >> or try any of the above ones from django-pluggables? >> > >That's a good site, thanks. I wasn't aware of Pinax. The trouble with custom >code is that long term maintenance is expensive and, with smaller teams, >turns into a permanent "someday" task. > >Kiran >_______________________________________________ >BangPypers mailing list >BangPypers at python.org >http://mail.python.org/mailman/listinfo/bangpypers From lawgon at au-kbc.org Thu Nov 25 07:13:06 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 11:43:06 +0530 Subject: [BangPypers] Django-based CMS recommendations? In-Reply-To: References: Message-ID: <1290665586.2137.162.camel@localhost> On Wed, 2010-11-24 at 21:59 +0530, Kiran Jonnalagadda wrote: > The Django architecture has its own issues, but is stable enough to > not need > worrying about maintenance. So, Django-based CMS, anyone? if you need multilingual - http://quadmulc.greenchilly.in and a simple blog - http://blog.greenchilly.in -- regards Kenneth Gonsalves From lawgon at au-kbc.org Thu Nov 25 07:18:27 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 11:48:27 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> <877hg39kx1.fsf@gmail.com> <4CED3DBD.8090902@lonetwin.net> Message-ID: <1290665907.2137.163.camel@localhost> On Thu, 2010-11-25 at 01:22 +0530, renuka prasad wrote: > > just my opinion. > > > > > +100 this is not permissible - valid votes are -1,-0,+0 and +1 -- regards Kenneth Gonsalves From nitinkd at gmail.com Thu Nov 25 08:48:52 2010 From: nitinkd at gmail.com (Nitin Dahra) Date: Thu, 25 Nov 2010 13:18:52 +0530 Subject: [BangPypers] [Announcement] Training on "Extending Python using C" In-Reply-To: <1290665907.2137.163.camel@localhost> References: <87fwuscizr.fsf@gmail.com> <1290566310.2137.102.camel@localhost> <1290570341.2137.115.camel@localhost> <877hg3bb6z.fsf@gmail.com> <877hg39kx1.fsf@gmail.com> <4CED3DBD.8090902@lonetwin.net> <1290665907.2137.163.camel@localhost> Message-ID: Great initiative Noufal. All the best! On 25 November 2010 11:48, Kenneth Gonsalves wrote: > On Thu, 2010-11-25 at 01:22 +0530, renuka prasad wrote: >> > just my opinion. >> > >> > >> +100 > > this is not permissible - valid votes are -1,-0,+0 and +1 > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Thu Nov 25 10:41:34 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 15:11:34 +0530 Subject: [BangPypers] regular expression for Indian landline numbers Message-ID: <1290678094.2137.175.camel@localhost> hi, on looking at the telephone book, Indian landline numbers have three forms 3 digit STD code followed by 8 digits 4 digit STD code followed by 7 digits 5 digit STD code followed by 6 digits the first digit of the STD code has to be 0. The first digit of the landline number starts from 1-6. Of course I am not dead sure of the starting numbers, but I have seen mobile numbers starting with 9 and 8, and I think 7 is also reserved for mobile. I could not find any authorative info on this. This is the re: r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 \d{4}[-\s]{1}[1-6]{1}\d{5})' any clues on how to make it shorter? And any info as to whether my assumptions as to the landline numbers is correct? -- regards Kenneth Gonsalves From noufal at gmail.com Thu Nov 25 11:02:31 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 25 Nov 2010 15:32:31 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290678094.2137.175.camel@localhost> (Kenneth Gonsalves's message of "Thu, 25 Nov 2010 15:11:34 +0530") References: <1290678094.2137.175.camel@localhost> Message-ID: <871v6967rc.fsf@gmail.com> On Thu, Nov 25 2010, Kenneth Gonsalves wrote: > hi, > > on looking at the telephone book, Indian landline numbers have three > forms > > 3 digit STD code followed by 8 digits > 4 digit STD code followed by 7 digits > 5 digit STD code followed by 6 digits > > the first digit of the STD code has to be 0. The first digit of the > landline number starts from 1-6. Of course I am not dead sure of the > starting numbers, but I have seen mobile numbers starting with 9 and 8, > and I think 7 is also reserved for mobile. I could not find any > authorative info on this. This is the re: > > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 > \d{4}[-\s]{1}[1-6]{1}\d{5})' > > any clues on how to make it shorter? And any info as to whether my > assumptions as to the landline numbers is correct? This is the Python list. Not Perl. :) But anyway, I've noticed that many people mention land line numbers similar to the way cell phones specify numbers. ie. +9180xxxxxxxx (ISD-code, STD-code and the rest) so that might be a case you'd have to capture as well. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Thu Nov 25 11:06:40 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 15:36:40 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <871v6967rc.fsf@gmail.com> References: <1290678094.2137.175.camel@localhost> <871v6967rc.fsf@gmail.com> Message-ID: <1290679600.2137.177.camel@localhost> On Thu, 2010-11-25 at 15:32 +0530, Noufal Ibrahim wrote: > > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 > > \d{4}[-\s]{1}[1-6]{1}\d{5})' > > > > any clues on how to make it shorter? And any info as to whether my > > assumptions as to the landline numbers is correct? > > This is the Python list. Not Perl. :) huh? I do not see any perl in my post -- regards Kenneth Gonsalves From mandarvaze at gmail.com Thu Nov 25 11:25:22 2010 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Thu, 25 Nov 2010 15:55:22 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290678094.2137.175.camel@localhost> References: <1290678094.2137.175.camel@localhost> Message-ID: > And any info as to whether my > assumptions as to the landline numbers is correct? > Check http://en.wikipedia.org/wiki/India_phone_code and http://en.wikipedia.org/wiki/Telephone_numbers_in_India to get additional info. These two URLs also have link to some PDFs from DoT -Mandar From abpillai at gmail.com Thu Nov 25 11:26:13 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 25 Nov 2010 15:56:13 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290678094.2137.175.camel@localhost> References: <1290678094.2137.175.camel@localhost> Message-ID: On Thu, Nov 25, 2010 at 3:11 PM, Kenneth Gonsalves wrote: > hi, > > on looking at the telephone book, Indian landline numbers have three > forms > > 3 digit STD code followed by 8 digits > 4 digit STD code followed by 7 digits > 5 digit STD code followed by 6 digits > > the first digit of the STD code has to be 0. The first digit of the > landline number starts from 1-6. Of course I am not dead sure of the > starting numbers, but I have seen mobile numbers starting with 9 and 8, > and I think 7 is also reserved for mobile. I could not find any > authorative info on this. This is the re: > > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 > \d{4}[-\s]{1}[1-6]{1}\d{5})' > It is doable, but you should really use pyparsing for this - this is UGLY ! :) Meanwhile, let me hack on it. > > any clues on how to make it shorter? And any info as to whether my > assumptions as to the landline numbers is correct? > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From ramdaz at gmail.com Thu Nov 25 11:36:40 2010 From: ramdaz at gmail.com (Ramdas S) Date: Thu, 25 Nov 2010 16:06:40 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> Message-ID: On Thu, Nov 25, 2010 at 3:56 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Thu, Nov 25, 2010 at 3:11 PM, Kenneth Gonsalves >wrote: > > > hi, > > > > on looking at the telephone book, Indian landline numbers have three > > forms > > > > 3 digit STD code followed by 8 digits > > 4 digit STD code followed by 7 digits > > 5 digit STD code followed by 6 digits > > > > the first digit of the STD code has to be 0. The first digit of the > > landline number starts from 1-6. Of course I am not dead sure of the > > starting numbers, but I have seen mobile numbers starting with 9 and 8, > > and I think 7 is also reserved for mobile. I could not find any > > authorative info on this. This is the re: > > > > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 > > \d{4}[-\s]{1}[1-6]{1}\d{5})' > > > > It is doable, but you should really use pyparsing for this - this is UGLY ! > :) > Meanwhile, let me hack on it. > Regex is ugly. I guess Kenneth being django guy wants to use the RegexField in django forms > > > > > any clues on how to make it shorter? And any info as to whether my > > assumptions as to the landline numbers is correct? > > -- > > regards > > Kenneth Gonsalves > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From lawgon at au-kbc.org Thu Nov 25 11:38:32 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 16:08:32 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> Message-ID: <1290681512.2137.178.camel@localhost> On Thu, 2010-11-25 at 15:55 +0530, Mandar Vaze / ????? ??? wrote: > > And any info as to whether my > > assumptions as to the landline numbers is correct? > > > > Check http://en.wikipedia.org/wiki/India_phone_code and > http://en.wikipedia.org/wiki/Telephone_numbers_in_India to get > additional > info. > These two URLs also have link to some PDFs from DoT please give me *some* credit for ability to search - those articles are wildly inaccurate. -- regards Kenneth Gonsalves From lawgon at au-kbc.org Thu Nov 25 11:40:05 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 16:10:05 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> Message-ID: <1290681605.2137.180.camel@localhost> On Thu, 2010-11-25 at 15:56 +0530, Anand Balachandran Pillai wrote: > > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 > > \d{4}[-\s]{1}[1-6]{1}\d{5})' > > > > It is doable, but you should really use pyparsing for this - this is > UGLY ! I know - but everything I tried to make it look good did not work. And the app in which I am plugging this into requires an re. -- regards Kenneth Gonsalves From lawgon at au-kbc.org Thu Nov 25 11:41:12 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 16:11:12 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> Message-ID: <1290681672.2137.181.camel@localhost> On Thu, 2010-11-25 at 16:06 +0530, Ramdas S wrote: > > It is doable, but you should really use pyparsing for this - this is > UGLY ! > > :) > > Meanwhile, let me hack on it. > > > > Regex is ugly. I guess Kenneth being django guy wants to use the > RegexField > in django forms where do I send the coconut? -- regards Kenneth Gonsalves From scorpion032 at gmail.com Thu Nov 25 11:47:59 2010 From: scorpion032 at gmail.com (Lakshman Prasad) Date: Thu, 25 Nov 2010 16:17:59 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290681672.2137.181.camel@localhost> References: <1290678094.2137.175.camel@localhost> <1290681672.2137.181.camel@localhost> Message-ID: 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 Gonsalves wrote: > On Thu, 2010-11-25 at 16:06 +0530, Ramdas S wrote: > > > It is doable, but you should really use pyparsing for this - this is > > UGLY ! > > > :) > > > Meanwhile, let me hack on it. > > > > > > > Regex is ugly. I guess Kenneth being django guy wants to use the > > RegexField > > in django forms > > where do I send the coconut? > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Thu Nov 25 11:52:57 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 16:22:57 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> <1290681672.2137.181.camel@localhost> Message-ID: <1290682377.2137.182.camel@localhost> On Thu, 2010-11-25 at 16:17 +0530, Lakshman Prasad wrote: > 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. sure - I can think of several ways to do this, but as explained, I need a regex. -- regards Kenneth Gonsalves From venkat83 at gmail.com Thu Nov 25 12:08:44 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 25 Nov 2010 16:38:44 +0530 Subject: [BangPypers] [django] Directory Listing Message-ID: 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. -V- http://twitter.com/venkasub From djpatra at gmail.com Thu Nov 25 12:10:09 2010 From: djpatra at gmail.com (devjyoti patra) Date: Thu, 25 Nov 2010 16:40:09 +0530 Subject: [BangPypers] regular expression for Indian landline numbers Message-ID: This is a beautification attempt towards KG's regex (^0[\d]+)[-\s]{1}([1-6]{1}[\d]{5,7}) From lawgon at au-kbc.org Thu Nov 25 12:15:53 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 16:45:53 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: References: Message-ID: <1290683753.2137.195.camel@localhost> On Thu, 2010-11-25 at 16:38 +0530, 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. django-mptt? -- regards Kenneth Gonsalves From lawgon at au-kbc.org Thu Nov 25 12:23:32 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 16:53:32 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: Message-ID: <1290684212.2137.205.camel@localhost> On Thu, 2010-11-25 at 16:40 +0530, devjyoti patra wrote: > This is a beautification attempt towards KG's regex > > (^0[\d]+)[-\s]{1}([1-6]{1}[\d]{5,7}) 0423678 244667 <---- not a valid number but your regex accepts it -- regards Kenneth Gonsalves From venkat83 at gmail.com Thu Nov 25 12:24:57 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 25 Nov 2010 16:54:57 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: <1290683753.2137.195.camel@localhost> References: <1290683753.2137.195.camel@localhost> Message-ID: On Thu, Nov 25, 2010 at 4:45 PM, Kenneth Gonsalves wrote: > django-mptt? > I have seen some people rant about it in #django. Have you tried it? From lawgon at au-kbc.org Thu Nov 25 12:28:23 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 25 Nov 2010 16:58:23 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: References: <1290683753.2137.195.camel@localhost> Message-ID: <1290684503.2137.211.camel@localhost> On Thu, 2010-11-25 at 16:54 +0530, Venkatraman S wrote: > On Thu, Nov 25, 2010 at 4:45 PM, Kenneth Gonsalves > wrote: > > > django-mptt? > > > > > I did have a try some years back - but I am weak in mathematics, so I rolled my own. -- regards Kenneth Gonsalves From venkat83 at gmail.com Thu Nov 25 12:32:42 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 25 Nov 2010 17:02:42 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: <1290684503.2137.211.camel@localhost> References: <1290683753.2137.195.camel@localhost> <1290684503.2137.211.camel@localhost> Message-ID: On Thu, Nov 25, 2010 at 4:58 PM, Kenneth Gonsalves wrote: > > I did have a try some years back - but I am weak in mathematics, so I > rolled my own. > How is this related to math-troubles? You mean "<" and ">" are confusing? From gora at mimirtech.com Thu Nov 25 12:33:38 2010 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 25 Nov 2010 17:03:38 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: References: Message-ID: 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 of Python? Do you mean a Django application? Also, could you clarify your requirements further? If all you need is a tagging engine, there are several possibilities, both just in Python, and also in Django. Regards, Gora From abpillai at gmail.com Thu Nov 25 12:58:02 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 25 Nov 2010 17:28:02 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290678094.2137.175.camel@localhost> References: <1290678094.2137.175.camel@localhost> Message-ID: On Thu, Nov 25, 2010 at 3:11 PM, Kenneth Gonsalves wrote: > hi, > > on looking at the telephone book, Indian landline numbers have three > forms > > 3 digit STD code followed by 8 digits > 4 digit STD code followed by 7 digits > 5 digit STD code followed by 6 digits > > the first digit of the STD code has to be 0. The first digit of the > landline number starts from 1-6. Of course I am not dead sure of the > starting numbers, but I have seen mobile numbers starting with 9 and 8, > and I think 7 is also reserved for mobile. I could not find any > authorative info on this. This is the re: > > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 > \d{4}[-\s]{1}[1-6]{1}\d{5})' > > any clues on how to make it shorter? And any info as to whether my > assumptions as to the landline numbers is correct? > Your regex is complicated because you are putting all rules into a single regex. There are different ways to make this shorter. The best option according to me is to define two regexes, one for the STD code part and the other for the number part. So in this case, it will be like, >>> std=re.compile(r'(^0\d{2,4})') >>> num=re.compile(r'([1-6]{1}\d{6,8})') >>> number='080-25936609' Find out the lengths of the std and number parts. >>> l1=len(std.findall(number.split('-')[0])[0]) >>> l1 3 >>> l2=len(num.findall(number.split('-')[1])[0]) >>> l2 8 And do the rest in code. If (((l1==3) and (l2==8)) or ... ): print 'valid number' else: print 'invalid number' The second option which I don't favor is to split the rule into 3 regexes instead of ORing them together and then do a simple OR in code. >>> r1=re.compile(r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})') >>> r2=re.compile(r'(^0\d{3}[-\s]{1}[1-6]{1}\d{6})') >>> r3=re.compile(r'(^0\d{4}[-\s]{1}[1-6]{1}\d{5})') Then of course, if (r1.match(num) or r2.match(num) or r3.match(num)): print 'valid' else: print 'invalid' If you can't use *any* code and absolutely has to do this directly in regex, revert back to your original one. There is no other way to do this using the re module. --Anand > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From rmathews at gmail.com Thu Nov 25 13:13:16 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Thu, 25 Nov 2010 17:43:16 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290678094.2137.175.camel@localhost> References: <1290678094.2137.175.camel@localhost> Message-ID: On Thu, Nov 25, 2010 at 15:11, Kenneth Gonsalves wrote: > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 > \d{4}[-\s]{1}[1-6]{1}\d{5})' > > any clues on how to make it shorter? The {1}s are redundant. -- http://about.me/rosh From mandarvaze at gmail.com Thu Nov 25 13:55:24 2010 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Thu, 25 Nov 2010 18:25:24 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290681512.2137.178.camel@localhost> References: <1290678094.2137.175.camel@localhost> <1290681512.2137.178.camel@localhost> Message-ID: On Thu, Nov 25, 2010 at 4:08 PM, Kenneth Gonsalves wrote: > On Thu, 2010-11-25 at 15:55 +0530, Mandar Vaze / ????? ??? wrote: > > > And any info as to whether my > > > assumptions as to the landline numbers is correct? > > > > > > > Check http://en.wikipedia.org/wiki/India_phone_code and > > http://en.wikipedia.org/wiki/Telephone_numbers_in_India to get > > additional > > info. > > These two URLs also have link to some PDFs from DoT > > please give me *some* credit for ability to search - those articles are > wildly inaccurate. > Did you mean "out dated" ? Feel free to share the accurate information source (if it is not confidential) -Mandar From venkat83 at gmail.com Thu Nov 25 14:10:38 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 25 Nov 2010 18:40:38 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: References: Message-ID: On Thu, Nov 25, 2010 at 5:03 PM, Gora Mohanty wrote: > > What do you mean by an "app" in the context of Python? Do you mean > a Django application? > Check out the Subject of the email. From steve at lonetwin.net Thu Nov 25 14:15:07 2010 From: steve at lonetwin.net (steve) Date: Thu, 25 Nov 2010 18:45:07 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290681605.2137.180.camel@localhost> References: <1290678094.2137.175.camel@localhost> <1290681605.2137.180.camel@localhost> Message-ID: <4CEE615B.4020906@lonetwin.net> On 11/25/2010 04:10 PM, Kenneth Gonsalves wrote: > On Thu, 2010-11-25 at 15:56 +0530, Anand Balachandran Pillai wrote: >> > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 >> > \d{4}[-\s]{1}[1-6]{1}\d{5})' >> > >> >> It is doable, but you should really use pyparsing for this - this is >> UGLY ! > > I know - but everything I tried to make it look good did not work. And > the app in which I am plugging this into requires an re. Certainly, you can beautify that using the verbose option. Here is my attempt. (Note, I use the beautiful (?(id/name)yes-pattern|no-pattern) syntax for the black magic :) phone_re = re.compile(r""" (^0 # all std-codes start with 0 ( (?P\d{2}) | # the std-code group (?P\d{3}) | # either two, three or four digits (?P\d{4}) # following the 0 ) [-\s] # space or - [1-6] # first digit of phone number ( (?(twodigit)\d{7}) | # 7 more phone digits for 3 digit stdcode (?(threedigit)\d{6}) | # 6 more phone digits for 4 digit stdcode (?(fourdigit)\d{5}) # 5 more phone digits for 5 digit stdcode ) )$""", re.VERBOSE) hth, cheers, - steve From orsenthil at gmail.com Thu Nov 25 14:18:13 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 25 Nov 2010 21:18:13 +0800 Subject: [BangPypers] [django] Directory Listing In-Reply-To: References: Message-ID: <20101125131813.GB1048@rubuntu> On Thu, Nov 25, 2010 at 06:40:38PM +0530, Venkatraman S wrote: > On Thu, Nov 25, 2010 at 5:03 PM, Gora Mohanty wrote: > > > > > What do you mean by an "app" in the context of Python? Do you mean > > a Django application? > > > > Check out the Subject of the email. If I were to reply to previous question, I would said I like this. "Yes, I mean a django pluggable which is may be used for listing a directory" and probably explained further. -- Senthil From venkat83 at gmail.com Thu Nov 25 14:20:44 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 25 Nov 2010 18:50:44 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: <20101125131813.GB1048@rubuntu> References: <20101125131813.GB1048@rubuntu> Message-ID: On Thu, Nov 25, 2010 at 6:48 PM, Senthil Kumaran wrote: > On Thu, Nov 25, 2010 at 06:40:38PM +0530, Venkatraman S wrote: > > On Thu, Nov 25, 2010 at 5:03 PM, Gora Mohanty > wrote: > > > > > > > > What do you mean by an "app" in the context of Python? Do you mean > > > a Django application? > > > > > > > Check out the Subject of the email. > > If I were to reply to previous question, I would said I like this. > > "Yes, I mean a django pluggable which is may be used for listing a > directory" and probably explained further. > Sure. From steve at lonetwin.net Fri Nov 26 03:26:32 2010 From: steve at lonetwin.net (steve) Date: Fri, 26 Nov 2010 07:56:32 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <4CEE615B.4020906@lonetwin.net> References: <1290678094.2137.175.camel@localhost> <1290681605.2137.180.camel@localhost> <4CEE615B.4020906@lonetwin.net> Message-ID: <4CEF1AD8.4020407@lonetwin.net> On 11/25/2010 06:45 PM, steve wrote: > On 11/25/2010 04:10 PM, Kenneth Gonsalves wrote: >> On Thu, 2010-11-25 at 15:56 +0530, Anand Balachandran Pillai wrote: >>> > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 >>> > \d{4}[-\s]{1}[1-6]{1}\d{5})' >>> > >>> >>> It is doable, but you should really use pyparsing for this - this is >>> UGLY ! >> >> I know - but everything I tried to make it look good did not work. And >> the app in which I am plugging this into requires an re. > > Certainly, you can beautify that using the verbose option. Here is my attempt. > (Note, I use the beautiful (?(id/name)yes-pattern|no-pattern) syntax for the > black magic :) > I had a bit of time this morning and didn't feel like starting work just yet, so to amuse myself I completed this. Here is the proper regex ...with tests ! http://pastebin.com/yjP5H0i2 Basically, almost the same thing as I posted yesterday but with named groups for std-code and phone number. cheers, - steve From rmathews at gmail.com Fri Nov 26 04:19:41 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Fri, 26 Nov 2010 08:49:41 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <4CEF1AD8.4020407@lonetwin.net> References: <1290678094.2137.175.camel@localhost> <1290681605.2137.180.camel@localhost> <4CEE615B.4020906@lonetwin.net> <4CEF1AD8.4020407@lonetwin.net> Message-ID: On Fri, Nov 26, 2010 at 07:56, steve wrote: > I had a bit of time this morning and didn't feel like starting work just > yet, so to amuse myself I completed this. Here is the proper regex ...with > tests ! > > http://pastebin.com/yjP5H0i2 Neat. -- http://about.me/rosh From dhananjay.nene at gmail.com Fri Nov 26 04:33:02 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 26 Nov 2010 09:03:02 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290678094.2137.175.camel@localhost> References: <1290678094.2137.175.camel@localhost> Message-ID: On Thu, Nov 25, 2010 at 3:11 PM, Kenneth Gonsalves wrote: > hi, > > on looking at the telephone book, Indian landline numbers have three > forms > > 3 digit STD code followed by 8 digits > 4 digit STD code followed by 7 digits > 5 digit STD code followed by 6 digits > > the first digit of the STD code has to be 0. The first digit of the > landline number starts from 1-6. Of course I am not dead sure of the > starting numbers, but I have seen mobile numbers starting with 9 and 8, > and I think 7 is also reserved for mobile. I could not find any > authorative info on this. This is the re: > > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0 > \d{4}[-\s]{1}[1-6]{1}\d{5})' > > any clues on how to make it shorter? And any info as to whether my > assumptions as to the landline numbers is correct? > Not to take away the fun that so many are obviously having on this thread, but at least from a business perspective what generally matters (barring some rare exceptions) is that Indian phone numbers are all 10 digits. :) Thus there could be the optional prefixes +91 or 0 followed by an additional sequence of numbers which may have embedded some spaces, hyphens or in rare cases parenthesis which are quite ignorable. So all one really needs to do (say if one wants to call back) is to extract one single 10 digit number using the above logic by stripping off the optional prefixes and the extra characters (which I presume would be quite trivial). But then maybe my mind is not working well today early morning :) Dhananjay -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From navin.kabra at gmail.com Fri Nov 26 04:39:06 2010 From: navin.kabra at gmail.com (Navin Kabra) Date: Fri, 26 Nov 2010 09:09:06 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> Message-ID: On Fri, Nov 26, 2010 at 9:03 AM, Dhananjay Nene wrote: > Thus there could be the optional prefixes +91 or 0 followed by an > additional > sequence of numbers which may have embedded some spaces, hyphens or in rare > cases parenthesis which are quite ignorable. > > So all one really needs to do (say if one wants to call back) is to extract > one single 10 digit number using the above logic by stripping off the > optional prefixes and the extra characters (which I presume would be quite > trivial). But then maybe my mind is not working well today early morning :) > This might be veering off from the original subject a bit, but since you brought it up, here's the code I use for extracting an "Indian" phone number from various different ways in which users might enter that...: http://pastebin.com/GRyLgePr No, it's not an regexp like Kenneth wants. But I've found this piece of code to be useful in a number of different contexts... From lawgon at au-kbc.org Fri Nov 26 06:41:09 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 26 Nov 2010 11:11:09 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: References: <1290683753.2137.195.camel@localhost> <1290684503.2137.211.camel@localhost> Message-ID: <1290750069.2137.222.camel@localhost> On Thu, 2010-11-25 at 17:02 +0530, Venkatraman S wrote: > > I did have a try some years back - but I am weak in mathematics, so > I > > rolled my own. > > > > How is this related to math-troubles? You mean "<" and ">" are > confusing? I could not understand the logic - some algorithm (I did not take computer science in college) -- regards Kenneth Gonsalves From lawgon at au-kbc.org Fri Nov 26 06:45:38 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 26 Nov 2010 11:15:38 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> <1290681512.2137.178.camel@localhost> Message-ID: <1290750338.2137.224.camel@localhost> On Thu, 2010-11-25 at 18:25 +0530, Mandar Vaze / ????? ??? wrote: > > please give me *some* credit for ability to search - those articles > are > > wildly inaccurate. > > > > Did you mean "out dated" ? > Feel free to share the accurate information source (if it is not > confidential) I am crowd sourcing the info - and looking at the telephone directory. I am planning to drop in at the BSNL office also (but I doubt anyone will have a clue about it). -- regards Kenneth Gonsalves From ramdaz at gmail.com Fri Nov 26 06:53:31 2010 From: ramdaz at gmail.com (Ramdas S) Date: Fri, 26 Nov 2010 11:23:31 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290750338.2137.224.camel@localhost> References: <1290678094.2137.175.camel@localhost> <1290681512.2137.178.camel@localhost> <1290750338.2137.224.camel@localhost> Message-ID: On Fri, Nov 26, 2010 at 11:15 AM, Kenneth Gonsalves wrote: > On Thu, 2010-11-25 at 18:25 +0530, Mandar Vaze / ????? ??? wrote: > > > please give me *some* credit for ability to search - those articles > > are > > > wildly inaccurate. > > > > > > > Did you mean "out dated" ? > > Feel free to share the accurate information source (if it is not > > confidential) > > I am crowd sourcing the info - and looking at the telephone directory. I > am planning to drop in at the BSNL office also (but I doubt anyone will > have a clue about it). > -- > regards > Kenneth Gonsalves > > Kenneth, Would appreciate if you can tell whether you want a Regex, or is this to ensure that people enter the right numbers in a form? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From lawgon at au-kbc.org Fri Nov 26 06:56:26 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 26 Nov 2010 11:26:26 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <4CEF1AD8.4020407@lonetwin.net> References: <1290678094.2137.175.camel@localhost> <1290681605.2137.180.camel@localhost> <4CEE615B.4020906@lonetwin.net> <4CEF1AD8.4020407@lonetwin.net> Message-ID: <1290750986.2137.228.camel@localhost> On Fri, 2010-11-26 at 07:56 +0530, steve wrote: > I had a bit of time this morning and didn't feel like starting work > just yet, so > to amuse myself I completed this. strangely enough that is how I got into this problem > Here is the proper regex ...with tests ! > > http://pastebin.com/yjP5H0i2 cool - of course negative tests have to be added - but that is no big deal -- regards Kenneth Gonsalves From mandarvaze at gmail.com Fri Nov 26 07:00:12 2010 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Fri, 26 Nov 2010 11:30:12 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> Message-ID: > So all one really needs to do (say if one wants to call back) is to extract > one single 10 digit number using the above logic by stripping off the > optional prefixes and the extra characters (which I presume would be quite > trivial). But then maybe my mind is not working well today early morning :) > Kenneth's original email ( http://mail.python.org/pipermail/bangpypers/2010-November/005386.html) doesn' say whether he wishes to validate or extract. Depending on how far one wants to go - validation of phone number (depending on additional information one may have) can get very complex. e.g. If one needs to validate a landline telephone number for person staying in chhatisgadh - then a valid telephone number like 080-3033777 is NOT valid in this case since this number belongs to b'lore. Similarly for mobile numbers, not ALL 10 digit numbers starting with 9,8 or 7 are valid. Several 4 digit codes in 8xxx, and 7xxx are unallocated - hence invalid. look at http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India (But kenneth may have already looked at this) So depending on how accurate the validation needs to be - this can be very interesting validation problem. One can always take simplistic view - if the requirements are fulfilled. -Mandar From lawgon at au-kbc.org Fri Nov 26 07:03:52 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 26 Nov 2010 11:33:52 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> Message-ID: <1290751432.2137.233.camel@localhost> On Fri, 2010-11-26 at 09:03 +0530, Dhananjay Nene wrote: > So all one really needs to do (say if one wants to call back) is to > extract > one single 10 digit number using the above logic by stripping off the > optional prefixes and the extra characters (which I presume would be > quite > trivial). But then maybe my mind is not working well today early > morning :) and how does one distinguish the STD code from the phone number? my std code is 4 digits and my phone number is 7 digits - but someone can assume that the std code is 3 digits and the phone number is 8 digits - and when he comes within my local area, he cannot phone me. That is why the STD code and the phone number *must* be separated by something, otherwise it is impossible to parse. -- regards Kenneth Gonsalves From lawgon at au-kbc.org Fri Nov 26 07:07:38 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 26 Nov 2010 11:37:38 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> <1290681512.2137.178.camel@localhost> <1290750338.2137.224.camel@localhost> Message-ID: <1290751658.2137.235.camel@localhost> On Fri, 2010-11-26 at 11:23 +0530, Ramdas S wrote: > Would appreciate if you can tell whether you want a Regex, or is this > to > ensure that people enter the right numbers in a form? regex - for django.contrib.localflavor (I had put something up, but it only matches my local phone number, so I have to change it). btw, regex should not be used for validation (AFAIK). -- regards Kenneth Gonsalves From lawgon at au-kbc.org Fri Nov 26 07:10:05 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 26 Nov 2010 11:40:05 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> Message-ID: <1290751805.2137.236.camel@localhost> On Fri, 2010-11-26 at 11:30 +0530, Mandar Vaze / ????? ??? wrote: > look at > http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India > (But kenneth may have already looked at this) no, I had not looked at this - I was not looking for the mobile scheme which is fairly simple. -- regards Kenneth Gonsalves From dhananjay.nene at gmail.com Fri Nov 26 07:29:57 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 26 Nov 2010 11:59:57 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: <1290751805.2137.236.camel@localhost> References: <1290678094.2137.175.camel@localhost> <1290751805.2137.236.camel@localhost> Message-ID: On Fri, Nov 26, 2010 at 11:40 AM, Kenneth Gonsalves wrote: > On Fri, 2010-11-26 at 11:30 +0530, Mandar Vaze / ????? ??? wrote: > > look at > > http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India > > (But kenneth may have already looked at this) > > no, I had not looked at this - I was not looking for the mobile scheme > which is fairly simple. > For a generic scheme http://en.wikipedia.org/wiki/Telephone_numbers_in_India But I couldn't find out any programmable pattern to identify how long is a STD code given a full number. Having said that, at least for most generic scenarios STD code is simply an indicator relic of how telephone exchanges work, in most cases an unimportant part of the full 10 digit number -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From dhananjay.nene at gmail.com Fri Nov 26 07:36:25 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 26 Nov 2010 12:06:25 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> <1290751805.2137.236.camel@localhost> Message-ID: On Fri, Nov 26, 2010 at 11:59 AM, Dhananjay Nene wrote: > > > On Fri, Nov 26, 2010 at 11:40 AM, Kenneth Gonsalves wrote: > >> On Fri, 2010-11-26 at 11:30 +0530, Mandar Vaze / ????? ??? wrote: >> > look at >> > http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India >> > (But kenneth may have already looked at this) >> >> no, I had not looked at this - I was not looking for the mobile scheme >> which is fairly simple. >> > > For a generic scheme > http://en.wikipedia.org/wiki/Telephone_numbers_in_India > > But I couldn't find out any programmable pattern to identify how long is a > STD code given a full number. Having said that, at least for most generic > scenarios STD code is simply an indicator relic of how telephone exchanges > work, in most cases an unimportant part of the full 10 digit number > > Here's another link which is quite topical : http://blog.stevenlevithan.com/archives/validate-phone-number > >> regards >> Kenneth Gonsalves >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From lawgon at au-kbc.org Fri Nov 26 07:40:41 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 26 Nov 2010 12:10:41 +0530 Subject: [BangPypers] regular expression for Indian landline numbers In-Reply-To: References: <1290678094.2137.175.camel@localhost> <1290751805.2137.236.camel@localhost> Message-ID: <1290753641.2137.238.camel@localhost> On Fri, 2010-11-26 at 11:59 +0530, Dhananjay Nene wrote: > For a generic scheme > http://en.wikipedia.org/wiki/Telephone_numbers_in_India as already noted, this article is inaccurate. For example 'two tier cities have a 3 digit code' - I can point out villages that have 3 digit codes. > > But I couldn't find out any programmable pattern to identify how long > is a > STD code given a full number. Having said that, at least for most > generic > scenarios STD code is simply an indicator relic of how telephone > exchanges > work, in most cases an unimportant part of the full 10 digit number > > -- regards Kenneth Gonsalves From noufal at gmail.com Fri Nov 26 12:39:42 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 26 Nov 2010 17:09:42 +0530 Subject: [BangPypers] User group meeting Message-ID: <87aakwco01.fsf@gmail.com> Apologies if this is a repeat. My cellphone is not reliable. It's been a few months since the conference is done. We haven't had a User Group meeting in a while. Any takers for sometime mid December? -- ~noufal http://nibrahim.net.in From baiju.m.mail at gmail.com Fri Nov 26 13:38:39 2010 From: baiju.m.mail at gmail.com (Baiju M) Date: Fri, 26 Nov 2010 18:08:39 +0530 Subject: [BangPypers] User group meeting In-Reply-To: <87aakwco01.fsf@gmail.com> References: <87aakwco01.fsf@gmail.com> Message-ID: On Fri, Nov 26, 2010 at 5:09 PM, Noufal Ibrahim wrote: > > Apologies if this is a repeat. My cellphone is not reliable. > > It's been a few months since the conference is done. We haven't had a > User Group meeting in a while. Any takers for sometime mid December? I wonder doodle will be useful to find a convenient date for everyone: http://www.doodle.com/qrw779k2grp8uiqy Let's try this tool ? -- Baiju M From santrajan at gmail.com Fri Nov 26 13:41:01 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Fri, 26 Nov 2010 18:11:01 +0530 Subject: [BangPypers] User group meeting In-Reply-To: References: <87aakwco01.fsf@gmail.com> Message-ID: 3am - 5am is a bit unearthly i guess! :-) On Fri, Nov 26, 2010 at 6:08 PM, Baiju M wrote: > On Fri, Nov 26, 2010 at 5:09 PM, Noufal Ibrahim wrote: >> >> Apologies if this is a repeat. My cellphone is not reliable. >> >> It's been a few months since the conference is done. We haven't had a >> User Group meeting in a while. Any takers for sometime mid December? > > I wonder doodle will be useful to find a convenient date for everyone: > http://www.doodle.com/qrw779k2grp8uiqy > > Let's try this tool ? > > -- > Baiju M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From ardsrk at gmail.com Sat Nov 27 07:04:54 2010 From: ardsrk at gmail.com (Arvind Laxminaryan) Date: Sat, 27 Nov 2010 11:34:54 +0530 Subject: [BangPypers] User group meeting In-Reply-To: <87aakwco01.fsf@gmail.com> References: <87aakwco01.fsf@gmail.com> Message-ID: Too busy trading gems leaving me with no time to charm snakes. On Fri, Nov 26, 2010 at 5:09 PM, Noufal Ibrahim wrote: > > Apologies if this is a repeat. My cellphone is not reliable. > > It's been a few months since the conference is done. We haven't had a > User Group meeting in a while. Any takers for sometime mid December? > > > > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Arvind From rajeev.sebastian at gmail.com Sat Nov 27 19:26:51 2010 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Sat, 27 Nov 2010 23:56:51 +0530 Subject: [BangPypers] [django] Directory Listing In-Reply-To: References: <1290683753.2137.195.camel@localhost> Message-ID: I have used it extensively. In particular to implement the kind of thing asked in the subject. However. django-mptt itself doesn't provide any mechanisms to build taxonomies or categories; it only allows building trees. I have built a taxonomy app on top of it, which I could possibly share with you if you want. Regards Rajeev J Sebastian On Thu, Nov 25, 2010 at 4:54 PM, Venkatraman S wrote: > On Thu, Nov 25, 2010 at 4:45 PM, Kenneth Gonsalves wrote: > >> django-mptt? >> > > > I have seen some people rant about it in #django. Have you tried it? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From amit.pureenergy at gmail.com Sun Nov 28 23:09:05 2010 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Mon, 29 Nov 2010 03:39:05 +0530 Subject: [BangPypers] regex euivalent of literal block in Rest Document structure Message-ID: Hi all, Can somebody tell me what is the regex equivalent of literal block of reST. After a bit of google search.I could get something like r'::\n\n(\s+.+)+\n' but it does not seem to be right. -- A-M-I-T S|S From noufal at gmail.com Mon Nov 29 13:54:25 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 29 Nov 2010 18:24:25 +0530 Subject: [BangPypers] User group meeting In-Reply-To: (Baiju M.'s message of "Fri, 26 Nov 2010 18:08:39 +0530") References: <87aakwco01.fsf@gmail.com> Message-ID: <87d3poguim.fsf@gmail.com> On Fri, Nov 26 2010, Baiju M wrote: > On Fri, Nov 26, 2010 at 5:09 PM, Noufal Ibrahim wrote: >> >> Apologies if this is a repeat. My cellphone is not reliable. >> >> It's been a few months since the conference is done. We haven't had a >> User Group meeting in a while. Any takers for sometime mid December? > > I wonder doodle will be useful to find a convenient date for everyone: > http://www.doodle.com/qrw779k2grp8uiqy > > Let's try this tool ? [...] I think it's nice. Any one who has the time, please update it. -- ~noufal http://nibrahim.net.in From smrutilekha at gmail.com Mon Nov 29 09:30:19 2010 From: smrutilekha at gmail.com (Smrutilekha Swain) Date: 29 Nov 2010 14:00:19 +0530 Subject: [BangPypers] Light a candle for 26/11 and Show you remember Message-ID: Hi bangpypers at python.org , I just light a candle for 26/11. It is time to show that we have neither forgiven nor forgotten 26/11. It is time to remember those who paid with their lives for the fanaticism of a few, to salute those who gave up their lives trying to shield others, and to honor those who survived the ordeal of terror. It is time to light a candle, to show that as we move on, we cherish their memories, we value their sacrifice and we hail their courage. Please Light a Candle Now at: http://www.indiajaiho.com/LightACandle.htm Warm Regards, Smrutilekha Swain From abpillai at gmail.com Tue Nov 30 05:07:07 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 30 Nov 2010 09:37:07 +0530 Subject: [BangPypers] Light a candle for 26/11 and Show you remember In-Reply-To: References: Message-ID: On Mon, Nov 29, 2010 at 2:00 PM, Smrutilekha Swain wrote: > Hi bangpypers at python.org , > > I just light a candle for 26/11. > It is time to show that we have neither forgiven nor forgotten 26/11. > It is time to remember those who paid with their lives for the fanaticism > of > a few, to salute those who gave up their lives trying to shield others, and > to honor those who survived the ordeal of terror. > It is time to light a candle, to show that as we move on, we cherish their > memories, we value their sacrifice and we hail their courage. > > Please Light a Candle Now at: http://www.indiajaiho.com/LightACandle.htm > While appreciating the sentiment which we all share, this is not really the forum for sending such emails. This is a professional forum for only Python language related discussions only. Please refrain from posting non-topic related matters here. > Warm Regards, > Smrutilekha Swain > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Regards, -- --Anand From vrsandeep77 at yahoo.co.in Tue Nov 30 09:09:13 2010 From: vrsandeep77 at yahoo.co.in (Sandeep Varma) Date: Tue, 30 Nov 2010 13:39:13 +0530 (IST) Subject: [BangPypers] urgent onsite opening for Python/Zope/Ajax/DHTML developers, 2-3 years experience Message-ID: <366084.63678.qm@web137319.mail.in.yahoo.com> Subject: urgent onsite opening for Python/Zope/Ajax/DHTML developers, 2-3 years experience Dear group members, ? This is Sandeep from Carl Zeiss India Ltd. ? We have a very urgent requirement for the position ofsoftware developer knowledge of AJAX, XML, DHTML, HTML and PostgressSQL/Oracle, at Carl Zeiss India,based at Bangalore ? We are looking for a person, with 2 to 3 year full time development experience in any reputed organization, with excellent communication skills, and a very good attitude and commitment, willing to have a long term association with our company. ? If anyone interested in this opportunity, kindly get in touch with me atvrsandeep77 at yahoo.co.in. ? ? first week of January, 2011. ? Carl Zeiss is a world leader in Optics and Opto-Electronic products. For more details on Carl Zeiss, you are requested to check our web sites,We prefer candidates who can join us on or before. (with urgent onsite work for 3 months in Germany). with skills in Python web-UI development, with Zope,www.zeiss.co.in www.zeiss.com www.zeissmetrology.com ?Thanks & Regards Sandeep Carl Zeiss, Bangalore.? ? From smrutilekha at gmail.com Tue Nov 30 09:15:11 2010 From: smrutilekha at gmail.com (Smrutilekha Swain) Date: Tue, 30 Nov 2010 13:45:11 +0530 Subject: [BangPypers] Light a candle for 26/11 and Show you remember In-Reply-To: References: Message-ID: Hi i am absolutely sorry for sending this mail to this forum. i did not have any intention of sending this mail to your forum actually i didnot check the senders' list before sending it. i realised it today when i saw some of the mail of this forum. i guaranteed you never in the it will happen again. sorry for the trouble. sorry again. From vrsandeep77 at yahoo.co.in Tue Nov 30 10:12:25 2010 From: vrsandeep77 at yahoo.co.in (Sandeep Varma) Date: Tue, 30 Nov 2010 14:42:25 +0530 (IST) Subject: [BangPypers] opening for Python/Zope/Ajax/DHTML developers, 2-3 years experience at Carl Zeiss Message-ID: <745429.39994.qm@web137308.mail.in.yahoo.com> Subject: urgent onsite opening for Python/Zope/Ajax/DHTML developers, 2-3 years experience Dear group members, This is Sandeep from Carl Zeiss India Ltd. We have a very urgent requirement for the position of software developer with skills in Python web-UI development, with Zope, knowledge of AJAX, XML, DHTML, HTML and PostgressSQL/Oracle, at Carl Zeiss India, based at Bangalore. (with urgent onsite work for 3 months in Germany). We are looking for a person, with 2 to 3 year full time development experience in any reputed organization, with excellent communication skills, and a very good attitude and commitment, willing to have a long term association with our company. If anyone interested in this opportunity, kindly get in touch with me at vrsandeep77 at yahoo.co.in. ?We prefer candidates who can join us on or before first week of January, 2011. Carl Zeiss is a world leader in Optics and Opto-Electronic products. For more details on Carl Zeiss, you are requested to check our web sites, www.zeiss.co.in www.zeiss.com www.zeissmetrology.com Thanks & Regards Sandeep Carl Zeiss, Bangalore.