From nagappan at gmail.com Sun May 1 00:06:06 2011 From: nagappan at gmail.com (Nagappan Alagappan) Date: Sat, 30 Apr 2011 15:06:06 -0700 Subject: [Baypiggies] Fwd: Announce: Automated Testing on Macintosh (PyATOM) 0.9 released In-Reply-To: References: Message-ID: Hello, The PyATOM team is proud to announce the initial release of PyATOM. About PyATOM: Short for Automated Testing on Macintosh, PyATOM is the first Python library to fully enable GUI testing of Macintosh applications via the Apple Accessibility API. This library was created out of desperation. Existing tools such as using appscript to send messages to accessibility objects are painful to write and slow to use. PyATOM has direct access to the API. It's fast and easy to use to write tests. Changes in this release: It's the first public release, so none yet! Special thanks: The VMware Fusion automation team Nagappan Alagappan and the LDTP team Download source: https://github.com/pyatom/pyatom Documentation references: Documentation is still a work in progress. Read the README on the Github page for an introduction to PyATOM. Report bugs - https://github.com/pyatom/pyatom/issues To subscribe to PyATOM mailing lists, visit http://lists.pyatom.com/ IRC Channel - #pyatom on irc.freenode.net -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kpguy1975 at gmail.com Tue May 3 00:37:41 2011 From: kpguy1975 at gmail.com (Vikram K) Date: Mon, 2 May 2011 18:37:41 -0400 Subject: [Baypiggies] python list manipulation using map Message-ID: i have a list whose elements are strings. all the elements in the list are numbers but are represented as string type and i wish to convert them to int type. i tried using map but the output is not what i want. please help. x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] >>> T2 = [map(int, i) for i in x] >>> T2 [[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, 9, 7, 9]] ---------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre.conrad at gmail.com Tue May 3 00:44:18 2011 From: alexandre.conrad at gmail.com (Alexandre Conrad) Date: Mon, 2 May 2011 15:44:18 -0700 Subject: [Baypiggies] python list manipulation using map In-Reply-To: References: Message-ID: x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] y = [int(i) for i in x] 2011/5/2 Vikram K : > i have a list whose elements are strings. all the elements in the list are > numbers but are represented as string type and i wish to convert them to int > type. i tried using map but the output is not what i want. please help. > > ?x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', > '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] > >>>> T2 = [map(int, i) for i in x] >>>> T2 > [[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], > [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, > 9, 7, 9]] > > ---------- > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- Alex | twitter.com/alexconrad From tungwaiyip at yahoo.com Tue May 3 00:45:06 2011 From: tungwaiyip at yahoo.com (Tung Wai Yip) Date: Mon, 02 May 2011 15:45:06 -0700 Subject: [Baypiggies] python list manipulation using map In-Reply-To: References: Message-ID: Just use map(int, x). - map is functional construct. - For loop and list comprehension is procedural construct. In this case functional construct is lot more concise. Wai Yip > i have a list whose elements are strings. all the elements in the list > are > numbers but are represented as string type and i wish to convert them to > int > type. i tried using map but the output is not what i want. please help. > > x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', > '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] > >>>> T2 = [map(int, i) for i in x] >>>> T2 > [[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], > [0], > [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, > 2, 1, > 9, 7, 9]] > > ---------- From rami.chowdhury at gmail.com Tue May 3 00:46:35 2011 From: rami.chowdhury at gmail.com (Rami Chowdhury) Date: Mon, 2 May 2011 23:46:35 +0100 Subject: [Baypiggies] python list manipulation using map In-Reply-To: References: Message-ID: <1ABA3753-39F0-46E6-9B6E-6C70292548D9@gmail.com> On May 2, 2011, at 23:37 , Vikram K wrote: > i have a list whose elements are strings. all the elements in the list are numbers but are represented as string type and i wish to convert them to int type. i tried using map but the output is not what i want. please help. > > x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] > > >>> T2 = [map(int, i) for i in x] map() calls the function across all elements in an iterable, and since strings are iterable in Python, the above actually calls map() on each item in your list. What you want is map(int, x) :-) > >>> T2 > [[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, 9, 7, 9]] > > ---------- > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies ------------- Rami Chowdhury "Never assume malice when stupidity will suffice." -- Hanlon's Razor +44-7581-430-517 / +88-0189-245544 / +1-408-597-7068 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alok at merfinllc.com Tue May 3 00:48:19 2011 From: alok at merfinllc.com (Alok Singhal) Date: Mon, 2 May 2011 15:48:19 -0700 Subject: [Baypiggies] python list manipulation using map In-Reply-To: References: Message-ID: On Mon, May 2, 2011 at 3:37 PM, Vikram K wrote: > i have a list whose elements are strings. all the elements in the list are > numbers but are represented as string type and i wish to convert them to int > type. i tried using map but the output is not what i want. please help. > > ?x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', > '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] > >>>> T2 = [map(int, i) for i in x] >>>> T2 > [[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], > [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, > 9, 7, 9]] Use one of list comprehension or map, not both: [int(i) for i in x] or map(int, x) should do what you want. From max at theslimmers.net Tue May 3 00:50:18 2011 From: max at theslimmers.net (Max Slimmer) Date: Mon, 2 May 2011 15:50:18 -0700 Subject: [Baypiggies] python list manipulation using map In-Reply-To: References: Message-ID: you want either >>> x = ['1','33','44'] >>> map(int,x) # map applies the int function agains a list [1, 33, 44] >>> [int(i) for i in x] # or do it explicity yourself with list comprehension [1, 33, 44] Max Slimmer On Mon, May 2, 2011 at 3:37 PM, Vikram K wrote: > i have a list whose elements are strings. all the elements in the list are > numbers but are represented as string type and i wish to convert them to int > type. i tried using map but the output is not what i want. please help. > > ?x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', > '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] > >>>> T2 = [map(int, i) for i in x] >>>> T2 > [[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], > [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, > 9, 7, 9]] > > ---------- > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From jkaderlan at yahoo.com Tue May 3 00:51:50 2011 From: jkaderlan at yahoo.com (joshua kaderlan) Date: Mon, 2 May 2011 15:51:50 -0700 (PDT) Subject: [Baypiggies] python list manipulation using map In-Reply-To: References: Message-ID: <836770.47759.qm@web34406.mail.mud.yahoo.com> That's actually a map() call inside a list comprehension. Either a bare map() call or a list comprehension without the map() call will do what you want. E.g., >>> T2 = map(lambda i: int(i), x) or >>> T2 = [int(i) for i in x] >________________________________ >From: Vikram K >To: baypiggies at python.org >Sent: Monday, May 2, 2011 3:37 PM >Subject: [Baypiggies] python list manipulation using map > > >i have a list whose elements are strings. all the elements in the list are numbers but are represented as string type and i wish to convert them to int type. i tried using map but the output is not what i want. please help. > >?x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] > >>>> T2 = [map(int, i) for i in x] >>>> T2 >[[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, 9, 7, 9]] > >---------- > > >_______________________________________________ >Baypiggies mailing list >Baypiggies at python.org >To change your subscription options or unsubscribe: >http://mail.python.org/mailman/listinfo/baypiggies > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkaderlan at yahoo.com Tue May 3 00:57:37 2011 From: jkaderlan at yahoo.com (joshua kaderlan) Date: Mon, 2 May 2011 15:57:37 -0700 (PDT) Subject: [Baypiggies] python list manipulation using map References: Message-ID: <339903.69303.qm@web34405.mail.mud.yahoo.com> Others may have gotten there first, but at least I added the completely gratuitous lambda! >________________________________ >From: joshua kaderlan >To: Vikram K ; "baypiggies at python.org" >Sent: Monday, May 2, 2011 3:51 PM >Subject: Re: [Baypiggies] python list manipulation using map > > > > >That's actually a map() call inside a list comprehension. Either a bare map() call or a list comprehension without the map() call will do what you want. > > > >E.g., >>>> T2 = map(lambda i: int(i), x) > > >or > > > >>>> T2 = [int(i) for i in x] > > > > > >>________________________________ >>From: Vikram K >>To: baypiggies at python.org >>Sent: Monday, May 2, 2011 3:37 PM >>Subject: [Baypiggies] python list manipulation using map >> >> >>i have a list whose elements are strings. all the elements in the list are numbers but are represented as string type and i wish to convert them to int type. i tried using map but the output is not what i want. please help. >> >>?x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] >> >>>>> T2 = [map(int, i) for i in x] >>>>> T2 >>[[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, 9, 7, 9]] >> >>---------- >> >> >>_______________________________________________ >>Baypiggies mailing list >>Baypiggies at python.org >>To change your subscription options or unsubscribe: >>http://mail.python.org/mailman/listinfo/baypiggies >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukasblakk at gmail.com Tue May 3 01:07:30 2011 From: lukasblakk at gmail.com (Lukas Blakk) Date: Mon, 02 May 2011 16:07:30 -0700 Subject: [Baypiggies] Writing Titanium Desktop Applications with Python - for May Baypiggies meeting In-Reply-To: References: Message-ID: <4DBF3932.8030104@gmail.com> +1 - I'm just getting ready to try out Titanium so this would be awesome to know before digging in. From fred at kas-group.com Tue May 3 00:42:58 2011 From: fred at kas-group.com (Fred C) Date: Mon, 2 May 2011 15:42:58 -0700 Subject: [Baypiggies] python list manipulation using map In-Reply-To: References: Message-ID: <720301C5-9841-43B8-BDFD-4D871D21CDA6@kas-group.com> Simply do [int(n) for n in x] -fred- On May 2, 2011, at 3:37 PM, Vikram K wrote: > i have a list whose elements are strings. all the elements in the list are numbers but are represented as string type and i wish to convert them to int type. i tried using map but the output is not what i want. please help. > > x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] > > >>> T2 = [map(int, i) for i in x] > >>> T2 > [[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, 9, 7, 9]] > > ---------- > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -- Writing Java code is like using a sledgehammer to hang a picture frame. Fred C. fred at bsdhost.net http://kiq.me/JP -------------- next part -------------- An HTML attachment was scrubbed... URL: From silviap at mbg.com Tue May 3 02:21:27 2011 From: silviap at mbg.com (Silvia Perezalonso) Date: Mon, 2 May 2011 17:21:27 -0700 Subject: [Baypiggies] Python required positions with great company! Message-ID: <019501cc0928$0b294e60$217beb20$@com> Good Afternoon! I hope you had a great weekend! I wanted to share with you a super hot new opportunity! My client in San Jose is looking for a C/C++ Python programmer to help develop specialized services on a new handheld device. Very similar to an iPad/tablet. They need assistance in the development of location-aware applications for a mobile platform(Android/iOS)- So if you have done this before this is a BIG PLUS! They are looking for a minimum 3 year experience with Python. You would work with a small team to implement this new functionality as well as review and re-factor code and develop unit tests. This is a 3 month contact, with potential to extend longer. I have a similar position, which Python experience is a plus, which is more geared towards a Graphics Programmer (5 years of C experience is required). I am happy to give more information for either, so if this is you, or anyone you know please do not hesitate to reach out! I do appreciate your time! Have a wonderful evening! Silvia Perezalonso Staffing Specialist Mainz Brady Group, Inc. silviap at mbg.com 650.524.8847 direct | 510.299.3221 mobile | 650.649.1900 fax | Technology Staffing Agency: in California and Oregon Learn more | www.mbg.com To download our FREE iPhone App "MBG Jobs", visit www.mbg.com/iphoneapp -------------- next part -------------- An HTML attachment was scrubbed... URL: From tadhg at tadhg.com Tue May 3 00:46:12 2011 From: tadhg at tadhg.com (Tadhg O'Higgins) Date: Mon, 02 May 2011 15:46:12 -0700 Subject: [Baypiggies] python list manipulation using map In-Reply-To: References: Message-ID: <4DBF3434.8080700@tadhg.com> Is this what you're looking for? x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', '0', '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] t2 = [int(i) for i in x] >>> t2 [0, 0, 20, 15, 42, 0, 0, 0, 0, 0, 0, 0, 0, 52, 57, 0, 254, 0, 177, 0, 617, 1021979] Tadhg On 2011-05-02 15:37 , Vikram K wrote: > i have a list whose elements are strings. all the elements in the list > are numbers but are represented as string type and i wish to convert > them to int type. i tried using map but the output is not what i want. > please help. > > x = ['0', '0', '20', '15', '42', '0', '0', '0', '0', '0', '0', '0', > '0', '52', '57', '0', '254', '0', '177', '0', '617', '1021979'] > > >>> T2 = [map(int, i) for i in x] > >>> T2 > [[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], > [0], [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, > 0, 2, 1, 9, 7, 9]] > > ---------- > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From itz at buug.org Tue May 3 19:10:13 2011 From: itz at buug.org (Ian Zimmerman) Date: Tue, 3 May 2011 10:10:13 -0700 Subject: [Baypiggies] Python required positions with great company! In-Reply-To: <019501cc0928$0b294e60$217beb20$@com> References: <019501cc0928$0b294e60$217beb20$@com> Message-ID: <20110503101013.725ccc50@matica.localdomain> On Mon, 2 May 2011 17:21:27 -0700 "Silvia Perezalonso" wrote: Silvia> I hope you had a great weekend! I wanted to share with you a Silvia> super hot new opportunity! My client in San Jose is looking for Silvia> a C/C++ Python programmer to help develop specialized services Silvia> on a new handheld device. Very similar to an iPad/tablet. They Silvia> need assistance in the development of location-aware Silvia> applications for a mobile platform(Android/iOS)- So if you have Silvia> done this before this is a BIG PLUS! They are looking for a Silvia> minimum 3 year experience with Python. You would work with a Silvia> small team to implement this new functionality as well as review Silvia> and re-factor code and develop unit tests. This is a 3 month Silvia> contact, with potential to extend longer. I have a similar Silvia> position, which Python experience is a plus, which is more Silvia> geared towards a Graphics Programmer (5 years of C experience is Silvia> required). I am happy to give more information for either, so Silvia> if this is you, or anyone you know please do not hesitate to Silvia> reach out! I do appreciate your time! Where is the Graphics position located? Is it also on Android platform? -- Ian Zimmerman gpg public key: 1024D/C6FF61AD fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD Ham is for reading, not for eating. From tshanky at gmail.com Wed May 4 04:55:42 2011 From: tshanky at gmail.com (Shashank Tiwari) Date: Tue, 3 May 2011 19:55:42 -0700 Subject: [Baypiggies] Looking for a couple of Pythonistas Message-ID: We are a small startup brewing magic potions with lots of social network, blog and semi-structured comments data. We are just starting out and looking to add a couple of smart Pythonistas to the team. The application will be accessed and delivered via the web and mobile platforms. All server side will be Python and column-family centric data stores. Knowledge of machine learning and natural language processing will be handy but above all what we care for is a passion to learn and build a next generation smart application. Please ping me if you need more information. Thanks, Shashank -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.berthelot at gmail.com Thu May 5 01:11:13 2011 From: david.berthelot at gmail.com (David Berthelot) Date: Wed, 4 May 2011 16:11:13 -0700 Subject: [Baypiggies] Python web question Message-ID: Hello, I have a simple question: is there an equivalent to for mixing Python and HTML ? For example something like this:

