From alex.salkever at gmail.com Tue Mar 1 06:41:33 2011 From: alex.salkever at gmail.com (Alex Salkever) Date: Mon, 28 Feb 2011 21:41:33 -0800 Subject: [Baypiggies] Newbie: Python on Mac Message-ID: Hi, all: Sorry for what may seem to be a dumb question. So I am teaching myself Python but have a Mac. It is running Python v2.4, which does not seem to have much in the way of help libraries and may be missing other things that my "Think Python" book takes for granted. Are there any Python Mac users out there? If so, what software version / package would you recommend and is it in a simplified installer package (like I said, I'm a noob)? Thanks for any assistance. -- Alex Salkever p:415.503.9035 http://twitter.com/AlexSalkever -------------- next part -------------- An HTML attachment was scrubbed... URL: From tony at tcapp.com Tue Mar 1 07:26:57 2011 From: tony at tcapp.com (Tony Cappellini) Date: Mon, 28 Feb 2011 22:26:57 -0800 Subject: [Baypiggies] Newbie: Python on Mac In-Reply-To: References: Message-ID: Hi Alex, I've recently bought a Mac too, and getting "the right" Python 2.7.x installed was surprisingly very confusing. I needed 2.7.1 because I wanted to use the save Python release that we use where i work. There are way too many choices to make it easy for someone just getting started. (this is one place where it's less confusing to do on Windows) ;-) I'd recommend this mailing list to get some help http://mail.python.org/mailman/listinfo/pythonmac-sig On Mon, Feb 28, 2011 at 9:41 PM, Alex Salkever wrote: > Hi, all: > > Sorry for what may seem to be a dumb question. So I am teaching myself > Python but have a Mac. It is running Python v2.4, which does not seem to > have much in the way of help libraries and may be missing other things that > my "Think Python" book takes for granted. > > Are there any Python Mac users out there? If so, what software version / > package would you recommend and is it in a simplified installer package > (like I said, I'm a noob)? > > Thanks for any assistance. > > -- > Alex Salkever > p:415.503.9035 > http://twitter.com/AlexSalkever > > > _______________________________________________ > 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 jtatum at gmail.com Tue Mar 1 07:45:35 2011 From: jtatum at gmail.com (James Tatum) Date: Mon, 28 Feb 2011 22:45:35 -0800 Subject: [Baypiggies] Newbie: Python on Mac In-Reply-To: References: Message-ID: Simple answer: Upgrade your OS :) 10.6 comes with 2.6.1. If you can get your hands on 10.7, it's got 2.6.6 and 2.7.1. Think Python doesn't really say what it needs but based on the publication date 2.6 should be fine. What OS are you running? I don't recall any of them shipping 2.4. If you're following the steps in a book virtually any Python should be OK. I like plain ol' Python. It has an installer for OS X: http://www.python.org/download/releases/2.7.1/ (Pick the option that says "Mac OS X installer" - also note that that OS X 10.3 is required at a minimum.) It puts symlinks in /usr/local/bin and leaves the older version in place. That's important so programs aren't broken. On Mon, Feb 28, 2011 at 9:41 PM, Alex Salkever wrote: > Hi, all: > > Sorry for what may seem to be a dumb question. So I am teaching myself > Python but have a Mac. It is running Python v2.4, which does not seem to > have much in the way of help libraries and may be missing other things that > my "Think Python" book takes for granted. > > Are there any Python Mac users out there? If so, what software version / > package would you recommend and is it in a simplified installer package > (like I said, I'm a noob)? > > Thanks for any assistance. > > -- > Alex Salkever > p:415.503.9035 > http://twitter.com/AlexSalkever > > > _______________________________________________ > 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 Mar 1 07:50:31 2011 From: tony at tcapp.com (Tony Cappellini) Date: Mon, 28 Feb 2011 22:50:31 -0800 Subject: [Baypiggies] Newbie: Python on Mac In-Reply-To: References: Message-ID: James- I want to be able to launch gui programs that end in .pyw, instead of opening the source file in Idle. How do I de-associate .py & .pyw files so they execute in a console or a gui (respectively), by double-clicking on them in Finder? Running a .pyw file from a bash prompt launches the gui just fine, so I just need to be able change the way the double-click works. thanks On Mon, Feb 28, 2011 at 10:45 PM, James Tatum wrote: > Simple answer: Upgrade your OS :) 10.6 comes with 2.6.1. If you can > get your hands on 10.7, it's got 2.6.6 and 2.7.1. Think Python doesn't > really say what it needs but based on the publication date 2.6 should > be fine. What OS are you running? I don't recall any of them shipping > 2.4. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nstinemates at gmail.com Tue Mar 1 07:58:51 2011 From: nstinemates at gmail.com (Nick Stinemates) Date: Mon, 28 Feb 2011 22:58:51 -0800 Subject: [Baypiggies] PyCon Roll Call Message-ID: A few of us from work are headed to PyCon this year. Anyone else from the list headed there? I'd love to meet up! Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From nad at acm.org Tue Mar 1 08:05:53 2011 From: nad at acm.org (Ned Deily) Date: Mon, 28 Feb 2011 23:05:53 -0800 Subject: [Baypiggies] Newbie: Python on Mac References: Message-ID: In article , Tony Cappellini wrote: > I want to be able to launch gui programs that end in .pyw, > instead of opening the source file in Idle. > > How do I de-associate .py & .pyw files so they execute in a console or a gui > (respectively), > by double-clicking on them in Finder? > > Running a .pyw file from a bash prompt launches the gui just fine, so I > just need to be able change the way the double-click works. On OS X, .pyw is not normally used as an extension for Python files. There is actually no difference between python and pythonw on OS X. That said, the simplest way to change the application association for a file extension on OS X is to select (single-click) on the file in the Finder, then select Get Info (from the Finder File menu or type CMD I). In the Info window that opens, if necessary, click on the disclosure triangle next to "Open with" and then select the application you want to use. Most likely the choices will be several versions of IDLE and possible several versions of Python Laucher (a simple launcher app included with the python.org distributions). If you always want to use that app for all files with that extension, click the "Change All..." button as well. -- Ned Deily, nad at acm.org From karen at ischool.berkeley.edu Tue Mar 1 08:21:03 2011 From: karen at ischool.berkeley.edu (Karen Rustad) Date: Mon, 28 Feb 2011 23:21:03 -0800 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: References: Message-ID: *raises hand* I've been a lurker on list thus far, but I'm presenting a poster on community outreach workshops! :D -- Karen Rustad On Mon, Feb 28, 2011 at 10:58 PM, Nick Stinemates wrote: > A few of us from work are headed to PyCon this year. Anyone else from the > list headed there? I'd love to meet up! > > Nick > > > > _______________________________________________ > 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 akwright at mac.com Tue Mar 1 07:29:09 2011 From: akwright at mac.com (Kevin Wright) Date: Mon, 28 Feb 2011 22:29:09 -0800 Subject: [Baypiggies] Newbie: Python on Mac In-Reply-To: References: Message-ID: <2DFE081A-9F62-476B-9531-4A2E6871B3E0@mac.com> On Feb 28, 2011, at 9:41 PM, Alex Salkever wrote: > Hi, all: > > Sorry for what may seem to be a dumb question. So I am teaching myself Python but have a Mac. It is running Python v2.4, which does not seem to have much in the way of help libraries and may be missing other things that my "Think Python" book takes for granted. > > Are there any Python Mac users out there? If so, what software version / package would you recommend and is it in a simplified installer package (like I said, I'm a noob)? > > Thanks for any assistance. > > -- > Alex Salkever > p:415.503.9035 > http://twitter.com/AlexSalkever > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies Hi Alex, I'm a Python Mac user. However, I'm running 10.6.6 (Snow Leopard) which is currently on: python --version Python 2.6.1 Is there some way you could upgrade to Snow Leopard? --Kevin From wescpy at gmail.com Tue Mar 1 08:32:25 2011 From: wescpy at gmail.com (wesley chun) Date: Mon, 28 Feb 2011 23:32:25 -0800 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: References: Message-ID: i'll be in Atlanta for PyCon Mar 8-13. -wesley On Mon, Feb 28, 2011 at 11:21 PM, Karen Rustad wrote: > *raises hand* > > I've been a lurker on list thus far, but I'm presenting a poster on > community outreach workshops! :D > > -- Karen Rustad > > On Mon, Feb 28, 2011 at 10:58 PM, Nick Stinemates > wrote: >> >> A few of us from work are headed to PyCon this year. Anyone else from the >> list headed there? I'd love to meet up! >> Nick -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Python Web Development with Django", Addison Wesley, (c) 2009 ? ? http://withdjango.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com From alex.salkever at gmail.com Tue Mar 1 09:10:50 2011 From: alex.salkever at gmail.com (Alex Salkever) Date: Tue, 1 Mar 2011 00:10:50 -0800 Subject: [Baypiggies] Newbie: Python on Mac In-Reply-To: References: Message-ID: You guys are correct. It is on Python 2.6 (I'm running Snow Leopard) - I got confused by something else I saw in Terminal (as I said, I'm a noob). But it still seems like the help documentation available is really sparse (basically non-existent). Is there better help documentation in 2.7 or later versions? Tony, I am going to subscribe to that list - it looks helpful. Thanks! On Mon, Feb 28, 2011 at 10:26 PM, Tony Cappellini wrote: > Hi Alex, > > I've recently bought a Mac too, and getting "the right" Python 2.7.x > installed > was surprisingly very confusing. I needed 2.7.1 because I wanted to use the > save Python release > that we use where i work. > > There are way too many choices to make it easy for someone just getting > started. > (this is one place where it's less confusing to do on Windows) ;-) > > I'd recommend this mailing list to get some help > > http://mail.python.org/mailman/listinfo/pythonmac-sig > > > On Mon, Feb 28, 2011 at 9:41 PM, Alex Salkever wrote: > >> Hi, all: >> >> Sorry for what may seem to be a dumb question. So I am teaching myself >> Python but have a Mac. It is running Python v2.4, which does not seem to >> have much in the way of help libraries and may be missing other things that >> my "Think Python" book takes for granted. >> >> Are there any Python Mac users out there? If so, what software version / >> package would you recommend and is it in a simplified installer package >> (like I said, I'm a noob)? >> >> Thanks for any assistance. >> >> -- >> Alex Salkever >> p:415.503.9035 >> http://twitter.com/AlexSalkever >> >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> http://mail.python.org/mailman/listinfo/baypiggies >> > > -- Alex Salkever p:415.503.9035 http://twitter.com/AlexSalkever -------------- next part -------------- An HTML attachment was scrubbed... URL: From brent.tubbs at gmail.com Tue Mar 1 09:33:54 2011 From: brent.tubbs at gmail.com (Brent Tubbs) Date: Tue, 1 Mar 2011 00:33:54 -0800 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: References: Message-ID: I'll be there the 10th through 13th. Funny that some of us bay area pythonistas have to fly across the country to meet each other. :) Brent On Mon, Feb 28, 2011 at 11:32 PM, wesley chun wrote: > i'll be in Atlanta for PyCon Mar 8-13. > > -wesley > > > On Mon, Feb 28, 2011 at 11:21 PM, Karen Rustad > wrote: >> *raises hand* >> >> I've been a lurker on list thus far, but I'm presenting a poster on >> community outreach workshops! :D >> >> -- Karen Rustad >> >> On Mon, Feb 28, 2011 at 10:58 PM, Nick Stinemates >> wrote: >>> >>> A few of us from work are headed to PyCon this year. Anyone else from the >>> list headed there? I'd love to meet up! >>> Nick > > > -- > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > "Python Web Development with Django", Addison Wesley, (c) 2009 > ? ? http://withdjango.com > > wesley.chun : wescpy-gmail.com : @wescpy > python training and technical consulting > cyberweb.consulting : silicon valley, ca > http://cyberwebconsulting.com > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From nad at acm.org Tue Mar 1 09:54:53 2011 From: nad at acm.org (Ned Deily) Date: Tue, 01 Mar 2011 00:54:53 -0800 Subject: [Baypiggies] Newbie: Python on Mac References: Message-ID: In article , Alex Salkever wrote: > You guys are correct. It is on Python 2.6 (I'm running Snow Leopard) - I > got confused by something else I saw in Terminal (as I said, I'm a noob). > But it still seems like the help documentation available is really sparse > (basically non-existent). Is there better help documentation in 2.7 or later > versions? A simple way to install either Python 2.7 or Python 3.2 or both is by using the Python for Mac OS X installers available from python.org here: http://www.python.org/download/ For Python 2.7.1, stick with the 32-bit only installer for OS X. For Python 3.2, you could use either installer but if you do use the 64-bit installer you will need to install ActiveState Tcl/Tk 8.5.9 to use IDLE or other Tkinter-based GUI apps. IDLE is Python's "built-in" integrated development environment. It has some warts but many people still find it useful, especially when starting out. The above installers will create version-specific folders in /Applications, i.e /Applications/Python 2.7 and/or /Applications/Python 3.2. In either one, you will find an IDLE.app for that version of Python. In the IDLE Help menu, there will be a link to a built-in version of the Python documentation set for that version. You can also find the latest versions on-line here: http://docs.python.org/ http://docs.python.org/py3k/ -- Ned Deily, nad at acm.org From bob at eventbrite.com Tue Mar 1 15:21:40 2011 From: bob at eventbrite.com (Bob Van Zant) Date: Tue, 1 Mar 2011 06:21:40 -0800 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: References: Message-ID: <-5440857881331154937@unknownmsgid> I'll be there for the conference portion. -Bob On Feb 28, 2011, at 10:59 PM, Nick Stinemates wrote: > A few of us from work are headed to PyCon this year. Anyone else from the list headed there? I'd love to meet up! > > Nick > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From elizabeth.leddy at gmail.com Tue Mar 1 17:34:20 2011 From: elizabeth.leddy at gmail.com (Elizabeth Leddy) Date: Tue, 1 Mar 2011 08:34:20 -0800 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: <-5440857881331154937@unknownmsgid> References: <-5440857881331154937@unknownmsgid> Message-ID: I'll be there for conf and sprints! Maybe we could all get drinks one night? Liz On Tue, Mar 1, 2011 at 6:21 AM, Bob Van Zant wrote: > I'll be there for the conference portion. > > -Bob > > On Feb 28, 2011, at 10:59 PM, Nick Stinemates > wrote: > > > A few of us from work are headed to PyCon this year. Anyone else from the > list headed there? I'd love to meet up! > > > > Nick > > > > > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimmy at retzlaff.com Tue Mar 1 17:36:49 2011 From: jimmy at retzlaff.com (Jimmy Retzlaff) Date: Tue, 1 Mar 2011 08:36:49 -0800 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: <-5440857881331154937@unknownmsgid> References: <-5440857881331154937@unknownmsgid> Message-ID: I'll be there for the conference part along with a co-worker from Yelp. Jimmy On Tue, Mar 1, 2011 at 6:21 AM, Bob Van Zant wrote: > I'll be there for the conference portion. > > -Bob > > On Feb 28, 2011, at 10:59 PM, Nick Stinemates > wrote: > > > A few of us from work are headed to PyCon this year. Anyone else from the > list headed there? I'd love to meet up! > > > > Nick > > > > > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rami.chowdhury at gmail.com Tue Mar 1 17:55:27 2011 From: rami.chowdhury at gmail.com (Rami Chowdhury) Date: Tue, 1 Mar 2011 16:55:27 +0000 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: References: <-5440857881331154937@unknownmsgid> Message-ID: On Mar 1, 2011, at 16:34 , Elizabeth Leddy wrote: > I'll be there for conf and sprints! Maybe we could all get drinks one night? > I'll be there as well; although it's a bit cheeky of me to claim membership of BayPIGgies since I don't live there anymore. > Liz > > On Tue, Mar 1, 2011 at 6:21 AM, Bob Van Zant wrote: > I'll be there for the conference portion. > > -Bob > > On Feb 28, 2011, at 10:59 PM, Nick Stinemates wrote: > > > A few of us from work are headed to PyCon this year. Anyone else from the list headed there? I'd love to meet up! > > > > Nick > > > > > > _______________________________________________ > > 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 > > _______________________________________________ > 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 spmcinerney at hotmail.com Tue Mar 1 18:10:52 2011 From: spmcinerney at hotmail.com (Stephen McInerney) Date: Tue, 1 Mar 2011 09:10:52 -0800 Subject: [Baypiggies] PyCon Roll Cal In-Reply-To: References: Message-ID: >From: brent.tubbs at gmail.com >Funny that some of us bay area pythonistas have to fly across the country to meet each other. :) African swallow or European swallow? Personally not sure whether I can make it. It might be good for those attending to start a wiki about who plans to attend what, to maximize coverage between BayPIGgies. As to bringing back proceedings in hardcopy form to resell, we know from previously that many of us are interested and would pay say $25, but I guess that's a lost cause. Still it wouldn't hurt to ask the organizers yet again. PS anyone interested in carpooling from southbay to Thursday's Yelp PyPy talk 6pm? (I can't make Wednesday's Stanford talk) Regards, Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From spmcinerney at hotmail.com Thu Mar 3 21:29:55 2011 From: spmcinerney at hotmail.com (Stephen McInerney) Date: Thu, 3 Mar 2011 12:29:55 -0800 Subject: [Baypiggies] Seeking ride to PyPy talk @ Yelp 6pm tonight? Message-ID: Seeking ride from Mtn View to PyPy talk @ Yelp 6pm tonight, please contact me offlist? - Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From cappy2112 at gmail.com Mon Mar 7 04:47:13 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Sun, 6 Mar 2011 19:47:13 -0800 Subject: [Baypiggies] Presenters for March 24th Message-ID: Are we going to do the usual post-Pycon presentations? Pycon is March 9-17, Our meeting is on the 24th. Is that enough time to prepare for the next meeting? If not, then we don't have any presenters or nuggeteers scheduled yet. -------------- next part -------------- An HTML attachment was scrubbed... URL: From niallo at unworkable.org Mon Mar 7 06:47:22 2011 From: niallo at unworkable.org (Niall O'Higgins) Date: Sun, 6 Mar 2011 21:47:22 -0800 Subject: [Baypiggies] PyWebSF #14: Kokki Configuration Management Framework 15th March Message-ID: <20110307054722.GL14708@unworkable.org> Hi folks, PyWebSF is a Python meet-up with a strong focus on Web technology. >From frameworks like WSGI/Pylons/TurboGears/Django to libraries like httplib2 to using emerging Web technologies like Amazon's AWS and Freebase - it's all covered. The emphasis is on practical, hands-on lectures and discussion. Meetings start with one or two 30-40 minute presentations and end with informal discussion. Hackathon-style collaboration and project demos are encouraged. Who/What -------- * Samuel Stauffer - "Kokki Configuration Management Framework" http://www.pywebsf.org/2011/03/06/samuel-stauffer-kokki-configuration-management-framework/ When ---- 6PM, Tuesday 15 March 2011. Please try to arrive on time to avoid disappointment. We have space for around 10-20 people. Where ----- Stong conference room, 1st floor, SF Main Public Library. Map: http://tinyurl.com/pywebsfmap The library is easily accessible via both BART and Muni at the Civic Center station. The library closes at 8pm so we will continue the discussion over food/drinks at Frjtz Fries [http://www.frjtzfries.com]. More info --------- Slides, links, and more at http://pywebsf.org/ Thanks! -- Niall O'Higgins PyWebSF http://pywebsf.org http://niallohiggins.com http://twitter.com/niallohiggins From brian.lee.hawthorne at gmail.com Mon Mar 7 23:53:21 2011 From: brian.lee.hawthorne at gmail.com (Brian Hawthorne) Date: Mon, 7 Mar 2011 14:53:21 -0800 Subject: [Baypiggies] [JOB]: Support Industrial Biotech Research at Amyris Message-ID: Hello, We're looking for a smart python programmer with web app experience who's enthusiastic about biotech and likes to learn lots of new stuff really fast. Craigslist post (http://sfbay.craigslist.org/eby/sof/2240931368.html) copied below. If you apply, be sure to mention my name ;). If you have any questions about what we're doing at Amyris let me know. To apply: https://home.eease.adp.com/recruit/?id=555429 Cheers, Brian Hawthorne Software Engineer, Amyris #---------------------------------------------------- Amyris is building an integrated renewable products company using breakthrough science and an innovative business model to address some of our planet?s most daunting problems. Amyris first developed its technology under a non-profit initiative to provide a reliable and affordable source of artemisinin, a highly effective anti-malarial therapeutic and is now applying its industrial synthetic biology platform to provide alternatives to a broad range of petroleum-sourced products. Amyris No Compromise? renewable fuels and chemicals are being designed to perform comparably to, or better than, the products they will replace. Job Description Work with a small team of developers to design and implement software to support multiple groups within the company (primarily R&D). This includes, but is not limited to, custom databases, graphical data representations, interface designs, and automated data retrieval and formatting. Developer will need to be able to work independently or as part of a small team as particular tasks require, and generally is expected to be able to contribute to any part of the stack. Developer will need to be able to liaison with internal clients (scientist and engineers) in a fast paced environment with rapidly changing requirements, so strong communication skills are a necessity. Some background in science or engineering is a big plus. In general, we are looking for experienced developers who learn quickly and are excited about contributing to cutting edge research with a positive impact in creating a more sustainable world. Experience with the following required: ? Bachelor?s degree in Computer Science, or related field ? 5+ years of software development in an enterprise environment ? 3+ years of web development in an MVC environment ? 3+ years of experience with SQL ? Experience coding in Python ? Experience in doing database schema design ? Experience in user interface design ? Translating client requirements into a full-fledged web application ? Excellent debugging abilities (and perseverance) ? Ability to communicate with scientists as well as fellow programmers ? Strong analytical, organizational, and multi-tasking skills ? Energetic, highly self-motivated and able to work efficiently and productively in a start-up company environment Experience with the following a plus: ? Pylons (or Django) MVC framework ? C/C++, PHP ? Javascript / JQuery ? MS SQL, MySQL ? Agile (Scrum, TDD) ? LAMP ? User experience testing/design ? LIMS ? Molecular biology, especially synthetic biology From glen at glenjarvis.com Tue Mar 8 02:29:00 2011 From: glen at glenjarvis.com (Glen Jarvis) Date: Mon, 7 Mar 2011 17:29:00 -0800 Subject: [Baypiggies] Ye Ol' Cheeseshop Question... Message-ID: I am trying to automate the installing a new virtual environment with 132 different packages on a regular basis. Instead of installing from PyPi every time, I want to install from installed packages previously downloaded. For example, this package has been used in this environment: boto==2.0b2 But, what is currently available from PyPi is boto-2.0b4.tar.gz. Pip seems to get this right somehow by just doing a pip install boto==2.0b2. I have inherited these packages and have no control over what is currently "tested" (otherwise, one can say -- just download the 2.0b4.tar.gz file and keep using it). This was all just handed to me. Can I tell pip to just download the files for installation, but don't try to install yet. I ultimately want to install from the files that are distributed so that every installation is exactly the same (and so we don't rely on PyPi for the source at every single installation). For this package, I just want to do a: pip install boto-2.0b2.tar.gz (but I need to get the file from somewhere). So, in summary, how do I download an exact version from PyPi (I can't see how to do it from a web interface)... Cheers, Glen -- 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 rami.chowdhury at gmail.com Tue Mar 8 02:55:46 2011 From: rami.chowdhury at gmail.com (Rami Chowdhury) Date: Tue, 8 Mar 2011 01:55:46 +0000 Subject: [Baypiggies] Ye Ol' Cheeseshop Question... In-Reply-To: References: Message-ID: <25002389-3E05-46A7-BA13-EB627F1A42E1@gmail.com> On Mar 8, 2011, at 01:29 , Glen Jarvis wrote: > I am trying to automate the installing a new virtual environment with 132 different packages on a regular basis. Instead of installing from PyPi every time, I want to install from installed packages previously downloaded. For example, this package has been used in this environment: > > boto==2.0b2 > > But, what is currently available from PyPi is boto-2.0b4.tar.gz. > > Pip seems to get this right somehow by just doing a pip install boto==2.0b2. I have inherited these packages and have no control over what is currently "tested" (otherwise, one can say -- just download the 2.0b4.tar.gz file and keep using it). This was all just handed to me. > > Can I tell pip to just download the files for installation, but don't try to install yet. > > I ultimately want to install from the files that are distributed so that every installation is exactly the same (and so we don't rely on PyPi for the source at every single installation). For this package, I just want to do a: > > pip install boto-2.0b2.tar.gz (but I need to get the file from somewhere). > If you're sure to be using pip, you could use a pip bundle? They can be generated from requirements files, so you could specify your specific package versions etc. > So, in summary, how do I download an exact version from PyPi (I can't see how to do it from a web interface)... > > Cheers, > > > Glen > -- > Things which matter most must never be at the mercy of things which matter least. > > -- Goethe > _______________________________________________ > 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 brent.tubbs at gmail.com Tue Mar 8 04:28:32 2011 From: brent.tubbs at gmail.com (Brent Tubbs) Date: Mon, 7 Mar 2011 19:28:32 -0800 Subject: [Baypiggies] Ye Ol' Cheeseshop Question... In-Reply-To: <25002389-3E05-46A7-BA13-EB627F1A42E1@gmail.com> References: <25002389-3E05-46A7-BA13-EB627F1A42E1@gmail.com> Message-ID: You can download the older boto at http://pypi.python.org/pypi/boto/2.0b2 . I recently set up a Cheeseshop at work using django-chishop. It's nice to not only have reproducible installs, but also to know that a PyPi outage won't break your ability to deploy. https://github.com/ask/chishop I've thought about trying pip's pybundle support but haven't taken the plunge. Brent On Mon, Mar 7, 2011 at 5:55 PM, Rami Chowdhury wrote: > On Mar 8, 2011, at 01:29 , Glen Jarvis wrote: > > I am trying to automate the installing a new virtual environment with 132 > different packages on a regular basis. Instead of installing from PyPi every > time, I want to install from installed packages previously downloaded. For > example, this package has been used in this environment: > boto==2.0b2 > But, what is currently available from PyPi is?boto-2.0b4.tar.gz. > Pip seems to get this right somehow by just doing a pip install?boto==2.0b2. > I have inherited these packages and have no control over what is currently > "tested" (otherwise, one can say -- just download the 2.0b4.tar.gz file and > keep using it). This was all just handed to me. > Can I tell pip to just download the files for installation, but don't try to > install yet. > I ultimately want to install from the files that are distributed so that > every installation is exactly the same (and so we don't rely on PyPi for the > source at every single installation). For this package, I just want to do a: > pip install boto-2.0b2.tar.gz (but I need to get the file from somewhere). > > If you're sure to be using pip, you could use a pip bundle? They can be > generated from requirements files, so you could specify your specific > package versions etc. > > So, in summary, how do I download an exact version from PyPi (I can't see > how to do it from a web interface)... > Cheers, > > Glen > -- > Things which matter most must never be at the mercy of things which matter > least. > > -- Goethe > _______________________________________________ > 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 > > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From hjtoi at comcast.net Tue Mar 8 05:07:57 2011 From: hjtoi at comcast.net (Heikki Toivonen) Date: Mon, 07 Mar 2011 20:07:57 -0800 Subject: [Baypiggies] Ye Ol' Cheeseshop Question... In-Reply-To: References: Message-ID: <4D75AB9D.1070109@comcast.net> Glen Jarvis wrote: > I am trying to automate the installing a new virtual environment with > 132 different packages on a regular basis. Instead of installing from > PyPi every time, I want to install from installed packages previously > downloaded. For example, this package has been used in this environment: So assuming you have downloaded all of the packages you need, you can put them in either a local directory or behind a webserver that provides a simple directory listing, then tell easy_install (sorry, haven't used pip but it might have similar options) the path to the package. Additionally/alternatively, you should use --allow-hosts to point only to your host and --find-links to give the URL from which to get dependencies. -- Heikki Toivonen - http://heikkitoivonen.net From glen at glenjarvis.com Tue Mar 8 06:09:40 2011 From: glen at glenjarvis.com (Glen Jarvis) Date: Mon, 7 Mar 2011 21:09:40 -0800 Subject: [Baypiggies] Ye Ol' Cheeseshop Question... In-Reply-To: References: <25002389-3E05-46A7-BA13-EB627F1A42E1@gmail.com> Message-ID: Ah, this is the pattern I needed.. Just follow this pattern: http://pypi.python.org/pypi//< version> Thanks, Brent. :) I just didn't get that part.. I've had to chase a few links for some packages.. but, have been successful thus far. This was my biggest stumbling block... Awesome! Thanks again.. :) Glen On Mon, Mar 7, 2011 at 7:28 PM, Brent Tubbs wrote: > You can download the older boto at http://pypi.python.org/pypi/boto/2.0b2. > > I recently set up a Cheeseshop at work using django-chishop. It's > nice to not only have reproducible installs, but also to know that a > PyPi outage won't break your ability to deploy. > https://github.com/ask/chishop > > I've thought about trying pip's pybundle support but haven't taken the > plunge. > > Brent > > On Mon, Mar 7, 2011 at 5:55 PM, Rami Chowdhury > wrote: > > On Mar 8, 2011, at 01:29 , Glen Jarvis wrote: > > > > I am trying to automate the installing a new virtual environment with 132 > > different packages on a regular basis. Instead of installing from PyPi > every > > time, I want to install from installed packages previously downloaded. > For > > example, this package has been used in this environment: > > boto==2.0b2 > > But, what is currently available from PyPi is boto-2.0b4.tar.gz. > > Pip seems to get this right somehow by just doing a pip > install boto==2.0b2. > > I have inherited these packages and have no control over what is > currently > > "tested" (otherwise, one can say -- just download the 2.0b4.tar.gz file > and > > keep using it). This was all just handed to me. > > Can I tell pip to just download the files for installation, but don't try > to > > install yet. > > I ultimately want to install from the files that are distributed so that > > every installation is exactly the same (and so we don't rely on PyPi for > the > > source at every single installation). For this package, I just want to do > a: > > pip install boto-2.0b2.tar.gz (but I need to get the file from > somewhere). > > > > If you're sure to be using pip, you could use a pip bundle? They can be > > generated from requirements files, so you could specify your specific > > package versions etc. > > > > So, in summary, how do I download an exact version from PyPi (I can't see > > how to do it from a web interface)... > > Cheers, > > > > Glen > > -- > > Things which matter most must never be at the mercy of things which > matter > > least. > > > > -- Goethe > > _______________________________________________ > > 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 > > > > > > > > > > _______________________________________________ > > 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 hjtoi at comcast.net Tue Mar 8 06:19:15 2011 From: hjtoi at comcast.net (Heikki Toivonen) Date: Mon, 07 Mar 2011 21:19:15 -0800 Subject: [Baypiggies] Ye Ol' Cheeseshop Question... In-Reply-To: References: <25002389-3E05-46A7-BA13-EB627F1A42E1@gmail.com> Message-ID: <4D75BC53.8050109@comcast.net> Glen Jarvis wrote: > Ah, this is the pattern I needed.. Just follow this pattern: > > http://pypi.python.org/pypi//< You might also find this interesting: http://pypi.python.org/simple/ -- Heikki Toivonen - http://heikkitoivonen.net From ken at seehart.com Tue Mar 8 11:03:24 2011 From: ken at seehart.com (Ken Seehart) Date: Tue, 08 Mar 2011 02:03:24 -0800 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: References: Message-ID: <4D75FEEC.6040300@seehart.com> I'm going - Ken Seehart On 2/28/2011 10:58 PM, Nick Stinemates wrote: > A few of us from work are headed to PyCon this year. Anyone else from > the list headed there? I'd love to meet up! > > Nick > > > > _______________________________________________ > 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 jim at well.com Tue Mar 8 18:55:51 2011 From: jim at well.com (jim) Date: Tue, 08 Mar 2011 09:55:51 -0800 Subject: [Baypiggies] PyCon Roll Call In-Reply-To: <4D75FEEC.6040300@seehart.com> References: <4D75FEEC.6040300@seehart.com> Message-ID: <1299606951.1827.22.camel@jim-laptop> Could those of you who are going give us a recap of your impressions for the March BayPIGgies meeting? hopefully, jim On Tue, 2011-03-08 at 02:03 -0800, Ken Seehart wrote: > I'm going > - Ken Seehart > > On 2/28/2011 10:58 PM, Nick Stinemates wrote: > > A few of us from work are headed to PyCon this year. Anyone else > > from the list headed there? I'd love to meet up! > > > > > > Nick > > > > > > > > > > > > _______________________________________________ > > 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 brent.tubbs at gmail.com Sat Mar 12 22:41:38 2011 From: brent.tubbs at gmail.com (Brent Tubbs) Date: Sat, 12 Mar 2011 13:41:38 -0800 Subject: [Baypiggies] Baypiggies in Atlanta eat Brazilian Message-ID: Hey Baypiggies, If you're at PyCon and interested in having dinner with other bay area folks, some of us will be eating at the Fire of Brazil restaurant tonight (Saturday) at 7ish. http://www.fireofbrazil.com/usa/fire_of_brazil_locations.htm See you there! Brent From cappy2112 at gmail.com Thu Mar 17 04:51:54 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Wed, 16 Mar 2011 20:51:54 -0700 Subject: [Baypiggies] March 24th meeting- cancelled Message-ID: Since we haven't gotten any responses to the two posts about the meeting this month, I hope a few of the Pycon attendees will volunteer to talk about Pycon highlights at the April meeting. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nstinemates at gmail.com Thu Mar 17 05:02:19 2011 From: nstinemates at gmail.com (Nick Stinemates) Date: Wed, 16 Mar 2011 21:02:19 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: References: Message-ID: I really enjoyed 2 talks this year: Celery and Selenium2. I've come back to work and worked with the team on implementing some of the ideas in these talks to make us even more awesome. Happy to do a write up or a chat about them live in April. I stayed away from all of the Django stuff (not a webapp guy) so maybe someone else can cover those. Nick On Wed, Mar 16, 2011 at 8:51 PM, Tony Cappellini wrote: > > > Since we haven't gotten any responses to the two posts about the meeting > this month, > I hope a few of the Pycon attendees will volunteer to talk about Pycon > highlights at the April meeting. > > _______________________________________________ > 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 elizabeth.leddy at gmail.com Fri Mar 18 05:21:10 2011 From: elizabeth.leddy at gmail.com (Elizabeth Leddy) Date: Thu, 17 Mar 2011 21:21:10 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: References: Message-ID: I can cover some web app stuff if I'm in town! On Wed, Mar 16, 2011 at 9:02 PM, Nick Stinemates wrote: > I really enjoyed 2 talks this year: Celery and Selenium2. I've come back to > work and worked with the team on implementing some of the ideas in these > talks to make us even more awesome. Happy to do a write up or a chat about > them live in April. > > I stayed away from all of the Django stuff (not a webapp guy) so maybe > someone else can cover those. > > Nick > > On Wed, Mar 16, 2011 at 8:51 PM, Tony Cappellini wrote: > >> >> >> Since we haven't gotten any responses to the two posts about the meeting >> this month, >> I hope a few of the Pycon attendees will volunteer to talk about Pycon >> highlights at the April meeting. >> >> _______________________________________________ >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cappy2112 at gmail.com Fri Mar 18 05:58:27 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Thu, 17 Mar 2011 21:58:27 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: References: Message-ID: That would be great Liz, but we need to know who will commit in order to have the meeting, On Thu, Mar 17, 2011 at 9:21 PM, Elizabeth Leddy wrote: > I can cover some web app stuff if I'm in town! > > On Wed, Mar 16, 2011 at 9:02 PM, Nick Stinemates wrote: > >> I really enjoyed 2 talks this year: Celery and Selenium2. I've come back >> to work and worked with the team on implementing some of the ideas in these >> talks to make us even more awesome. Happy to do a write up or a chat about >> them live in April. >> >> I stayed away from all of the Django stuff (not a webapp guy) so maybe >> someone else can cover those. >> >> Nick >> >> On Wed, Mar 16, 2011 at 8:51 PM, Tony Cappellini wrote: >> >>> >>> >>> Since we haven't gotten any responses to the two posts about the meeting >>> this month, >>> I hope a few of the Pycon attendees will volunteer to talk about Pycon >>> highlights at the April meeting. >>> >>> _______________________________________________ >>> 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 >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtuite at yahoo.com Fri Mar 18 18:44:09 2011 From: vtuite at yahoo.com (Vicky Tuite) Date: Fri, 18 Mar 2011 10:44:09 -0700 (PDT) Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: References: Message-ID: <12295.77221.qm@web39701.mail.mud.yahoo.com> I can commit to talking for 20-30 minutes about the PyCon talks I attended. I even took some notes. ________________________________ From: Tony Cappellini To: Elizabeth Leddy Cc: Baypiggies Sent: Thu, March 17, 2011 9:58:27 PM Subject: Re: [Baypiggies] March 24th meeting- cancelled That would be great Liz, but we need to know who will commit in order to have the meeting, On Thu, Mar 17, 2011 at 9:21 PM, Elizabeth Leddy wrote: I can cover some web app stuff if I'm in town! > > >On Wed, Mar 16, 2011 at 9:02 PM, Nick Stinemates wrote: > >I really enjoyed 2 talks this year: Celery and Selenium2. I've come back to work >and worked with the team on implementing some of the ideas in these talks to >make us even more awesome. Happy to do a write up or a chat about them live in >April. >> >>I stayed away from all of the Django stuff (not a webapp guy) so maybe someone >>else can cover those. >> >>Nick >> >> >>On Wed, Mar 16, 2011 at 8:51 PM, Tony Cappellini wrote: >> >> >>> >>> >>> >>>Since we haven't gotten any responses to the two posts about the meeting this >>>month, >>>I hope a few of the Pycon attendees will volunteer to talk about Pycon >>>highlights at the April meeting. >>>_______________________________________________ >>>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 >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wescpy at gmail.com Fri Mar 18 18:59:06 2011 From: wescpy at gmail.com (wesley chun) Date: Fri, 18 Mar 2011 10:59:06 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: References: Message-ID: hopefully the meeting will happen, as there *seemed* to be a good BayPIGgies presence there. unfortunately, i didn't take good enough notes to share w/everyone this time. :P regardless of whether it happens or not, i wanted to let you all know a couple of things: 1) i'll be giving a talk on cloud computing and Google App Engine the following week at SDForum -- http://www.sdforum.org/index.cfm?fuseaction=Page.ViewPage&PageID=642 -- if you're interested 2) there are still slots for my upcoming public Python training course May 24-26 (Tu-Th) the week before memorial day in case you have any friends/co-workers from around the world who want to come learn Python and then spend Memorial Day wknd in the bay area!! http://cyberwebconsulting.com cheers, -wesley > Since we haven't gotten any responses to the two posts about the meeting > this month, > I hope a few of the Pycon attendees will volunteer to talk about Pycon > highlights at the April meeting. From cappy2112 at gmail.com Fri Mar 18 19:04:23 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Fri, 18 Mar 2011 11:04:23 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: <12295.77221.qm@web39701.mail.mud.yahoo.com> References: <12295.77221.qm@web39701.mail.mud.yahoo.com> Message-ID: Thanks Vicky. This is a good start, but 20-30 minutes of material may not be enough to make it to make it worthwhile for people coming all the way from the North Bay. (not your fault though) Does anyone else have enough material for a presentation next Thursday? On Fri, Mar 18, 2011 at 10:44 AM, Vicky Tuite wrote: > I can commit to talking for 20-30 minutes about the PyCon talks I > attended. I even took some notes. > > ------------------------------ > *From:* Tony Cappellini > *To:* Elizabeth Leddy > *Cc:* Baypiggies > *Sent:* Thu, March 17, 2011 9:58:27 PM > *Subject:* Re: [Baypiggies] March 24th meeting- cancelled > > That would be great Liz, but we need to know who will commit in order to > have the meeting, > > On Thu, Mar 17, 2011 at 9:21 PM, Elizabeth Leddy < > elizabeth.leddy at gmail.com> wrote: > >> I can cover some web app stuff if I'm in town! >> >> On Wed, Mar 16, 2011 at 9:02 PM, Nick Stinemates wrote: >> >>> I really enjoyed 2 talks this year: Celery and Selenium2. I've come back >>> to work and worked with the team on implementing some of the ideas in these >>> talks to make us even more awesome. Happy to do a write up or a chat about >>> them live in April. >>> >>> I stayed away from all of the Django stuff (not a webapp guy) so maybe >>> someone else can cover those. >>> >>> Nick >>> >>> On Wed, Mar 16, 2011 at 8:51 PM, Tony Cappellini wrote: >>> >>>> >>>> >>>> Since we haven't gotten any responses to the two posts about the meeting >>>> this month, >>>> I hope a few of the Pycon attendees will volunteer to talk about Pycon >>>> highlights at the April meeting. >>>> >>>> _______________________________________________ >>>> 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 >>> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fred at kas-group.com Fri Mar 18 19:03:04 2011 From: fred at kas-group.com (Fred C) Date: Fri, 18 Mar 2011 11:03:04 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: References: Message-ID: On Mar 18, 2011, at 10:59 AM, wesley chun wrote: > hopefully the meeting will happen, as there *seemed* to be a good > BayPIGgies presence there. unfortunately, i didn't take good enough > notes to share w/everyone this time. :P > > regardless of whether it happens or not, i wanted to let you all know > a couple of things: > > 1) i'll be giving a talk on cloud computing and Google App Engine the > following week at SDForum -- > http://www.sdforum.org/index.cfm?fuseaction=Page.ViewPage&PageID=642 > -- if you're interested Can you use the upcoming baypiggie meetup to practice this talk? I am sure a lot of baypiggies would be interested. -fred- From wescpy at gmail.com Fri Mar 18 20:04:28 2011 From: wescpy at gmail.com (wesley chun) Date: Fri, 18 Mar 2011 12:04:28 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: References: Message-ID: On Fri, Mar 18, 2011 at 11:03 AM, Fred C wrote: > On Mar 18, 2011, at 10:59 AM, wesley chun wrote: > >> 1) i'll be giving a talk on cloud computing and Google App Engine the >> following week at SDForum -- >> http://www.sdforum.org/index.cfm?fuseaction=Page.ViewPage&PageID=642 >> -- if you're interested > > Can you use the upcoming baypiggie meetup to practice this talk? I am sure a lot > of baypiggies would be interested. hey fred, that's a great idea, but i don't want to distract from the main talk topic, and that is a recap of PyCon. although i didn't take good notes for other talks, i *can* discuss the 3 talks i delivered at PyCon if that would be helpful. this would include the talk i'm doing next week plus Python 3 and Running Django on App Engine. -wesley From Web at StevePiercy.com Sat Mar 19 10:36:18 2011 From: Web at StevePiercy.com (Steve Piercy - Web Site Builder) Date: Sat, 19 Mar 2011 02:36:18 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: Message-ID: Perhaps instead of a single presenter, we could have a panel of all the PyCon attendees share their experiences? Or we could solicit topics of interest from folks based on the presentation topics: http://us.pycon.org/2011/schedule/ Videos of the presentations are being posted. http://pycon.blip.tv/posts?view=archive&nsfw=dc As a relative newb to python, I felt like I was drinking from a fire hose, yet it was very refreshing. --steve On 3/18/11 at 11:04 AM, cappy2112 at gmail.com (Tony Cappellini) pronounced: >Thanks Vicky. This is a good start, but 20-30 minutes of material may not be >enough to make it to make it worthwhile for people coming all the way from >the North Bay. >(not your fault though) > >Does anyone else have enough material for a presentation next Thursday? > > >On Fri, Mar 18, 2011 at 10:44 AM, Vicky Tuite wrote: > >>I can commit to talking for 20-30 minutes about the PyCon talks I >>attended. I even took some notes. >> >>------------------------------ >>*From:* Tony Cappellini >>*To:* Elizabeth Leddy >>*Cc:* Baypiggies >>*Sent:* Thu, March 17, 2011 9:58:27 PM >>*Subject:* Re: [Baypiggies] March 24th meeting- cancelled >> >>That would be great Liz, but we need to know who will commit in order to >>have the meeting, >> >>On Thu, Mar 17, 2011 at 9:21 PM, Elizabeth Leddy < >>elizabeth.leddy at gmail.com> wrote: >> >>> I can cover some web app stuff if I'm in town! >>> >>> On Wed, Mar 16, 2011 at 9:02 PM, Nick Stinemates wrote: >>> >>>> I really enjoyed 2 talks this year: Celery and Selenium2. I've come back >>>> to work and worked with the team on implementing some of the ideas in these >>>> talks to make us even more awesome. Happy to do a write up or a chat about >>>> them live in April. >>>> >>>> I stayed away from all of the Django stuff (not a webapp guy) so maybe >>>> someone else can cover those. >>>> >>>> Nick >>>> >>>> On Wed, Mar 16, 2011 at 8:51 PM, Tony Cappellini wrote: >>>> >>>>> >>>>> >>>>> Since we haven't gotten any responses to the two posts about the meeting >>>>> this month, >>>>> I hope a few of the Pycon attendees will volunteer to talk about Pycon >>>>> highlights at the April meeting. >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>> >>> >> >> > > >----- >_______________________________________________ >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 sandrine.ribeau at gmail.com Sun Mar 20 18:37:34 2011 From: sandrine.ribeau at gmail.com (Sandrine Ribeau) Date: Sun, 20 Mar 2011 10:37:34 -0700 Subject: [Baypiggies] jobs at HighWire Press Message-ID: Hi, There are quite some openings right now at my company. Some explicitly involves Python, others don't. I've started working for them two months ago, and it was no planned I would use Python, and I do. So I'd say that they are pretty open. If you find the good use for it, you got it! They are all listed under: http://jobs.stanford.edu/find_a_job.html Type 'HighWire' as the keyword search and you will find them listed. Some are double posting, meaning that they will hire two candidates for one position posted. They strongly encourage us to recommend candidates, so if any of those are of your interests, let me know and I'll send your resume to the hiring manager. Sandrine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dirk at otisbean.com Sun Mar 20 19:45:06 2011 From: dirk at otisbean.com (Dirk Bergstrom) Date: Sun, 20 Mar 2011 11:45:06 -0700 Subject: [Baypiggies] Rails for Django folks? Message-ID: <4D864B32.3070909@otisbean.com> I'm starting a new job next week and they have some existing Rails apps I'll need to support. From their descriptions[1] I'll probably end up rewriting them in Python/Django, but in the short run I'll need to do some fixes and small enhancements. Can anyone point me to a good resource on "Rails for Django programmers"? I've found a couple reasonable docs on "Ruby for Pythonistas"[2], but searching for "Rail for Django dudes" mostly pulls up pissing matches about which one is "better". I found a couple weak guides, but they were five or six years old. There's gotta be something better out there... [1] Web apps hacked together by PhD compiler and chip microcode guys. I shudder to think... [2] http://jjinux.blogspot.com/2009/02/ruby-python-programmers-perspective.html http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-python/ -- Dirk Bergstrom dirk at otisbean.com http://otisbean.com/ From venkat83 at gmail.com Mon Mar 21 05:12:30 2011 From: venkat83 at gmail.com (Venkatraman S) Date: Mon, 21 Mar 2011 09:42:30 +0530 Subject: [Baypiggies] Rails for Django folks? In-Reply-To: <4D864B32.3070909@otisbean.com> References: <4D864B32.3070909@otisbean.com> Message-ID: On Mon, Mar 21, 2011 at 12:15 AM, Dirk Bergstrom wrote: > I'm starting a new job next week and they have some existing Rails apps > I'll need to support. From their descriptions[1] I'll probably end up > rewriting them in Python/Django, but in the short run I'll need to do some > fixes and small enhancements. Can anyone point me to a good resource on > "Rails for Django programmers"? > I have been meddling around with Python/Django for the past 3-4 years and thought of getting in Rails/RoR recently. I started with "Agile Web Development With Rails" and it has been pretty good so far - pretty easy to get started and is lucid. -V http://blizzardzblogs.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Norman at dreamworks.com Mon Mar 21 17:08:22 2011 From: Tim.Norman at dreamworks.com (Norman, Tim) Date: Mon, 21 Mar 2011 09:08:22 -0700 Subject: [Baypiggies] Dreamworks Animation Job Opening. . . In-Reply-To: References: Message-ID: <57E24B0263A3594EB66EEABC419CA40742AB4A7EA8@EXCLUSGLD1.win.dreamworks.com> Hello, all. Dreamworks Animation is looking for Production/Pipeline Engineers to help build our production software. If you are a Python and/or C++ Developer interested in working at either our Redwood City or Glendale campus, send your resume to: tim.norman at dreamworks.com. Thanks Tim- Tim Norman Dreamworks Animation Ph 818.695 7801 www.dreamworks.com From msadak at nicira.com Tue Mar 22 01:05:16 2011 From: msadak at nicira.com (Mohamed Ali) Date: Mon, 21 Mar 2011 20:05:16 -0400 Subject: [Baypiggies] Nicira (Stealth Network Virtualization startup) is looking for Build Release engineer with strong Python Development Message-ID: Hello Python Guru's, I am Mohamed from Nicira a hot startup backed by Ex-VMWare CEO that is working on Virtualizing the network! I am interested in speaking to anyone in this group who is strong in python development and who has a good open source community relationship and and who has ability to contribute fixes and improvements to upstream Open Source projects. The perfect candidate would be someone who has done Linux packaging RPM. It's time to Virtualize the Network. Job Title: Senior Software Engineer - Build and Release Location: Palo Alto, CA Company Background: Nicira Networks is a dynamic start up that is accelerating the transformation to cloud infrastructure by delivering software that virtualizes the network. Based on the innovative Network Virtualization Platform (NVP)(TM) architecture. Nicira provides network flexibility and control for service providers and enterprise data centers, dramatically improves scalability, service velocity and costs. The company was founded by networking research leaders from Stanford University and University of California at Berkeley, and is led by proven executive management team in networking, virtualization and security. We are advised and backed by leading venture capital firms Andreessen Horowitz, Lightspeed Venture Partners and NEA www.nicira.com Opportunity Snapshot: Nicira is looking for engineers who want to make an immediate impact. As a build and release engineer you will use your knowledge and experience building and shipping high quality software to craft a world-class build and release automation environment. You will build a repeatable process for producing the platform images for Nicira?s network virtualization product portfolio, and be responsible for care and feeding of the base OS on these products. You will work with software developers, test engineers, and product managers. We are looking for engineers who are ready to tackle some of the greatest software challenges while making an impact in shaping the next great virtualization software product. Responsibilities: ?Design, implement, and maintain automated software build and release systems to accommodate the requirements of the business, incorporate new functionality, and improve reporting. Create a virtual appliance build process capable of producing consistent and repeatable appliance images containing the base operating system and Nicira software. ?Manage the virtual appliance operating system base, monitoring security mailing lists, updating affected software incorporated in the appliance as required and developing security fixes as required. ?Work closely with upstream open source projects to adopt local changes. Package software dependencies of Nicira products. Requirements: At least 3 plus years of experience developing and/or testing in a software environment. Python experience highly desired Extensive experience in GNU make and autotools build tools Strong familiarity with software configuration management systems and source code control systems Experience packaging Linux appliances using either apt or RPM Experience with build automation and reporting Linux system administration Strong open source community relationship and ability to successfully contribute fixes and improvements to upstream open source projects Experience with virtualization systems/hypervisors. Security analysis and patching for appliance systems. git experience desired Excellent analytical skill and critical thinking. Education: A Computer Science undergraduate and/or master?s degree is required. Any other demonstrated high technology aptitude is desired. Compensation: The successful candidate will receive a highly competitive and attractive compensation package, which includes a base salary, pre-ipo stock, and excellent benefits. How To Apply: Email resumes to smo at nicira.com Mohamed Ali Recruiting Manager ? Nicira E: smo at nicira.com P: 650-390-6787 Palo Alto, CA -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.fischer at gmail.com Tue Mar 22 19:15:57 2011 From: jeffrey.fischer at gmail.com (Jeff Fischer) Date: Tue, 22 Mar 2011 11:15:57 -0700 Subject: [Baypiggies] What is the best way to release simple (Python) open source utilities? Message-ID: Hi everyone, I've written a Python utility to kill processes by name. It can save some typing if you are doing server-side development and need to kill background processes a lot. A simple implementation can be really short, but I've put the effort into giving it a decent command line interface (e.g. support interactive and non-interactive modes, different signals) and now it is about 100 lines. I'd like to share the code under a BSD license, as it might be handy for others. I could package it up with a setup.py and put it on PyPi, but that seems like overkill for a 100 line script. I could put it on github, but that also seems like overkill (or do people commonly share scripts that way?). I could wait until I have written more utilities and combine them into one larger package. Any suggestions on the best way to share this code? Thanks! - Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at mrox.net Tue Mar 22 19:22:23 2011 From: andy at mrox.net (Andy Mroczkowski) Date: Tue, 22 Mar 2011 11:22:23 -0700 Subject: [Baypiggies] What is the best way to release simple (Python) open source utilities? In-Reply-To: References: Message-ID: <39CB3D7A-C6A8-49AA-BFD8-96CEA9F369E8@mrox.net> I've seen https://gist.github.com/ used for a single script. If you're not familiar with Gist, it's essentially a simple pastebin service, but it's back by a git repo so it can be versioned. On Mar 22, 2011, at 11:15 AM, Jeff Fischer wrote: > Hi everyone, > I've written a Python utility to kill processes by name. It can save some typing if you are doing server-side development and need to kill background processes a lot. A simple implementation can be really short, but I've put the effort into giving it a decent command line interface (e.g. support interactive and non-interactive modes, different signals) and now it is about 100 lines. I'd like to share the code under a BSD license, as it might be handy for others. > > I could package it up with a setup.py and put it on PyPi, but that seems like overkill for a 100 line script. I could put it on github, but that also seems like overkill (or do people commonly share scripts that way?). I could wait until I have written more utilities and combine them into one larger package. Any suggestions on the best way to share this code? > > Thanks! > - Jeff > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From bdbaddog at gmail.com Tue Mar 22 19:25:37 2011 From: bdbaddog at gmail.com (William Deegan) Date: Tue, 22 Mar 2011 11:25:37 -0700 Subject: [Baypiggies] What is the best way to release simple (Python) open source utilities? In-Reply-To: References: Message-ID: Jeff, On Tue, Mar 22, 2011 at 11:15 AM, Jeff Fischer wrote: > Hi everyone, > ?I've written a Python utility to kill processes by name. It can save some > typing if you are doing server-side development and need to kill background > processes a lot. A simple implementation can be really short, but I've put > the effort into giving it a decent command line interface (e.g. support > interactive and non-interactive modes, different signals) and now it is > about 100 lines. I'd like to share the code under a BSD license, as it might > be handy for others. > ?I could package it up with a setup.py and put it on PyPi, but that seems > like overkill for a 100 line script. I could put it on github, but that also > seems like overkill (or do people commonly share scripts that way?). I could > wait until I have written more utilities and combine them into one larger > package. Any suggestions on the best way to share this code? +1 PyPi Easy to find, easy to install. -Bill From simeonf at gmail.com Tue Mar 22 19:25:54 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Tue, 22 Mar 2011 11:25:54 -0700 Subject: [Baypiggies] What is the best way to release simple (Python) open source utilities? In-Reply-To: References: Message-ID: On Tue, Mar 22, 2011 at 11:15 AM, Jeff Fischer wrote: > Hi everyone, > I've written a Python utility to kill processes by name. [snip] > I could package it up with a setup.py and put it on PyPi, but that seems > like overkill for a 100 line script. I could put it on github, but that also > seems like overkill (or do people commonly share scripts that way?) Hey Jeff - I've been in the same boat with a small but useful utility. I dumped mine in a github gist (https://gist.github.com/242055/) as the easiest thing to do but honestly have on my personal todo list getting it up on PyPi. Partly this would be a learning experience for me (I have never published code on PyPi) but also this seems like the pythonic thing to do - then getting the utility would be as simple as easy_install pydelatt. Would publishing simple python packages (1 file, 106 lines) be a good newbie nugget sometime? -regards Simeon Franklin From johnm at mbg.com Wed Mar 23 00:59:16 2011 From: johnm at mbg.com (John Monnich) Date: Tue, 22 Mar 2011 16:59:16 -0700 Subject: [Baypiggies] Python MySQL Sofware Engineer role with well funded start up in Mountain View In-Reply-To: <1297294037.1841.1.camel@jim-laptop> References: <1297294037.1841.1.camel@jim-laptop> Message-ID: <02ac01cbe8ed$27103d60$7530b820$@com> Greetings Baypiggies, Our cutting edge startup company in Mountain View is looking for a software engineer to join their team for a contract to hire opportunity. Requirements . BS or MS in Computer Science or equivalent . 3+ years of industry experience; Python experience a big plus . Experience designing and building database back-ends (PostgreSQL, MySQL, or NoSQL) . Experience integrating data from disparate sources . Experience designing and developing web applications . Background in analysis and visualization of geo-spatial data a plus Responsibilities . Design, develop a custom back-end for handling customer-generated and internally-generated data . Design, develop a web-based customer front-end for analysis and visualization of geo-spatial data . Internal tool development for advanced data analysis for R&D . Deployed software for hardware automation and data collection Are you available? Please send your most current resume to John at resumes at mbg.com and reference JO#JM5655. Mainz Brady Group provides technology staffing solutions to the best known companies in Software Development, Finance, Electronics/Manufacturing, Retail, R&D, Services, Biotechnology, Healthcare and Telecommunications. We specialize in Information Technology, Technical Sales and Marketing Staffing on a Contract, Contract to Hire, and Direct Hire basis. To see a complete listing of all current openings please visit us at www.mbg.com/ To download our FREE iPhone App "MBG Jobs", visit www.mbg.com/iphoneapp John Monnich Senior Staffing Specialist Mainz Brady Group, Inc. johnm at mbg.com 650.524.8849 direct | 650.649.1900 fax Technology Staffing Agency: in California and Oregon Learn more | www.mbg.com Feel free to connect with me via LinkedIn at http://www.linkedin.com/in/johnmonnich To download our FREE iPhone App "MBG Jobs", visit www.mbg.com/iphoneapp From aahz at pythoncraft.com Wed Mar 23 01:37:01 2011 From: aahz at pythoncraft.com (Aahz) Date: Tue, 22 Mar 2011 17:37:01 -0700 Subject: [Baypiggies] Egnyte jobs Message-ID: <20110323003701.GA2208@panix.com> This is obviously ripped from our python.org ad; feel free to send questions to me, but resumes should be sent to jobs at egnyte.com. Although we're advertising these as specific positions, we're overall more interested in hiring good people than filling slots. Boilerplate section: **About the company** Egnyte, the leader in Hybrid Cloud Storage solutions for businesses, is well funded and expanding rapidly. We have won the acclaim of leading publications and, more importantly, continual enthusiastic praise of loyal customers. This is an energetic and fast-paced environment. We love our work and accomplishments, and we thrive on teamwork. All of us have a roll-up-your-sleeves and get-the-job-done mentality, and we hope to add people with a similar work ethos! **What Python is used for** Our Local Cloud product is written in Python, both client and server. **Contact Info:** * **Contact**: Dan Barrick, Recruiter * **E-mail contact**: jobs at egnyte.com * **Web**: http://www.egnyte.com/ * **No telecommuting** (remove one) Individual jobs: **Job Description** Senior Engineer (Hypervisors) * Package and deploy Egnyte clients on different hypervisors * Develop kernel and file system extensions for deep integration with file systems **Requirements** * 5+ years of professional software engineering * 3+ years of professional development experience in C/C++ and GNU toolchain * Experience developing and packaging applications for one or more virtualization platforms (VMWare / Hyper-V / Xen) * Knowledge of large-scale storage and in-depth knowledge of at least one file-system * Competency with Python * Proven ability to work in a fast moving environment **Preferred** * Experience with file level protocols such as CIFS/NFS/AFP * Knowledge of NAS/SAN architectures and related protocols (iSCSI/FCP) * Experience with Linux kernel internals * BS in Computer Science or equivalent experience **Job Description** Senior Engineer (Synchronization) * Own, improve, maintain and enhance code responsible for synchronizing file systems * Specify, design and implement features that improve the utility, performance and scalability of the platform. * Enhance and extend cross-platform components that enable real-time sync of user data. * Provide engineering support for live production issues as needed. **Requirements** * 5+ years of professional software engineering * Experience in algorithm design * Expert in Python * In-depth knowledge of developing concurrent, distributed applications * Proven record in designing APIs and well-specified protocols, including web-services paradigms (REST) * Passionate about software quality * Proven ability to work in a fast moving environment * BS (or higher) in Computer Science or equivalent experience **Preferred** * Competent in Java technologies * In-depth knowledge of internet protocols * Experience with file system APIs/architecture (on Windows/Mac/Linux) **Job Description** Desktop Engineer (Mac) * Improve native desktop experience on Apple platforms * Improve installation process * Troubleshoot and fix field issues **Requirements** * 5+ years of professional software engineering experience * 2+ years of Macintosh desktop programming experience with personal projects or work * BS in Computer Science or equivalent experience * Object-oriented programming e.g. Python, Objective-C **Preferred** * In-depth knowledge of Python * Python servers and web frameworks (CherryPy, Tornado, Twisted, etc) and HTML/CSS/JS * Windows desktop application development (in addition to required experience with Mac) * Tech support or QA * Linux and other Open Source technologies -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "Beware of companies that claim to be like a family. They might not be lying." --Jill Lundquist From cappy2112 at gmail.com Wed Mar 23 02:04:07 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Tue, 22 Mar 2011 18:04:07 -0700 Subject: [Baypiggies] Are we on for Thursday or not? In-Reply-To: References: <112718.94303.qm@web39707.mail.mud.yahoo.com> Message-ID: JJ- at this point, I'd say you should do your presentation regardless of other votes or lack of. if not, it doesn't make sense to have a meeting for only a presentation which may last 30 minutes (no offense Vicky). On Tue, Mar 22, 2011 at 5:55 PM, Shannon -jj Behrens wrote: > Is anyone else interested in my Lettuce, Flask, Twilio talk? > > -jj > > On Tue, Mar 22, 2011 at 3:42 PM, wesley chun wrote: > > i don't want to postpone nor cancel our meetings... it's already hard > > enough to get everyone together even if it is once a month. > > > > i think we have more than enough material, and if not, i can always > > pull one out of my hat. > > > > cheers, > > -wesley > > > > > > On Tue, Mar 22, 2011 at 10:27 AM, Vicky Tuite wrote: > >> I'd be happy to talk about my favorite talks for about 20 minutes +- 10 > >> minutes. > >> > >> ________________________________ > >> From: Tony Cappellini > >> To: Shannon -jj Behrens > >> Cc: jim ; jim ; wesley chun > >> ; Vicky Tuite ; Ryan Larrabure > >> > >> Sent: Tue, March 22, 2011 9:45:43 AM > >> Subject: Re: Are we on for Thursday or not? > >> > >> Well, JJ's + Vicky's presentation would certainly cover enough time for > a > >> meeting. > >> > >> +1 > >> > >> On Tue, Mar 22, 2011 at 9:19 AM, Shannon -jj Behrens > >> wrote: > >>> > >>> On Mon, Mar 21, 2011 at 9:11 PM, Tony Cappellini > >>> wrote: > >>> > We only have one 20-30 minute presentation scheduled for Thursday, I > >>> > vote > >>> > that we postpone > >>> > the meeting until April. > >>> > What do other people want to do? > >>> > >>> I took really good notes at PyCon, so I could summarize those. > >>> However, what I would prefer to do is give a talk on "Behavior Driven > >>> Development for Web and Telephony Applications Using Lettuce, Flask, > >>> and Twilio". Tell me if you guys are interested, and I'll start > >>> preparing. My buddy Ryan Larrabure will probably do the talk with me. > >>> I need about an hour to give the talk. > >>> > >>> Best Regards, > >>> -jj > > > > > > > > -- > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > "Core Python", Prentice Hall, (c)2007,2001 > > "Python Fundamentals", Prentice Hall, (c)2009 > > http://corepython.com > > > > wesley.chun : wescpy-gmail.com : @wescpy > > python training and technical consulting > > cyberweb.consulting : silicon valley, ca > > http://cyberwebconsulting.com > > > > > > -- > In this life we cannot do great things. We can only do small things > with great love. -- Mother Teresa > http://jjinux.blogspot.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjinux at gmail.com Wed Mar 23 02:10:30 2011 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Tue, 22 Mar 2011 18:10:30 -0700 Subject: [Baypiggies] Are we on for Thursday or not? In-Reply-To: References: <112718.94303.qm@web39707.mail.mud.yahoo.com> Message-ID: Ok, do you want to announce it to the group: Speaker: Shannon -jj Behrens Title: Behavioral Driven Development for Telephone Applications Using Lettuce, Flask, and Twilio Behavioral driven development is a style of programming popular in the Ruby world using tools such as Cucumber and Webrat. In this talk, I'll show how the same tricks can be used in Python too, using a library called Lettuce. I'll also show off Flask which is a new micro web framework. Last of all, I'll cover Twilio which is an API that makes it easy to build telephone-based applications using web technologies. -- In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/ From cappy2112 at gmail.com Wed Mar 23 02:36:52 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Tue, 22 Mar 2011 18:36:52 -0700 Subject: [Baypiggies] Presentations for our meeting Thursday March 24 Message-ID: Vicky Tuite will talk about her favorite talks from Pycon 2011 JJ Behrens will give a presentation on Title: Behavioral Driven Development for Telephone Applications Using Lettuce, Flask, and Twilio Behavioral driven development is a style of programming popular in the Ruby world using tools such as Cucumber and Webrat. In this talk, I'll show how the same tricks can be used in Python too, using a library called Lettuce. I'll also show off Flask which is a new micro web framework. Last of all, I'll cover Twilio which is an API that makes it easy to build telephone-based applications using web -------------- next part -------------- An HTML attachment was scrubbed... URL: From Web at StevePiercy.com Wed Mar 23 03:47:22 2011 From: Web at StevePiercy.com (Steve Piercy - Web Site Builder) Date: Tue, 22 Mar 2011 19:47:22 -0700 Subject: [Baypiggies] Presentations for our meeting Thursday March 24 In-Reply-To: Message-ID: Thanks for stepping up, speakers! Looks like a good line-up. --steve On 3/22/11 at 6:36 PM, cappy2112 at gmail.com (Tony Cappellini) pronounced: > Vicky Tuite will talk about her favorite talks from Pycon 2011 > > > JJ Behrens will give a presentation on > > Title: Behavioral Driven Development for Telephone Applications Using > Lettuce, Flask, and Twilio > > Behavioral driven development is a style of programming popular in the > Ruby world using tools such as Cucumber and Webrat. In this talk, > I'll show how the same tricks can be used in Python too, using a > library called Lettuce. I'll also show off Flask which is a new micro > web framework. Last of all, I'll cover Twilio which is an API that > makes it easy to build telephone-based applications using web > > > ----- > _______________________________________________ > 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 jeffrey.fischer at gmail.com Wed Mar 23 04:12:07 2011 From: jeffrey.fischer at gmail.com (Jeff Fischer) Date: Tue, 22 Mar 2011 20:12:07 -0700 Subject: [Baypiggies] What is the best way to release simple (Python) open source utilities? In-Reply-To: References: Message-ID: Thanks to Andy, William, and Simeon for your suggestions! I wasn't aware of gist.github That might be the way to go, as it provides revision control and does not require me to maintain extra files. Installation is just download the file and stick it in your /usr/local/bin directory. I am hesitant about creating a full-on distribution needed for PyPi, as it would require the additional files and a dependency on easy_install. However, it does have the big advantage in that it is more easily discoverable. I'll be working this week or next to put another package on PyPi. If that goes well, I'll try to do the same for my process killing utility. If I get lazy and haven't done it by the end of the month, I'll stick it on gist.github. I can do a newbie nugget at some point, either on what I learned about the PyPi process or on how to build a simple command line utility (e.g. using optparse). Thanks, Jeff On Tue, Mar 22, 2011 at 11:25 AM, Simeon Franklin wrote: > On Tue, Mar 22, 2011 at 11:15 AM, Jeff Fischer > wrote: > > Hi everyone, > > I've written a Python utility to kill processes by name. [snip] > > I could package it up with a setup.py and put it on PyPi, but that seems > > like overkill for a 100 line script. I could put it on github, but that > also > > seems like overkill (or do people commonly share scripts that way?) > > Hey Jeff - > > I've been in the same boat with a small but useful utility. I dumped > mine in a github gist (https://gist.github.com/242055/) as the easiest > thing to do but honestly have on my personal todo list getting it up > on PyPi. Partly this would be a learning experience for me (I have > never published code on PyPi) but also this seems like the pythonic > thing to do - then getting the utility would be as simple as > easy_install pydelatt. > > Would publishing simple python packages (1 file, 106 lines) be a good > newbie nugget sometime? > > -regards > Simeon Franklin > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kpguy1975 at gmail.com Wed Mar 23 16:34:44 2011 From: kpguy1975 at gmail.com (Vikram K) Date: Wed, 23 Mar 2011 11:34:44 -0400 Subject: [Baypiggies] rounding off problem Message-ID: how does one round off a float number in python? i have tried this using two ways but have been unsuccessful so far: 1. IDLE 2.6.6 ==== No Subprocess ==== >>> x = 3.5666666 >>> x = round(x,3) >>> x 3.5670000000000002 [ The above works when i try doing x = round(x,2). I am working on a windows machine. The above seems to work on the linux machine of a colleague but he gets the same problem when he tries x = round(x,4)] 2. >>> from decimal import * >>> getcontext().prec = 3 >>> x = decimal(3.456654) >>> x = Decimal('3.2213333') >>> x Decimal('3.2213333') >>> getcontext().prec = 5 >>> x Decimal('3.2213333') >>> y = round(x,3) >>> y 3.2210000000000001 >>> x = 3.223344 >>> z = round(x,3) >>> z 3.2229999999999999 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.cattaneo at gmail.com Wed Mar 23 17:33:07 2011 From: stephen.cattaneo at gmail.com (Stephen Cattaneo) Date: Wed, 23 Mar 2011 09:33:07 -0700 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: >>> x = 3.223344 >>> z = round(x,3) >>> z 3.2229999999999999 >>> print z 3.223 On Wed, Mar 23, 2011 at 8:34 AM, Vikram K wrote: > how does one round off a float number in python? i have tried this using > two ways but have been unsuccessful so far: > > 1. IDLE 2.6.6 ==== No Subprocess ==== > >>> x = 3.5666666 > >>> x = round(x,3) > >>> x > 3.5670000000000002 > > [ The above works when i try doing x = round(x,2). I am working on a > windows machine. The above seems to work on the linux machine of a colleague > but he gets the same problem when he tries x = round(x,4)] > > 2. >>> from decimal import * > >>> getcontext().prec = 3 > >>> x = decimal(3.456654) > > >>> x = Decimal('3.2213333') > >>> x > Decimal('3.2213333') > >>> getcontext().prec = 5 > >>> x > Decimal('3.2213333') > >>> y = round(x,3) > >>> y > 3.2210000000000001 > >>> x = 3.223344 > >>> z = round(x,3) > >>> z > 3.2229999999999999 > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- --- Failures are finger posts on the road to achievement. -- C.S. Lewis -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimmy at retzlaff.com Wed Mar 23 17:48:06 2011 From: jimmy at retzlaff.com (Jimmy Retzlaff) Date: Wed, 23 Mar 2011 09:48:06 -0700 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: On Wed, Mar 23, 2011 at 8:34 AM, Vikram K wrote: > > how does one round off a float number in python? i have tried this using two ways but have been unsuccessful so far: > > 1. IDLE 2.6.6????? ==== No Subprocess ==== > >>> x = 3.5666666 > >>> x = round(x,3) > >>> x > 3.5670000000000002 > > [ The above works when i try doing x = round(x,2). I am working on a windows machine. The above seems to work on the linux machine of a colleague but he gets the same problem when he tries x = round(x,4)] > > 2. >>> from decimal import * > >>> getcontext().prec = 3 > >>> x = decimal(3.456654) > > >>> x = Decimal('3.2213333') > >>> x > Decimal('3.2213333') > >>> getcontext().prec = 5 > >>> x > Decimal('3.2213333') > >>> y = round(x,3) > >>> y > 3.2210000000000001 > >>> x = 3.223344 > >>> z = round(x,3) > >>> z > 3.2229999999999999 Binary floating point cannot represent 3.567 exactly (just as decimal cannot represent 1/3 exactly). Binary floating point also cannot exactly represent 3.221 or 0.1. This is not a Python limitation or a platform limitation, it's common to all platforms and languages that use binary floating point (i.e., the vast majority of languages). The print statement (actually str which is called by print) will try to make things prettier: >>> 3.567 3.5670000000000002 >>> print 3.567 3.567 >>> str(3.567) '3.567' >>> repr(3.567) '3.5670000000000002' You're on the right track trying to use Decimal (assuming you are willing to trade some speed for decimal accuracy - often desirable for financial applications), except that round converts back to binary floating point. Use the quantize method instead: >>> Decimal('3.2213333').quantize(Decimal('0.001')) Decimal("3.221") >>> str(Decimal('3.2213333').quantize(Decimal('0.001'))) '3.221' >>> print Decimal('3.2213333').quantize(Decimal('0.001')) 3.221 For a more in depth discussion, see http://docs.python.org/tutorial/floatingpoint.html Jimmy From kpguy1975 at gmail.com Wed Mar 23 19:00:42 2011 From: kpguy1975 at gmail.com (Vikram K) Date: Wed, 23 Mar 2011 14:00:42 -0400 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: I wish to avoid using print. The reason is that i wish to write these formatted values to an output file. I tried this: avg_3places = '%.3f' % (float(avg)) std_dev_3places = '%.3f' % (float(std_dev)) Some of the values are printed fine in the output file, but a few are not. Of course, there were some conditional expressions used and i am checking my code. But is it possible that python formatting in the way i have shown may fail to work properly occasionally? On Wed, Mar 23, 2011 at 12:33 PM, Stephen Cattaneo < stephen.cattaneo at gmail.com> wrote: > >>> x = 3.223344 > >>> z = round(x,3) > >>> z > 3.2229999999999999 > >>> print z > 3.223 > > > On Wed, Mar 23, 2011 at 8:34 AM, Vikram K wrote: > >> how does one round off a float number in python? i have tried this using >> two ways but have been unsuccessful so far: >> >> 1. IDLE 2.6.6 ==== No Subprocess ==== >> >>> x = 3.5666666 >> >>> x = round(x,3) >> >>> x >> 3.5670000000000002 >> >> [ The above works when i try doing x = round(x,2). I am working on a >> windows machine. The above seems to work on the linux machine of a colleague >> but he gets the same problem when he tries x = round(x,4)] >> >> 2. >>> from decimal import * >> >>> getcontext().prec = 3 >> >>> x = decimal(3.456654) >> >> >>> x = Decimal('3.2213333') >> >>> x >> Decimal('3.2213333') >> >>> getcontext().prec = 5 >> >>> x >> Decimal('3.2213333') >> >>> y = round(x,3) >> >>> y >> 3.2210000000000001 >> >>> x = 3.223344 >> >>> z = round(x,3) >> >>> z >> 3.2229999999999999 >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> http://mail.python.org/mailman/listinfo/baypiggies >> > > > > -- > --- > Failures are finger posts on the road to achievement. > > -- C.S. Lewis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tungwaiyip at yahoo.com Wed Mar 23 19:25:27 2011 From: tungwaiyip at yahoo.com (Tung Wai Yip) Date: Wed, 23 Mar 2011 11:25:27 -0700 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: The floating point representation of decimals also troubles me a lot. I often output data in json format. The output is unsightly and in many case just waste network bandwidth and storage. >>> json.dumps([1.0, 1.1, 10.1, 100.1]) '[1.0, 1.1000000000000001, 10.1, 100.09999999999999]' If print can clean it up, why isn't it applied uniformly in other situations? Just try it quickly in Javascript. It doesn't seems to suffer from similar problem. Wai Yip > I wish to avoid using print. The reason is that i wish to write these > formatted values to an output file. I tried this: > > avg_3places = '%.3f' % (float(avg)) > std_dev_3places = '%.3f' % (float(std_dev)) > > Some of the values are printed fine in the output file, but a few are > not. > Of course, there were some conditional expressions used and i am > checking my > code. But is it possible that python formatting in the way i have shown > may > fail to work properly occasionally? > > On Wed, Mar 23, 2011 at 12:33 PM, Stephen Cattaneo < > stephen.cattaneo at gmail.com> wrote: > >> >>> x = 3.223344 >> >>> z = round(x,3) >> >>> z >> 3.2229999999999999 >> >>> print z >> 3.223 >> >> >> On Wed, Mar 23, 2011 at 8:34 AM, Vikram K wrote: >> >>> how does one round off a float number in python? i have tried this >>> using >>> two ways but have been unsuccessful so far: >>> >>> 1. IDLE 2.6.6 ==== No Subprocess ==== >>> >>> x = 3.5666666 >>> >>> x = round(x,3) >>> >>> x >>> 3.5670000000000002 >>> >>> [ The above works when i try doing x = round(x,2). I am working on a >>> windows machine. The above seems to work on the linux machine of a >>> colleague >>> but he gets the same problem when he tries x = round(x,4)] >>> >>> 2. >>> from decimal import * >>> >>> getcontext().prec = 3 >>> >>> x = decimal(3.456654) >>> >>> >>> x = Decimal('3.2213333') >>> >>> x >>> Decimal('3.2213333') >>> >>> getcontext().prec = 5 >>> >>> x >>> Decimal('3.2213333') >>> >>> y = round(x,3) >>> >>> y >>> 3.2210000000000001 >>> >>> x = 3.223344 >>> >>> z = round(x,3) >>> >>> z >>> 3.2229999999999999 >>> >>> _______________________________________________ >>> Baypiggies mailing list >>> Baypiggies at python.org >>> To change your subscription options or unsubscribe: >>> http://mail.python.org/mailman/listinfo/baypiggies >>> >> >> >> >> -- >> --- >> Failures are finger posts on the road to achievement. >> >> -- C.S. Lewis From jimmy at retzlaff.com Wed Mar 23 19:30:18 2011 From: jimmy at retzlaff.com (Jimmy Retzlaff) Date: Wed, 23 Mar 2011 11:30:18 -0700 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: On Wed, Mar 23, 2011 at 11:00 AM, Vikram K wrote: > I wish to avoid using print. The reason is that i wish to write these > formatted values to an output file. I tried this: > > avg_3places = '%.3f' % (float(avg)) > std_dev_3places = '%.3f' % (float(std_dev)) > > Some of the values are printed fine in the output file, but a few are not. > Of course, there were some conditional expressions used and i am checking my > code. But is it possible that python formatting in the way i have shown may > fail to work properly occasionally? In the previous examples, everything was working properly but that doesn't mean proper operation is always what people want for this. :) The string format you show works fine for me for the values used earlier in the thread: >>> '%.3f' % 0.1 '0.100' >>> '%.3f' % 0.5 '0.500' >>> '%.3f' % round(3.5666666, 3) '3.567' >>> '%.3f' % 3.5666666 '3.567' >>> '%.3f' % 3.2213333 '3.221' >>> '%.3f' % 0.1 '0.100' There can still be "surprises" here: >>> '%.2f' % 2.675 # would you expect 2.68? '2.67' This is explained in the tutorial at http://docs.python.org/tutorial/floatingpoint.html Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From max at theslimmers.net Wed Mar 23 19:56:06 2011 From: max at theslimmers.net (Max Slimmer) Date: Wed, 23 Mar 2011 11:56:06 -0700 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: you probably want : >>> n=12345.678912 >>> n 12345.678911999999 >>> "%.3f" % n '12345.679' Max On Wed, Mar 23, 2011 at 11:00 AM, Vikram K wrote: > I wish to avoid using print. The reason is that i wish to write these > formatted values to an output file. I tried this: > > avg_3places =? '%.3f' % (float(avg)) > std_dev_3places =? '%.3f' % (float(std_dev)) > > Some of the values are printed fine in the output file, but a few are not. > Of course, there were some conditional expressions used and i am checking my > code. But is it possible that python formatting in the way i have shown may > fail to work properly occasionally? > > On Wed, Mar 23, 2011 at 12:33 PM, Stephen Cattaneo > wrote: >> >> >>> x = 3.223344 >> >>> z = round(x,3) >> >>> z >> 3.2229999999999999 >> >>> print z >> 3.223 >> >> On Wed, Mar 23, 2011 at 8:34 AM, Vikram K wrote: >>> >>> how does one round off a float number in python? i have tried this using >>> two ways but have been unsuccessful so far: >>> >>> 1. IDLE 2.6.6????? ==== No Subprocess ==== >>> >>> x = 3.5666666 >>> >>> x = round(x,3) >>> >>> x >>> 3.5670000000000002 >>> >>> [ The above works when i try doing x = round(x,2). I am working on a >>> windows machine. The above seems to work on the linux machine of a colleague >>> but he gets the same problem when he tries x = round(x,4)] >>> >>> 2. >>> from decimal import * >>> >>> getcontext().prec = 3 >>> >>> x = decimal(3.456654) >>> >>> >>> x = Decimal('3.2213333') >>> >>> x >>> Decimal('3.2213333') >>> >>> getcontext().prec = 5 >>> >>> x >>> Decimal('3.2213333') >>> >>> y = round(x,3) >>> >>> y >>> 3.2210000000000001 >>> >>> x = 3.223344 >>> >>> z = round(x,3) >>> >>> z >>> 3.2229999999999999 >>> >>> _______________________________________________ >>> Baypiggies mailing list >>> Baypiggies at python.org >>> To change your subscription options or unsubscribe: >>> http://mail.python.org/mailman/listinfo/baypiggies >> >> >> >> -- >> --- >> Failures are finger posts on the road to achievement. >> >> ?-- C.S. Lewis > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From jimmy at retzlaff.com Wed Mar 23 19:56:38 2011 From: jimmy at retzlaff.com (Jimmy Retzlaff) Date: Wed, 23 Mar 2011 11:56:38 -0700 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: On Wed, Mar 23, 2011 at 11:25 AM, Tung Wai Yip wrote: > The floating point representation of decimals also troubles me a lot. I > often output data in json format. The output is unsightly and in many case > just waste network bandwidth and storage. > > json.dumps([1.0, 1.1, 10.1, 100.1]) >>>> >>> '[1.0, 1.1000000000000001, 10.1, 100.09999999999999]' > > If print can clean it up, why isn't it applied uniformly in other > situations? > > Just try it quickly in Javascript. It doesn't seems to suffer from similar > problem. > > Wai Yip print really doesn't clean this up. It glosses over an inherent problem - translating between binary and decimal floating point is inherently inexact. It's roughly equivalent to the problem of trying to express 1/3 as a decimal. What's better, 0.3 or 0.333 or 0.33333333333333? All are inexact. 0.333 is "good enough" in some situations, but not others - the point is that you have to choose what is best in each situation. If Javascript doesn't suffer from the same problem, then it suffers from a different problem. Assuming Javascript is using the hardware accelerated support for floating point (i.e., binary floating point), then it isn't outputting the value that is truly in memory as closely as it can. If Javascript writes 100.1 out as 100.1, then try having it write out 100.09999999999999 - it will give 100.1. But what if you really wanted the more exact number? When translating from decimal to binary floating point, you end up with the exact same representation in memory for both of those numbers (and it's much closer to the long, ugly number). Language implementors have to make a choice whether to show things as accurately as possible (akin to 0.33333333333333) or assume you want the closest "simple" decimal representation (akin to 0.3). Python's implementors chose more accuracy for serialization like formats (repr, json, etc.) and simpler for human output (print, string interpolation of floats, etc.). A pretty good understanding of all this is just one web page away. :) http://docs.python.org/tutorial/floatingpoint.html Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From tungwaiyip at yahoo.com Wed Mar 23 20:35:40 2011 From: tungwaiyip at yahoo.com (Tung Wai Yip) Date: Wed, 23 Mar 2011 12:35:40 -0700 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: Thanks for the link. I'll dig deeper into it later. I'd say the trade off has becomes less clear these days when we often have to convert floating point into text string for data exchange purpose. Wai Yip > On Wed, Mar 23, 2011 at 11:25 AM, Tung Wai Yip > wrote: > >> The floating point representation of decimals also troubles me a lot. I >> often output data in json format. The output is unsightly and in many >> case >> just waste network bandwidth and storage. >> >> json.dumps([1.0, 1.1, 10.1, 100.1]) >>>>> >>>> '[1.0, 1.1000000000000001, 10.1, 100.09999999999999]' >> >> If print can clean it up, why isn't it applied uniformly in other >> situations? >> >> Just try it quickly in Javascript. It doesn't seems to suffer from >> similar >> problem. >> >> Wai Yip > > > print really doesn't clean this up. It glosses over an inherent problem - > translating between binary and decimal floating point is inherently > inexact. > It's roughly equivalent to the problem of trying to express 1/3 as a > decimal. What's better, 0.3 or 0.333 or 0.33333333333333? All are > inexact. > 0.333 is "good enough" in some situations, but not others - the point is > that you have to choose what is best in each situation. > > If Javascript doesn't suffer from the same problem, then it suffers from > a > different problem. Assuming Javascript is using the > hardware accelerated support for floating point (i.e., binary floating > point), then it isn't outputting the value that is truly in memory as > closely as it can. If Javascript writes 100.1 out as 100.1, then try > having > it write out 100.09999999999999 - it will give 100.1. But what if you > really > wanted the more exact number? When translating from decimal to binary > floating point, you end up with the exact same representation in memory > for > both of those numbers (and it's much closer to the long, ugly number). > Language implementors have to make a choice whether to show things as > accurately as possible (akin to 0.33333333333333) or assume you want the > closest "simple" decimal representation (akin to 0.3). Python's > implementors > chose more accuracy for serialization like formats (repr, json, etc.) and > simpler for human output (print, string interpolation of floats, etc.). > > A pretty good understanding of all this is just one web page away. :) > http://docs.python.org/tutorial/floatingpoint.html > > Jimmy From kpguy1975 at gmail.com Wed Mar 23 20:48:05 2011 From: kpguy1975 at gmail.com (Vikram K) Date: Wed, 23 Mar 2011 15:48:05 -0400 Subject: [Baypiggies] rounding off problem In-Reply-To: References: Message-ID: Thanks for the link. On Wed, Mar 23, 2011 at 2:56 PM, Jimmy Retzlaff wrote: > On Wed, Mar 23, 2011 at 11:25 AM, Tung Wai Yip wrote: > >> The floating point representation of decimals also troubles me a lot. I >> often output data in json format. The output is unsightly and in many case >> just waste network bandwidth and storage. >> >> json.dumps([1.0, 1.1, 10.1, 100.1]) >>>>> >>>> '[1.0, 1.1000000000000001, 10.1, 100.09999999999999]' >> >> If print can clean it up, why isn't it applied uniformly in other >> situations? >> >> Just try it quickly in Javascript. It doesn't seems to suffer from similar >> problem. >> >> Wai Yip > > > print really doesn't clean this up. It glosses over an inherent problem - > translating between binary and decimal floating point is inherently inexact. > It's roughly equivalent to the problem of trying to express 1/3 as a > decimal. What's better, 0.3 or 0.333 or 0.33333333333333? All are inexact. > 0.333 is "good enough" in some situations, but not others - the point is > that you have to choose what is best in each situation. > > If Javascript doesn't suffer from the same problem, then it suffers from a > different problem. Assuming Javascript is using the > hardware accelerated support for floating point (i.e., binary floating > point), then it isn't outputting the value that is truly in memory as > closely as it can. If Javascript writes 100.1 out as 100.1, then try having > it write out 100.09999999999999 - it will give 100.1. But what if you really > wanted the more exact number? When translating from decimal to binary > floating point, you end up with the exact same representation in memory for > both of those numbers (and it's much closer to the long, ugly number). > Language implementors have to make a choice whether to show things as > accurately as possible (akin to 0.33333333333333) or assume you want the > closest "simple" decimal representation (akin to 0.3). Python's implementors > chose more accuracy for serialization like formats (repr, json, etc.) and > simpler for human output (print, string interpolation of floats, etc.). > > A pretty good understanding of all this is just one web page away. :) > http://docs.python.org/tutorial/floatingpoint.html > > Jimmy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nad at acm.org Wed Mar 23 21:48:50 2011 From: nad at acm.org (Ned Deily) Date: Wed, 23 Mar 2011 13:48:50 -0700 Subject: [Baypiggies] rounding off problem References: Message-ID: In article , Vikram K wrote: > how does one round off a float number in python? i have tried this using two > ways but have been unsuccessful so far: > > 1. IDLE 2.6.6 ==== No Subprocess ==== > >>> x = 3.5666666 > >>> x = round(x,3) > >>> x > 3.5670000000000002 I don't think anyone has mentioned that this behavior was changed as of Python 2.7 and 3.1. "The repr() of a float x is shorter in many cases: it?s now based on the shortest decimal string that?s guaranteed to round back to x. As in previous versions of Python, it?s guaranteed that float(repr(x)) recovers x." http://docs.python.org/whatsnew/2.7.html#python-3-1-features $ python2.5 -c 'print(repr(round(3.5666666,3)))' 3.5670000000000002 $ python2.6 -c 'print(repr(round(3.5666666,3)))' 3.5670000000000002 $ python2.7 -c 'print(repr(round(3.5666666,3)))' 3.567 $ python3.1 -c 'print(repr(round(3.5666666,3)))' 3.567 $ python3.2 -c 'print(repr(round(3.5666666,3)))' 3.567 -- Ned Deily, nad at acm.org From jjinux at gmail.com Thu Mar 24 07:19:53 2011 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Wed, 23 Mar 2011 23:19:53 -0700 Subject: [Baypiggies] Presentations for our meeting Thursday March 24 In-Reply-To: References: Message-ID: On Tue, Mar 22, 2011 at 7:47 PM, Steve Piercy - Web Site Builder wrote: > Thanks for stepping up, speakers! ?Looks like a good line-up. Thanks ;) I'm not even close to being done with the talk, but the URL for it is: http://jjinux.blogspot.com/2011/03/python-behavioral-driven-development.html Happy Hacking! -jj -- In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/ From cappy2112 at gmail.com Thu Mar 24 08:02:03 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Thu, 24 Mar 2011 00:02:03 -0700 Subject: [Baypiggies] An example of a well-written book review Message-ID: This email serves two purposes. 1. To inform you about a recent book from Apress on Python Algorithms http://apress.com/book/view/1430232374 2. To give you an example of a well-written book review. http://www.baypiggies.net/user-group-association-program/BookReviews/python-algorithms-mastering-basic-algorithms-in-the-python-by-by-magnus-lie-hetland-review-coming-soon It reflects the feelings of the reviewer and specific examples of what he liked and didn't like. For all those who will be writing reviews for Baypiggies in the future, this should give you some ideas as to how to write your review. -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidmarble at gmail.com Fri Mar 25 00:14:11 2011 From: davidmarble at gmail.com (David Marble) Date: Thu, 24 Mar 2011 16:14:11 -0700 Subject: [Baypiggies] Seed-funded startup looking for a jack-of-all-trades lead web dev Message-ID: Dear Pythonistas and Python-aware email list addicts, We're looking to for our first full-time developer since taking funding. I'll be at the BayPIGgie Meetup tonight wearing an old bright green Techcrunch 50 shirt. You'll be a key team member as we grow, working with me to build out the dev team and architect for the future. We're nearing completion of an alpha version of the product, with a mobile browser version to follow and possibly native mobile apps. We closed a seed round recently and already have a number of VC firms interested in Series A if we can execute. I'd like a brilliant cohort to wade through architecture options as well as be a coding monster. Ideally you're a jack-of-all-trades, master-of-some. Perhaps you don't know everything, but given time and your ability to figure things out and get stuff done you're an invaluable asset. You'll be working with similar types. We'll be hiring a few more of them. We don't care about titles as much as cohesiveness and ability to organize and attack. There's a real-time front-end component (might fool around with gevent+gunicorn+sockiet.io, hookbox, and stuff like that), a few interesting algo problems with speed and storage issues to consider, etc. I've been building the alpha using Python/Django/jQuery/Postgres deployed on ubuntu with nginx/uwsgi, but it's early enough along that I'm open to architecture and product ideas you bring to the problem we're solving. At the moment I'm looking for an all-around multiple-hat-wearing type, but we'll quickly be moving to mobile, probably testing the waters with a mobile browser version and considering native iPhone/Android apps. So experience and connections you bring to the table across the board are valuable. You must be extremely self-motivated, well-spoken, and direct. Gregarious and funny would be nice. The team has a very straight-forward "say what you think" dynamic. We don't care about education and accolades, we care about performance, team dynamics, and beating competitors. Send me a resume and an intro with links to projects you've worked on, open source contributions / github account, or anything else we should know about you that sets you apart. Or if you have a friend who might fit the bill, let me know! Dave gmail: davidmarble -------------- next part -------------- An HTML attachment was scrubbed... URL: From nstinemates at gmail.com Fri Mar 25 00:29:34 2011 From: nstinemates at gmail.com (Nick Stinemates) Date: Thu, 24 Mar 2011 23:29:34 +0000 Subject: [Baypiggies] Seed-funded startup looking for a jack-of-all-trades lead web dev In-Reply-To: References: Message-ID: Where are you guys located? Nick On Thu, Mar 24, 2011 at 11:14 PM, David Marble wrote: > Dear Pythonistas and Python-aware email list addicts, > > We're looking to for our first full-time developer since taking funding. > I'll be at the BayPIGgie Meetup tonight wearing an old bright green > Techcrunch 50 shirt. > > You'll be a key team member as we grow, working with me to build out the > dev team and architect for the future. We're nearing completion of an alpha > version of the product, with a mobile browser version to follow and possibly > native mobile apps. We closed a seed round recently and already have a > number of VC firms interested in Series A if we can execute. > > I'd like a brilliant cohort to wade through architecture options as well as > be a coding monster. Ideally you're a jack-of-all-trades, master-of-some. > Perhaps you don't know everything, but given time and your ability to figure > things out and get stuff done you're an invaluable asset. You'll be working > with similar types. We'll be hiring a few more of them. We don't care about > titles as much as cohesiveness and ability to organize and attack. > > There's a real-time front-end component (might fool around with > gevent+gunicorn+sockiet.io, hookbox, and stuff like that), a few > interesting algo problems with speed and storage issues to consider, etc. > I've been building the alpha using Python/Django/jQuery/Postgres deployed on > ubuntu with nginx/uwsgi, but it's early enough along that I'm open to > architecture and product ideas you bring to the problem we're solving. > > At the moment I'm looking for an all-around multiple-hat-wearing type, but > we'll quickly be moving to mobile, probably testing the waters with a mobile > browser version and considering native iPhone/Android apps. So experience > and connections you bring to the table across the board are valuable. > > You must be extremely self-motivated, well-spoken, and direct. Gregarious > and funny would be nice. The team has a very straight-forward "say what you > think" dynamic. We don't care about education and accolades, we care about > performance, team dynamics, and beating competitors. > > Send me a resume and an intro with links to projects you've worked on, open > source contributions / github account, or anything else we should know about > you that sets you apart. > > Or if you have a friend who might fit the bill, let me know! > > Dave > gmail: davidmarble > > _______________________________________________ > 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 ashish.makani at gmail.com Fri Mar 25 00:54:29 2011 From: ashish.makani at gmail.com (ashish makani) Date: Thu, 24 Mar 2011 16:54:29 -0700 Subject: [Baypiggies] Presentations for our meeting Thursday March 24 In-Reply-To: References: Message-ID: Hey Pythonistas I was wondering if anybody is coming to tonight's meeting from the east bay(fremont) or thereabouts ? If yes, i need a ride Thanks a ton Best, ashish cell: 765.230.2748 On Wed, Mar 23, 2011 at 11:19 PM, Shannon -jj Behrens wrote: > On Tue, Mar 22, 2011 at 7:47 PM, Steve Piercy - Web Site Builder > wrote: > > Thanks for stepping up, speakers! Looks like a good line-up. > > Thanks ;) I'm not even close to being done with the talk, but the URL > for it is: > http://jjinux.blogspot.com/2011/03/python-behavioral-driven-development.html > > Happy Hacking! > -jj > > -- > In this life we cannot do great things. We can only do small things > with great love. -- Mother Teresa > http://jjinux.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 nstinemates at gmail.com Fri Mar 25 00:54:32 2011 From: nstinemates at gmail.com (Nick Stinemates) Date: Thu, 24 Mar 2011 23:54:32 +0000 Subject: [Baypiggies] An example of a well-written book review In-Reply-To: References: Message-ID: Are you allowed to say your own review is well written? :) Kidding... Nick On Thu, Mar 24, 2011 at 7:02 AM, Tony Cappellini wrote: > > This email serves two purposes. > > 1. To inform you about a recent book from Apress on Python Algorithms > http://apress.com/book/view/1430232374 > > 2. To give you an example of a well-written book review. > > http://www.baypiggies.net/user-group-association-program/BookReviews/python-algorithms-mastering-basic-algorithms-in-the-python-by-by-magnus-lie-hetland-review-coming-soon > > It reflects the feelings of the reviewer and specific examples of what he > liked and didn't like. > > For all those who will be writing reviews for Baypiggies in the future, > this should give you some ideas as to how to write your review. > > > > > _______________________________________________ > 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 davidmarble at gmail.com Fri Mar 25 00:57:04 2011 From: davidmarble at gmail.com (David Marble) Date: Thu, 24 Mar 2011 16:57:04 -0700 Subject: [Baypiggies] Seed-funded startup looking for a jack-of-all-trades lead web dev In-Reply-To: References: Message-ID: We don't plan on having a dedicated location during our seed stage. I'm based in Palo Alto and the rest of the team is spread out at the moment (DC, FL). We make semi-often trips to each others' city. Tech home base is here, and it's looking like if we're successful our main office will be peninsula-ish. On Thu, Mar 24, 2011 at 4:29 PM, Nick Stinemates wrote: > Where are you guys located? > > Nick > > On Thu, Mar 24, 2011 at 11:14 PM, David Marble wrote: > >> Dear Pythonistas and Python-aware email list addicts, >> >> We're looking to for our first full-time developer since taking funding. >> I'll be at the BayPIGgie Meetup tonight wearing an old bright green >> Techcrunch 50 shirt. >> >> You'll be a key team member as we grow, working with me to build out the >> dev team and architect for the future. We're nearing completion of an alpha >> version of the product, with a mobile browser version to follow and possibly >> native mobile apps. We closed a seed round recently and already have a >> number of VC firms interested in Series A if we can execute. >> >> I'd like a brilliant cohort to wade through architecture options as well >> as be a coding monster. Ideally you're a jack-of-all-trades, master-of-some. >> Perhaps you don't know everything, but given time and your ability to figure >> things out and get stuff done you're an invaluable asset. You'll be working >> with similar types. We'll be hiring a few more of them. We don't care about >> titles as much as cohesiveness and ability to organize and attack. >> >> There's a real-time front-end component (might fool around with >> gevent+gunicorn+sockiet.io, hookbox, and stuff like that), a few >> interesting algo problems with speed and storage issues to consider, etc. >> I've been building the alpha using Python/Django/jQuery/Postgres deployed on >> ubuntu with nginx/uwsgi, but it's early enough along that I'm open to >> architecture and product ideas you bring to the problem we're solving. >> >> At the moment I'm looking for an all-around multiple-hat-wearing type, but >> we'll quickly be moving to mobile, probably testing the waters with a mobile >> browser version and considering native iPhone/Android apps. So experience >> and connections you bring to the table across the board are valuable. >> >> You must be extremely self-motivated, well-spoken, and direct. Gregarious >> and funny would be nice. The team has a very straight-forward "say what you >> think" dynamic. We don't care about education and accolades, we care about >> performance, team dynamics, and beating competitors. >> >> Send me a resume and an intro with links to projects you've worked on, >> open source contributions / github account, or anything else we should know >> about you that sets you apart. >> >> Or if you have a friend who might fit the bill, let me know! >> >> Dave >> gmail: davidmarble >> >> _______________________________________________ >> 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 mjumbewu at gmail.com Fri Mar 25 01:54:58 2011 From: mjumbewu at gmail.com (Mjumbe Poe) Date: Thu, 24 Mar 2011 17:54:58 -0700 Subject: [Baypiggies] Car pooling from San Francisco Message-ID: Does anyone carpool from San Francisco for the BayPIGgies events? I and another Code for America fellow are interested in heading down, but have difficulty getting down there and back. Thanks (and we'll plan ahead a little better next time). Mjumbe 2011 Code for America Fellow -------------- next part -------------- An HTML attachment was scrubbed... URL: From wescpy at gmail.com Fri Mar 25 06:44:49 2011 From: wescpy at gmail.com (wesley chun) Date: Thu, 24 Mar 2011 22:44:49 -0700 Subject: [Baypiggies] March 24th meeting- cancelled In-Reply-To: References: Message-ID: some of you asked about my talk next Thu evening, so see the link below. again, SDForum charges an entry fee for non-members, but it's to pay for dinner, so you get something. also, if you join, you can get into all their events for free. one thing i forgot to say during random access is that the call for papers for EuroPython ends in 2 weeks!! so if you wanna go to Florence this summer (Jun 20?26), submit your paper by Apr 6. http://bit.ly/h7O6kz hope to see you there (LinkedIn next week or Florence in Jun)! -wesley ---------- Forwarded message ---------- From: wesley chun Date: Fri, Mar 18, 2011 at 10:59 AM Subject: Re: [Baypiggies] March 24th meeting- cancelled To: cappy2112 at gmail.com Cc: Baypiggies 1) i'll be giving a talk on cloud computing and Google App Engine the following week at SDForum -- http://www.sdforum.org/index.cfm?fuseaction=Page.ViewPage&PageID=642 -- if you're interested 2) there are still slots for my upcoming public Python training course May 24-26 (Tu-Th) the week before memorial day in case you have any friends/co-workers from around the world who want to come learn Python and then spend Memorial Day wknd in the bay area!! http://cyberwebconsulting.com -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Python Web Development with Django", Addison Wesley, (c) 2009 ? ? http://withdjango.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com From jjinux at gmail.com Fri Mar 25 19:43:15 2011 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Fri, 25 Mar 2011 11:43:15 -0700 Subject: [Baypiggies] slides online Message-ID: Hey guys, Thanks a lot for the chance to give my talk last night. That was a lot of fun! Here's the outline for my talk: https://github.com/jjinux/pyteladventure/raw/master/pybdd_talk.txt Here's the source code: https://github.com/jjinux/pyteladventure Happy Hacking! -jj -- In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/ From annaraven at gmail.com Sun Mar 27 06:22:57 2011 From: annaraven at gmail.com (Anna Ravenscroft) Date: Sat, 26 Mar 2011 21:22:57 -0700 Subject: [Baypiggies] Are we on for Thursday or not? In-Reply-To: References: <112718.94303.qm@web39707.mail.mud.yahoo.com> Message-ID: Okay, silly question time: WHAT DAY is the meeting? I lost track when we moved dates from 4th Thursday. Now I never know when the meetings are. Can you announce the date of the next BayPiggies meeting and remind me how to know when they are? (Cuz, I suck at datestuph - which is why I rely on things like Python datetime... ;-) On Tue, Mar 22, 2011 at 6:10 PM, Shannon -jj Behrens wrote: > Ok, do you want to announce it to the group: > > Speaker: Shannon -jj Behrens > Title: Behavioral Driven Development for Telephone Applications Using > Lettuce, Flask, and Twilio > > Behavioral driven development is a style of programming popular in the > Ruby world using tools such as Cucumber and Webrat. ?In this talk, > I'll show how the same tricks can be used in Python too, using a > library called Lettuce. ?I'll also show off Flask which is a new micro > web framework. ?Last of all, I'll cover Twilio which is an API that > makes it easy to build telephone-based applications using web > technologies. > > -- > In this life we cannot do great things. We can only do small things > with great love. -- Mother Teresa > http://jjinux.blogspot.com/ > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- cordially, Anna From Web at StevePiercy.com Sun Mar 27 06:30:26 2011 From: Web at StevePiercy.com (Steve Piercy - Web Site Builder) Date: Sat, 26 Mar 2011 21:30:26 -0700 Subject: [Baypiggies] Are we on for Thursday or not? In-Reply-To: Message-ID: On 3/26/11 at 9:22 PM, annaraven at gmail.com (Anna Ravenscroft) pronounced: >WHAT DAY is the meeting? http://baypiggies.net/ Meeting Schedule BayPIGgies meetings are held on the 4th Thursday of every month. The exceptions to the 4th Thursday are in November and December. Meetings are from 7:30 PM - 9 PM at Meeting Location Symantec Corporation Symantec Vcafe 350 Ellis Street Mountain View, CA 94043 Prior to the meeting, some BayPIGgies gather together for dinner at 6pm somewhere nearby. Discussion about this is handled on the mailing list. --steve -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA From cappy2112 at gmail.com Sun Mar 27 07:51:55 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Sat, 26 Mar 2011 22:51:55 -0700 Subject: [Baypiggies] Are we on for Thursday or not? In-Reply-To: References: <112718.94303.qm@web39707.mail.mud.yahoo.com> Message-ID: The dates haven't moved from the 4th Thursday. The website still shows this. On Sat, Mar 26, 2011 at 9:22 PM, Anna Ravenscroft wrote: > Okay, silly question time: > WHAT DAY is the meeting? I lost track when we moved dates from 4th > Thursday. Now I never know when the meetings are. Can you announce the > date of the next BayPiggies meeting and remind me how to know when > they are? (Cuz, I suck at datestuph - which is why I rely on things > like Python datetime... ;-) > > On Tue, Mar 22, 2011 at 6:10 PM, Shannon -jj Behrens > wrote: > > Ok, do you want to announce it to the group: > > > > Speaker: Shannon -jj Behrens > > Title: Behavioral Driven Development for Telephone Applications Using > > Lettuce, Flask, and Twilio > > > > Behavioral driven development is a style of programming popular in the > > Ruby world using tools such as Cucumber and Webrat. In this talk, > > I'll show how the same tricks can be used in Python too, using a > > library called Lettuce. I'll also show off Flask which is a new micro > > web framework. Last of all, I'll cover Twilio which is an API that > > makes it easy to build telephone-based applications using web > > technologies. > > > > -- > > In this life we cannot do great things. We can only do small things > > with great love. -- Mother Teresa > > http://jjinux.blogspot.com/ > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > -- > cordially, > Anna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From annaraven at gmail.com Sun Mar 27 08:19:02 2011 From: annaraven at gmail.com (Anna Ravenscroft) Date: Sat, 26 Mar 2011 23:19:02 -0700 Subject: [Baypiggies] Are we on for Thursday or not? In-Reply-To: References: <112718.94303.qm@web39707.mail.mud.yahoo.com> Message-ID: Okay - for some reason I got really confused somewhere along the line and thought it was like, 2nd Wednesday or something weird. So thanks for clearing it up. On Sat, Mar 26, 2011 at 10:51 PM, Tony Cappellini wrote: > The dates haven't moved from the 4th Thursday. > The website still shows this. > > > > On Sat, Mar 26, 2011 at 9:22 PM, Anna Ravenscroft > wrote: >> >> Okay, silly question time: >> WHAT DAY is the meeting? I lost track when we moved dates from 4th >> Thursday. Now I never know when the meetings are. Can you announce the >> date of the next BayPiggies meeting and remind me how to know when >> they are? (Cuz, I suck at datestuph - which is why I rely on things >> like Python datetime... ;-) >> >> On Tue, Mar 22, 2011 at 6:10 PM, Shannon -jj Behrens >> wrote: >> > Ok, do you want to announce it to the group: >> > >> > Speaker: Shannon -jj Behrens >> > Title: Behavioral Driven Development for Telephone Applications Using >> > Lettuce, Flask, and Twilio >> > >> > Behavioral driven development is a style of programming popular in the >> > Ruby world using tools such as Cucumber and Webrat. ?In this talk, >> > I'll show how the same tricks can be used in Python too, using a >> > library called Lettuce. ?I'll also show off Flask which is a new micro >> > web framework. ?Last of all, I'll cover Twilio which is an API that >> > makes it easy to build telephone-based applications using web >> > technologies. >> > >> > -- >> > In this life we cannot do great things. We can only do small things >> > with great love. -- Mother Teresa >> > http://jjinux.blogspot.com/ >> > _______________________________________________ >> > Baypiggies mailing list >> > Baypiggies at python.org >> > To change your subscription options or unsubscribe: >> > http://mail.python.org/mailman/listinfo/baypiggies >> > >> >> >> >> -- >> cordially, >> Anna > > -- cordially, Anna From cappy2112 at gmail.com Mon Mar 28 02:54:46 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Sun, 27 Mar 2011 17:54:46 -0700 Subject: [Baypiggies] Pycon 2011 presentations for the April Meeting Message-ID: Who would like to talk about their experiences from Pycon 2011 for the April meeting? Interested personnel: please post your topics and how long you think your presentation(s) will be so we can start voting. thanks I've got a potential presenter for May. The topic isn't related to Pycon. As soon as he sends me his abstract I'll post it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tungwaiyip at yahoo.com Tue Mar 29 01:52:25 2011 From: tungwaiyip at yahoo.com (Tung Wai Yip) Date: Mon, 28 Mar 2011 16:52:25 -0700 Subject: [Baypiggies] Unittest magic -- how to get into that exception handler? Message-ID: In my code there is a lot of result checking and exception handling code, e.g. def myfunc(): result = my_processing() if len(result) != 2: raise RuntimeException("Result not right, len=%s" % len(result)) # verified result is a sequence of len 2 as documented ... Normally, this exception handling code is never run because the error condition does not happen. But it is never a good idea to ship code that has never been run. Many times I get embarrassing problem like the error message's formating string does not match the parameter or just typo. Instead of helping, the checking code creates further complication. This is even more problematic for a dynamic language like Python with less compile time checking. So I really want to get the code to run, using automatic unit testing or other means. The conventional way to handle this is to create mock object for things like `my_processing`. I'm not a big fan of mock object. First of all I have a lot of those situations and thus a lot of things to mock. I don't like the extra layer of indirection and I find mock object are often very hackish. Plus it creates a lot of maintenance issue. When I refactor the logic, I also have to take care of the mock object or they will be the first to break. I have some idea that is to use annotation to inject code to push the execution into some path. That requires some language magic I wonder if it is feasible. For example, I'm thinking of introducing some marker like @unittest_magic. def myfunc(): result = my_processing() @unittest_magic(name="my_processing_result_validation") if len(result) != 2: raise RuntimeException("Result not right, len=%s" % len(result)) # verified result is a sequence of len 2 ... Then elsewhere I can invoke it and specified it to take on any arbitrary variable value when the execution has reached the point by: run_test(myfunc, "my_processing_result_validation", result=["dummy"]) I think this is fairly lightweight and localized magic compares to mock object. What do you think? Is it feasible? Or do you have other strategy to handle those situation? Wai Yip From alexandre.conrad at gmail.com Tue Mar 29 02:26:57 2011 From: alexandre.conrad at gmail.com (Alexandre Conrad) Date: Mon, 28 Mar 2011 17:26:57 -0700 Subject: [Baypiggies] Unittest magic -- how to get into that exception handler? In-Reply-To: References: Message-ID: Hi Tung, 2011/3/28 Tung Wai Yip : > def myfunc(): > result = my_processing() > if len(result) != 2: > raise RuntimeException("Result not right, len=%s" % len(result)) > > # verified result is a sequence of len 2 as documented > ... I use "mock.patch": http://www.voidspace.org.uk/python/mock/patch.html You can use mock.patch as a decorator or as a "with" statement. The idea is to tell mock.patch what python method/function you want to patch and it will be replaced it with a function that will return (un)expected data, such as: ---------- test ------------ def my_processing_1(): return ["foo"] def my_processing_3(): return ["foo", "bar", "baz"] # the ``my_processing`` function will be patched/replaced with the function you pass as 2nd argument to patch with patch('path.to.function.my_processing', my_processing_1): self.assertRaises(RuntimeError, myfunc) # Outside the context manager, ``my_processing`` will be unpatched as if nothing ever happened. assert myfunc() == expected_result # Patch again and expect 3 items with patch('path.to.function.my_processing', my_processing_3): self.assertRaises(RuntimeError, myfunc) ------------------------------ I hope this answers your question. Best, -- Alex | twitter.com/alexconrad From bob at eventbrite.com Tue Mar 29 02:30:20 2011 From: bob at eventbrite.com (Bob Van Zant) Date: Mon, 28 Mar 2011 17:30:20 -0700 Subject: [Baypiggies] Unittest magic -- how to get into that exception handler? In-Reply-To: References: Message-ID: Hey Wai Yip! I think a Mock is exactly what you want. In fact I think your marker proposal is basically a specialized form of monkey patching in mocks that return specified values. The mocking library I reference below does a good job of this. In the example you've given it's sort of a pain in the butt to use a mock because you have to monkey patch my_processing in order to mock it out. If your function took the processing function as an argument you could very easily: def super_bogus_processing(): return None def bad_len_processing(): return ['list of length 1'] def myfunc(processor_func=my_processing): result = processor_func() ... self.assertRaises(RuntimeException, myfunc, super_bogus_processing) self.assertRaises(RuntimeException, myfunc, bad_len_processing) super_bogus_processing exploits an unhandled exception in your sample. len of None raises TypeError. I think in this particular example, with code that's designed for it, mocking is really the way to go. A shameless plug for a mocking framework named ditto: http://code.google.com/p/ditto/. This one does a good job of Mocking existing classes and modeling their interface at runtime rather than creating some arbitrary interface that never fails when an unknown method or attribute is accessed. -Bob On Mon, Mar 28, 2011 at 4:52 PM, Tung Wai Yip wrote: > In my code there is a lot of result checking and exception handling code, > e.g. > > > def myfunc(): > ? ?result = my_processing() > ? ?if len(result) != 2: > ? ? ? ?raise RuntimeException("Result not right, len=%s" % len(result)) > > ? ?# verified result is a sequence of len 2 as documented > ? ?... > > > Normally, this exception handling code is never run because the error > condition does not happen. But it is never a good idea to ship code that has > never been run. Many times I get embarrassing problem like the error > message's formating string does not match the parameter or just typo. > Instead of helping, the checking code creates further complication. This is > even more problematic for a dynamic language like Python with less compile > time checking. > > So I really want to get the code to run, using automatic unit testing or > other means. The conventional way to handle this is to create mock object > for things like `my_processing`. I'm not a big fan of mock object. First of > all I have a lot of those situations and thus a lot of things to mock. I > don't like the extra layer of indirection and I find mock object are often > very hackish. Plus it creates a lot of maintenance issue. When I refactor > the logic, I also have to take care of the mock object or they will be the > first to break. > > I have some idea that is to use annotation to inject code to push the > execution into some path. That requires some language magic I wonder if it > is feasible. For example, I'm thinking of introducing some marker like > @unittest_magic. > > > def myfunc(): > ? ?result = my_processing() > ? ?@unittest_magic(name="my_processing_result_validation") > ? ?if len(result) != 2: > ? ? ? ?raise RuntimeException("Result not right, len=%s" % len(result)) > > ? ?# verified result is a sequence of len 2 > ? ?... > > > Then elsewhere I can invoke it and specified it to take on any arbitrary > variable value when the execution has reached the point by: > > ?run_test(myfunc, "my_processing_result_validation", result=["dummy"]) > > > I think this is fairly lightweight and localized magic compares to mock > object. What do you think? Is it feasible? Or do you have other strategy to > handle those situation? > > > Wai Yip > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From tungwaiyip at yahoo.com Tue Mar 29 18:27:52 2011 From: tungwaiyip at yahoo.com (Tung Wai Yip) Date: Tue, 29 Mar 2011 09:27:52 -0700 Subject: [Baypiggies] Unittest magic -- how to get into that exception handler? In-Reply-To: References: Message-ID: Thank you. I'll look into both framework. Monkey patching is a good thinking. I have a specific pain point that is I want to execute the error handler at least once. Since there are many error checking everywhere, I want a solution that is handy. I'm hesitant to build a full mock object because in practice, the flow is lot more complex. And I have to build a parallel mock object with precise choreography in order to drive the execution to some point. Wai Yip > Hey Wai Yip! > I think a Mock is exactly what you want. In fact I think your marker > proposal is basically a specialized form of monkey patching in mocks > that return specified values. The mocking library I reference below > does a good job of this. > > In the example you've given it's sort of a pain in the butt to use a > mock because you have to monkey patch my_processing in order to mock > it out. If your function took the processing function as an argument > you could very easily: > > def super_bogus_processing(): > return None > def bad_len_processing(): > return ['list of length 1'] > > def myfunc(processor_func=my_processing): > result = processor_func() > ... > > self.assertRaises(RuntimeException, myfunc, super_bogus_processing) > self.assertRaises(RuntimeException, myfunc, bad_len_processing) > > > super_bogus_processing exploits an unhandled exception in your sample. > len of None raises TypeError. > > I think in this particular example, with code that's designed for it, > mocking is really the way to go. > > A shameless plug for a mocking framework named ditto: > http://code.google.com/p/ditto/. This one does a good job of Mocking > existing classes and modeling their interface at runtime rather than > creating some arbitrary interface that never fails when an unknown > method or attribute is accessed. > > -Bob > > > > On Mon, Mar 28, 2011 at 4:52 PM, Tung Wai Yip > wrote: >> In my code there is a lot of result checking and exception handling >> code, >> e.g. >> >> >> def myfunc(): >> result = my_processing() >> if len(result) != 2: >> raise RuntimeException("Result not right, len=%s" % len(result)) >> >> # verified result is a sequence of len 2 as documented >> ... >> >> >> Normally, this exception handling code is never run because the error >> condition does not happen. But it is never a good idea to ship code >> that has >> never been run. Many times I get embarrassing problem like the error >> message's formating string does not match the parameter or just typo. >> Instead of helping, the checking code creates further complication. >> This is >> even more problematic for a dynamic language like Python with less >> compile >> time checking. >> >> So I really want to get the code to run, using automatic unit testing or >> other means. The conventional way to handle this is to create mock >> object >> for things like `my_processing`. I'm not a big fan of mock object. >> First of >> all I have a lot of those situations and thus a lot of things to mock. I >> don't like the extra layer of indirection and I find mock object are >> often >> very hackish. Plus it creates a lot of maintenance issue. When I >> refactor >> the logic, I also have to take care of the mock object or they will be >> the >> first to break. >> >> I have some idea that is to use annotation to inject code to push the >> execution into some path. That requires some language magic I wonder if >> it >> is feasible. For example, I'm thinking of introducing some marker like >> @unittest_magic. >> >> >> def myfunc(): >> result = my_processing() >> @unittest_magic(name="my_processing_result_validation") >> if len(result) != 2: >> raise RuntimeException("Result not right, len=%s" % len(result)) >> >> # verified result is a sequence of len 2 >> ... >> >> >> Then elsewhere I can invoke it and specified it to take on any arbitrary >> variable value when the execution has reached the point by: >> >> run_test(myfunc, "my_processing_result_validation", result=["dummy"]) >> >> >> I think this is fairly lightweight and localized magic compares to mock >> object. What do you think? Is it feasible? Or do you have other >> strategy to >> handle those situation? >> >> >> Wai Yip >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> http://mail.python.org/mailman/listinfo/baypiggies From bob at eventbrite.com Tue Mar 29 18:31:12 2011 From: bob at eventbrite.com (Bob Van Zant) Date: Tue, 29 Mar 2011 09:31:12 -0700 Subject: [Baypiggies] Unittest magic -- how to get into that exception handler? In-Reply-To: References: Message-ID: > And I have to build a parallel mock object with precise choreography in order to drive the > execution to some point. This is a sign that the code under test wasn't designed for unit testing. Consider refactoring this code to be more easily tested. In the future design for test from square 1 and you won't have this problem. -Bob > > Wai Yip > > >> Hey Wai Yip! >> I think a Mock is exactly what you want. In fact I think your marker >> proposal is basically a specialized form of monkey patching in mocks >> that return specified values. The mocking library I reference below >> does a good job of this. >> >> In the example you've given it's sort of a pain in the butt to use a >> mock because you have to monkey patch my_processing in order to mock >> it out. If your function took the processing function as an argument >> you could very easily: >> >> def super_bogus_processing(): >> ? ?return None >> def bad_len_processing(): >> ? ?return ['list of length 1'] >> >> def myfunc(processor_func=my_processing): >> ? ?result = processor_func() >> ? ?... >> >> self.assertRaises(RuntimeException, myfunc, super_bogus_processing) >> self.assertRaises(RuntimeException, myfunc, bad_len_processing) >> >> >> super_bogus_processing exploits an unhandled exception in your sample. >> len of None raises TypeError. >> >> I think in this particular example, with code that's designed for it, >> mocking is really the way to go. >> >> A shameless plug for a mocking framework named ditto: >> http://code.google.com/p/ditto/. This one does a good job of Mocking >> existing classes and modeling their interface at runtime rather than >> creating some arbitrary interface that never fails when an unknown >> method or attribute is accessed. >> >> -Bob >> >> >> >> On Mon, Mar 28, 2011 at 4:52 PM, Tung Wai Yip >> wrote: >>> >>> In my code there is a lot of result checking and exception handling code, >>> e.g. >>> >>> >>> def myfunc(): >>> ? result = my_processing() >>> ? if len(result) != 2: >>> ? ? ? raise RuntimeException("Result not right, len=%s" % len(result)) >>> >>> ? # verified result is a sequence of len 2 as documented >>> ? ... >>> >>> >>> Normally, this exception handling code is never run because the error >>> condition does not happen. But it is never a good idea to ship code that >>> has >>> never been run. Many times I get embarrassing problem like the error >>> message's formating string does not match the parameter or just typo. >>> Instead of helping, the checking code creates further complication. This >>> is >>> even more problematic for a dynamic language like Python with less >>> compile >>> time checking. >>> >>> So I really want to get the code to run, using automatic unit testing or >>> other means. The conventional way to handle this is to create mock object >>> for things like `my_processing`. I'm not a big fan of mock object. First >>> of >>> all I have a lot of those situations and thus a lot of things to mock. I >>> don't like the extra layer of indirection and I find mock object are >>> often >>> very hackish. Plus it creates a lot of maintenance issue. When I refactor >>> the logic, I also have to take care of the mock object or they will be >>> the >>> first to break. >>> >>> I have some idea that is to use annotation to inject code to push the >>> execution into some path. That requires some language magic I wonder if >>> it >>> is feasible. For example, I'm thinking of introducing some marker like >>> @unittest_magic. >>> >>> >>> def myfunc(): >>> ? result = my_processing() >>> ? @unittest_magic(name="my_processing_result_validation") >>> ? if len(result) != 2: >>> ? ? ? raise RuntimeException("Result not right, len=%s" % len(result)) >>> >>> ? # verified result is a sequence of len 2 >>> ? ... >>> >>> >>> Then elsewhere I can invoke it and specified it to take on any arbitrary >>> variable value when the execution has reached the point by: >>> >>> ?run_test(myfunc, "my_processing_result_validation", result=["dummy"]) >>> >>> >>> I think this is fairly lightweight and localized magic compares to mock >>> object. What do you think? Is it feasible? Or do you have other strategy >>> to >>> handle those situation? >>> >>> >>> Wai Yip >>> _______________________________________________ >>> 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 Mar 30 18:54:59 2011 From: glen at glenjarvis.com (Glen Jarvis) Date: Wed, 30 Mar 2011 09:54:59 -0700 Subject: [Baypiggies] Looking for Engineers Message-ID: As some of you know, my project at UC Berkeley was coming to an end. I've found myself a new home at a startup called Mobile Spinach (think Groupon on mobile phone). Our client is a web client (not native - at least not yet) using JQuery Mobile UI. There are around 10 of us at the company right now. It's a Django shop that also uses South and Piston. We're looking for more backend engineers. I don't know the details, but I said I'd put the word out and see who's interested. Please feel free to contact me off list. I don't have a lot of details yet, but I can answer at least some of the questions that you may have. And, if your still interested, I can forward your name to the hiring staff here. Please contact me off list. Cheers, Glen -- Things which matter most must never be at the mercy of things which matter least. -- Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: