From amit.pureenergy at gmail.com Sun Nov 3 22:30:02 2013 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Mon, 4 Nov 2013 03:00:02 +0530 Subject: [BangPypers] Empty element in xml Message-ID: Hi All, I am stuck with wierd problem . I am dealing with a legacy system(written in C) that deals with using some xml. The xml is created with python. Now the trouble is that the legacy system understands empty element as: where as using python libs lxml or xml.etree or anything empty element is written as is there a way I can change that. So that I don't have to make any changes in the legacy system. Thanks Amit -- A-M-I-T S|S From gora at mimirtech.com Mon Nov 4 04:16:51 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 4 Nov 2013 08:46:51 +0530 Subject: [BangPypers] Empty element in xml In-Reply-To: References: Message-ID: On 4 November 2013 03:00, Amit Sethi wrote: > > Hi All, I am stuck with wierd problem . I am dealing with a legacy > system(written in C) that deals with using some xml. The xml is > created with python. Now the trouble is that the legacy system > understands empty element as: > > > > where as using python libs lxml or xml.etree or anything empty element > is written as > is there a way I can change that. So that I don't have to > make any changes in the legacy system. Have pretty much quit using Python XML parsers other than lxml, but lxml can both read and write such tags. I would be surprised if xml.etree could not do that. from lxml import etree # Read: xml = '' root = etree.fromstring( xml ) print etree.tostring( root ) # Write: root = etree.Element( 'doc' ) child = etree.SubElement( root, 'a' ) # Set empty string as element content: Open/close tags forced child.text = '' print etree.tostring( root ) Regards, Gora From amit.pureenergy at gmail.com Mon Nov 4 16:37:56 2013 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Mon, 4 Nov 2013 21:07:56 +0530 Subject: [BangPypers] Empty element in xml In-Reply-To: References: Message-ID: I ended up using method=html for writing the xml. tree.write(filename, encoding="utf-8", xml_declaration=True, method='html') I am not sure if there are going to be any problems with this but for the time being my nosetests seem to be working fine Thanks Amit On Mon, Nov 4, 2013 at 8:46 AM, Gora Mohanty wrote: > On 4 November 2013 03:00, Amit Sethi wrote: >> >> Hi All, I am stuck with wierd problem . I am dealing with a legacy >> system(written in C) that deals with using some xml. The xml is >> created with python. Now the trouble is that the legacy system >> understands empty element as: >> >> >> >> where as using python libs lxml or xml.etree or anything empty element >> is written as >> is there a way I can change that. So that I don't have to >> make any changes in the legacy system. > > Have pretty much quit using Python XML parsers other than lxml, > but lxml can both read and write such tags. I would be surprised if > xml.etree could not do that. > > from lxml import etree > > # Read: > xml = '' > root = etree.fromstring( xml ) > print etree.tostring( root ) > > # Write: > root = etree.Element( 'doc' ) > child = etree.SubElement( root, 'a' ) > # Set empty string as element content: Open/close tags forced > child.text = '' > print etree.tostring( root ) > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers -- A-M-I-T S|S From gora at mimirtech.com Mon Nov 4 17:05:51 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 4 Nov 2013 21:35:51 +0530 Subject: [BangPypers] Empty element in xml In-Reply-To: References: Message-ID: On 4 November 2013 21:07, Amit Sethi wrote: > I ended up using method=html for writing the xml. > > tree.write(filename, encoding="utf-8", xml_declaration=True, method='html') > > I am not sure if there are going to be any problems with this but for > the time being my nosetests seem to be working fine I would not do that at all. There are subtle differences between HTML and XML, e.g., HTML allows tags that are not explicitly closed with . Try a sub-element with the or tag. In general, valid HTML is not necessarily valid XML, and vice versa. The bugs that such an assumption might exercise can be subtle and hard to catch. Regards, Gora From amit.pureenergy at gmail.com Mon Nov 4 17:56:09 2013 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Mon, 4 Nov 2013 22:26:09 +0530 Subject: [BangPypers] Empty element in xml In-Reply-To: References: Message-ID: > I would not do that at all. There are subtle differences between HTML > and XML, e.g., HTML allows tags that are not explicitly closed with > . Try a sub-element with the or tag. In general, > valid HTML is not necessarily valid XML, and vice versa. The bugs Hmm that is good point. I guess explicitly setting an empty string might be the only solution Thanks Amit -- A-M-I-T S|S From vnbang2003 at yahoo.com Thu Nov 7 03:49:38 2013 From: vnbang2003 at yahoo.com (vijay) Date: Thu, 7 Nov 2013 10:49:38 +0800 (SGT) Subject: [BangPypers] Request for python workshop at t SJCE, mysore(Nov 9 or 10) Message-ID: <1383792578.28133.YahooMailNeo@web192205.mail.sg3.yahoo.com> Hi All, ? ?We have received request to conduct python workshop ?at SJCE, mysore. Below are more details of the same. Tuxedo is the odd semester fest of IEEE-SJCE with the sole motive to aggrandize open source.Tuxedo focuses on acquainting the newbies to the open source revolution. >Tuxedo '13 is being held on?9th and 10th of November 2013?at SJCE, Mysore. The inauguration will be on?9th Nov 2013 at 10 am.? >The timing of the Python session can be allocated either on 9th or 10th based on the availability of resource person. It will only be a one-day session. Please do let me know if any one is interested . With Thanks Vijay From abdulmuneer at gmail.com Thu Nov 7 10:11:03 2013 From: abdulmuneer at gmail.com (Abdul Muneer) Date: Thu, 7 Nov 2013 14:41:03 +0530 Subject: [BangPypers] Issue with list comprehension In-Reply-To: References: Message-ID: Hi, "_sum=sum([n for n in itertools.takewhile(lambda x: x < 400, fib)]) TypeError: 'int' object is not callable" Probably 'sum' might have been used earlier in the code to store the value of some integer. "sum" is a builtin function but the moment you assign sum=(x+y) or something, you have lost that function. If you are doubtful, do `from __builtin__ import * ` to reclaim your builtin variables and functions. Regards, Abdul Muneer -- Follow me on Twitter: @abdulmuneer On Thu, Oct 31, 2013 at 12:22 PM, Asokan Pichai wrote: > import itertools > > def fib(): > a, b = 0, 1 > while True: > yield b > a, b = b, a+b > > print sum(itertools.takewhile(lambda x: x < 400, fib)) > ----------------------- > I tried the above; and it worked too (986) > > Asokan Pichai > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From chinny143charan at gmail.com Thu Nov 7 13:59:25 2013 From: chinny143charan at gmail.com (charantej s) Date: Thu, 7 Nov 2013 12:59:25 +0000 (UTC) Subject: [BangPypers] Invitation to connect on LinkedIn Message-ID: <1742535412.3648466.1383829165758.JavaMail.app@ela4-app0135.prod> LinkedIn ------------ Bangalore, I'd like to add you to my professional network on LinkedIn. - charantej charantej s Senior Software Developer at Global Analytics Chennai Area, India Confirm that you know charantej s: https://www.linkedin.com/e/-vs3gg5-hnq05lzy-34/isd/17877042953/ZjJksj2A/?hs=false&tok=2pnY4rUBkbXlY1 -- You are receiving Invitation to Connect emails. Click to unsubscribe: http://www.linkedin.com/e/-vs3gg5-hnq05lzy-34/unm3j9dc2T19dGWtfVHGFbqdEhjgW8x3E9/goo/bangpypers%40python%2Eorg/20061/I5891603442_1/?hs=false&tok=1AnjeFST4bXlY1 (c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA. From kartiksinghal at gmail.com Sun Nov 10 09:14:22 2013 From: kartiksinghal at gmail.com (Kartik Singhal) Date: Sun, 10 Nov 2013 13:44:22 +0530 Subject: [BangPypers] Python for Android development Message-ID: Thought of sharing, though many among the list might have gone through this already (currently trending on HN) - Android: The Land That Python Forgot (PyCon Canada): https://speakerdeck.com/player/ee88fcf0e4010130a0b1566329155b74 -- Kartik http://k4rtik.wordpress.com/ From ramdaz at gmail.com Sun Nov 10 18:43:47 2013 From: ramdaz at gmail.com (Ramdas S) Date: Sun, 10 Nov 2013 23:13:47 +0530 Subject: [BangPypers] Python for Android development In-Reply-To: References: Message-ID: Went thru. Has Kivy started supporting GPS and photo capture? Rest of it is fairly OK On Sun, Nov 10, 2013 at 1:44 PM, Kartik Singhal wrote: > Thought of sharing, though many among the list might have gone through this > already (currently trending on HN) - Android: The Land That Python Forgot > (PyCon Canada): > https://speakerdeck.com/player/ee88fcf0e4010130a0b1566329155b74 > > -- > Kartik > http://k4rtik.wordpress.com/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 My Personal Blog on http://ramdaz.wordpress.com From sangeeth.saravanaraj at gmail.com Wed Nov 13 07:31:05 2013 From: sangeeth.saravanaraj at gmail.com (Sangeeth Saravanaraj) Date: Wed, 13 Nov 2013 12:01:05 +0530 Subject: [BangPypers] [job-posting] Test Architect @ Riptide IO Message-ID: RiptideIO is looking for a Python programmer who can design and develop test automation framework. More details can be found here - http://www.linkedin.com/jobs2/view/9721836 PLEASE NOTE: Interested candidates can contact me directly (sangeeth AT riptideio DOT com) **STRICTLY** off the BangPypers mailer. Please ensure that you do NOT hit reply and accidentally send responses to BangPypers mailer. Thank you, Sangeeth From metafusion at gmail.com Wed Nov 13 16:58:09 2013 From: metafusion at gmail.com (Shuhaib Shariff) Date: Wed, 13 Nov 2013 21:28:09 +0530 Subject: [BangPypers] [JOBS] Python/Django Developers with 1-2 Yrs Experience Message-ID: DoubleSpring seeks passionate PYTHON developers with experience in building or contributing to Open Source projects. We are constantly rolling out new products so the right individual would be able to write clean code and work in a fast pace environment. We highly value native ability, passion and the right attitude. Requirements - Technical proficiency with Python and Django. - Technical proficiency in JavaScript. - Experience with MySQL / PgSQL. - Experience with MVC design patterns and solid algorithm skills. - 1-2 years of industry experience Location: Bangalore How to apply Send your resume to: careers at doublespring.com From oommenkm at gmail.com Thu Nov 14 05:10:06 2013 From: oommenkm at gmail.com (OOMMEN KM) Date: Thu, 14 Nov 2013 09:40:06 +0530 Subject: [BangPypers] Python Trining Message-ID: Hi, Please help me finding a center who conduct professional corporate training in Python. My team is well experienced softwares developers in .net. Need basics to advanced topics including frameworks like Django. Please let me know the various options Thanking you in advance. Mr. Oommen Mathew | +91 9945128780 (Karnataka) | +91 9446917322 (Kerala) From kracethekingmaker at gmail.com Thu Nov 14 05:23:52 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Thu, 14 Nov 2013 09:53:52 +0530 Subject: [BangPypers] Python Trining In-Reply-To: References: Message-ID: Anand c, who is on the list conducts basic and advanced python training. Today he is conducting advanced python workshop: https://advancedpython.hasgeek.com From moinakg at gmail.com Thu Nov 14 06:22:26 2013 From: moinakg at gmail.com (Moinak Ghosh) Date: Thu, 14 Nov 2013 10:52:26 +0530 Subject: [BangPypers] [OT]Tech talk by Ulrich Drepper Message-ID: This is not exactly Python related, but just trying to reach out to a wider audience. Ulrich Drepper is currently visiting Bangalore and a tech talk is being organized this Saturday, where he will present on Interesting New Features in Linux, both current and upcoming. All are invited to attend. Venue: Goldman Sachs office, EGL Campus (details below) Note: Due to tight security at the venue you are requested to carry a photo-ID, mention Goldman Tech talk and the contact person?s name, email (see below) and if possible carry a print of this email. Also please let the contact person know that you will be coming. It is required for the security registration process. Venue: Goldman Sachs, Crystal Downs office, ground floor, TR4. Embassy Golf Links Business Park, Intermediate Ring Road, off Domlur. Bangalore - 560071 Contact: Moinak Ghosh, Moinak.Ghosh at GS.com Date/Time: Saturday, 16 th Nov, 2013. Afternoon 3PM till 5PM. Landmarks/Directions: EGL entrance is close to the DELL Office building on Domlur Inner Ring road. After entering you have to come straight down the road till the dead end crossing. Crystal Downs building will be on the right hand side. Google Maps: http://goo.gl/maps/5W783 Regards, Moinak. From anandology at gmail.com Thu Nov 14 12:10:55 2013 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 14 Nov 2013 16:40:55 +0530 Subject: [BangPypers] [OT]Tech talk by Ulrich Drepper In-Reply-To: References: Message-ID: HI Moinak, When posting about a talk, it'll be useful to include at least the title of the talk and a small bio of the speaker. Anand On Thu, Nov 14, 2013 at 10:52 AM, Moinak Ghosh wrote: > This is not exactly Python related, but just trying to reach out to a wider > audience. > > Ulrich Drepper is currently visiting Bangalore and a tech talk is being > organized this Saturday, where he will present on Interesting New Features > in Linux, both current and upcoming. All are invited to attend. > > Venue: Goldman Sachs office, EGL Campus (details below) > > Note: Due to tight security at the venue you are requested to carry a > photo-ID, mention Goldman Tech talk and the contact person?s name, email > (see below) and if possible carry a print of this email. Also please let > the contact person know that you will be coming. It is required for the > security registration process. > > Venue: Goldman Sachs, Crystal Downs office, ground floor, TR4. Embassy Golf > Links Business Park, Intermediate Ring Road, off Domlur. Bangalore - 560071 > Contact: Moinak Ghosh, Moinak.Ghosh at GS.com Date/Time: Saturday, 16 th Nov, > 2013. Afternoon 3PM till 5PM. > > Landmarks/Directions: EGL entrance is close to the DELL Office building on > Domlur Inner Ring road. After entering you have to come straight down the > road till the dead end crossing. Crystal Downs building will be on the > right hand side. Google Maps: http://goo.gl/maps/5W783 > > Regards, > Moinak. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Anand http://anandology.com/ From moinakg at gmail.com Thu Nov 14 12:24:23 2013 From: moinakg at gmail.com (Moinak Ghosh) Date: Thu, 14 Nov 2013 16:54:23 +0530 Subject: [BangPypers] [OT]Tech talk by Ulrich Drepper In-Reply-To: References: Message-ID: On Nov 14, 2013 4:41 PM, "Anand Chitipothu" wrote: > > HI Moinak, > > When posting about a talk, it'll be useful to include at least the title of > the talk and a small bio of the speaker. > > Anand > Yes, you are right. I missed the BIO. Title actually is what I posted, Interesting New Features on Linux. Regards, Moinak. From noufal at nibrahim.net.in Thu Nov 14 13:00:12 2013 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Thu, 14 Nov 2013 17:30:12 +0530 Subject: [BangPypers] [OT]Tech talk by Ulrich Drepper In-Reply-To: (Anand Chitipothu's message of "Thu, 14 Nov 2013 16:40:55 +0530") References: Message-ID: <877gcbfb1v.fsf@sanitarium.localdomain> Anand Chitipothu writes: > HI Moinak, > > When posting about a talk, it'll be useful to include at least the title of > the talk and a small bio of the speaker. True. Although Ulrich Drepper is extremely well known. :) [...] -- Cordially, Noufal http://nibrahim.net.in From kracethekingmaker at gmail.com Thu Nov 14 14:10:39 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Thu, 14 Nov 2013 18:40:39 +0530 Subject: [BangPypers] November Meetup Message-ID: Hi We are having november meetup this saturday in ThoughtWorks koramangala office from 3:00 PM to 6:00PM. Do RSVP http://www.meetup.com/BangPypers/events/125797522/ . Agenda: ----- 1. Autogenerating project structure using cookiecuter and paster 2. How to use docopt 3. High level comparison between Django and Flask -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From ashish.makani at gmail.com Thu Nov 14 16:21:29 2013 From: ashish.makani at gmail.com (ashish makani) Date: Thu, 14 Nov 2013 20:51:29 +0530 Subject: [BangPypers] November Meetup In-Reply-To: References: Message-ID: Hi Kracekumar, fellow pythonistas There is a linux talk [1] this saturday, from 3-5 pm by Ulrich Drepper[0] Is there a chance of rescheduling our november meetup ? In the future, it would be nice to have a little more notice of monthly meetups, so people can plan a little in advance. Or are they always held on the 3rd saturday of every month ? Thanks a ton cheers ashish 0. http://en.wikipedia.org/wiki/Ulrich_Drepper 1. https://mail.python.org/pipermail/bangpypers/2013-November/009888.html Ulrich Drepper is currently visiting Bangalore and a tech talk is being organized this Saturday, where he will present on Interesting New Features in Linux, both current and upcoming. All are invited to attend. rough abstract/summary of the talk =========== The talk will focus on a bunch of new technologies around systems tools and Linux. In particular it talks about resource management and control groups. The concept of Containers and how they are being implemented on the Linux platform. Namespace isolation and handling of system calls. It will also cover new features in Gcc like plugins, code static analysis, thread checking, ways to templatize functions variants for processor feature based optimization, transactional memory and some new features in OpenMP 4.0 =========== Venue: Goldman Sachs office, EGL Campus (details below) Note: Due to tight security at the venue you are requested to carry a photo-ID, mention Goldman Tech talk and the contact person?s name, email (see below) and if possible carry a print of this email. Also please let the contact person know that you will be coming. It is required for the security registration process. Venue: Goldman Sachs, Crystal Downs office, ground floor, TR4. Embassy Golf Links Business Park, Intermediate Ring Road, off Domlur. Bangalore - 560071 Contact: Moinak Ghosh, Moinak.Ghosh at GS.com Date/Time: Saturday, 16 th Nov, 2013. Afternoon 3PM till 5PM. Landmarks/Directions: EGL entrance is close to the DELL Office building on Domlur Inner Ring road. After entering you have to come straight down the road till the dead end crossing. Crystal Downs building will be on the right hand side. Google Maps: http://goo.gl/maps/5W783 *The only way to do great work is to love what you do. If you haven?t found it yet, keep looking. Don?t settle. As with all matters of the heart, you?ll know when you find it.? - Steve Jobs (1955 - 2011)* On Thu, Nov 14, 2013 at 6:40 PM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > Hi > > We are having november meetup this saturday in ThoughtWorks koramangala > office from 3:00 PM to 6:00PM. Do RSVP > http://www.meetup.com/BangPypers/events/125797522/ . > > Agenda: > ----- > 1. Autogenerating project structure using cookiecuter and paster > 2. How to use docopt > 3. High level comparison between Django and Flask > > > > -- > > *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus > Torvaldshttp://kracekumar.com * > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From noufal at nibrahim.net.in Thu Nov 14 16:29:16 2013 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Thu, 14 Nov 2013 20:59:16 +0530 Subject: [BangPypers] November Meetup In-Reply-To: (ashish makani's message of "Thu, 14 Nov 2013 20:51:29 +0530") References: Message-ID: <871u2jf1df.fsf@sanitarium.localdomain> ashish makani writes: > Hi Kracekumar, fellow pythonistas > > There is a linux talk [1] this saturday, from 3-5 pm by Ulrich > Drepper[0] > > Is there a chance of rescheduling our november meetup ? > > In the future, it would be nice to have a little more notice of > monthly meetups, so people can plan a little in advance. > Or are they always held on the 3rd saturday of every month ? Always on the 3rd Saturday of every month. [...] -- Cordially, Noufal http://nibrahim.net.in From kracethekingmaker at gmail.com Thu Nov 14 17:22:56 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Thu, 14 Nov 2013 21:52:56 +0530 Subject: [BangPypers] November Meetup In-Reply-To: References: Message-ID: Not really. Always on 3rd Saturday, 3.00 pm to 5.00pm. Location got confirmed today, that is the reason I posted today. From kracethekingmaker at gmail.com Sat Nov 16 14:47:37 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sat, 16 Nov 2013 19:17:37 +0530 Subject: [BangPypers] November Meetup In-Reply-To: References: Message-ID: We had 15 people for meetup. Here is the report http://bangalore.python.org.in/blog/2013/11/16/november-meetup-report/ On Thu, Nov 14, 2013 at 9:52 PM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > Not really. Always on 3rd Saturday, 3.00 pm to 5.00pm. Location got > confirmed today, that is the reason I posted today. > -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From kracethekingmaker at gmail.com Sun Nov 17 07:02:44 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 17 Nov 2013 11:32:44 +0530 Subject: [BangPypers] December meetup Message-ID: Hi For December meetup we are planning to have Introduction to Python from 9:00 AM to 1:30 PM and usual talks from 3:00 PM to 5:00 PM on Dec 21. The idea is to have basic tutorial for Python, Django, Flask, Salt, Fabric, Ansible or any other tutorial in the morning and talks in the evening. Also we should use system like funnel or google docs to collect the interest and availability. Thoughts ? -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From noufal at nibrahim.net.in Sun Nov 17 07:33:32 2013 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sun, 17 Nov 2013 12:03:32 +0530 Subject: [BangPypers] December meetup In-Reply-To: (kracekumar ramaraju's message of "Sun, 17 Nov 2013 11:32:44 +0530") References: Message-ID: <87vbzr1qrn.fsf@sanitarium.localdomain> kracekumar ramaraju writes: > Hi > > For December meetup we are planning to have Introduction to Python from > 9:00 AM to 1:30 PM and usual talks from 3:00 PM to 5:00 PM on Dec 21. > > The idea is to have basic tutorial for Python, Django, Flask, Salt, Fabric, > Ansible or any other tutorial in the morning and talks in the evening. > > Also we should use system like funnel or google docs to collect the > interest and availability. That's a good idea. [...] -- Cordially, Noufal http://nibrahim.net.in From kracethekingmaker at gmail.com Sun Nov 17 09:45:58 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 17 Nov 2013 14:15:58 +0530 Subject: [BangPypers] December meetup In-Reply-To: References: Message-ID: Ramesh I am speaking to people for venue. Once the venue is confirmed I will update the meetup page, agenda and pass the details here. On Sun, Nov 17, 2013 at 1:59 PM, wrote: > Hi, can i get venue details please. > -----Original Message----- > From: Noufal Ibrahim > Sent: 17/11/2013, 12:03 PM > To: kracekumar ramaraju > Cc: Bangalore Python Users Group - India > Subject: Re: [BangPypers] December meetup > > > kracekumar ramaraju writes: > > > Hi > > > > For December meetup we are planning to have Introduction to Python from > > 9:00 AM to 1:30 PM and usual talks from 3:00 PM to 5:00 PM on Dec 21. > > > > The idea is to have basic tutorial for Python, Django, Flask, Salt, > Fabric, > > Ansible or any other tutorial in the morning and talks in the evening. > > > > Also we should use system like funnel or google docs to collect the > > interest and availability. > > That's a good idea. > [...] > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > > -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From ramesh.babu3 at gmail.com Sun Nov 17 09:29:59 2013 From: ramesh.babu3 at gmail.com (ramesh.babu3 at gmail.com) Date: Sun, 17 Nov 2013 13:59:59 +0530 Subject: [BangPypers] December meetup Message-ID: Hi, can i get venue details please. -----Original Message----- From: Noufal Ibrahim Sent: 17/11/2013, 12:03 PM To: kracekumar ramaraju Cc: Bangalore Python Users Group - India Subject: Re: [BangPypers] December meetup kracekumar ramaraju writes: > Hi > > For December meetup we are planning to have Introduction to Python from > 9:00 AM to 1:30 PM and usual talks from 3:00 PM to 5:00 PM on Dec 21. > > The idea is to have basic tutorial for Python, Django, Flask, Salt, Fabric, > Ansible or any other tutorial in the morning and talks in the evening. > > Also we should use system like funnel or google docs to collect the > interest and availability. That's a good idea. [...] -- Cordially, Noufal http://nibrahim.net.in _______________________________________________ BangPypers mailing list BangPypers at python.org https://mail.python.org/mailman/listinfo/bangpypers From ramesh.babu3 at gmail.com Sun Nov 17 11:27:01 2013 From: ramesh.babu3 at gmail.com (ramesh.babu3 at gmail.com) Date: Sun, 17 Nov 2013 15:57:01 +0530 Subject: [BangPypers] December meetup Message-ID: Thank u for that. -----Original Message----- From: kracekumar ramaraju Sent: 17/11/2013, 2:15 PM To: ramesh.babu3 at gmail.com Cc: Bangalore Python Users Group - India Subject: Re: [BangPypers] December meetup Ramesh I am speaking to people for venue. Once the venue is confirmed I will update the meetup page, agenda and pass the details here. On Sun, Nov 17, 2013 at 1:59 PM, wrote: > Hi, can i get venue details please. > -----Original Message----- > From: Noufal Ibrahim > Sent: 17/11/2013, 12:03 PM > To: kracekumar ramaraju > Cc: Bangalore Python Users Group - India > Subject: Re: [BangPypers] December meetup > > > kracekumar ramaraju writes: > > > Hi > > > > For December meetup we are planning to have Introduction to Python from > > 9:00 AM to 1:30 PM and usual talks from 3:00 PM to 5:00 PM on Dec 21. > > > > The idea is to have basic tutorial for Python, Django, Flask, Salt, > Fabric, > > Ansible or any other tutorial in the morning and talks in the evening. > > > > Also we should use system like funnel or google docs to collect the > > interest and availability. > > That's a good idea. > [...] > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > > -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From saurabh.hirani at gmail.com Mon Nov 18 09:06:26 2013 From: saurabh.hirani at gmail.com (saurabh) Date: Mon, 18 Nov 2013 00:06:26 -0800 (PST) Subject: [BangPypers] December meetup In-Reply-To: References: Message-ID: <1384761986809-5039290.post@n6.nabble.com> Great idea Krace. I guess if we have some topics put forth by mailing list members over this thread then we would have a raw list to work with and then it can be funneled with specific talks on those topics. For example, I'd like to learn more about flask, scapy. And people can come up with their areas of expertise e.g. Shantanu had given a lightning talk on Graphite in this meetup. If we get a feel of what people what to learn and what talks people are interested in giving - an intersection of the two could lay a background for funneling. -- regards, Saurabh. -- View this message in context: http://python.6.x6.nabble.com/December-meetup-tp5039233p5039290.html Sent from the Bangalore (BangPypers) mailing list archive at Nabble.com. From kracethekingmaker at gmail.com Mon Nov 18 09:13:26 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Mon, 18 Nov 2013 13:43:26 +0530 Subject: [BangPypers] December meetup In-Reply-To: <1384761986809-5039290.post@n6.nabble.com> References: <1384761986809-5039290.post@n6.nabble.com> Message-ID: The idea was suggested by Anand Chitipothu. ;-) From basilkurian at gmail.com Mon Nov 18 12:14:18 2013 From: basilkurian at gmail.com (Basil Kurian) Date: Mon, 18 Nov 2013 16:44:18 +0530 Subject: [BangPypers] [JOB] Linkedin is looking for Site Reliability Engineers Message-ID: Linkedin Bangalore is hiring Site Reliability Engineers who are proficient at Python *Responsibilities* - Serve as a primary point responsible for the overall health, performance, and capacity of our internet-facing systems. - Assist in the roll-out and deployment of new product features and installations to facilitate our rapid iteration and constant growth. - Develop tools to improve our ability to rapidly deploy and effectively monitor custom applications in a large-scale UNIX environment. - Work closely with development teams to ensure that platforms are designed with "operability" in mind. - Participate in a 24x7 rotation for second-tier escalations. *Minimum Qualifications* - Deep UNIX/Linux systems knowledge and/or systems administration background. - Strong trouble-shooting skills that span systems, network, and code. - Demonstrated programming skills in one or more of: Python, Perl, Ruby, Java, C. - B.Tech/BS in in Computer Science or related technical discipline. In lieu of degree,3+ years in a UNIX-based web operations role. *Preferred Qualifications* - Experience with web-based Java/J2EE architectures. - Python experience, specifically for systems automation If interested please revert back with an updated resume to basil at linkedin.com and for HR related queries feel free to connect with Prabhavi . Regards Basil Kurian From svaksha at gmail.com Mon Nov 18 16:46:37 2013 From: svaksha at gmail.com (svaksha) Date: Mon, 18 Nov 2013 15:46:37 +0000 Subject: [BangPypers] [x-post] Pyladies weekly dojos Message-ID: Hello, Pyladies-BLR[0] is happy to announce weekly dojo sessions to work on Python projects together. Dojos are an informal gathering of Python developers who'd like to code and brainstrom in small groups and help each other. The FAQ[1] page has more details. We use the github repo[2] to plan the dojos, which contains the logistics[3] with instructions on how to register/RSVP (space will be limited). If you have any suggestions for workshop topics, tutorials and other learner resources, fork, clone, add the links to the Kata[4] page and submit a PR. Ref: [0] https://mail.python.org/pipermail/pyladies-blr/2013-October/000071.html [1] https://github.com/svaksha/pyladies-dojo/blob/master/FAQ.mediawiki [2] https://github.com/svaksha/pyladies-dojo [3] https://github.com/svaksha/pyladies-dojo/blob/master/README.mediawiki [4] https://github.com/svaksha/pyladies-dojo/blob/master/Kata.mediawiki Thanks, Svaksha From dileep.ds at gmail.com Wed Nov 27 10:25:01 2013 From: dileep.ds at gmail.com (Dileep) Date: Wed, 27 Nov 2013 14:55:01 +0530 Subject: [BangPypers] Internationalization in Python 2.6 Message-ID: Hi, How the internationalization works in Python 2.6. I have an input string to the script. I do not know the encoding of the string. I want to write that string to an xml file. Here I am trying different encoding formats to decode the input string and make it as unicode. Then using the same encoding format while creating the xml string and writing to a file. Is that approach fine ? or any other way to support internationalization if we do not know the encoding format for the input string ? I am getting the xml string without any issues. print xml_string works fine . But when it is writing to a file, the tag value got changed, even though I used the same encoding format used for decoding. I written a sample code like below import os import codecs from xml.dom.minidom import Document def write_to_xml(output_string, encod_fmt): doc = Document() root = doc.createElement('root') doc.appendChild(root) tag_key = doc.createElement('output_string') tag_value = output_string tag_key.appendChild(doc.createTextNode((tag_value))) root.appendChild(tag_key) xml_string = doc.toprettyxml(indent=" ",encoding=encod_fmt) print xml_string fname = os.path.join('/root/output.xml') doc.writexml(codecs.open(fname,'wb',encod_fmt), encoding=encod_fmt) def convert_string(input_string): try: input_string_unicode = input_string.decode('utf-8') encoding = 'utf-8' except UnicodeDecodeError: try: input_string_unicode = input_string.decode('Latin-1') encoding = 'Latin-1' except UnicodeDecodeError: try: input_string_unicode = input_string.decode('iso-8859-1') encoding = 'iso-8859-1' except UnicodeDecodeError: raise #output_string = input_string_unicode.encode(encoding) write_to_xml(input_string_unicode, encoding) if __name__ == '__main__': input_string = raw_input() convert_string(input_string) Output --------- [root] python i18n_test.py ?test ?test But the file content is as below. test -- Regards D.S. DIleep From vpuri.social at gmail.com Wed Nov 27 13:27:26 2013 From: vpuri.social at gmail.com (Vivek Puri) Date: Wed, 27 Nov 2013 17:57:26 +0530 Subject: [BangPypers] Internationalization in Python 2.6 In-Reply-To: References: Message-ID: <5295E52E.5000804@gmail.com> Hi, > How the internationalization works in Python 2.6. Internationalization is different topic. Here you are dealing with character encoding. You are actually on right track except this line: > write_to_xml(input_string_unicode, encoding) change it to write_to_xml(input_string_unicode, 'utf-8') Basically once you have already converted the string to unicode you should just write the output as unicode and utf8 is generally more acceptable encoding. rgds vivek From vijay750 at gmail.com Wed Nov 27 16:21:41 2013 From: vijay750 at gmail.com (Vijay Ramachandran) Date: Wed, 27 Nov 2013 20:51:41 +0530 Subject: [BangPypers] Internationalization in Python 2.6 Message-ID: On Wed, Nov 27, 2013 at 4:30 PM, wrote: > I have an input string to the script. I do not know the encoding of the > string. > Instead of guessing the encoding like you're doing, you should use a library like https://pypi.python.org/pypi/chardet Once the encoding is detected, you will need to change the encoding from the detected encoding to utf-8. From dileep.ds at gmail.com Wed Nov 27 16:31:17 2013 From: dileep.ds at gmail.com (Dileep) Date: Wed, 27 Nov 2013 21:01:17 +0530 Subject: [BangPypers] Internationalization in Python 2.6 In-Reply-To: <5295E52E.5000804@gmail.com> References: <5295E52E.5000804@gmail.com> Message-ID: Hi Vivek, Thanks for the reply. Yes I tried the same earlier itself. In that case problem is the input string decode with one encoding format and when it encode into a byte string using utf-8 the resulting string is not matching with the input string. Without specifying the encoding format also, while writing to any file it will take the default utf-8 encoding I think. [root] python i18n_test.py ?test ?test But the file content is as below. ? test Actually in the earlier part when we write to xml we got which was correct when we look into the ISO-8859-1 (Latin-1) international character set and hexadecimal. But here we got the hexa instead. Again for another character which can not be decoded using utf-8 it is giving the same value ? which is interesting :) Apart from encoding what we have to take care in python coding to support internationalization, any document can be suggested for that. Thanks Dileep On Wed, Nov 27, 2013 at 5:57 PM, Vivek Puri wrote: > Hi, > > How the internationalization works in Python 2.6. >> > > Internationalization is different topic. Here you are dealing with > character encoding. > > > You are actually on right track except this line: > > write_to_xml(input_string_unicode, encoding) >> > > change it to > > write_to_xml(input_string_unicode, 'utf-8') > > Basically once you have already converted the string to unicode > you should just write the output as unicode and utf8 is generally > more acceptable encoding. > > rgds > vivek > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards D.S. DIleep ?? How you live one day is eventually how you live your life ?? From vpuri.social at gmail.com Thu Nov 28 01:29:15 2013 From: vpuri.social at gmail.com (Vivek Puri) Date: Thu, 28 Nov 2013 05:59:15 +0530 Subject: [BangPypers] Internationalization in Python 2.6 In-Reply-To: References: <5295E52E.5000804@gmail.com> Message-ID: <52968E5B.6000203@gmail.com> Hi, > > Actually in the earlier part when we write to xml we got which was > correct when we look into the ISO-8859-1 (Latin-1) international > character set and hexadecimal. > But here we got the hexa instead. Again for another character which > can not be decoded using utf-8 it is giving the same value ? which is > interesting :) > I ran some test but I always got correct answer no matter how many times I encode/decode but we may be trying different things. Also consider Vijay's response of chardet library. > > Apart from encoding what we have to take care in python coding to > support internationalization, any document can be suggested for that. > Internationalization is much more than encoding but python doc for i18n will get you started. Take a look at : http://docs.python.org/2/library/i18n.html rgds vivek From rahulrai74 at gmail.com Wed Nov 27 15:21:16 2013 From: rahulrai74 at gmail.com (Rahul Rai) Date: Wed, 27 Nov 2013 19:51:16 +0530 Subject: [BangPypers] [JOB] Knowlarity is looking for a fullstack developers Message-ID: Dear All, Knowlarity, India's leading cloud telephony company is looking for an Architect (Full Stack). Here's a nice blog which explains what we are looking for in terms of technical skills - http://www.laurencegellert.com/2012/08/what-is-a-full-stack-developer/ if you think you or someone who you know fits the bill, please write to me separately. This is a very critical position in terms of responsibilities and visibility across the various products we have and the candidate will be expected to serve as a role model to the product engineering team in terms of technology as well as personal conduct. We need the person to have around 10+ years of experience. In terms of technology stack, we have a large interplay of various technologies across products and platforms which we are continuously evaluating - To give you an idea we currently use Nginx, Drupal, Django, mySQL, Postgres, mongodb, Redis, RabbitMQ, ZeroMQ, cpython/stackless , C , jQuery etc.. This position is based out of Bangalore. *We are also looking to fill 2 slightly junior positions in addition to above with 5+ years of experience in working across the stack. * Regards, Rahul