Welcome admin

Welcome

Basically something similar in behavior to PHP but for Python ;) Thanks, David From anfrind at gmail.com Thu May 5 01:14:38 2011 From: anfrind at gmail.com (Lincoln Peters) Date: Wed, 4 May 2011 16:14:38 -0700 Subject: [Baypiggies] Python web question In-Reply-To: References: Message-ID: On Wed, May 4, 2011 at 4:11 PM, David Berthelot wrote: > I have a simple question: > is there an equivalent to for mixing Python and HTML ? Have you looked at Mako? -- Lincoln Peters From itz at buug.org Thu May 5 01:38:18 2011 From: itz at buug.org (Ian Zimmerman) Date: Wed, 4 May 2011 16:38:18 -0700 Subject: [Baypiggies] Python web question In-Reply-To: References: Message-ID: <20110504163818.61045a5c@foolinux.dyndns.org> On Wed, 4 May 2011 16:14:38 -0700 Lincoln Peters wrote: David> > I have a simple question: David> > is there an equivalent to for mixing Python and HTML ? Lincoln> Have you looked at Mako? Lincoln> Or genshi, or kid. -- Ian Zimmerman gpg public key: 1024D/C6FF61AD fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD Ham is for reading, not for eating. From alexandre.conrad at gmail.com Thu May 5 02:25:23 2011 From: alexandre.conrad at gmail.com (Alexandre Conrad) Date: Wed, 4 May 2011 17:25:23 -0700 Subject: [Baypiggies] Python web question In-Reply-To: <20110504163818.61045a5c@foolinux.dyndns.org> References: <20110504163818.61045a5c@foolinux.dyndns.org> Message-ID: 2011/5/4 Ian Zimmerman : > On Wed, 4 May 2011 16:14:38 -0700 > Lincoln Peters wrote: > > David> > I have a simple question: > David> > is there an equivalent to for mixing Python and HTML ? > > Lincoln> Have you looked at Mako? > Lincoln> > > Or genshi, or kid. Or Jinja2. (although I'm a Mako user). All of those tools are called templating engines. -- Alex | twitter.com/alexconrad From max at theslimmers.net Thu May 5 02:28:45 2011 From: max at theslimmers.net (Max Slimmer) Date: Wed, 4 May 2011 17:28:45 -0700 Subject: [Baypiggies] Python web question In-Reply-To: References: Message-ID: you probably should first look at web frameworks, go to http://wiki.python.org/moin/WebFrameworks or do a google search. This url mentions Pylons which is now Pyramid and pretty cool, I have worked with web2py and it is an easy start, does a lot for you, some magically, but still cool. Most of the frameworks let you choose the templeting language, some which are very pythonic some lean more toward html side. All those mentioned in prior responses are Fine and will do what you are asking for. But you have to have a way to deliver the resultant html, and writing your own cgi though instructive isn't the fastest way to get to serving web pages. max On Wed, May 4, 2011 at 4:11 PM, David Berthelot wrote: > Hello, > > I have a simple question: > is there an equivalent to for mixing Python and HTML ? > > For example something like this: > > > ? ? ? ?if user == 1:?> > ?

Welcome admin

> ? ? ? ?else:?> > ?

Welcome

> > > Basically something similar in behavior to PHP but for Python ;) > > Thanks, > > David > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From david.berthelot at gmail.com Thu May 5 03:41:09 2011 From: david.berthelot at gmail.com (David Berthelot) Date: Wed, 4 May 2011 18:41:09 -0700 Subject: [Baypiggies] Python web question In-Reply-To: References: Message-ID: Thanks for the quick responses. Mako seems to be something that could work for me. Talking about the suggestion of looking into Web Frameworks, I used Drupal so far but I am not satisfied with the performance and the overhead of the data structure (even with memcache etc...), so I'm basically planning to rewrite my website from scratch in a lightweight way (from SQL point of view in particular, but also memcache etc...). I don't know enough details about other frameworks but my concerns, acquired with Drupal, are they might try to satisfy a wide audience and often at the expense of tight SQL queries. One more concern is the learning curve, took me one month to understand Drupal, it's a lot of time and yet there are still a lot of grey areas for me. So if there's a framework that's compact and fast I would be tempted to get a look into it, but time is short, I really only have 2 weeks to rewrite entirely my website which, by the way, is: http://codercharts.com Any suggestions are welcome and thanks again for the pointers ;) -- David On Wed, May 4, 2011 at 4:11 PM, David Berthelot wrote: > Hello, > > I have a simple question: > is there an equivalent to for mixing Python and HTML ? > > For example something like this: > > > ? ? ? ?if user == 1:?> > ?

Welcome admin

> ? ? ? ?else:?> > ?

Welcome

> > > Basically something similar in behavior to PHP but for Python ;) > > Thanks, > > David > From Web at StevePiercy.com Thu May 5 07:05:52 2011 From: Web at StevePiercy.com (Steve Piercy - Web Site Builder) Date: Wed, 4 May 2011 22:05:52 -0700 Subject: [Baypiggies] Python web question In-Reply-To: Message-ID: I too have been playing around with web frameworks and applications. I've decided to use Pyramid. Other frameworks constrained me into doing things their way, bound me to using a specific data source, or lacked sufficient documentation and support. Pyramid does not get in your way. It provides only what you need and does not constrain you in regards to data sources, template engines, URL traversal versus routes, and so on. I worked through the Pyramid Quick Tutorial in under an hour. http://docs.pylonsproject.org/docs/pyramid_quick_tutorial.html Documentation: http://docs.pylonsproject.org/docs/pyramid.html Support is available on mailing lists and IRC. I attended the Pylons Project Mini Conference and code sprint last week, and met some of the core members of the project. Just being in the same room made me smarter. These guys and dozens others hang out in IRC #pyramid and #pylons. http://groups.google.com/group/pylons-devel http://www.meetup.com/sfbay-pylons-proj/events/17306893/ irc://freenode.net#pyramid irc://freenode.net#pylons Here is some history. Pyramid is part of the Pylons Project. http://pylonsproject.org/about/pylons Pyramid's core is repoze.bfg with some modifications. http://pylonsproject.org/projects/pyramid/about Flask is another lightweight framework. http://flask.pocoo.org/ Plone is more of a CMS than a framework, but I know that folks develop applications in it. Django has a huge ecosystem around it. At PyCon, many folks said of web2py (except the author), "Just don't." --steve On 5/4/11 at 6:41 PM, david.berthelot at gmail.com (David Berthelot) pronounced: >Thanks for the quick responses. >Mako seems to be something that could work for me. > >Talking about the suggestion of looking into Web Frameworks, I used >Drupal so far but I am not satisfied with the performance and the >overhead of the data structure (even with memcache etc...), so I'm >basically planning to rewrite my website from scratch in a lightweight >way (from SQL point of view in particular, but also memcache etc...). > >I don't know enough details about other frameworks but my concerns, >acquired with Drupal, are they might try to satisfy a wide audience >and often at the expense of tight SQL queries. One more concern is the >learning curve, took me one month to understand Drupal, it's a lot of >time and yet there are still a lot of grey areas for me. > >So if there's a framework that's compact and fast I would be tempted >to get a look into it, but time is short, I really only have 2 weeks >to rewrite entirely my website which, by the way, is: >http://codercharts.com > >Any suggestions are welcome and thanks again for the pointers ;) > >-- >David > >On Wed, May 4, 2011 at 4:11 PM, David Berthelot > wrote: >>Hello, >> >>I have a simple question: >>is there an equivalent to for mixing Python and HTML ? >> >>For example something like this: >> >> >>?>? ? ?if user == 1:?> >>?

Welcome admin

>>?>? ? ?else:?> >>?

Welcome

>> >> >>Basically something similar in behavior to PHP but for Python ;) >> >>Thanks, >> >>David >> >_______________________________________________ >Baypiggies mailing list >Baypiggies at python.org >To change your subscription options or unsubscribe: >http://mail.python.org/mailman/listinfo/baypiggies -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA From dineshbvadhia at hotmail.com Thu May 5 09:21:38 2011 From: dineshbvadhia at hotmail.com (Dinesh B Vadhia) Date: Thu, 5 May 2011 00:21:38 -0700 Subject: [Baypiggies] Python web question Message-ID: There is also the Pythonic webpy (http://webpy.org/) which includes its own templating language. I've done a couple of small projects with webpy and would like to know what people who have used it in anger have to say. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kpguy1975 at gmail.com Fri May 6 13:48:43 2011 From: kpguy1975 at gmail.com (Vikram K) Date: Fri, 6 May 2011 07:48:43 -0400 Subject: [Baypiggies] Venn diagram for five events Message-ID: I sent the following query to the matplotlib list a while back. I would appreciate it if someone here can answer my question. Also, is there an alternative to matplotlib for this kind of a problem? ------- I wish to draw a Venn diagram depicting five events and their intersections. I came across some code for three events--could someone please direct me about how i could modify it for five events. from matplotlib import pyplot as plt from matplotlib.patches import Circle f = plt.figure() ax = f.gca() rad = 1.4 c1 = Circle((-1,0),rad, alpha=.2, fc ='red') c2 = Circle((1,0),rad, alpha=.2, fc ='blue') c3 = Circle((0,1),rad, alpha=.2, fc ='green') ax.add_patch(c1) ax.add_patch(c2) ax.add_patch(c3) ax.set_xlim(-3,3) ax.set_ylim(-3,3) plt.show() -------------- next part -------------- An HTML attachment was scrubbed... URL: From kpguy1975 at gmail.com Fri May 6 13:58:05 2011 From: kpguy1975 at gmail.com (Vikram K) Date: Fri, 6 May 2011 07:58:05 -0400 Subject: [Baypiggies] Fwd: Venn diagram for five events In-Reply-To: References: Message-ID: This works for four events and their intersections but how do i add the fifth event along with all intersections? from matplotlib import pyplot as plt from matplotlib.patches import Circle f = plt.figure() ax = f.gca() rad = 1.4 c1 = Circle((-1,0),rad, alpha=.2, fc ='red') c2 = Circle((1,0),rad, alpha=.2, fc ='blue') c3 = Circle((0,1),rad, alpha=.2, fc ='green') c4 = Circle((0,-1),rad, alpha=.2, fc ='yellow') ax.add_patch(c1) ax.add_patch(c2) ax.add_patch(c3) ax.add_patch(c4) ax.set_xlim(-3,3) ax.set_ylim(-3,3) plt.show() ---------- Forwarded message ---------- From: Vikram K Date: Fri, May 6, 2011 at 7:48 AM Subject: Venn diagram for five events To: baypiggies at python.org I sent the following query to the matplotlib list a while back. I would appreciate it if someone here can answer my question. Also, is there an alternative to matplotlib for this kind of a problem? ------- I wish to draw a Venn diagram depicting five events and their intersections. I came across some code for three events--could someone please direct me about how i could modify it for five events. from matplotlib import pyplot as plt from matplotlib.patches import Circle f = plt.figure() ax = f.gca() rad = 1.4 c1 = Circle((-1,0),rad, alpha=.2, fc ='red') c2 = Circle((1,0),rad, alpha=.2, fc ='blue') c3 = Circle((0,1),rad, alpha=.2, fc ='green') ax.add_patch(c1) ax.add_patch(c2) ax.add_patch(c3) ax.set_xlim(-3,3) ax.set_ylim(-3,3) plt.show() -------------- next part -------------- An HTML attachment was scrubbed... URL: From mvoorhie at yahoo.com Fri May 6 18:39:45 2011 From: mvoorhie at yahoo.com (Mark Voorhies) Date: Fri, 6 May 2011 09:39:45 -0700 Subject: [Baypiggies] Fwd: Venn diagram for five events In-Reply-To: References: Message-ID: <201105060939.45369.mvoorhie@yahoo.com> Your four event diagram misses 2 of the 15 possible intersections (yellow + green and red + blue). This becomes an increasingly difficult topology problem as you add circles (you need to deal with (2^n)-1 intersections each time). A related problem is that as soon as you have more than two circles, you can not in general make the intersection areas proportional to the size of the corresponding set intersection. An alternate graphic that is useful at high n is a clustered heatmap: 1) Generate a matrix where each column, j, is one of your circles and each row, i, an element, with cell ij = 1 if i is a member of j, 0 otherwise. 2) Apply a clustering algorithm to group the rows by related intersections. PyCluster is a good place to start with clustering algorithms: http://bonsai.hgc.jp/~mdehoon/software/cluster/ JavaTreeView is a nice visualization tool based on PyCluster's output format: http://jtreeview.sourceforge.net/ --Mark On Friday, May 06, 2011 04:58:05 am Vikram K wrote: > This works for four events and their intersections but how do i add the > fifth event along with all intersections? > > from matplotlib import pyplot as plt > from matplotlib.patches import Circle > > f = plt.figure() > ax = f.gca() > rad = 1.4 > c1 = Circle((-1,0),rad, alpha=.2, fc ='red') > c2 = Circle((1,0),rad, alpha=.2, fc ='blue') > c3 = Circle((0,1),rad, alpha=.2, fc ='green') > c4 = Circle((0,-1),rad, alpha=.2, fc ='yellow') > ax.add_patch(c1) > ax.add_patch(c2) > ax.add_patch(c3) > ax.add_patch(c4) > ax.set_xlim(-3,3) > ax.set_ylim(-3,3) > plt.show() > > ---------- Forwarded message ---------- > From: Vikram K > Date: Fri, May 6, 2011 at 7:48 AM > Subject: Venn diagram for five events > To: baypiggies at python.org > > > I sent the following query to the matplotlib list a while back. I would > appreciate it if someone here can answer my question. Also, is there an > alternative to matplotlib for this kind of a problem? > ------- > > I wish to draw a Venn diagram depicting five events and their intersections. > I came across some code for three events--could someone please direct me > about how i could modify it for five events. > > from matplotlib import pyplot as plt > from matplotlib.patches import Circle > > f = plt.figure() > ax = f.gca() > rad = 1.4 > c1 = Circle((-1,0),rad, alpha=.2, fc ='red') > c2 = Circle((1,0),rad, alpha=.2, fc ='blue') > c3 = Circle((0,1),rad, alpha=.2, fc ='green') > ax.add_patch(c1) > ax.add_patch(c2) > ax.add_patch(c3) > ax.set_xlim(-3,3) > ax.set_ylim(-3,3) > plt.show() > From jlsphar at gmail.com Sun May 8 22:24:48 2011 From: jlsphar at gmail.com (John Sphar) Date: Sun, 8 May 2011 13:24:48 -0700 Subject: [Baypiggies] Tenantry.Net: Project/Business Seeking Pythonistas Message-ID: Good afternoon, fellow developers! Tenantry.Net is aimed to support the interactions of tenants (plus roommates,) and their landlords. The business case is golden; the design, elegant; and the systems for collaborative development are already up and running... unfortunately, I'm not a gifted developer. Prospects both technical and commercial are huge, and the project would love nothing more than be nurtured by a few talented Pythonistas to collaboratively design & build the system within the bay area. If you're interested in learning more about this exciting project, please don't hesitate to call or email myself to schedule a meet. Cheers! Sincerely, John Sphar 408.515.6255 jlsphar at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From simeonf at gmail.com Thu May 12 06:59:14 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Wed, 11 May 2011 21:59:14 -0700 Subject: [Baypiggies] Audio Video Recording of upcoming session Message-ID: Hi All - I recently received an offer to record the May 26th session that I have been asked to pass to the group. Marakana is an open source training group for whom I'm going to be doing some teaching. One of the things they do is record User Group sessions that might be of interest to the public. You can see examples of their videos at http://marakana.com/techtv/index.html Marakana has asked if it would be OK to record the presentation on May 26th. They would bring their own audio and video equipment, record the presenter and then edit the recording to put the slides in the video if available. They would post the video to their TechTV channel and their Youtube channel and would credit Baypiggies and include a link to our website in the video. You can see some examples of other UG videos on their TechTV channel. We used to have all the sessions recorded thanks to Google. Since we've changed locations we've had to fall back on volunteer equipment and labor and it's been much more hit and miss - I don't think we've had a session recorded for a year or so. I'm biased since I'm going to work with Marakana but do think that any additional exposure we can gain would be good for Baypiggies. If you've got an opinion please reply with a vote (+1/-1). -regards Simeon Franklin From eric at ericwalstad.com Thu May 12 07:15:43 2011 From: eric at ericwalstad.com (Eric Walstad) Date: Wed, 11 May 2011 22:15:43 -0700 Subject: [Baypiggies] Audio Video Recording of upcoming session In-Reply-To: References: Message-ID: Hey Simeon, On Wed, May 11, 2011 at 9:59 PM, Simeon Franklin wrote: ... > One of > the things they do is record User Group sessions that might be of > interest to the public. You can see examples of their videos at > http://marakana.com/techtv/index.html ... > If you've got an opinion please > reply with a vote (+1/-1). +1 - I've been too busy to make it to meetings lately. I'd appreciate being able to watch the videos. Eric From glen at glenjarvis.com Thu May 12 08:41:25 2011 From: glen at glenjarvis.com (Glen Jarvis) Date: Wed, 11 May 2011 23:41:25 -0700 Subject: [Baypiggies] Audio Video Recording of upcoming session In-Reply-To: References: Message-ID: +1 +1 +1 +1 +1 +1 +1 +1 +1 while count < n*n*n*n: +1 On Wed, May 11, 2011 at 9:59 PM, Simeon Franklin wrote: > Hi All - > > I recently received an offer to record the May 26th session that I > have been asked to pass to the group. Marakana is an open source > training group for whom I'm going to be doing some teaching. One of > the things they do is record User Group sessions that might be of > interest to the public. You can see examples of their videos at > http://marakana.com/techtv/index.html > > Marakana has asked if it would be OK to record the presentation on May > 26th. They would bring their own audio and video equipment, record the > presenter and then edit the recording to put the slides in the video > if available. They would post the video to their TechTV channel and > their Youtube channel and would credit Baypiggies and include a link > to our website in the video. You can see some examples of other UG > videos on their TechTV channel. > > We used to have all the sessions recorded thanks to Google. Since > we've changed locations we've had to fall back on volunteer equipment > and labor and it's been much more hit and miss - I don't think we've > had a session recorded for a year or so. I'm biased since I'm going to > work with Marakana but do think that any additional exposure we can > gain would be good for Baypiggies. If you've got an opinion please > reply with a vote (+1/-1). > > -regards > Simeon Franklin > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- Things which matter most must never be at the mercy of things which matter least. -- Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From mparker at energy-solution.com Thu May 12 19:47:18 2011 From: mparker at energy-solution.com (Marla Parker) Date: Thu, 12 May 2011 17:47:18 +0000 Subject: [Baypiggies] Audio Video Recording of upcoming session In-Reply-To: References: Message-ID: <087C176A-B19B-4473-A87D-4922DD25DCA8@energy-solution.com> +1 What Glen said. :-) From eric at ericwalstad.com Thu May 12 20:16:17 2011 From: eric at ericwalstad.com (Eric Walstad) Date: Thu, 12 May 2011 11:16:17 -0700 Subject: [Baypiggies] Audio Video Recording of upcoming session In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: David Berthelot Date: Wed, May 11, 2011 at 11:34 PM Subject: Re: [Baypiggies] Audio Video Recording of upcoming session To: Eric Walstad +1 From abhishek.vit at gmail.com Thu May 12 20:43:43 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Thu, 12 May 2011 11:43:43 -0700 Subject: [Baypiggies] Audio Video Recording of upcoming session In-Reply-To: References: Message-ID: Would love to have the option to view Baypiggies talk online. +1 for all talks that could be recorded. -Abhi On Thu, May 12, 2011 at 11:16 AM, Eric Walstad wrote: > ---------- Forwarded message ---------- > From: David Berthelot > Date: Wed, May 11, 2011 at 11:34 PM > Subject: Re: [Baypiggies] Audio Video Recording of upcoming session > To: Eric Walstad > > > +1 > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From neelimabandla at yahoo.com Thu May 12 21:46:50 2011 From: neelimabandla at yahoo.com (Neelima Bandla) Date: Thu, 12 May 2011 12:46:50 -0700 (PDT) Subject: [Baypiggies] Audio Video Recording of upcoming session In-Reply-To: Message-ID: <302529.91170.qm@web112417.mail.gq1.yahoo.com> +1 --- On Thu, 5/12/11, Abhishek Pratap wrote: > From: Abhishek Pratap > Subject: Re: [Baypiggies] Audio Video Recording of upcoming session > To: "Baypiggies" > Date: Thursday, May 12, 2011, 1:43 PM > Would love to have the option to view > Baypiggies talk online. > > +1 for all talks that could be recorded. > > -Abhi > > On Thu, May 12, 2011 at 11:16 AM, Eric Walstad > wrote: > > ---------- Forwarded message ---------- > > From: David Berthelot > > Date: Wed, May 11, 2011 at 11:34 PM > > Subject: Re: [Baypiggies] Audio Video Recording of > upcoming session > > To: Eric Walstad > > > > > > +1 > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From akleider at sonic.net Fri May 13 06:56:22 2011 From: akleider at sonic.net (akleider at sonic.net) Date: Thu, 12 May 2011 21:56:22 -0700 Subject: [Baypiggies] pyexiv2 Message-ID: <71754c0d00531714c99e1ec2df92c1e2.squirrel@webmail.sonic.net> I've been trying to make use of this module (pyexiv2) but have discovered that the syntax described in the tutorial http://tilloy.net/dev/pyexiv2/doc/release-0.2.0/tutorial.html is very different to the one that comes with my Ubuntu 10.4 system /usr/lib/pymodules/python2.6/pyexiv2.pyc I've poked around using Google but can't find any other tutorial that matches my system. If anyone can point me in a useful direction, it would be greatly appreciated. Alex Kleider From eric at ericwalstad.com Fri May 13 18:47:16 2011 From: eric at ericwalstad.com (Eric Walstad) Date: Fri, 13 May 2011 09:47:16 -0700 Subject: [Baypiggies] pyexiv2 In-Reply-To: <71754c0d00531714c99e1ec2df92c1e2.squirrel@webmail.sonic.net> References: <71754c0d00531714c99e1ec2df92c1e2.squirrel@webmail.sonic.net> Message-ID: Hi Alex, Have you read the source yet? It looks like it is nicely documented with docstrings: >>> import pyexiv2 >>> help(pyexiv2) I also have some very simple examples of getting and setting image file metadata in my weather station project. Here's a link to it on bitbucket: http://bit.ly/kwyqo6 Good luck, Eric. On Thu, May 12, 2011 at 9:56 PM, wrote: > > I've been trying to make use of this module (pyexiv2) but have discovered > that the syntax described in the tutorial > http://tilloy.net/dev/pyexiv2/doc/release-0.2.0/tutorial.html > is very different to the one that comes with my Ubuntu 10.4 system > /usr/lib/pymodules/python2.6/pyexiv2.pyc > > I've poked around using Google but can't find any other tutorial that > matches my system. > > If anyone can point me in a useful direction, it would be greatly > appreciated. > > Alex Kleider From simeonf at gmail.com Fri May 13 18:51:14 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Fri, 13 May 2011 09:51:14 -0700 Subject: [Baypiggies] Audio Video Recording of upcoming session In-Reply-To: References: Message-ID: Since I have yet to see a downvote I'm telling the guys at Marakana that we're a go for video. Thanks everybody! -regards Simeon Franklin From silviap at mbg.com Fri May 13 19:17:27 2011 From: silviap at mbg.com (Silvia Perezalonso) Date: Fri, 13 May 2011 10:17:27 -0700 Subject: [Baypiggies] Are you looking?? Do you know someone who is?? Message-ID: <008901cc1191$a224c2b0$e66e4810$@com> Good Morning and Happy Friday! I wanted to pass along a great contract opportunity in San Jose with a growing company seeking assistance with a new product! I would greatly appreciate any referrals if you are not available, no one knows better references than yourself! They are for a C/C++ Python programmer to help develop specialized services on a new handheld device. Very similar to an iPad/tablet. They need assistance in the development of location-aware applications for a mobile platform(Android/iOS)- So if you have done this before this is a BIG PLUS! It is being developed on an Android Linux Kernel platform. You would work with a small team to implement this new functionality as well as review and re-factor code and develop unit tests. Experience and qualifications: . 3+ years Python experience . Linux experience (e.g. shell, gcc, ARM) . Excellent written and verbal communication skills . Development of location-aware applications for a mobile platform is a big plus I have a similar position, which Python experience is a plus, which is more geared towards a Graphics Programmer (5 years of C experience is required). Experience and qualifications: . 5+ years C experience (esp. raster graphics using SIMD instruction sets) . Linux experience (e.g. shell, gcc, ARM) .Experience of using inline Assembly in C is highly desired . Excellent written and verbal communication skills . Knowledge of Python is a plus I am happy to give more information for either, so if this is you, or anyone you know please do not hesitate to reach out! Silvia Perezalonso Staffing Specialist Mainz Brady Group, Inc. silviap at mbg.com 650.524.8847 direct | 510.299.3221 mobile | 650.649.1900 fax | Technology Staffing Agency: in California and Oregon Learn more | www.mbg.com To download our FREE iPhone App "MBG Jobs", visit www.mbg.com/iphoneapp -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at ericwalstad.com Fri May 13 20:42:01 2011 From: eric at ericwalstad.com (Eric Walstad) Date: Fri, 13 May 2011 11:42:01 -0700 Subject: [Baypiggies] pyexiv2 In-Reply-To: <4f964c353e8949575ef5961822a9e5d6.squirrel@webmail.sonic.net> References: <71754c0d00531714c99e1ec2df92c1e2.squirrel@webmail.sonic.net> <4f964c353e8949575ef5961822a9e5d6.squirrel@webmail.sonic.net> Message-ID: Reading the source is sometimes helpful, too. On my Ubuntu 10.10 machine it is located in /usr/share/pyshared/pyexiv2.py Eric. On Fri, May 13, 2011 at 10:56 AM, wrote: > > Thank you for the leads. > I'll follow up. > I'm still pretty new to Python so although I know about its strong > introspection capabilities I didn't know about the help(pyexiv2) option. > That sounds promissing. > alex > >> Hi Alex, >> >> Have you read the source yet? ?It looks like it is nicely documented >> with docstrings: >>>>> import pyexiv2 >>>>> help(pyexiv2) From jeffrey.fischer at gmail.com Fri May 13 23:46:36 2011 From: jeffrey.fischer at gmail.com (Jeff Fischer) Date: Fri, 13 May 2011 14:46:36 -0700 Subject: [Baypiggies] Looking for beta testers for Django Platform as a Service Message-ID: Hi everyone, As I mentioned at the last meeting, I'm looking for people to help beta test my company's Django Platform as a Service (cloud hosting platform). We'd love to have your feedback on what you think of our service and what features you would like to see. If you are interested, please send me an email or sign up via our website at http://www.genforma.com. It seems like there is a lot of interest these days in platform as a service, so here's what is unique about what we are doing: - The underlying platform, Engage, will be released (in June) as open source software. You can use it to deploy on your own servers and extend it for your specific needs. We have some of our software up today at github: http://github.com/genforma. Engage is like a integrated combination of Puppet + Fabric + Apt and is written in Python. - We support automation of your dev-test-production workflow through an application packaging tool and atomic upgrades (including schema migrations). - Each application instance is deployed in its own Virtual Private Server(s). This makes it easy for us to support standard application components without having to modify them to work in a multi-tenancy mode. You also get more options in what you can install (today, any code that can be installed via pip). - We'll have support for many standard components including databases (MySQL, PostgreSQL, and SQLLite), no-sql data stores (Redis, MongoDB), caches (memcached or varnish), and applications (Django-CMS and Satchmo). We plan to support other application frameworks in the future as well (e.g. Pyramid and Flask). I'm looking forward to hearing from anyone interested in testing our stuff and giving feedback. Thanks! - Jeff Fischer -------------- next part -------------- An HTML attachment was scrubbed... URL: From itz at buug.org Mon May 16 04:22:08 2011 From: itz at buug.org (Ian Zimmerman) Date: Sun, 15 May 2011 19:22:08 -0700 Subject: [Baypiggies] Packaging question Message-ID: <20110515192208.1a9106fc@foolinux.dyndns.org> I am unsure how I should package or structure a project with both a C and a Python component. If it were only C I would use the GNU autotools; if it were only Python I would use distutils. The C component is a program, not just a Python extension module. -- Ian Zimmerman gpg public key: 1024D/C6FF61AD fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD Ham is for reading, not for eating. From janssen at parc.com Mon May 16 20:09:30 2011 From: janssen at parc.com (Bill Janssen) Date: Mon, 16 May 2011 11:09:30 PDT Subject: [Baypiggies] Packaging question In-Reply-To: <20110515192208.1a9106fc@foolinux.dyndns.org> References: <20110515192208.1a9106fc@foolinux.dyndns.org> Message-ID: <54495.1305569370@parc.com> For UpLib, a mix of Python and Java and C intended for both Unix and Windows, I used autotools and Makefiles, and I'd do that again. You can still access data from the distutils libraries to use in the configure scripts and Makefiles, e.g. platlib=[`$PYTHON -c "import distutils.sysconfig as sc; print sc.get_python_lib(plat_specific=True, prefix='${UPLIB_HOME}')"`] Bill From cappy2112 at gmail.com Mon May 16 21:03:35 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Mon, 16 May 2011 12:03:35 -0700 Subject: [Baypiggies] Presentation on Automated Testing on Macintosh using PyATOM- for July 2011 Message-ID: We have a person who wants to give a presentation on PyATOM. I'm thinking about scheduling him for July 2011. I don't believe we have anyone schedule for June 2011 yet. Reply with +1 for yes, or -1 if not. About PyATOM: Short for Automated Testing on Macintosh, PyATOM is the first Python library to fully enable GUI testing of Macintosh applications via the Apple Accessibility API. This library was created out of desperation. Existing tools such as using appscript to send messages to accessibility objects are painful to write and slow to use. PyATOM has direct access to the API. It's fast and easy to use to write tests. Special thanks: The VMware Fusion automation team Nagappan Alagappan and the LDTP team Download source: https://github.com/pyatom/pyatom Documentation references: Documentation is still a work in progress. Read the README on the Github page for an introduction to PyATOM. Report bugs - https://github.com/pyatom/pyatom/issues To subscribe to PyATOM mailing lists, visit http://lists.pyatom.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From brendanj at amazon.com Mon May 16 22:55:36 2011 From: brendanj at amazon.com (Johnson, Brendan) Date: Mon, 16 May 2011 13:55:36 -0700 Subject: [Baypiggies] Amazon AWS Career Opportunities Message-ID: <060FE6C0D22E2A43AB102482F8E838C3585E5EF55D@EX-SEA31-C.ant.amazon.com> Hello, My name is Brendan and I am a technical recruiter for Amazon AWS. We currently have fulltime openings for Software Developers who are experts with Python preferably in a Unix/Linux environment. The positions are located in Seattle Washington and would require relocation. I would be glad to discuss in more detail with serious inquiries. Thank you for your time and I look forward in working with you. Please feel free to forward my information to anyone who you feel would be interested Contact: Brendan Johnson brendanj at amazon.com Brendan Johnson | Technical Recruiter, Infrastructure | Amazon E: brendanj at amazon.com Work hard. Have fun. Make history. Amazon.com/Careers [cid:image001.png at 01CC13CF.A03297D0] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4450 bytes Desc: image001.png URL: From bdbaddog at gmail.com Mon May 16 23:25:03 2011 From: bdbaddog at gmail.com (William Deegan) Date: Mon, 16 May 2011 14:25:03 -0700 Subject: [Baypiggies] Amazon AWS Career Opportunities In-Reply-To: <060FE6C0D22E2A43AB102482F8E838C3585E5EF55D@EX-SEA31-C.ant.amazon.com> References: <060FE6C0D22E2A43AB102482F8E838C3585E5EF55D@EX-SEA31-C.ant.amazon.com> Message-ID: Brendan, Rules for posting jobs to mailing list explicitly state the geographic region must be in the bay area. http://baypiggies.net/job-listings You may want post this jobs on the python jobs board. http://www.python.org/community/jobs/index.html -Bill On Mon, May 16, 2011 at 1:55 PM, Johnson, Brendan wrote: > Hello, > > > > My name is Brendan and I am a technical recruiter for Amazon AWS. We > currently have fulltime openings for Software Developers who are experts > with Python preferably in a Unix/Linux environment. The positions are > located in Seattle Washington and would require relocation. I would be glad > to discuss in more detail with serious inquiries. Thank you for your time > and I look forward in working with you. > > > > Please feel free to forward my information to anyone who you feel would be > interested > > > > *Contact:* > > Brendan Johnson > > brendanj at amazon.com > > > > Brendan Johnson *|* Technical Recruiter, Infrastructure *|* Amazon > *E:* brendanj at amazon.com > > * * > > Work hard. Have fun. Make history. > > Amazon.com/Careers > > > > [image: Description: Description: cid:image001.png at 01CAAF33.C6369820] > ** > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4450 bytes Desc: not available URL: From aahz at pythoncraft.com Tue May 17 01:55:05 2011 From: aahz at pythoncraft.com (Aahz) Date: Mon, 16 May 2011 16:55:05 -0700 Subject: [Baypiggies] Amazon AWS Career Opportunities In-Reply-To: <060FE6C0D22E2A43AB102482F8E838C3585E5EF55D@EX-SEA31-C.ant.amazon.com> References: <060FE6C0D22E2A43AB102482F8E838C3585E5EF55D@EX-SEA31-C.ant.amazon.com> Message-ID: <20110516235505.GA3259@panix.com> On Mon, May 16, 2011, Johnson, Brendan wrote: > > My name is Brendan and I am a technical recruiter for Amazon AWS. > We currently have fulltime openings for Software Developers who are > experts with Python preferably in a Unix/Linux environment. The > positions are located in Seattle Washington and would require > relocation. I would be glad to discuss in more detail with serious > inquiries. Thank you for your time and I look forward in working with > you. Positions advertised on BayPIGgies must be for the Bay Area. Please do not post any further Seattle positions. http://baypiggies.net/job-listings/job-listings -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ Looking back over the years, after I learned Python I realized that I never really had enjoyed programming before. From kpguy1975 at gmail.com Tue May 17 19:17:17 2011 From: kpguy1975 at gmail.com (Vikram K) Date: Tue, 17 May 2011 13:17:17 -0400 Subject: [Baypiggies] reading very large files Message-ID: I wish to read a large data file (file size is around 1.8 MB) and manipulate the data in this file. Just reading and writing the first 500 lines of this file is causing a problem. I wrote: fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') count = 0 for i in fin.readlines(): print i count += 1 if count >= 500: break and got this error msg: Traceback (most recent call last): File "H:\genome_4_omics_study\GS000003696-DID\GS00471-DNA_B01_1101_37-ASM\GS00471-DNA_B01\ASM\gene-GS00471-DNA_B01_1101_37-ASM.tsv\test.py", line 3, in for i in fin.readlines(): MemoryError ------- is there a way to stop python from slurping all the file contents at once? -------------- next part -------------- An HTML attachment was scrubbed... URL: From devchon at gmail.com Tue May 17 19:29:50 2011 From: devchon at gmail.com (Tim Chon) Date: Tue, 17 May 2011 10:29:50 -0700 Subject: [Baypiggies] reading very large files In-Reply-To: References: Message-ID: You can use a generator, best answered here, http://stackoverflow.com/questions/519633/lazy-method-for-reading-big-file-in-python --tim On 5/17/11, Vikram K wrote: > I wish to read a large data file (file size is around 1.8 MB) and manipulate > the data in this file. Just reading and writing the first 500 lines of this > file is causing a problem. I wrote: > > fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') > count = 0 > for i in fin.readlines(): > print i > count += 1 > if count >= 500: > break > > and got this error msg: > > Traceback (most recent call last): > File > "H:\genome_4_omics_study\GS000003696-DID\GS00471-DNA_B01_1101_37-ASM\GS00471-DNA_B01\ASM\gene-GS00471-DNA_B01_1101_37-ASM.tsv\test.py", > line 3, in > for i in fin.readlines(): > MemoryError > > ------- > is there a way to stop python from slurping all the file contents at once? > From bpalmer at gmail.com Tue May 17 19:39:26 2011 From: bpalmer at gmail.com (Brian Palmer) Date: Tue, 17 May 2011 10:39:26 -0700 Subject: [Baypiggies] reading very large files In-Reply-To: References: Message-ID: [pardon; I accidentally replied only to Vikram at first] On Tue, May 17, 2011 at 10:17 AM, Vikram K wrote: > I wish to read a large data file (file size is around 1.8 MB) and > manipulate the data in this file. Just reading and writing the first 500 > lines of this file is causing a problem. I wrote: > [snip] > Traceback (most recent call last): > File > "H:\genome_4_omics_study\GS000003696-DID\GS00471-DNA_B01_1101_37-ASM\GS00471-DNA_B01\ASM\gene-GS00471-DNA_B01_1101_37-ASM.tsv\test.py", > line 3, in > for i in fin.readlines(): > MemoryError > > ------- > is there a way to stop python from slurping all the file contents at once > ? > Just don't use readlines. Instead, if you're reading line-by-line, use the file object as iterable: for line in fin: ... You can dress this up a little with something like import itertools with open('gene-GS0001') as fin: for line in itertools.islice(fin, 500): print line Note that this assumes the datafile is a line-bound file. Otherwise, you should look at, e.g., using the read() method directly: chunk = fin.read(512) ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre.conrad at gmail.com Tue May 17 19:41:20 2011 From: alexandre.conrad at gmail.com (Alexandre Conrad) Date: Tue, 17 May 2011 10:41:20 -0700 Subject: [Baypiggies] reading very large files In-Reply-To: References: Message-ID: 2011/5/17 Vikram K : > fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') > count = 0 > for i in fin.readlines(): > ??? print i > ??? count += 1 > ??? if count >= 500: > ??????? break you can try: for i in fin: ... This should avoid loading the whole file in memory with .readlines(). -- Alex | twitter.com/alexconrad From kpguy1975 at gmail.com Tue May 17 19:53:52 2011 From: kpguy1975 at gmail.com (Vikram K) Date: Tue, 17 May 2011 13:53:52 -0400 Subject: [Baypiggies] reading very large files In-Reply-To: References: Message-ID: Thanks to all for their responses. A correction: my data file is 1.8 GB and not 1.8 MB as Simeon pointed out. On Tue, May 17, 2011 at 1:41 PM, Simeon Franklin wrote: > On Tue, May 17, 2011 at 10:17 AM, Vikram K wrote: > > I wish to read a large data file (file size is around 1.8 MB) and > manipulate > > the data in this file. Just reading and writing the first 500 lines of > this > > file is causing a problem. I wrote: > > > > fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') > > count = 0 > > for i in fin.readlines(): > > print i > > count += 1 > > if count >= 500: > > break > > You don't need the readlines call - the file object itself supports > iteration over lines; readlines() is there is you specifically want to > create a list containing all the lines in the file. Try it with > > for i in fin: > > instead of > > for i in fin.readlines(): > > and see... Were you mistaken above and is the filesize 1.8 GB instead > of MB? You shouldn't be having memory errors with 1.8MB given a normal > environment. If you are working with multi-gigabyte files, however, > you should read David Beazley's awesome Generator Tricks paper > (http://www.dabeaz.com/generators-uk/). I re-read it on a regular > basis and always pick up something new... > > -regards > Simeon Franklin > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simeonf at gmail.com Tue May 17 19:56:28 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Tue, 17 May 2011 10:56:28 -0700 Subject: [Baypiggies] reading very large files In-Reply-To: References: Message-ID: I missed the list too. Curse that reply button :) On Tue, May 17, 2011 at 10:17 AM, Vikram K wrote: > I wish to read a large data file (file size is around 1.8 MB) and manipulate > the data in this file. Just reading and writing the first 500 lines of this > file is causing a problem. I wrote: > > fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') > count = 0 > for i in fin.readlines(): > ??? print i > ??? count += 1 > ??? if count >= 500: > ??????? break You don't need the readlines call - the file object itself supports iteration over lines; readlines() is there is you specifically want to create a list containing all the lines in the file. Try it with for i in fin: instead of for i in fin.readlines(): and see... Were you mistaken above and is the filesize 1.8 GB instead of MB? You shouldn't be having memory errors with 1.8MB given a normal environment. If you are working with multi-gigabyte files, however, you should read David Beazley's awesome Generator Tricks paper (http://www.dabeaz.com/generators-uk/). I re-read it on a regular basis and always pick up something new... -regards Simeon Franklin From alexandre.conrad at gmail.com Tue May 17 20:21:58 2011 From: alexandre.conrad at gmail.com (Alexandre Conrad) Date: Tue, 17 May 2011 11:21:58 -0700 Subject: [Baypiggies] reading very large files In-Reply-To: References: Message-ID: 2011/5/17 Simeon Franklin : > I missed the list too. Curse that reply button :) For those using gmail, you can activate the reply button to be "reply to all" by default. It's a gmail "labs" feature. -- Alex | twitter.com/alexconrad From jim at systemateka.com Tue May 17 20:47:13 2011 From: jim at systemateka.com (jim) Date: Tue, 17 May 2011 11:47:13 -0700 Subject: [Baypiggies] Interested in a PyPy talk? Message-ID: <1305658033.1712.61.camel@jim-LAPTOP> Please respond if you're interested in having Dan Roberts talk on PyPy at a BayPIGgies meeting. No reponses, no PyPy talk. With thanks, jim From lucas.wiman at gmail.com Tue May 17 21:26:16 2011 From: lucas.wiman at gmail.com (Lucas Wiman) Date: Tue, 17 May 2011 12:26:16 -0700 Subject: [Baypiggies] reading very large files Message-ID: On Tue, May 17, 2011 at 10:56 AM, wrote: > > I wish to read a large data file (file size is around 1.8 MB) and > manipulate > the data in this file. Just reading and writing the first 500 lines of this > file is causing a problem. I wrote: > > fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') > count = 0 > for i in fin.readlines(): > print i > count += 1 > if count >= 500: > break > > and got this error msg: > > Traceback (most recent call last): > File > > "H:\genome_4_omics_study\GS000003696-DID\GS00471-DNA_B01_1101_37-ASM\GS00471-DNA_B01\ASM\gene-GS00471-DNA_B01_1101_37-ASM.tsv\test.py", > line 3, in > for i in fin.readlines(): > MemoryError > If your data is actually a tsv (tab-separated value format), you should be using the csv module for actually iterating over lines in it. Just set the delimiter to '\t' and look at the docs at http://docs.python.org/library/csv.html You should also generally use the "with" syntax when dealing with files since it handles closing the file object for you (probably not an issue when you're just reading from a single file, but best practices nonetheless). Here's how I would deal with your situation: import csv with open('gene-GS00471-DNA_B01_1101_37-ASM.tsv', 'r') as f: r = csv.reader(f, delimiter='\t') for row in r: # row is a list of strings that correspond to the columns in your file do_stuff_with_the_row(row) # your file object f is now closed Best wishes, Lucas Wiman -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucas.wiman at gmail.com Tue May 17 21:34:47 2011 From: lucas.wiman at gmail.com (Lucas Wiman) Date: Tue, 17 May 2011 12:34:47 -0700 Subject: [Baypiggies] reading very large files In-Reply-To: References: Message-ID: It's also extremely surprising to me that reading a 1.8MB file is causing a memory error. That's actually not a particularly large file, and if it is causing a memory error, there must be something wrong with the your Python configuration or build. Best, Lucas On Tue, May 17, 2011 at 12:26 PM, Lucas Wiman wrote: > > > On Tue, May 17, 2011 at 10:56 AM, wrote: > >> >> I wish to read a large data file (file size is around 1.8 MB) and >> manipulate >> the data in this file. Just reading and writing the first 500 lines of >> this >> file is causing a problem. I wrote: >> >> fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') >> count = 0 >> for i in fin.readlines(): >> print i >> count += 1 >> if count >= 500: >> break >> >> and got this error msg: >> >> Traceback (most recent call last): >> File >> >> "H:\genome_4_omics_study\GS000003696-DID\GS00471-DNA_B01_1101_37-ASM\GS00471-DNA_B01\ASM\gene-GS00471-DNA_B01_1101_37-ASM.tsv\test.py", >> line 3, in >> for i in fin.readlines(): >> MemoryError >> > > If your data is actually a tsv (tab-separated value format), you should be > using the csv module for actually iterating over lines in it. Just set the > delimiter to '\t' and look at the docs at > http://docs.python.org/library/csv.html > > You should also generally use the "with" syntax when dealing with files > since it handles closing the file object for you (probably not an issue when > you're just reading from a single file, but best practices nonetheless). > Here's how I would deal with your situation: > > import csv > > with open('gene-GS00471-DNA_B01_1101_37-ASM.tsv', 'r') as f: > r = csv.reader(f, delimiter='\t') > for row in r: > # row is a list of strings that correspond to the columns in your > file > do_stuff_with_the_row(row) > # your file object f is now closed > > Best wishes, > Lucas Wiman > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abhishek.vit at gmail.com Tue May 17 21:43:49 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Tue, 17 May 2011 12:43:49 -0700 Subject: [Baypiggies] Fwd: Interested in a PyPy talk? In-Reply-To: References: <1305658033.1712.61.camel@jim-LAPTOP> Message-ID: Forgot to copy the list. +1. If it can be recorded it will be awesome. -Abhi On Tue, May 17, 2011 at 11:47 AM, jim wrote: > > ? ?Please respond if you're interested in having > Dan Roberts talk on PyPy at a BayPIGgies meeting. > No reponses, no PyPy talk. > With thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From tony at tcapp.com Tue May 17 21:55:14 2011 From: tony at tcapp.com (Tony Cappellini) Date: Tue, 17 May 2011 12:55:14 -0700 Subject: [Baypiggies] Interested in a PyPy talk? In-Reply-To: <1305658033.1712.61.camel@jim-LAPTOP> References: <1305658033.1712.61.camel@jim-LAPTOP> Message-ID: +1 On Tue, May 17, 2011 at 11:47 AM, jim wrote: > > Please respond if you're interested in having > Dan Roberts talk on PyPy at a BayPIGgies meeting. > No reponses, no PyPy talk. > With thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Web at StevePiercy.com Tue May 17 21:52:13 2011 From: Web at StevePiercy.com (Steve Piercy - Web Site Builder) Date: Tue, 17 May 2011 12:52:13 -0700 Subject: [Baypiggies] Interested in a PyPy talk? In-Reply-To: <1305658033.1712.61.camel@jim-LAPTOP> Message-ID: On 5/17/11 at 11:47 AM, jim at systemateka.com (jim) pronounced: > Please respond if you're interested in having > Dan Roberts talk on PyPy at a BayPIGgies meeting. +1 --steve -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA From nagappan at gmail.com Tue May 17 22:40:06 2011 From: nagappan at gmail.com (Nagappan Alagappan) Date: Tue, 17 May 2011 13:40:06 -0700 Subject: [Baypiggies] Interested in a PyPy talk? In-Reply-To: <1305658033.1712.61.camel@jim-LAPTOP> References: <1305658033.1712.61.camel@jim-LAPTOP> Message-ID: +1 On Tue, May 17, 2011 at 11:47 AM, jim wrote: > > Please respond if you're interested in having > Dan Roberts talk on PyPy at a BayPIGgies meeting. > No reponses, no PyPy talk. > With thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From krid at otisbean.com Tue May 17 21:35:40 2011 From: krid at otisbean.com (Dirk Bergstrom) Date: Tue, 17 May 2011 12:35:40 -0700 Subject: [Baypiggies] Interested in a PyPy talk? In-Reply-To: <1305658033.1712.61.camel@jim-LAPTOP> References: <1305658033.1712.61.camel@jim-LAPTOP> Message-ID: <87sjsdunlf.wl%krid@otisbean.com> At Tue, 17 May 2011 11:47:13 -0700,jim wrote: > Please respond if you're interested in having > Dan Roberts talk on PyPy at a BayPIGgies meeting. +1 From davidoff56 at alluvialsw.com Tue May 17 22:41:47 2011 From: davidoff56 at alluvialsw.com (Monte Davidoff) Date: Tue, 17 May 2011 13:41:47 -0700 Subject: [Baypiggies] Interested in a PyPy talk? In-Reply-To: <1305658033.1712.61.camel@jim-LAPTOP> References: <1305658033.1712.61.camel@jim-LAPTOP> Message-ID: <4DD2DD8B.6010703@alluvialsw.com> +1 On 5/17/11 11:47 AM, jim wrote: > Please respond if you're interested in having > Dan Roberts talk on PyPy at a BayPIGgies meeting. > No reponses, no PyPy talk. > With thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From nyxtom at gmail.com Tue May 17 23:06:29 2011 From: nyxtom at gmail.com (nyxtom at gmail.com) Date: Tue, 17 May 2011 17:06:29 -0400 Subject: [Baypiggies] Baypiggies Digest, Vol 67, Issue 17 In-Reply-To: References: Message-ID: +1 on that talk On May 17, 2011 1:39 PM, wrote: > > Send Baypiggies mailing list submissions to > baypiggies at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/baypiggies > or, via email, send a message with subject or body 'help' to > baypiggies-request at python.org > > You can reach the person managing the list at > baypiggies-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Baypiggies digest..." > > > Today's Topics: > > 1. Re: reading very large files (Alexandre Conrad) > 2. Interested in a PyPy talk? (jim) > 3. Re: reading very large files (Lucas Wiman) > 4. Re: reading very large files (Lucas Wiman) > 5. Fwd: Interested in a PyPy talk? (Abhishek Pratap) > 6. Re: Interested in a PyPy talk? (Tony Cappellini) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 17 May 2011 11:21:58 -0700 > From: Alexandre Conrad > To: Simeon Franklin > Cc: Baypiggies > Subject: Re: [Baypiggies] reading very large files > Message-ID: > Content-Type: text/plain; charset=UTF-8 > > 2011/5/17 Simeon Franklin : > > I missed the list too. Curse that reply button :) > > For those using gmail, you can activate the reply button to be "reply > to all" by default. It's a gmail "labs" feature. > > -- > Alex | twitter.com/alexconrad > > > ------------------------------ > > Message: 2 > Date: Tue, 17 May 2011 11:47:13 -0700 > From: jim > To: Baypiggies > Subject: [Baypiggies] Interested in a PyPy talk? > Message-ID: <1305658033.1712.61.camel at jim-LAPTOP> > Content-Type: text/plain; charset="UTF-8" > > > Please respond if you're interested in having > Dan Roberts talk on PyPy at a BayPIGgies meeting. > No reponses, no PyPy talk. > With thanks, > jim > > > > > ------------------------------ > > Message: 3 > Date: Tue, 17 May 2011 12:26:16 -0700 > From: Lucas Wiman > To: baypiggies at python.org > Subject: Re: [Baypiggies] reading very large files > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > On Tue, May 17, 2011 at 10:56 AM, wrote: > > > > > I wish to read a large data file (file size is around 1.8 MB) and > > manipulate > > the data in this file. Just reading and writing the first 500 lines of this > > file is causing a problem. I wrote: > > > > fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') > > count = 0 > > for i in fin.readlines(): > > print i > > count += 1 > > if count >= 500: > > break > > > > and got this error msg: > > > > Traceback (most recent call last): > > File > > > > "H:\genome_4_omics_study\GS000003696-DID\GS00471-DNA_B01_1101_37-ASM\GS00471-DNA_B01\ASM\gene-GS00471-DNA_B01_1101_37-ASM.tsv\test.py", > > line 3, in > > for i in fin.readlines(): > > MemoryError > > > > If your data is actually a tsv (tab-separated value format), you should be > using the csv module for actually iterating over lines in it. Just set the > delimiter to '\t' and look at the docs at > http://docs.python.org/library/csv.html > > You should also generally use the "with" syntax when dealing with files > since it handles closing the file object for you (probably not an issue when > you're just reading from a single file, but best practices nonetheless). > Here's how I would deal with your situation: > > import csv > > with open('gene-GS00471-DNA_B01_1101_37-ASM.tsv', 'r') as f: > r = csv.reader(f, delimiter='\t') > for row in r: > # row is a list of strings that correspond to the columns in your > file > do_stuff_with_the_row(row) > # your file object f is now closed > > Best wishes, > Lucas Wiman > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < http://mail.python.org/pipermail/baypiggies/attachments/20110517/d56bc01c/attachment-0001.html > > > ------------------------------ > > Message: 4 > Date: Tue, 17 May 2011 12:34:47 -0700 > From: Lucas Wiman > To: baypiggies at python.org > Subject: Re: [Baypiggies] reading very large files > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > It's also extremely surprising to me that reading a 1.8MB file is causing a > memory error. That's actually not a particularly large file, and if it is > causing a memory error, there must be something wrong with the your Python > configuration or build. > > Best, > Lucas > > On Tue, May 17, 2011 at 12:26 PM, Lucas Wiman wrote: > > > > > > > On Tue, May 17, 2011 at 10:56 AM, wrote: > > > >> > >> I wish to read a large data file (file size is around 1.8 MB) and > >> manipulate > >> the data in this file. Just reading and writing the first 500 lines of > >> this > >> file is causing a problem. I wrote: > >> > >> fin = open('gene-GS00471-DNA_B01_1101_37-ASM.tsv') > >> count = 0 > >> for i in fin.readlines(): > >> print i > >> count += 1 > >> if count >= 500: > >> break > >> > >> and got this error msg: > >> > >> Traceback (most recent call last): > >> File > >> > >> "H:\genome_4_omics_study\GS000003696-DID\GS00471-DNA_B01_1101_37-ASM\GS00471-DNA_B01\ASM\gene-GS00471-DNA_B01_1101_37-ASM.tsv\test.py", > >> line 3, in > >> for i in fin.readlines(): > >> MemoryError > >> > > > > If your data is actually a tsv (tab-separated value format), you should be > > using the csv module for actually iterating over lines in it. Just set the > > delimiter to '\t' and look at the docs at > > http://docs.python.org/library/csv.html > > > > You should also generally use the "with" syntax when dealing with files > > since it handles closing the file object for you (probably not an issue when > > you're just reading from a single file, but best practices nonetheless). > > Here's how I would deal with your situation: > > > > import csv > > > > with open('gene-GS00471-DNA_B01_1101_37-ASM.tsv', 'r') as f: > > r = csv.reader(f, delimiter='\t') > > for row in r: > > # row is a list of strings that correspond to the columns in your > > file > > do_stuff_with_the_row(row) > > # your file object f is now closed > > > > Best wishes, > > Lucas Wiman > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < http://mail.python.org/pipermail/baypiggies/attachments/20110517/08dd41aa/attachment-0001.html > > > ------------------------------ > > Message: 5 > Date: Tue, 17 May 2011 12:43:49 -0700 > From: Abhishek Pratap > To: Baypiggies > Subject: [Baypiggies] Fwd: Interested in a PyPy talk? > Message-ID: > Content-Type: text/plain; charset=ISO-8859-1 > > Forgot to copy the list. > > > +1. If it can be recorded it will be awesome. > > -Abhi > > On Tue, May 17, 2011 at 11:47 AM, jim wrote: > > > > ? ?Please respond if you're interested in having > > Dan Roberts talk on PyPy at a BayPIGgies meeting. > > No reponses, no PyPy talk. > > With thanks, > > jim > > > > > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > ------------------------------ > > Message: 6 > Date: Tue, 17 May 2011 12:55:14 -0700 > From: Tony Cappellini > To: jim > Cc: Baypiggies > Subject: Re: [Baypiggies] Interested in a PyPy talk? > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > +1 > > On Tue, May 17, 2011 at 11:47 AM, jim wrote: > > > > > Please respond if you're interested in having > > Dan Roberts talk on PyPy at a BayPIGgies meeting. > > No reponses, no PyPy talk. > > With thanks, > > jim > > > > > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < http://mail.python.org/pipermail/baypiggies/attachments/20110517/90f7e1ad/attachment.html > > > ------------------------------ > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > > End of Baypiggies Digest, Vol 67, Issue 17 > ****************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From simeonf at gmail.com Wed May 18 00:08:49 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Tue, 17 May 2011 15:08:49 -0700 Subject: [Baypiggies] Interested in a PyPy talk? In-Reply-To: <4DD2DD8B.6010703@alluvialsw.com> References: <1305658033.1712.61.camel@jim-LAPTOP> <4DD2DD8B.6010703@alluvialsw.com> Message-ID: > On 5/17/11 11:47 AM, jim wrote: > ? ? Please respond if you're interested in having > Dan Roberts talk on PyPy at a BayPIGgies meeting. > No reponses, no PyPy talk. > With thanks, > jim +1 From nagappan at gmail.com Wed May 18 02:05:28 2011 From: nagappan at gmail.com (Nagappan Alagappan) Date: Tue, 17 May 2011 17:05:28 -0700 Subject: [Baypiggies] Presentation on Automated Testing on Macintosh using PyATOM- for July 2011 In-Reply-To: References: Message-ID: +1 On Mon, May 16, 2011 at 12:03 PM, Tony Cappellini wrote: > We have a person who wants to give a presentation on PyATOM. > I'm thinking about scheduling him for July 2011. > I don't believe we have anyone schedule for June 2011 yet. > > Reply with +1 for yes, or -1 if not. > > About PyATOM: > Short for Automated Testing on Macintosh, PyATOM is the first Python > library to fully enable GUI testing of Macintosh applications via the > Apple Accessibility API. This library was created out of desperation. > Existing tools such as using appscript to send messages to > accessibility objects are painful to write and slow to use. PyATOM has > direct access to the API. It's fast and easy to use to write tests. > > Special thanks: > The VMware Fusion automation team > Nagappan Alagappan and the LDTP team > > Download source: > https://github.com/pyatom/pyatom > > Documentation references: > > Documentation is still a work in progress. Read the README on the > Github page for an introduction to PyATOM. > > Report bugs - https://github.com/pyatom/pyatom/issues > > To subscribe to PyATOM mailing lists, visit http://lists.pyatom.com/ > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewwu at gmail.com Wed May 18 02:07:49 2011 From: andrewwu at gmail.com (Andrew Wu) Date: Tue, 17 May 2011 17:07:49 -0700 Subject: [Baypiggies] Presentation on Automated Testing on Macintosh using PyATOM- for July 2011 In-Reply-To: References: Message-ID: +1 Andrew On Tue, May 17, 2011 at 5:05 PM, Nagappan Alagappan wrote: > +1 > > On Mon, May 16, 2011 at 12:03 PM, Tony Cappellini wrote: > >> We have a person who wants to give a presentation on PyATOM. >> I'm thinking about scheduling him for July 2011. >> I don't believe we have anyone schedule for June 2011 yet. >> >> Reply with +1 for yes, or -1 if not. >> >> About PyATOM: >> Short for Automated Testing on Macintosh, PyATOM is the first Python >> library to fully enable GUI testing of Macintosh applications via the >> Apple Accessibility API. This library was created out of desperation. >> Existing tools such as using appscript to send messages to >> accessibility objects are painful to write and slow to use. PyATOM has >> direct access to the API. It's fast and easy to use to write tests. >> >> Special thanks: >> The VMware Fusion automation team >> Nagappan Alagappan and the LDTP team >> >> Download source: >> https://github.com/pyatom/pyatom >> >> Documentation references: >> >> Documentation is still a work in progress. Read the README on the >> Github page for an introduction to PyATOM. >> >> Report bugs - https://github.com/pyatom/pyatom/issues >> >> To subscribe to PyATOM mailing lists, visit http://lists.pyatom.com/ >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> http://mail.python.org/mailman/listinfo/baypiggies >> > > > > -- > Linux Desktop (GUI Application) Testing Project - > http://ldtp.freedesktop.org > http://nagappanal.blogspot.com > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aahz at pythoncraft.com Wed May 18 02:09:18 2011 From: aahz at pythoncraft.com (Aahz) Date: Tue, 17 May 2011 17:09:18 -0700 Subject: [Baypiggies] Egnyte: still hiring Message-ID: <20110518000918.GA5541@panix.com> Howdy, I figured I'd try a more narrative approach this time around. We're looking to hire two or three competent Python programmers. We're looking for people who can handle server, client, and web programming. Although our approach is to hire flexible people who are good at solving problems, there are some specific skills we're looking for: * Algorithms/scaling * Windows * Virtual machines and file systems (requires some C programming) I've been working here for almost two years, and I think I have a great job. I do lots of different things, I'm rarely bored. We don't require degrees, we're more interested in what you can do (I don't have a degree, either). For more info, see http://www.egnyte.com/corp/jobs.html Feel free to send your resume either directly to me or to jobs at egnyte.com (if the latter, be sure to mention BayPIGgies). -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ Looking back over the years, after I learned Python I realized that I never really had enjoyed programming before. From davidoff56 at alluvialsw.com Wed May 18 02:23:29 2011 From: davidoff56 at alluvialsw.com (Monte Davidoff) Date: Tue, 17 May 2011 17:23:29 -0700 Subject: [Baypiggies] Presentation on Automated Testing on Macintosh using PyATOM- for July 2011 In-Reply-To: References: Message-ID: <4DD31181.4050000@alluvialsw.com> +1 On 5/16/11 12:03 PM, Tony Cappellini wrote: > We have a person who wants to give a presentation on PyATOM. > I'm thinking about scheduling him for July 2011. > I don't believe we have anyone schedule for June 2011 yet. > > Reply with +1 for yes, or -1 if not. > > About PyATOM: > Short for Automated Testing on Macintosh, PyATOM is the first Python > library to fully enable GUI testing of Macintosh applications via the > Apple Accessibility API. This library was created out of desperation. > Existing tools such as using appscript to send messages to > accessibility objects are painful to write and slow to use. PyATOM has > direct access to the API. It's fast and easy to use to write tests. > > Special thanks: > The VMware Fusion automation team > Nagappan Alagappan and the LDTP team > > Download source: > https://github.com/pyatom/pyatom > > Documentation references: > > Documentation is still a work in progress. Read the README on the > Github page for an introduction to PyATOM. > > Report bugs - https://github.com/pyatom/pyatom/issues > > To subscribe to PyATOM mailing lists, visit http://lists.pyatom.com/ > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: From simeonf at gmail.com Wed May 18 03:18:35 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Tue, 17 May 2011 18:18:35 -0700 Subject: [Baypiggies] Egnyte: still hiring In-Reply-To: <20110518000918.GA5541@panix.com> References: <20110518000918.GA5541@panix.com> Message-ID: I should ping the list on that front as well: my main client is Energy Solutions based out of Oakland. We are really trying to increase our developer talent right now. See http://energy-solution.com/index.php/careers/ for the list of openings but we currently are trying to hire full-time Senior, Middle, and Junior Devs, we have a project manager spot open and we're looking for a technical writer as well. ES has been a great company for me to work with personally and the software side of things (ignore the .php in the url above) is almost all Python. I'd be happy to personally introduce any interested parties - especially since they're offering a bonus for referrals right now! If you're interested please respond to me directly - I be happy to fill in some details and point you in the right direction for an interview. -best regards Simeon Franklin On Tue, May 17, 2011 at 5:09 PM, Aahz wrote: > Howdy, > > I figured I'd try a more narrative approach this time around. ?We're > looking to hire two or three competent Python programmers. ?We're looking > for people who can handle server, client, and web programming. ?Although > our approach is to hire flexible people who are good at solving problems, > there are some specific skills we're looking for: > > * Algorithms/scaling > * Windows > * Virtual machines and file systems (requires some C programming) > > I've been working here for almost two years, and I think I have a great > job. ?I do lots of different things, I'm rarely bored. ?We don't require > degrees, we're more interested in what you can do (I don't have a degree, > either). > > For more info, see > http://www.egnyte.com/corp/jobs.html > > Feel free to send your resume either directly to me or to jobs at egnyte.com > (if the latter, be sure to mention BayPIGgies). > -- > Aahz (aahz at pythoncraft.com) ? ? ? ? ? <*> ? ? ? ? http://www.pythoncraft.com/ > > Looking back over the years, after I learned Python I realized that I > never really had enjoyed programming before. > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From glen at glenjarvis.com Wed May 18 04:13:20 2011 From: glen at glenjarvis.com (Glen Jarvis) Date: Tue, 17 May 2011 19:13:20 -0700 Subject: [Baypiggies] Egnyte: still hiring In-Reply-To: <20110518000918.GA5541@panix.com> References: <20110518000918.GA5541@panix.com> Message-ID: <549E40C1-334E-414F-AC15-E53DCDBA0B4D@glenjarvis.com> And, as with Aahz and Simeon, my company (mobile spinach) is also hiring. We're trying to find talented software engineers .... I inherited my job and that of another person. And, I'd LOVE to find someone who would work very close with me on projects. We are the backend team that supports the JQuery mobile front end. We do fun things with south, piston, and Django. I really like the personalities in the team :). We just need one more so I can go home at night :) Let me know if you're interested... Glen On May 17, 2011, at 5:09 PM, Aahz wrote: > Howdy, > > I figured I'd try a more narrative approach this time around. We're > looking to hire two or three competent Python programmers. We're looking > for people who can handle server, client, and web programming. Although > our approach is to hire flexible people who are good at solving problems, > there are some specific skills we're looking for: > > * Algorithms/scaling > * Windows > * Virtual machines and file systems (requires some C programming) > > I've been working here for almost two years, and I think I have a great > job. I do lots of different things, I'm rarely bored. We don't require > degrees, we're more interested in what you can do (I don't have a degree, > either). > > For more info, see > http://www.egnyte.com/corp/jobs.html > > Feel free to send your resume either directly to me or to jobs at egnyte.com > (if the latter, be sure to mention BayPIGgies). > -- > Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ > > Looking back over the years, after I learned Python I realized that I > never really had enjoyed programming before. > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From n8pease at gmail.com Wed May 18 22:56:12 2011 From: n8pease at gmail.com (Nathan Pease) Date: Wed, 18 May 2011 13:56:12 -0700 Subject: [Baypiggies] Avid is also hiring In-Reply-To: <549E40C1-334E-414F-AC15-E53DCDBA0B4D@glenjarvis.com> References: <20110518000918.GA5541@panix.com> <549E40C1-334E-414F-AC15-E53DCDBA0B4D@glenjarvis.com> Message-ID: <033FF805-AD08-45F7-98D9-5937D9BF4617@gmail.com> I guess I'll put my hand in the air too. the Consoles group (the group I work in) at Avid Technologies (www.avid.com) is also hiring. We are looking for intermediate and advanced C++ engineers. We use python extensively for automated test and build tools. Windows and/or Mac GUI chops would be bonus. There isn't a formal req written yet but ping me if you have any questions and/or if you'd like to submit a resume. thanks, nate On May 17, 2011, at 7:13 PM, Glen Jarvis wrote: > And, as with Aahz and Simeon, my company (mobile spinach) is also hiring. We're trying to find talented software engineers .... I inherited my job and that of another person. And, I'd LOVE to find someone who would work very close with me on projects. We are the backend team that supports the JQuery mobile front end. We do fun things with south, piston, and Django. > > I really like the personalities in the team :). We just need one more so I can go home at night :) > > Let me know if you're interested... > > Glen > > > > On May 17, 2011, at 5:09 PM, Aahz wrote: > >> Howdy, >> >> I figured I'd try a more narrative approach this time around. We're >> looking to hire two or three competent Python programmers. We're looking >> for people who can handle server, client, and web programming. Although >> our approach is to hire flexible people who are good at solving problems, >> there are some specific skills we're looking for: >> >> * Algorithms/scaling >> * Windows >> * Virtual machines and file systems (requires some C programming) >> >> I've been working here for almost two years, and I think I have a great >> job. I do lots of different things, I'm rarely bored. We don't require >> degrees, we're more interested in what you can do (I don't have a degree, >> either). >> >> For more info, see >> http://www.egnyte.com/corp/jobs.html >> >> Feel free to send your resume either directly to me or to jobs at egnyte.com >> (if the latter, be sure to mention BayPIGgies). >> -- >> Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ >> >> Looking back over the years, after I learned Python I realized that I >> never really had enjoyed programming before. >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> http://mail.python.org/mailman/listinfo/baypiggies > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From mkohler at cellbiosciences.com Sat May 21 01:54:50 2011 From: mkohler at cellbiosciences.com (Mark Kohler) Date: Fri, 20 May 2011 16:54:50 -0700 Subject: [Baypiggies] Cell Biosciences is also hiring Message-ID: <4DD6FF4A.2020004@cellbiosciences.com> Cell Biosciences is also hiring. We are looking for a programmer to work on the software for a Linux-based scientific imaging system. Our software is written almost entirely in Python, with Django and JavaScript+jquery used for the user interface. We are in the process of adding more image processing capabilities, and a more interactive user interface. It is a 5 month contract position. Contact me if you're interested. Mark Kohler mkohler at cellbiosciences.com From jeffrey.fischer at gmail.com Sat May 28 01:48:55 2011 From: jeffrey.fischer at gmail.com (Jeff Fischer) Date: Fri, 27 May 2011 16:48:55 -0700 Subject: [Baypiggies] Slides from mix-in talk Message-ID: Hi everyone, I put the slides from my Newbie Nugget about mix-ins up on my blog at: http://blog.genforma.com/2011/05/27/talk-on-python-mix-in-classes/ As a bonus, I added a class decorator for checking that a mix-in class is composed with any required methods. It is described in my revised slides. I also put a recipe for the decorator up at: http://code.activestate.com/recipes/577725-class-decorator-to-check-that-methods Enjoy! - Jeff From max.walker at marakana.com Tue May 31 23:37:52 2011 From: max.walker at marakana.com (Max Walker - Marakana) Date: Tue, 31 May 2011 14:37:52 -0700 Subject: [Baypiggies] Video from May 26th Bay Piggies event online Message-ID: <4DE55FB0.4090104@marakana.com> Hi all, Just letting you know that the video from Jeff Fischer's newbie nugget talk on Implementing Mix-ins in Python is now online: http://mrkn.co/f/345 Coming soon is the video for Alan DuBoff's presentation on Writing Titanium Desktop Applications with Python. I'll shoot another email to the list later this week when it's up. Cheers!! - Max