From hsuclarklarry at sbcglobal.net Sun Dec 2 22:03:12 2007 From: hsuclarklarry at sbcglobal.net (Laurence Clark) Date: Sun, 02 Dec 2007 13:03:12 -0800 Subject: [Baypiggies] temporary help needed In-Reply-To: References: Message-ID: <47531D90.5060109@sbcglobal.net> "we won't have time to "teach you" and you need to be able to look at the code ... If your rate is higher than $50 an hour.. we can't afford you :-(" Is this an indicator of the current software development labor market? Someone with a lot of experience and a perfect match of very specific skill requirements gets $50 and hour for temp work with no benefits? Good thing I'm going into health-care for my day-job!. Still love hacking out code though. Too bad my days of making a decent living at it are over. I'm going to go send in my nursing school applications now. Donna Snow wrote: > Hi, > > (I posted this to plone-users but wanted to see if anyone local is > interested in helping with this project.. we are looking for a third > person to help on occasional projects so this is a good opportunity > for someone who has background in zope/plone to get to know us and > establish an ongoing relationship with our company.. ) > > We need someone who just happens to be in between projects and can > spare a week or two helping us to get caught up on an intranet project > we inherited. > > Need someone who can be brought up to speed quickly... is comfy in > Zope/Plone (2.5.3) and a good python coder with some experience in > z3..we won't have time to > "teach you" and you need to be able to look at the code .. and figure > out what it's doing.... documentation is better than it was.. but it's > still not as good as it could be... .. we need someone who can help > with development on an application and help squash bugs... (you also > need to be able to setup vpn on your machine to log into the dev > environment and must be comfortable with svn) > > Someone who can take over an application (product)..finish it and > debug it OR > > Someone who can go through an elementool bug tracker and start squashing > bugs AND/OR > > Someone who has strong templating/css skills to help with some of the form > layout work on these applications... > > we could also use someone with some strong Mochi Kit (javascript) knowledge > for some javascript debugging on one of the apps > > > If your rate is higher than $50 an hour.. we can't afford you :-( > (wish we could) but we'll consider you for projects in the future... > > I'd like to get someone started ASAP.. (so we can bring you up to speed.) > > Please submit your resume and hourly.. and your availability (offlist > please) to donna at csquaredtech.com > > No calls please > > C Squared Enterprises > illuminating your path to Open Source > http://www.csquaredtech.com > imagination | innovation | brilliance > Business 408.385.1812 > Fax 408.649.5543 > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > > From donnamsnow at gmail.com Sun Dec 2 22:37:31 2007 From: donnamsnow at gmail.com (Donna Snow) Date: Sun, 2 Dec 2007 13:37:31 -0800 Subject: [Baypiggies] temporary help needed In-Reply-To: <47531D90.5060109@sbcglobal.net> References: <47531D90.5060109@sbcglobal.net> Message-ID: Laurence, Honestly, the rate I put out there.. is definitely low.. for the Bay Area.. I filled the original request with a gentleman in a lower cost area of the country. I guess my mistake was posting such a rate on a bay area based user group. The programmer who signed on can pay his rent with less than 15 hours of work with us.. Totally understandable, if you live in as expensive area as ours (one of the MOST expensive areas in the country) the expectation is that our "hourly rate" will be more than sufficient to keep us going (pay our bills, buy us new computer bits.. etc) and these days $50 an hour barely does it.. especially if you have spouse and kids... If anyone was offended by the rate I posted..I'm sorry..it wasn't my intention to hurt anyone's feelings. If I had my druthers you'd all be making what you are worth an then some.. Laurence.. there are lots of good programming jobs out there that pay more and are worth pursuing.. I was just looking for a little help (and I got it) and it wasn't for everyone.. Best of luck with your nursing career.. I hear they get great benefits! :-) Best Regards, Donna M. Snow, Principal C Squared Enterprises illuminating your path to Open Source http://www.csquaredtech.com imagination | innovation | brilliance Business 408.385.1812 Fax 408.649.5543 On Dec 2, 2007 1:03 PM, Laurence Clark wrote: > "we won't have time to "teach you" and you need to be able to look at the code ... > If your rate is higher than $50 an hour.. we can't afford you :-(" > > > Is this an indicator of the current software development labor market? Someone with a lot of experience and a perfect match of very specific skill requirements gets $50 and hour for temp work with no benefits? Good thing I'm going into health-care for my day-job!. Still love hacking out code though. Too bad my days of making a decent living at it are over. I'm going to go send in my nursing school applications now. > > > > > > > Donna Snow wrote: > > Hi, > > > > (I posted this to plone-users but wanted to see if anyone local is > > interested in helping with this project.. we are looking for a third > > person to help on occasional projects so this is a good opportunity > > for someone who has background in zope/plone to get to know us and > > establish an ongoing relationship with our company.. ) > > > > We need someone who just happens to be in between projects and can > > spare a week or two helping us to get caught up on an intranet project > > we inherited. > > > > Need someone who can be brought up to speed quickly... is comfy in > > Zope/Plone (2.5.3) and a good python coder with some experience in > > z3..we won't have time to > > "teach you" and you need to be able to look at the code .. and figure > > out what it's doing.... documentation is better than it was.. but it's > > still not as good as it could be... .. we need someone who can help > > with development on an application and help squash bugs... (you also > > need to be able to setup vpn on your machine to log into the dev > > environment and must be comfortable with svn) > > > > Someone who can take over an application (product)..finish it and > > debug it OR > > > > Someone who can go through an elementool bug tracker and start squashing > > bugs AND/OR > > > > Someone who has strong templating/css skills to help with some of the form > > layout work on these applications... > > > > we could also use someone with some strong Mochi Kit (javascript) knowledge > > for some javascript debugging on one of the apps > > > > > > If your rate is higher than $50 an hour.. we can't afford you :-( > > (wish we could) but we'll consider you for projects in the future... > > > > I'd like to get someone started ASAP.. (so we can bring you up to speed.) > > > > Please submit your resume and hourly.. and your availability (offlist > > please) to donna at csquaredtech.com > > > > No calls please > > > > C Squared Enterprises > > illuminating your path to Open Source > > http://www.csquaredtech.com > > imagination | innovation | brilliance > > Business 408.385.1812 > > Fax 408.649.5543 > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > From jjinux at gmail.com Mon Dec 3 11:10:21 2007 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Mon, 3 Dec 2007 02:10:21 -0800 Subject: [Baypiggies] Synchronized in Python In-Reply-To: <20071125164749.GA7821@panix.com> References: <4737D78E.1020801@alluvialsw.com> <20071125164749.GA7821@panix.com> Message-ID: On Nov 25, 2007 8:47 AM, Aahz wrote: > On Sun, Nov 11, 2007, Monte Davidoff wrote: > > > > Stephen McInerney and I were talking after the last BayPIGgies meeting > > (Concurrency in Python) and thought it might be of help to post how to > > get the effect of the Java synchronized keyword in Python. (I arrived a > > little late, so perhaps this was mentioned before I got there.) This > > post is meant as a quick example, so the explanation is brief and I hope > > not too confusing. In Java, the synchronized keyword ensures that only > > one thread is executing a method or block at a time. > > Generally speaking, my recommendation is that you ensure that only one > thread has access to an object at any time. It's much simpler. Just use > a queue to pass objects between threads. You can find examples in my > thread tutorial slides. I agree. That's my favorite approach as well. /me giggles: I also like passing function references via the queue as well. It's like, "Here, call this function, but call it on your thread." ;) > Another heavy-weight option is to allow only one thread at a time to > access attributes or methods within a class. I don't have example code > handy, but you override __getattribute__ to do the locking, roughly the > same way that Monte describes for individual sections. It gets a bit > tricky with methods, and I think you may need to use a metaclass to get > it right. (IOW, I recommend against this approach, but I mention it in > case someone finds it useful.) In the past, I've found it helpful to do assertions on the thread name to make sure that certain methods only ever get called from what I think is the right thread. Just an idea. Happy Hacking! -jj -- I, for one, welcome our new Facebook overlords! http://jjinux.blogspot.com/ From aahz at pythoncraft.com Mon Dec 3 15:57:09 2007 From: aahz at pythoncraft.com (Aahz) Date: Mon, 3 Dec 2007 06:57:09 -0800 Subject: [Baypiggies] Synchronized in Python In-Reply-To: References: <4737D78E.1020801@alluvialsw.com> <20071125164749.GA7821@panix.com> Message-ID: <20071203145709.GA23198@panix.com> On Mon, Dec 03, 2007, Shannon -jj Behrens wrote: > On Nov 25, 2007 8:47 AM, Aahz wrote: >> On Sun, Nov 11, 2007, Monte Davidoff wrote: >>> >>> Stephen McInerney and I were talking after the last BayPIGgies meeting >>> (Concurrency in Python) and thought it might be of help to post how to >>> get the effect of the Java synchronized keyword in Python. (I arrived a >>> little late, so perhaps this was mentioned before I got there.) This >>> post is meant as a quick example, so the explanation is brief and I hope >>> not too confusing. In Java, the synchronized keyword ensures that only >>> one thread is executing a method or block at a time. >> >> Generally speaking, my recommendation is that you ensure that only one >> thread has access to an object at any time. It's much simpler. Just use >> a queue to pass objects between threads. You can find examples in my >> thread tutorial slides. > > I agree. That's my favorite approach as well. > > /me giggles: > I also like passing function references via the queue as well. It's > like, "Here, call this function, but call it on your thread." ;) That's a perfectly sensible way of managing callbacks. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "Typing is cheap. Thinking is expensive." --Roy Smith From eric at ericwalstad.com Wed Dec 5 18:38:01 2007 From: eric at ericwalstad.com (Eric Walstad) Date: Wed, 05 Dec 2007 09:38:01 -0800 Subject: [Baypiggies] Pythonic web comic: xkcd Message-ID: <4756E1F9.6080501@ericwalstad.com> This one is Python specific... http://xkcd.com/353/ Good day, Eric. From mikeal at osafoundation.org Thu Dec 6 02:01:35 2007 From: mikeal at osafoundation.org (Mikeal Rogers) Date: Wed, 5 Dec 2007 17:01:35 -0800 Subject: [Baypiggies] Google videos? Message-ID: <1179639D-F2FE-4373-9F29-DE891851D324@osafoundation.org> I know that the windmill talk Adam and I gave a few months back was recorded, and I missed the last meeting on concurrency which I really hope was also recorded so that I can see. Any ETA on when these will be up on google video? -Mikeal From matt at matt-good.net Thu Dec 6 07:39:31 2007 From: matt at matt-good.net (Matt Good) Date: Wed, 5 Dec 2007 22:39:31 -0800 Subject: [Baypiggies] TurboGears book and DVD for sale Message-ID: I'm trying to clean up my shelves a bit, so if anyone's interested in the TurboGears book or DVD I don't need them anymore. I don't want to clog up the list with this, so if you're interested email me off- list and I can bring them to the next meeting. I've also got other non-Python-related stuff like a couple Vi books, Design Patterns, Effective C++, and other programming books including several graphics and game programming books. If you want a list of the others email me off-list and I'll let you know. -- Matt From carl at personnelware.com Thu Dec 6 15:24:54 2007 From: carl at personnelware.com (Carl Karsten) Date: Thu, 06 Dec 2007 08:24:54 -0600 Subject: [Baypiggies] TurboGears book and DVD for sale In-Reply-To: References: Message-ID: <47580636.3020909@personnelware.com> Matt Good wrote: > I'm trying to clean up my shelves a bit, so if anyone's interested in > the TurboGears book or DVD I don't need them anymore. I don't want > to clog up the list with this, so if you're interested email me off- > list and I can bring them to the next meeting. I've also got other > non-Python-related stuff like a couple Vi books, Design Patterns, > Effective C++, and other programming books including several graphics > and game programming books. If you want a list of the others email > me off-list and I'll let you know. > Instead of typing in all the authors and titles, line them up and take a picture of the spines, like http://pictures.personnelware.com/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=4502 Carl K From doug.hellmann at gmail.com Fri Dec 7 14:27:44 2007 From: doug.hellmann at gmail.com (Doug Hellmann) Date: Fri, 7 Dec 2007 08:27:44 -0500 Subject: [Baypiggies] friendly challenge Message-ID: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> Google is running a contest for middle and high school students called the Google Highly Open Participation (GHOP) contest. The aim of the contest is to encourage young people to participate in open source projects. The contest is structured around 10 open source projects, including the Python Software Foundation. Contestants participate by completing tasks defined by the projects. If a contestant completes a task, they get a t-shirt and certificate for participating in the contest. For every 3 tasks completed, they get $100 (up to $500). There are also 10 grand prizes to be awarded, which include a free trip to the Googleplex in Mountain View. The contest is only about a week old now, and all of the tasks defined by the PSF have been claimed already! We're the first project to reach that milestone, and we're really excited about the level and quality of participation from the contestants. We are looking for more Python-oriented tasks to be completed by the contestants. The Python Users' Group in Atlanta, PyATL, hereby challenges the BayPiggies to come up with more new task ideas than we do. The winner retains bragging rights until the next GHOP. What we need from you are *ideas*. We can work out the specific details once we have a general idea (though obviously the more detail you give, the easier it is for us). Tasks need to be something which can be completed within at most 5 calendar days. They can cover areas like documentation, translation, testing, development, or outreach. We've had some surprisingly talented kids participating, so don't worry about making the tasks too hard. Each task should benefit an established open source project in some way. The most important characteristic is to make sure there is a clearly defined completion criteria, so we can tell when the task is done. For examples of the existing tasks, check out the issue list at: http://code.google.com/p/google-highly-open-participation-psf/ Is there a module or project that needs help with documentation? Is there a plugin missing for a tool you use a lot? Do you have a weekend project you've been meaning to write but never quite found the time for? Tell us about it, and maybe we'll find someone to do it for you. Doug PS - Our meeting isn't until next week so you have a head start. Use it well! :-) From daryl.spitzer at gmail.com Fri Dec 7 15:18:23 2007 From: daryl.spitzer at gmail.com (Daryl Spitzer) Date: Fri, 7 Dec 2007 06:18:23 -0800 Subject: [Baypiggies] friendly challenge In-Reply-To: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> Message-ID: Here's a couple small task ideas off the top of my head: * improve the documentation for modulefinder (http://docs.python.org/lib/module-modulefinder.html) - add examples of use, document ModuleFinder.modules * expose the modulefinder.Module class (I've needed to use Module.__file__ for example) -- Daryl On Dec 7, 2007 5:27 AM, Doug Hellmann wrote: > Google is running a contest for middle and high school students > called the Google Highly Open Participation (GHOP) contest. The aim > of the contest is to encourage young people to participate in open > source projects. The contest is structured around 10 open source > projects, including the Python Software Foundation. Contestants > participate by completing tasks defined by the projects. If a > contestant completes a task, they get a t-shirt and certificate for > participating in the contest. For every 3 tasks completed, they get > $100 (up to $500). There are also 10 grand prizes to be awarded, > which include a free trip to the Googleplex in Mountain View. > > The contest is only about a week old now, and all of the tasks > defined by the PSF have been claimed already! We're the first > project to reach that milestone, and we're really excited about the > level and quality of participation from the contestants. We are > looking for more Python-oriented tasks to be completed by the > contestants. > > > > The Python Users' Group in Atlanta, PyATL, hereby challenges the > BayPiggies to come up with more new task ideas than we do. The > winner retains bragging rights until the next GHOP. > > > > What we need from you are *ideas*. We can work out the specific > details once we have a general idea (though obviously the more > detail you give, the easier it is for us). > > Tasks need to be something which can be completed within at most 5 > calendar days. They can cover areas like documentation, translation, > testing, development, or outreach. We've had some surprisingly > talented kids participating, so don't worry about making the tasks > too hard. Each task should benefit an established open source > project in some way. The most important characteristic is to make > sure there is a clearly defined completion criteria, so we can tell > when the task is done. > > For examples of the existing tasks, check out the issue list at: > http://code.google.com/p/google-highly-open-participation-psf/ > > Is there a module or project that needs help with documentation? Is > there a plugin missing for a tool you use a lot? Do you have a > weekend project you've been meaning to write but never quite found > the time for? Tell us about it, and maybe we'll find someone to do > it for you. > > Doug > > PS - Our meeting isn't until next week so you have a head start. Use > it well! :-) > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From doug.hellmann at gmail.com Fri Dec 7 15:37:33 2007 From: doug.hellmann at gmail.com (Doug Hellmann) Date: Fri, 7 Dec 2007 09:37:33 -0500 Subject: [Baypiggies] friendly challenge In-Reply-To: References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> Message-ID: <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> On Dec 7, 2007, at 9:18 AM, Daryl Spitzer wrote: > > Here's a couple small task ideas off the top of my head: > > * improve the documentation for modulefinder > (http://docs.python.org/lib/module-modulefinder.html) - add examples > of use, document ModuleFinder.modules Documentation changes are good tasks because we can work them into a release without a PEP. I'll go ahead and add this to our pending list. > * expose the modulefinder.Module class (I've needed to use > Module.__file__ for example) Changing the interpreter or standard library modules typically require a longer approval cycle than we can use for the contest, so we've been avoiding tasks that require core code changes. Changes to third-party packages who are willing to participate in the contest are fair game, though. Thanks for the suggestions! Doug > > -- > Daryl > > > On Dec 7, 2007 5:27 AM, Doug Hellmann wrote: >> Google is running a contest for middle and high school students >> called the Google Highly Open Participation (GHOP) contest. The aim >> of the contest is to encourage young people to participate in open >> source projects. The contest is structured around 10 open source >> projects, including the Python Software Foundation. Contestants >> participate by completing tasks defined by the projects. If a >> contestant completes a task, they get a t-shirt and certificate for >> participating in the contest. For every 3 tasks completed, they get >> $100 (up to $500). There are also 10 grand prizes to be awarded, >> which include a free trip to the Googleplex in Mountain View. >> >> The contest is only about a week old now, and all of the tasks >> defined by the PSF have been claimed already! We're the first >> project to reach that milestone, and we're really excited about the >> level and quality of participation from the contestants. We are >> looking for more Python-oriented tasks to be completed by the >> contestants. >> >> >> >> The Python Users' Group in Atlanta, PyATL, hereby challenges the >> BayPiggies to come up with more new task ideas than we do. The >> winner retains bragging rights until the next GHOP. >> >> >> >> What we need from you are *ideas*. We can work out the specific >> details once we have a general idea (though obviously the more >> detail you give, the easier it is for us). >> >> Tasks need to be something which can be completed within at most 5 >> calendar days. They can cover areas like documentation, translation, >> testing, development, or outreach. We've had some surprisingly >> talented kids participating, so don't worry about making the tasks >> too hard. Each task should benefit an established open source >> project in some way. The most important characteristic is to make >> sure there is a clearly defined completion criteria, so we can tell >> when the task is done. >> >> For examples of the existing tasks, check out the issue list at: >> http://code.google.com/p/google-highly-open-participation-psf/ >> >> Is there a module or project that needs help with documentation? Is >> there a plugin missing for a tool you use a lot? Do you have a >> weekend project you've been meaning to write but never quite found >> the time for? Tell us about it, and maybe we'll find someone to do >> it for you. >> >> Doug >> >> PS - Our meeting isn't until next week so you have a head start. Use >> it well! :-) >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> http://mail.python.org/mailman/listinfo/baypiggies >> > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "Python GHOP discussions" group. > To post to this group, send email to ghop-python at googlegroups.com > To unsubscribe from this group, send email to ghop-python- > unsubscribe at googlegroups.com > For more options, visit this group at http://groups.google.com/ > group/ghop-python?hl=en > -~----------~----~----~----~------~----~------~--~--- > From lhawthorn at google.com Fri Dec 7 17:38:23 2007 From: lhawthorn at google.com (Leslie Hawthorn) Date: Fri, 7 Dec 2007 08:38:23 -0800 Subject: [Baypiggies] friendly challenge In-Reply-To: <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> Message-ID: <4869cee70712070838t2a0f47ffi7968cab2016fb80b@mail.gmail.com> Doug, I didn't think you'd actually send out this call. :) Folks, sorry I haven't been making the meetings, but I've been working on some other fun things. Like GHOP. :) Cheers, LH On Dec 7, 2007 6:37 AM, Doug Hellmann wrote: > > On Dec 7, 2007, at 9:18 AM, Daryl Spitzer wrote: > > > > > Here's a couple small task ideas off the top of my head: > > > > * improve the documentation for modulefinder > > (http://docs.python.org/lib/module-modulefinder.html) - add examples > > of use, document ModuleFinder.modules > > Documentation changes are good tasks because we can work them into a > release without a PEP. I'll go ahead and add this to our pending list. > > > * expose the modulefinder.Module class (I've needed to use > > Module.__file__ for example) > > Changing the interpreter or standard library modules typically > require a longer approval cycle than we can use for the contest, so > we've been avoiding tasks that require core code changes. Changes to > third-party packages who are willing to participate in the contest > are fair game, though. > > Thanks for the suggestions! > > Doug > > > > > -- > > Daryl > > > > > > On Dec 7, 2007 5:27 AM, Doug Hellmann wrote: > >> Google is running a contest for middle and high school students > >> called the Google Highly Open Participation (GHOP) contest. The aim > >> of the contest is to encourage young people to participate in open > >> source projects. The contest is structured around 10 open source > >> projects, including the Python Software Foundation. Contestants > >> participate by completing tasks defined by the projects. If a > >> contestant completes a task, they get a t-shirt and certificate for > >> participating in the contest. For every 3 tasks completed, they get > >> $100 (up to $500). There are also 10 grand prizes to be awarded, > >> which include a free trip to the Googleplex in Mountain View. > >> > >> The contest is only about a week old now, and all of the tasks > >> defined by the PSF have been claimed already! We're the first > >> project to reach that milestone, and we're really excited about the > >> level and quality of participation from the contestants. We are > >> looking for more Python-oriented tasks to be completed by the > >> contestants. > >> > >> > >> > >> The Python Users' Group in Atlanta, PyATL, hereby challenges the > >> BayPiggies to come up with more new task ideas than we do. The > >> winner retains bragging rights until the next GHOP. > >> > >> > >> > >> What we need from you are *ideas*. We can work out the specific > >> details once we have a general idea (though obviously the more > >> detail you give, the easier it is for us). > >> > >> Tasks need to be something which can be completed within at most 5 > >> calendar days. They can cover areas like documentation, translation, > >> testing, development, or outreach. We've had some surprisingly > >> talented kids participating, so don't worry about making the tasks > >> too hard. Each task should benefit an established open source > >> project in some way. The most important characteristic is to make > >> sure there is a clearly defined completion criteria, so we can tell > >> when the task is done. > >> > >> For examples of the existing tasks, check out the issue list at: > >> http://code.google.com/p/google-highly-open-participation-psf/ > >> > >> Is there a module or project that needs help with documentation? Is > >> there a plugin missing for a tool you use a lot? Do you have a > >> weekend project you've been meaning to write but never quite found > >> the time for? Tell us about it, and maybe we'll find someone to do > >> it for you. > >> > >> Doug > >> > >> PS - Our meeting isn't until next week so you have a head start. Use > >> it well! :-) > >> > >> _______________________________________________ > >> Baypiggies mailing list > >> Baypiggies at python.org > >> To change your subscription options or unsubscribe: > >> http://mail.python.org/mailman/listinfo/baypiggies > >> > > > > --~--~---------~--~----~------------~-------~--~----~ > > You received this message because you are subscribed to the Google > > Groups "Python GHOP discussions" group. > > To post to this group, send email to ghop-python at googlegroups.com > > To unsubscribe from this group, send email to ghop-python- > > unsubscribe at googlegroups.com > > For more options, visit this group at http://groups.google.com/ > > group/ghop-python?hl=en > > -~----------~----~----~----~------~----~------~--~--- > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- Leslie Hawthorn Program Manager - Open Source Google Inc. http://code.google.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071207/8c9e0c07/attachment.htm From keith at dartworks.biz Sat Dec 8 00:10:06 2007 From: keith at dartworks.biz (Keith Dart =?UTF-8?B?4pmC?=) Date: Fri, 7 Dec 2007 23:10:06 +0000 Subject: [Baypiggies] friendly challenge In-Reply-To: <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> Message-ID: <20071207231006.59ea2992@dartworks.biz> Doug Hellmann wrote the following on 2007-12-07 at 09:37 PST: === > Changing the interpreter or standard library modules typically > require a longer approval cycle than we can use for the contest, so > we've been avoiding tasks that require core code changes. Changes to > third-party packages who are willing to participate in the contest > are fair game, though. === I would welcome any contributions to Pycopia. ;-) http://code.google.com/p/pycopia/ There's an example of an open-source project with little documentation. -- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Dart public key: ID: 19017044 ===================================================================== From lhawthorn at google.com Sat Dec 8 00:17:46 2007 From: lhawthorn at google.com (Leslie Hawthorn) Date: Fri, 7 Dec 2007 15:17:46 -0800 Subject: [Baypiggies] friendly challenge In-Reply-To: <20071207231006.59ea2992@dartworks.biz> References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> <20071207231006.59ea2992@dartworks.biz> Message-ID: <4869cee70712071517v201324b0lc7c9e2c1ae3177a6@mail.gmail.com> Hi Keith, all, On Dec 7, 2007 3:10 PM, Keith Dart ♂ wrote: > Doug Hellmann wrote the following on 2007-12-07 at 09:37 PST: > === > > Changing the interpreter or standard library modules typically > > require a longer approval cycle than we can use for the contest, so > > we've been avoiding tasks that require core code changes. Changes to > > third-party packages who are willing to participate in the contest > > are fair game, though. > > === > > I would welcome any contributions to Pycopia. ;-) > > http://code.google.com/p/pycopia/ > > There's an example of an open-source project with little documentation. Here are the guidelines for submitting tasks: http://code.google.com/p/google-highly-open-participation-psf/wiki/NewTaskGuidelines Look forward to seeing what the Baypiggies collectively come back with. :) Cheers, LH -- Leslie Hawthorn Program Manager - Open Source Google Inc. http://code.google.com From doug.hellmann at gmail.com Sat Dec 8 00:29:06 2007 From: doug.hellmann at gmail.com (Doug Hellmann) Date: Fri, 7 Dec 2007 18:29:06 -0500 Subject: [Baypiggies] friendly challenge In-Reply-To: <4869cee70712071517v201324b0lc7c9e2c1ae3177a6@mail.gmail.com> References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> <20071207231006.59ea2992@dartworks.biz> <4869cee70712071517v201324b0lc7c9e2c1ae3177a6@mail.gmail.com> Message-ID: <95EFF454-98CE-440C-8CE9-79E932D1D34B@gmail.com> On Dec 7, 2007, at 6:17 PM, Leslie Hawthorn wrote: > Hi Keith, all, > > On Dec 7, 2007 3:10 PM, Keith Dart ? wrote: >> Doug Hellmann wrote the following on 2007-12-07 at 09:37 PST: >> === >>> Changing the interpreter or standard library modules typically >>> require a longer approval cycle than we can use for the contest, so >>> we've been avoiding tasks that require core code changes. >>> Changes to >>> third-party packages who are willing to participate in the contest >>> are fair game, though. >> >> === >> >> I would welcome any contributions to Pycopia. ;-) >> >> http://code.google.com/p/pycopia/ >> >> There's an example of an open-source project with little >> documentation. > > Here are the guidelines for submitting tasks: > http://code.google.com/p/google-highly-open-participation-psf/wiki/ > NewTaskGuidelines > > Look forward to seeing what the Baypiggies collectively come back > with. :) Absolutely! Look over the guidelines, then pick a few specific areas you'd like to have someone work on. Write up the tasks, and send them in! Doug From glen at glenjarvis.com Sun Dec 9 01:24:31 2007 From: glen at glenjarvis.com (Glen Jarvis) Date: Sat, 8 Dec 2007 16:24:31 -0800 Subject: [Baypiggies] Linked-In BayPIGgies group In-Reply-To: <4869cee70712071517v201324b0lc7c9e2c1ae3177a6@mail.gmail.com> References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> <20071207231006.59ea2992@dartworks.biz> <4869cee70712071517v201324b0lc7c9e2c1ae3177a6@mail.gmail.com> Message-ID: Admit it, social networking is all the rage. I'm not proposing to make a face book group. However, a BayPIGgies group in linked-in could be very beneficial for all of us. If a group already exists, may I have an invitation. If a group does not, may I create one and make it happen for everyone? If I do create a group, how can we test for membership? (e.g. You must have attended at least one meeting in Mountain View, or pay dues (if we had any), or whatever). Cheers, Glen Jarvis -- 415-680-3964 glen at glenjarvis.com http://www.glenjarvis.com "You must be the change you wish to see in the world." -M. Gandhi From spmcinerney at hotmail.com Sun Dec 9 05:07:00 2007 From: spmcinerney at hotmail.com (Stephen McInerney) Date: Sat, 8 Dec 2007 20:07:00 -0800 Subject: [Baypiggies] Linked-In BayPIGgies group In-Reply-To: References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> <20071207231006.59ea2992@dartworks.biz> <4869cee70712071517v201324b0lc7c9e2c1ae3177a6@mail.gmail.com> Message-ID: Glen, Personally I agree; some will not be interested. There is currently no such LinkedIn group. I asked about this before and people got confused thinking I was suggesting they would get signed up or spammed without their consent - which of course I wasn't proposing. Some people object to the privacy policies of LinkedIn, and that's their prerogative. (FaceBook is worse.) Best way to do this is to create the LinkedIn group, then mail the baypiggies list to let people know it exists and to ask you if they want an invite. > If I do create a group, how can we test for membership? (e.g. You > must have attended at least one meeting in Mountain View, or pay dues > (if we had any), or whatever). There is no such test, there are no dues, there is no member roster. You might like to only allow people who are either personally known to you or registered on the Plone site http://baypiggies.net/new/plone/author/... (I thought there used to be Plone directory of all registered members, but I can't see it now.) Regards, Stephen _________________________________________________________________ You keep typing, we keep giving. Download Messenger and join the i?m Initiative now. http://im.live.com/messenger/im/home/?source=TAGLM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071208/8c2ebcc2/attachment.htm From DennisR at dair.com Sun Dec 9 17:36:02 2007 From: DennisR at dair.com (Dennis Reinhardt) Date: Sun, 09 Dec 2007 08:36:02 -0800 Subject: [Baypiggies] Linked-In BayPIGgies group In-Reply-To: References: <504221A5-5930-42D9-9B5A-73C5A0357DFB@gmail.com> <9D01A52E-14A5-489D-939B-7941265F8FD4@gmail.com> <20071207231006.59ea2992@dartworks.biz> <4869cee70712071517v201324b0lc7c9e2c1ae3177a6@mail.gmail.com> Message-ID: <5.1.0.14.0.20071209083216.00c06ac8@localhost> At 08:07 PM 12/8/2007, Stephen McInerney wrote: >You might like to only allow people who are either personally known to you >or registered on the Plone site >http://baypiggies.net/new/plone/author/... The http://baypiggies.net domain redirects to http://baypiggies.net/new/plone and then throws off a 500 Internal Server error. When this is fixed, another alternative is invite people who have posted anything other than job announcements to the mailing list. Regards, Dennis --------------------------------- | Dennis | DennisR at dair.com | | Reinhardt | http://www.dair.com | --------------------------------- From cappy2112 at gmail.com Tue Dec 11 01:35:36 2007 From: cappy2112 at gmail.com (Tony Cappellini) Date: Mon, 10 Dec 2007 16:35:36 -0800 Subject: [Baypiggies] Looking for MAC Python users Message-ID: <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> Hello Everyone, If you're in the South Bay (near San Jose) and use Python on a Mac, please reply off-list Thanks From mrbmahoney at gmail.com Wed Dec 12 04:53:23 2007 From: mrbmahoney at gmail.com (Brian Mahoney) Date: Tue, 11 Dec 2007 19:53:23 -0800 Subject: [Baypiggies] Dinner Announcement - Thursday, December 13, 6 pm Message-ID: <5538c19b0712111953w41b11356h13becd3d3905ae1d@mail.gmail.com> For Thursday, December 13, I can coordinate a pre-meeting dinner in Mountain View, before the BayPIGgies meeting at Google . Restaurant reservations may be sent to my email until Thursday afternoon (earlier is better). We eat family-style, there are vegetarian and non-vegetarian dishes. Cost around $10 per person, including tax and tip. Bring cash, please. Start dinner at 6pm and I will keep things moving so that we finish and get everyone headed towards Google to complete sign-in before the 7:30 meeting start. The restaurant is Cafe Yulong in downtown Mountain View (650) 960-1677 743 W Dana Street, 1/2 block from Castro where Books, Inc is on the corner. Parking lots all around, but downtown Mountain View parking is still difficult. It is a slightly out of the ordinary Chinese restaurant. This link has a downtown map and additional information. http://www.mountainviewca.net/restaurants/cafeyulong.html I've made reservations under "Python" for 6pm Thursday. If you wish to join us for dinner please e-mail me by 3 pm Thursday (earlier is better) so I may confirm the headcount. From lavendula6654 at yahoo.com Thu Dec 13 01:07:12 2007 From: lavendula6654 at yahoo.com (Elaine) Date: Wed, 12 Dec 2007 16:07:12 -0800 (PST) Subject: [Baypiggies] Computer Classes at Foothill In-Reply-To: <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> Message-ID: <653605.98360.qm@web31708.mail.mud.yahoo.com> Winter quarter classes start Monday, 7 January, at Foothill College. These two may be of interest to you: 1) Introduction to Python Programming Prerequisite: Any programming language experience CIS 68K - Monday evenings at Middlefield campus in Palo Alto 2) Application Software Development with Ajax Prerequisite: Knowledge of HTML and JavaScript COIN 71 - Thursday evenings at Middlefield campus in Palo Alto If you are interested in taking a class, please register as soon as possible by going to: http://www.foothill.fhda.edu/reg/index.php If not enough students sign up, a class may be cancelled. If you have any questions, please contact the instructor, Elaine Haight, at haightElaine at foothill.edu ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From bdbaddog at gmail.com Thu Dec 13 01:10:24 2007 From: bdbaddog at gmail.com (William Deegan) Date: Wed, 12 Dec 2007 16:10:24 -0800 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? Message-ID: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> Greetings, If I execfile('abc.py') And abc.py calls function tellme(). Is there a global or a way to pass to tellme() the filename being execfile()'d? Let me know if this is not clear. Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071212/5245afa8/attachment.htm From niallo at unworkable.org Thu Dec 13 01:22:45 2007 From: niallo at unworkable.org (Niall O'Higgins) Date: Thu, 13 Dec 2007 00:22:45 +0000 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? In-Reply-To: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> References: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> Message-ID: <20071213002245.GB19226@unworkable.org> If I've understood you correctly, sys.argv[0] may be what you are looking for? E.g. $ cat blah.py import sys print sys.argv[0] $ python blah.py blah.py On Wed, Dec 12, 2007 at 04:10:24PM -0800, William Deegan wrote: > Greetings, > > > If I execfile('abc.py') > > And abc.py calls function tellme(). > Is there a global or a way to pass to tellme() the filename being > execfile()'d? > > Let me know if this is not clear. > > Thanks, > Bill > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From adam at hupp.org Thu Dec 13 01:54:42 2007 From: adam at hupp.org (Adam Hupp) Date: Wed, 12 Dec 2007 16:54:42 -0800 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? In-Reply-To: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> References: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> Message-ID: <766a29bd0712121654n40df8c57q49f9cc59549798ae@mail.gmail.com> On Dec 12, 2007 4:10 PM, William Deegan wrote: > > If I execfile('abc.py') > > And abc.py calls function tellme(). > Is there a global or a way to pass to tellme() the filename being > execfile()'d? If I understand the question correctly, I think you will have to pass it in locals: execfile("test.py", globals(), {"__file__": "test.py"}) -- Adam Hupp | http://hupp.org/adam/ From doug at apley.com Thu Dec 13 02:03:10 2007 From: doug at apley.com (Douglas Sims) Date: Wed, 12 Dec 2007 19:03:10 -0600 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? In-Reply-To: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> References: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> Message-ID: <641EB002-8900-4C6C-BFB0-47B884243344@apley.com> Interesting question. I think you can get that with: sys._getframe().f_code.co_filename Douglas Sims Doug at Apley.com On Dec 12, 2007, at 6:10 PM, William Deegan wrote: > Greetings, > > > If I execfile('abc.py') > > And abc.py calls function tellme(). > Is there a global or a way to pass to tellme() the filename being > execfile()'d? > > Let me know if this is not clear. > > Thanks, > Bill > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From doug at apley.com Thu Dec 13 02:29:29 2007 From: doug at apley.com (Douglas Sims) Date: Wed, 12 Dec 2007 19:29:29 -0600 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? In-Reply-To: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> References: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> Message-ID: <01F7A535-DEAF-468B-B719-40ED168D8146@apley.com> Interesting question. I think you can get that with: sys._getframe().f_code.co_filename Douglas Sims Doug at Apley.com On Dec 12, 2007, at 6:10 PM, William Deegan wrote: > Greetings, > > > If I execfile('abc.py') > > And abc.py calls function tellme(). > Is there a global or a way to pass to tellme() the filename being > execfile()'d? > > Let me know if this is not clear. > > Thanks, > Bill > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071212/0982ea98/attachment.htm From carl at personnelware.com Thu Dec 13 04:25:49 2007 From: carl at personnelware.com (Carl Karsten) Date: Wed, 12 Dec 2007 21:25:49 -0600 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? In-Reply-To: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> References: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> Message-ID: <4760A63D.5060504@personnelware.com> William Deegan wrote: > Greetings, > > > If I execfile('abc.py') > > And abc.py calls function tellme(). > Is there a global or a way to pass to tellme() the filename being > execfile()'d? tellme('abc.py') That is what you asked for, right? Unless one of the answers is what you need, how about some more code showing where things are, and what line you are expecting to find what. pretty sure "abc.py" is the what. Do you need the full path to it? Carl K From keith at dartworks.biz Thu Dec 13 06:01:56 2007 From: keith at dartworks.biz (Keith Dart =?UTF-8?B?4pmC?=) Date: Thu, 13 Dec 2007 05:01:56 +0000 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? In-Reply-To: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> References: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> Message-ID: <20071213050156.016ae48f@dartworks.biz> William Deegan wrote the following on 2007-12-12 at 16:10 PST: === > If I execfile('abc.py') > > And abc.py calls function tellme(). > Is there a global or a way to pass to tellme() the filename being > execfile()'d? > > Let me know if this is not clear. === Are you new to Python? It's actually rare that you would have to use execfile. Can you use a module? -- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Dart public key: ID: 19017044 ===================================================================== From bdbaddog at gmail.com Thu Dec 13 06:28:28 2007 From: bdbaddog at gmail.com (William Deegan) Date: Wed, 12 Dec 2007 21:28:28 -0800 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? In-Reply-To: <20071213050156.016ae48f@dartworks.biz> References: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> <20071213050156.016ae48f@dartworks.biz> Message-ID: <8540148a0712122128x304f4dc6ic5f8d5e40a6160f7@mail.gmail.com> On Dec 12, 2007 9:01 PM, Keith Dart ♂ wrote: > William Deegan wrote the following on 2007-12-12 at 16:10 PST: > === > > If I execfile('abc.py') > > > > And abc.py calls function tellme(). > > Is there a global or a way to pass to tellme() the filename being > > execfile()'d? > > > > Let me know if this is not clear. > > === > > Are you new to Python? It's actually rare that you would have to use > execfile. Can you use a module? It's not my code.. It's badly written python code I need to reverse engineer and replace. :) I'll create a sample and email tomorrow. Thanks for all the suggestions. I've not had a chance to try them as yet, but will tomorrow. _Bill > > > > > -- > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Keith Dart > public key: ID: 19017044 > > ===================================================================== > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071212/59df5991/attachment.htm From bdbaddog at gmail.com Thu Dec 13 20:01:57 2007 From: bdbaddog at gmail.com (William Deegan) Date: Thu, 13 Dec 2007 11:01:57 -0800 Subject: [Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled? In-Reply-To: <8540148a0712122128x304f4dc6ic5f8d5e40a6160f7@mail.gmail.com> References: <8540148a0712121610kccc2f41raca21411106529bb@mail.gmail.com> <20071213050156.016ae48f@dartworks.biz> <8540148a0712122128x304f4dc6ic5f8d5e40a6160f7@mail.gmail.com> Message-ID: <8540148a0712131101k7ece4a83i8a0f8d95f6226de5@mail.gmail.com> All, O.k. thanks for all the help. Here's sample files and output: --------execfile_slave.py----------------- # I'm the slave import sys print "BILL =%s"%BILL print "sys.argv=%s"%sys.argv[0] print "exfile =%s"%exfile print "blah =%s"%blah print "file =%s"%file print "sys._getframe().f_code.co_filename = %s"%sys._getframe().f_code.co_filename # syntax error .. print "__file__=%s\n"%mod.__file__ ----------execfile_master.py------------- #!/usr/bin/python globals_dict = { 'exfile' : 'execfile_slave.py', 'BILL' : 'MYName', } globals_dict['blah']='abcd'; print globals_dict execfile('execfile_slave.py',globals_dict) Running via: python execfile_master.py yields: > ./execfile_master.py {'blah': 'abcd', 'BILL': 'MYName', 'exfile': 'execfile_slave.py'} BILL =MYName sys.argv=./execfile_master.py exfile =execfile_slave.py blah =abcd file = sys._getframe().f_code.co_filename = execfile_slave.py So it seems the working solutions are: sys._getframe().f_code.co_filename or pass a global in the global_dict with the filename being sourced. Thanks again for all the help! As usual Baypiggies comes through. Now if I could just make it to a dang meeting. ;) -Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071213/6d2fe7df/attachment.htm From glen at glenjarvis.com Sat Dec 15 20:23:02 2007 From: glen at glenjarvis.com (Glen Jarvis) Date: Sat, 15 Dec 2007 11:23:02 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> References: <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> Message-ID: As a recent transplant to the Bay Area, I must say that I never realized how much of a geek haven this was. I knew it would be richer in geeks, but I did not know moving here would be one of the smartest decisions I ever made! I went to my second Bay Piggies meeting. And, I had an incredible time. JJ was absolutely awesome and allowed me to ride with him. And, he, his co-worker, several people he socialized with, and myself had some incredible conversations for several hours. You can't help but genuinely like all of these guys. They're fun to talk to, smart, and just 'get it' instead of getting board or eyes glassing over. And, I'm usually a very big duck in a little puddle. At BayPIGgies, I'm an itty bitty new duckling, wet behind the ears. And, there are so many people who genuinely want to help. I learned two really incredible things this time: PEP-8 and the Python Challenge. Because of the talk, I discovered the Python Challenge (http://www.pythonchallenge.com/). What a great way to challenge ourselves. The first two (0, and 1) were real easy challenges. However, instead of just marching on, I am trying to be a code nazi. I want to keep the code for each of these challenges, I want it to pass a PEP-8 level code review, and I want it to be the most 'intelligent' choice for the objective. In challenge 1, I was able to create some python code fairly quickly to translate the text enough to catch the gist fairly quickly. However, as a typical non-python coder, I used a loop instead of string.maketrans(). After reading the string module help, I was able to keep reducing and rewriting this until it was closer to what I thought the challenge wanted us to do. I would like it, if you don't mind, if you gave me a thorough peer review for such a small piece of code. I want to know anytime I break convention with PEP-8. Also, if I received replies like "crap code, dude." that, unfortunately is not helpful. What would be helpful if I heard *why* it was crap so I could learn from it. The same is true for "cool code." That doesn't tell me what my weaknesses or strengths are. I believe lines 6 and 7 can be reduced to be more readable and better written. If any (or all) can oblige, I would love to learn. Be warned, however, that this is a solution to the second Python Challenge. You should do the first two challenges yourself so there are no spoilers. I *heart* BayPIGgies! Cheers, Glen Chief Gumby on a Bicycle (i.e., the dork who has a busted shoulder) -- 415-680-3964 glen at glenjarvis.com http://www.glenjarvis.com "You must be the change you wish to see in the world." -M. Gandhi 1 #!/usr/bin/env python 2 3 import sys 4 import string 5 6 alpha_list=map(chr, range(ord('a'), ord('z') + 1)) 7 alphabet_=string.join(alpha_list, '') 8 9 re_map=alphabet_[2:] + alphabet_[:2] 10 11 trans_table = string.maketrans( alphabet_, re_map) 12 13 print "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj.".translate(trans_table) From DennisR at dair.com Sat Dec 15 21:03:44 2007 From: DennisR at dair.com (Dennis Reinhardt) Date: Sat, 15 Dec 2007 12:03:44 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: References: <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> Message-ID: <5.1.0.14.0.20071215115814.00bf52d8@localhost> > >6 alpha_list=map(chr, range(ord('a'), ord('z') + 1)) >7 alphabet_=string.join(alpha_list, '') >8 >9 re_map=alphabet_[2:] + alphabet_[:2] >10 >11 trans_table = string.maketrans( alphabet_, re_map) Seems correct but hard to read and understand what you are doing. How about trans_table = string.maketrans ( "abcdefghijklmnopqrstuvwxyz", "cdefghijklmnopqrstuvwxyzab", ) Regards, Dennis --------------------------------- | Dennis | DennisR at dair.com | | Reinhardt | http://www.dair.com | --------------------------------- From DennisR at dair.com Sat Dec 15 21:05:00 2007 From: DennisR at dair.com (Dennis Reinhardt) Date: Sat, 15 Dec 2007 12:05:00 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) Message-ID: <5.1.0.14.0.20071215120424.00c04c18@localhost> Seems correct but hard to read and understand what you are doing. How about trans_table = string.maketrans ( "abcdefghijklmnopqrstuvwxyz", "cdefghijklmnopqrstuvwxyzab", ) Ooops ... ignore the trailing "," --------------------------------- | Dennis | DennisR at dair.com | | Reinhardt | http://www.dair.com | --------------------------------- From aahz at pythoncraft.com Sat Dec 15 21:16:30 2007 From: aahz at pythoncraft.com (Aahz) Date: Sat, 15 Dec 2007 12:16:30 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: <5.1.0.14.0.20071215120424.00c04c18@localhost> References: <5.1.0.14.0.20071215120424.00c04c18@localhost> Message-ID: <20071215201629.GB2958@panix.com> On Sat, Dec 15, 2007, Dennis Reinhardt wrote: > > Seems correct but hard to read and understand what you are doing. How about > > trans_table = string.maketrans ( > "abcdefghijklmnopqrstuvwxyz", > "cdefghijklmnopqrstuvwxyzab", > ) > > Ooops ... ignore the trailing "," Actually, *don't* ignore the trailing comma; I highly recommend using one with multi-line value lists. It's not particularly useful here, but it saves a lot of work IME in other cases, and it's simply a good habit to get into. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "Typing is cheap. Thinking is expensive." --Roy Smith From aahz at pythoncraft.com Sat Dec 15 21:20:50 2007 From: aahz at pythoncraft.com (Aahz) Date: Sat, 15 Dec 2007 12:20:50 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: References: <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> Message-ID: <20071215202050.GC2958@panix.com> [quickies only, I need lunch] On Sat, Dec 15, 2007, Glen Jarvis wrote: > > 1 #!/usr/bin/env python Most people these days tend to favor specifying a direct path to Python for two reasons: * It's slightly less security risk (if something mucks with your path) * You can use another command-line parameter if necessary > 6 alpha_list=map(chr, range(ord('a'), ord('z') + 1)) > 7 alphabet_=string.join(alpha_list, '') Python is the whitespace language, use lots of it -- appropriately, of course: alpha_list = [ chr(c) for c in range(ord('a'), ord('z')+1) ] alphabet = ''.join(alpha_list) You'll also notice that I've changed your Python 1.5.2 code to match more current versions; if you sincerely are targetting 1.5.2, by all means stick with what you have. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "Typing is cheap. Thinking is expensive." --Roy Smith From glen at glenjarvis.com Sun Dec 16 01:01:00 2007 From: glen at glenjarvis.com (Glen Jarvis) Date: Sat, 15 Dec 2007 16:01:00 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: <8249c4ac0712151158r2edffc9fna4e44754b36b5a1a@mail.gmail.com> References: <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> <8249c4ac0712151158r2edffc9fna4e44754b36b5a1a@mail.gmail.com> Message-ID: Tony, The challenge start off with such a basic level, there is NO programming level necessary. In fact, I imagine most people solve riddle zero without writing any code. Although it wasn't necessary, I wrote a small program just so I could have a program for every riddle. In riddle zero, we have a photo of three numbers. That alone doesn't give us much of a clue. BUT, look at the hint that is given: "Hint: Try to change the url address." The URL address for this riddle is "http://www.pythonchallenge.com/pc/ def/0.html." Hmm.. there's a file called 0.html that is being served on the internet. And, there is a photo of three numbers. I wonder what URL they would want us to try? You can type this URL without any python knowledge. What do you think the answer is? I bet this gets you started. And, the message that you receive is another clue. Warmest Regards, Glen Jarvis -- 415-680-3964 glen at glenjarvis.com http://www.glenjarvis.com "You must be the change you wish to see in the world." -M. Gandhi On Dec 15, 2007, at 11:58 AM, Tony Cappellini wrote: > Hello Glen, > > Welcome to the Bay Aeea and baypiggies! > Regarding the python challenge- I hadn't seen this before, and I have > no web programming experience. > I am quite surprised to find this statement in the FAQ for the > python challenge > > "What level of Python knowledge is required for solving the riddles? > The riddles are designed to be solvable by Python newcomers and yet > challenging even for Python experts. If you don't know how to do a > certain thing in Python or you are referenced to an unfamiliar module > - treat it as an opportunity to learn it. Google is your friend." > > I find it hard to believe that someone new to python would be able to > solve #0 without having extensive web programming experience. > Ill have to look at the other riddles. > > > > > On Dec 15, 2007 11:23 AM, Glen Jarvis wrote: >> As a recent transplant to the Bay Area, I must say that I never >> realized how much of a geek haven this was. I knew it would be richer >> in geeks, but I did not know moving here would be one of the smartest >> decisions I ever made! >> >> I went to my second Bay Piggies meeting. And, I had an incredible >> time. JJ was absolutely awesome and allowed me to ride with him. And, >> he, his co-worker, several people he socialized with, and myself had >> some incredible conversations for several hours. You can't help but >> genuinely like all of these guys. They're fun to talk to, smart, and >> just 'get it' instead of getting board or eyes glassing over. >> >> And, I'm usually a very big duck in a little puddle. At BayPIGgies, >> I'm an itty bitty new duckling, wet behind the ears. And, there are >> so many people who genuinely want to help. >> >> I learned two really incredible things this time: PEP-8 and the >> Python Challenge. Because of the talk, I discovered the Python >> Challenge (http://www.pythonchallenge.com/). What a great way to >> challenge ourselves. The first two (0, and 1) were real easy >> challenges. However, instead of just marching on, I am trying to be a >> code nazi. I want to keep the code for each of these challenges, I >> want it to pass a PEP-8 level code review, and I want it to be the >> most 'intelligent' choice for the objective. >> >> In challenge 1, I was able to create some python code fairly quickly >> to translate the text enough to catch the gist fairly quickly. >> However, as a typical non-python coder, I used a loop instead of >> string.maketrans(). After reading the string module help, I was able >> to keep reducing and rewriting this until it was closer to what I >> thought the challenge wanted us to do. >> >> I would like it, if you don't mind, if you gave me a thorough peer >> review for such a small piece of code. I want to know anytime I break >> convention with PEP-8. Also, if I received replies like "crap code, >> dude." that, unfortunately is not helpful. What would be helpful if I >> heard *why* it was crap so I could learn from it. The same is true >> for "cool code." That doesn't tell me what my weaknesses or strengths >> are. >> >> I believe lines 6 and 7 can be reduced to be more readable and better >> written. If any (or all) can oblige, I would love to learn. Be >> warned, however, that this is a solution to the second Python >> Challenge. You should do the first two challenges yourself so there >> are no spoilers. >> >> I *heart* BayPIGgies! >> >> Cheers, >> >> >> Glen >> Chief Gumby on a Bicycle (i.e., the dork who has a busted shoulder) >> -- >> 415-680-3964 >> glen at glenjarvis.com >> http://www.glenjarvis.com >> >> "You must be the change you wish to see in the world." -M. Gandhi >> >> >> 1 #!/usr/bin/env python >> 2 >> 3 import sys >> 4 import string >> 5 >> 6 alpha_list=map(chr, range(ord('a'), ord('z') + 1)) >> 7 alphabet_=string.join(alpha_list, '') >> 8 >> 9 re_map=alphabet_[2:] + alphabet_[:2] >> 10 >> 11 trans_table = string.maketrans( alphabet_, re_map) >> 12 >> 13 print "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr >> amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw >> rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu >> ynnjw ml rfc spj.".translate(trans_table) >> >> _______________________________________________ >> 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 Sun Dec 16 01:20:14 2007 From: glen at glenjarvis.com (Glen Jarvis) Date: Sat, 15 Dec 2007 16:20:14 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: <20071215201629.GB2958@panix.com> References: <5.1.0.14.0.20071215120424.00c04c18@localhost> <20071215201629.GB2958@panix.com> Message-ID: The code reviews responses that I have received thus far have been good. I like choosing such a small program because we can talk ad- infinitum about certain decisions and why we made them. In a group like this, I'm certain we'll have plenty of opinions. So, I'd like to open the thread to discuss each of those opinions. Let's also organize our discussion by thread. -- Issue #1 -- Importing sys was not necessary. This was left over chaff from when I was using sys.exit() while debugging early on. This was something that I forgot to clean-up and was a no-no - even in such a small program. So, the suggestion to start using pychecker or pylint will solve this problem. I really *should* have done this first. Thanks for the suggestion! -- Issue #2 -- The best way to create a translate table (without hardcoding the strings). I tried using range, but wasn't using it properly. Neal's suggestion was very helpful: alphabet = ''.join(chr(c) for c in range(ord('a'), ord('z') + 1)) But, what was even MORE helpful was that I have string.lowercase built in. Doh! This is why I asked for a review of something so simple. Excellent suggestion (and why I sent this email): re_map = string.lowercase[2:] + string.lowercase[:2] trans_table = string.maketrans(string.lowercase, re_map) -- Issue #3 -- Whether to use a hard-coded string or not. That is, the following lines of code are very clear (and a good argument why they should be used): trans_table = string.maketrans ( "abcdefghijklmnopqrstuvwxyz", "cdefghijklmnopqrstuvwxyzab", ) I intentionally avoided the above because I wanted to avoid hard- coded literal strings. But, once I saw how easy Dennis' suggestion was to read I thought.. Hmmmmmm I like Dennis' better for code readability. And, the alphabet clearly fits within column 79 (even with spacing). So, This issue is probably one that will start discussion. When would we use this style and when would we not? This would have been simpler for this particular task. But, what over-all 'rule' can one follow? -- Issue #4 -- Style issues. Aaz. I personally LOVE using white-spaces. In fact, I naturally would have added a space before and after parenthesis. HOWEVER, PEP-8 is very clear about not doing this. For example: alpha_list = [ chr(c) for c in range(ord('a'), ord('z')+1) ] alphabet = ''.join(alpha_list) Above, I would have included the space between the open bracket ('[') and the chr(c). I would also have enclose a space for before the closing brace. HOWEVER, this is what PEP-8 (http://www.python.org/dev/peps/ pep-0008/) says about such matters though: Avoid extraneous whitespace in the following situations: - Immediately inside parentheses, brackets or braces. Yes: spam(ham[1], {eggs: 2}) No: spam( ham[ 1 ], { eggs: 2 } ) These comments are great. I've been programming for twenty-five years (if my Commodore-64 basic counts when I was a young waif)? Most of my experience is in C and C++. But, I've only been programming in Python for three months. And, the first is not a substitute for the second. I love learning and have a lot to do! I'd like to see more discussion on issue #3 "Hardcoded string or not?." The rest are either obvious mistakes of mine or are clearly documented. Warmest Regards, Glen Jarvis -- 415-680-3964 glen at glenjarvis.com http://www.glenjarvis.com "You must be the change you wish to see in the world." -M. Gandhi On Dec 15, 2007, at 12:16 PM, Aahz wrote: > On Sat, Dec 15, 2007, Dennis Reinhardt wrote: >> >> Seems correct but hard to read and understand what you are doing. >> How about >> >> trans_table = string.maketrans ( >> "abcdefghijklmnopqrstuvwxyz", >> "cdefghijklmnopqrstuvwxyzab", >> ) >> >> Ooops ... ignore the trailing "," > > Actually, *don't* ignore the trailing comma; I highly recommend > using one > with multi-line value lists. It's not particularly useful here, > but it > saves a lot of work IME in other cases, and it's simply a good > habit to > get into. > -- > Aahz (aahz at pythoncraft.com) <*> http:// > www.pythoncraft.com/ > > "Typing is cheap. Thinking is expensive." --Roy Smith > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From DennisR at dair.com Sun Dec 16 02:32:28 2007 From: DennisR at dair.com (Dennis Reinhardt) Date: Sat, 15 Dec 2007 17:32:28 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: References: <20071215201629.GB2958@panix.com> <5.1.0.14.0.20071215120424.00c04c18@localhost> <20071215201629.GB2958@panix.com> Message-ID: <5.1.0.14.0.20071215171501.00c01e58@localhost> At 04:20 PM 12/15/2007, Glen Jarvis wrote: >-- Issue #3 -- >Whether to use a hard-coded string or not. T > > trans_table = string.maketrans ( > "abcdefghijklmnopqrstuvwxyz", > "cdefghijklmnopqrstuvwxyzab", > ) > >So, This issue is probably one that will start discussion. When would >we use this style and when would we not? This would have been simpler >for this particular task. But, what over-all 'rule' can one follow? I use this style for real-world permutation. I did not invent it in response to your posting. Rather, I think this is the style you would use coding a real permutation. It is very limiting to define the translate table algorithmically. Using the above form, one can drag and drop to scramble the second line. This style is also very handy for permuting hex: "0123456789abcdef", "d27b3601a9f45ce8" something, I can put together with a few mouse drag and drops. By construction, it is easy to know that each character is used once and only once. When constructing synthetic strings via indexes, it is always a nagging mystery whether any character gets included twice or not at all. I would imagine that using this style for a 65K Unicode string is not practical so that would be a don't use case. regards, Dennis --------------------------------- | Dennis | DennisR at dair.com | | Reinhardt | http://www.dair.com | --------------------------------- From simeonf at gmail.com Sun Dec 16 06:56:44 2007 From: simeonf at gmail.com (Simeon Franklin) Date: Sat, 15 Dec 2007 21:56:44 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) Message-ID: > > I would like it, if you don't mind, if you gave me a thorough peer > review for such a small piece of code. I want to know anytime I break > convention with PEP-8. Also, if I received replies like "crap code, > dude." that, unfortunately is not helpful. What would be helpful if I > heard *why* it was crap so I could learn from it. The same is true > for "cool code." That doesn't tell me what my weaknesses or strengths > are. > Glenn - I've found it helpful to automatically check PEP8 compliance w/ PEP8.py(download from http://trac.browsershots.org/browser/trunk/devtools/pep8/pep8.py). Especially when my code is going to be public (like patches to Open source projects) I try to be strict about running all my python code through an automated checker. Occasionally it saves me from really dumb errors like trailing semicolons (I work daily with PHP and Javascript as well as Python; old habits are hard to break). That said - it seems to me your maybe looking not just for style guidelines like trailing whitespace and length of lines but also whether your code is "Pythonic". Some of this is just being aware of the batteries included nature of Python (which is still amazing me: I didn't know about the strings.lowercase() method till just now!) Along those however lines I highly recommend reading "Python in a Nutshell" and the "Python Cookbook" and online I've really liked Code Like a Pythonista ( http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html) which covers python style and common idioms. Lots of good stuff in there... -regards Simeon Franklin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071215/9563942c/attachment.htm From max at theslimmers.net Sun Dec 16 22:03:07 2007 From: max at theslimmers.net (Max Slimmer) Date: Sun, 16 Dec 2007 13:03:07 -0800 Subject: [Baypiggies] Dist utils including project modules Message-ID: <200712162103.lBGL3Btc031892@a.mail.sonic.net> I am trying to build a dist of a pylons project and want to include some modules that belong a higher level project directory. These modules are on my python path (in .pth file). What do I need to include in setup.py (using setuptools) such that it will find and include these modules? Thanks Max From asheesh at asheesh.org Mon Dec 17 01:30:31 2007 From: asheesh at asheesh.org (Asheesh Laroia) Date: Sun, 16 Dec 2007 16:30:31 -0800 (PST) Subject: [Baypiggies] Adding testing to screen-scraping code Message-ID: I am a (happy!) customer of a company that provides a service, but I prefer to automate my interactions with their website, so I wrote a Python module using mechanize that does that. Now that I have a hunk of code that works, and it's been working for pretty much two years with minimal fixes, I decided I'd like to add some tests. I'd like to be able to test my code without bothering the real web service. First of all, does anyone have advice? I'll say what I'm thinking: It'd be nice to have a mock HTTP server, maybe, or a mock trivial version of their web app, bundled as part of the test suite. Then I could easily set a flag in my code to ask it to use not realwebsite.com but localhost:8118 or some port, and then go through the usual methods and verify that they work. It'd be *nicest* if such a thing could be automatically generated from the calls to urllib2 or mechanize by watching the function calls and noticing their return values. Does something like this exist? Is there another angle I should consider? The reason I want something like this is that the web interface changed in a tiny way, and then my code broke. But I thought about it, and I wasn't even sure what used to work before. Thanks, all! -- Asheesh. -- FORTUNE PROVIDES QUESTIONS FOR THE GREAT ANSWERS: #15 A: The Royal Canadian Mounted Police. Q: What was the greatest achievement in taxidermy? From charles.merriam at gmail.com Mon Dec 17 06:56:12 2007 From: charles.merriam at gmail.com (Charles Merriam) Date: Sun, 16 Dec 2007 21:56:12 -0800 Subject: [Baypiggies] Adding testing to screen-scraping code In-Reply-To: References: Message-ID: Sorry, if I fail to understand. When I don't understand, I break things down into small steps where 1. You use a web hosted service which processes transcations from HTTP forms. No AJAX or JavaScript. 2. You have a scripts to automate this service to provide you a better or more programmable interface. 3. You want regression tests for your scripts to ensure that the same page from the server will cause exactly the same output from your scripts. This means you probably want: 4. A local HTTP server that checks for an exact set of inputs, and then serves up a predetermined page if they match. The page would also include the right URL and the like. 5. A tool that makes snapshotting all those pages and linking them together easy. I don't have a solution yet. Is this the problem? Charles On Dec 16, 2007 4:30 PM, Asheesh Laroia wrote: > I am a (happy!) customer of a company that provides a service, but I > prefer to automate my interactions with their website, so I wrote a Python > module using mechanize that does that. Now that I have a hunk of code > that works, and it's been working for pretty much two years with minimal > fixes, I decided I'd like to add some tests. I'd like to be able to test > my code without bothering the real web service. First of all, does anyone > have advice? > > I'll say what I'm thinking: It'd be nice to have a mock HTTP server, > maybe, or a mock trivial version of their web app, bundled as part of the > test suite. Then I could easily set a flag in my code to ask it to use > not realwebsite.com but localhost:8118 or some port, and then go through > the usual methods and verify that they work. > > It'd be *nicest* if such a thing could be automatically generated from the > calls to urllib2 or mechanize by watching the function calls and noticing > their return values. > > Does something like this exist? Is there another angle I should consider? > > The reason I want something like this is that the web interface changed in > a tiny way, and then my code broke. But I thought about it, and I wasn't > even sure what used to work before. > > Thanks, all! > > -- Asheesh. > > -- > FORTUNE PROVIDES QUESTIONS FOR THE GREAT ANSWERS: #15 > A: The Royal Canadian Mounted Police. > Q: What was the greatest achievement in taxidermy? > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From asheesh at asheesh.org Mon Dec 17 06:59:58 2007 From: asheesh at asheesh.org (Asheesh Laroia) Date: Sun, 16 Dec 2007 21:59:58 -0800 (PST) Subject: [Baypiggies] Adding testing to screen-scraping code In-Reply-To: References: Message-ID: On Sun, 16 Dec 2007, Charles Merriam wrote: > Sorry, if I fail to understand. When I don't understand, I break > things down into small steps where > > 1. You use a web hosted service which processes transcations from > HTTP forms. No AJAX or JavaScript. > 2. You have a scripts to automate this service to provide you a > better or more programmable interface. > 3. You want regression tests for your scripts to ensure that the same > page from the server will cause exactly the same output from your > scripts. Yes. > This means you probably want: > 4. A local HTTP server that checks for an exact set of inputs, and > then serves up a predetermined page if they match. The page would > also include the right URL and the like. > 5. A tool that makes snapshotting all those pages and linking them > together easy. That's right. > I don't have a solution yet. Is this the problem? Yes. I'm also interested in hearing about related tools that solve similar problems if no one knows of tools that solve exactly my problem. Thanks for rephrasing the question in a concise way! (-: -- Asheesh. -- "It says he made us all to be just like him. So if we're dumb, then god is dumb, and maybe even a little ugly on the side." -- Frank Zappa From rob at adperk.com Mon Dec 17 18:33:38 2007 From: rob at adperk.com (Robert Zuber) Date: Mon, 17 Dec 2007 09:33:38 -0800 Subject: [Baypiggies] Adding testing to screen-scraping code In-Reply-To: References: Message-ID: <9DCB8851-593E-4B36-AFC0-185F3CF0BF33@adperk.com> Asheesh, An approach I have used in the past for http unit testing is to replace a lower-level client library with a mock version, rather than implementing a fake server. I'm not familiar with the libraries you are using, but it looks like urllib2 would be a good candidate. Unless you are specifically concerned with testing the interaction of your code with urllib2, you can replace it during your unit tests with one that returns predefined results without having to cross the network. Since you will be intercepting the requests, you'll also be able to look at those and confirm that they include what you are expecting. Hope that helps, Rob. On Dec 16, 2007, at 9:59 PM, Asheesh Laroia wrote: > On Sun, 16 Dec 2007, Charles Merriam wrote: > >> Sorry, if I fail to understand. When I don't understand, I break >> things down into small steps where >> >> 1. You use a web hosted service which processes transcations from >> HTTP forms. No AJAX or JavaScript. >> 2. You have a scripts to automate this service to provide you a >> better or more programmable interface. >> 3. You want regression tests for your scripts to ensure that the >> same >> page from the server will cause exactly the same output from your >> scripts. > > Yes. > >> This means you probably want: >> 4. A local HTTP server that checks for an exact set of inputs, and >> then serves up a predetermined page if they match. The page would >> also include the right URL and the like. >> 5. A tool that makes snapshotting all those pages and linking them >> together easy. > > That's right. > >> I don't have a solution yet. Is this the problem? > > Yes. > > I'm also interested in hearing about related tools that solve > similar problems if no one knows of tools that solve exactly my > problem. > > Thanks for rephrasing the question in a concise way! (-: > > -- Asheesh. > > -- > "It says he made us all to be just like him. So if we're dumb, > then god is > dumb, and maybe even a little ugly on the side." > -- Frank Zappa > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From Chris.Clark at ingres.com Mon Dec 17 18:43:12 2007 From: Chris.Clark at ingres.com (Chris Clark) Date: Mon, 17 Dec 2007 09:43:12 -0800 Subject: [Baypiggies] Adding testing to screen-scraping code In-Reply-To: <9DCB8851-593E-4B36-AFC0-185F3CF0BF33@adperk.com> References: <9DCB8851-593E-4B36-AFC0-185F3CF0BF33@adperk.com> Message-ID: <4766B530.40409@ingres.com> On 12/17/2007 9:33 AM, Robert Zuber wrote: > An approach I have used in the past for http unit testing is to > replace a lower-level client library with a mock version, rather than > implementing a fake server. I'm not familiar with the libraries you > are using, but it looks like urllib2 would be a good candidate. > Unless you are specifically concerned with testing the interaction of > your code with urllib2, you can replace it during your unit tests > with one that returns predefined results without having to cross the > network. Since you will be intercepting the requests, you'll also be > able to look at those and confirm that they include what you are > expecting. > For a semi automated mock library/object try some of the mock libraries on PyPi that will avoid implementing the mock manually. Chris From keith at dartworks.biz Tue Dec 18 05:44:29 2007 From: keith at dartworks.biz (Keith Dart =?UTF-8?B?4pmC?=) Date: Tue, 18 Dec 2007 04:44:29 +0000 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: References: Message-ID: <20071218044429.515abbb7@dartworks.biz> Simeon Franklin wrote the following on 2007-12-15 at 21:56 PST: === > highly recommend reading "Python in a Nutshell" and the "Python Cookbook" > and online I've really liked Code Like a Pythonista ( > http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html) which > covers python style and common idioms. Lots of good stuff in there... === Don't forget this! http://docs.python.org/lib/lib.html ;-) (RTFM is also a good way to learn) -- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Dart public key: ID: 19017044 ===================================================================== From asheesh at asheesh.org Mon Dec 17 19:00:30 2007 From: asheesh at asheesh.org (Asheesh Laroia) Date: Mon, 17 Dec 2007 10:00:30 -0800 (PST) Subject: [Baypiggies] Adding testing to screen-scraping code In-Reply-To: <4766B530.40409@ingres.com> References: <9DCB8851-593E-4B36-AFC0-185F3CF0BF33@adperk.com> <4766B530.40409@ingres.com> Message-ID: On Mon, 17 Dec 2007, Chris Clark wrote: > For a semi automated mock library/object try some of the mock libraries on > PyPi > that will avoid implementing the mock manually. Those do look cool, thanks! I'd appreciate a recommendation given that there are more than a couple at this point, but there are few enough that I can figure things out if no one does suggest one in particular. (-: I am still interested in exposing the mock web service as an HTTP server, if possible, since that way I could test it a little from my web browser too and also write a e.g. Java port of my code without much trouble. Thanks for the quick recommendations! -- Asheesh. -- poverty, n.: An unfortunate state that persists as long as anyone lacks anything he would like to have. From charles.merriam at gmail.com Wed Dec 19 10:43:10 2007 From: charles.merriam at gmail.com (Charles Merriam) Date: Wed, 19 Dec 2007 01:43:10 -0800 Subject: [Baypiggies] Slides and Notes from "Buzzword Compliance" are available. Message-ID: Hello All, The slides and notes from "Buzzword Compliance", Thursday's presentation, are up. The notes contain many references and clarifications. Both are available at http://charlesmerriam.com/talk Charles Merriam From charles.merriam at gmail.com Wed Dec 19 18:45:24 2007 From: charles.merriam at gmail.com (Charles Merriam) Date: Wed, 19 Dec 2007 09:45:24 -0800 Subject: [Baypiggies] OLPC hacking this weekend... Message-ID: Hello Everyone, I just received my OLPC in the mail. I expect others also have. I'm considering hosting people at my house in Saratoga, California this weekend to hack on it. I'm assuming we will spend half our time getting development tools up and running and half the time mucking with the Sugar interface. Is anyone interested? Saturday or Sunday work? First day to get three RSVPs gets it. Charles From echerlin at gmail.com Wed Dec 19 19:55:22 2007 From: echerlin at gmail.com (Edward Cherlin) Date: Wed, 19 Dec 2007 10:55:22 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: References: Message-ID: On Dec 19, 2007 9:45 AM, Charles Merriam wrote: > Hello Everyone, > > I just received my OLPC in the mail. I expect others also have. I'm > considering hosting people at my house in Saratoga, California this > weekend to hack on it. I'm assuming we will spend half our time > getting development tools up and running and half the time mucking > with the Sugar interface. > > Is anyone interested? Saturday or Sunday work? First day to get > three RSVPs gets it. I'm in. I'll bring the B4 that Google loaned me. Saturday morning? I have a commitment to attend the Linux Cabal at 4 pm. Heather Stern and I have an idea for a Sugar factory. We have the Python code for Sugarizing two non-Python activities, one quite minimal (SimCity), and one that we are told is complete (Etoys). See Sugarizing on the laptop Wiki. OLPC needs a developer manual. See http://wiki.laptop.org/go/Programming_for_Children. Everybody is welcome to join in the process. > Charles > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- Edward Cherlin Earth Treasury: End Poverty at a Profit http://www.EarthTreasury.org/ "The best way to predict the future is to invent it."--Alan Kay From amax at redsymbol.net Wed Dec 19 22:12:53 2007 From: amax at redsymbol.net (Aaron Maxwell) Date: Wed, 19 Dec 2007 13:12:53 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: References: Message-ID: <200712191312.53382.amax@redsymbol.net> I'll be out of town, but when I get back in January I'll have my XO and would love to meet up at something like this. So if you (or anyone else) hosts it again then, please let us know! -Aaron On Wednesday 19 December 2007 09:45:24 Charles Merriam wrote: > Hello Everyone, > > I just received my OLPC in the mail. I expect others also have. I'm > considering hosting people at my house in Saratoga, California this > weekend to hack on it. I'm assuming we will spend half our time > getting development tools up and running and half the time mucking > with the Sugar interface. > > Is anyone interested? Saturday or Sunday work? First day to get > three RSVPs gets it. > > Charles > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -- Aaron Maxwell http://redsymbol.net Business Owners and Self-Employed: You're NOT Alone! The Business Butler - http://businessbutler.us From asheesh at asheesh.org Wed Dec 19 22:16:07 2007 From: asheesh at asheesh.org (Asheesh Laroia) Date: Wed, 19 Dec 2007 13:16:07 -0800 (PST) Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: <200712191312.53382.amax@redsymbol.net> References: <200712191312.53382.amax@redsymbol.net> Message-ID: On Wed, 19 Dec 2007, Aaron Maxwell wrote: > I'll be out of town, but when I get back in January I'll have my XO and > would love to meet up at something like this. So if you (or anyone > else) hosts it again then, please let us know! I could join, too, after December 31 (will be out of town until then), and I've actually already made an activity (for Creative Commons; if you're on the devel list, you should see a new announcement about it really soon!). -- Asheesh. -- A team effort is a lot of people doing what I say. -- Michael Winner, British film director From glen at glenjarvis.com Wed Dec 19 19:26:16 2007 From: glen at glenjarvis.com (Glen Jarvis) Date: Wed, 19 Dec 2007 10:26:16 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: References: Message-ID: No way! I checked my mailbox last night again.... anxious.... I think I'm worse than a five year old at Christmas... I hadn't yet received my XO. I'm in San Francisco.... I'm really interested in what happens during this session... even if I only emulate and just listen, it sounds fun. I'm not sure how much free time I'll have this weekend, I'll tentative RSVP to 'any day' cheers, glen -- 415-680-3964 glen at glenjarvis.com http://www.glenjarvis.com "You must be the change you wish to see in the world." -M. Gandhi On Dec 19, 2007, at 9:45 AM, Charles Merriam wrote: > Hello Everyone, > > I just received my OLPC in the mail. I expect others also have. I'm > considering hosting people at my house in Saratoga, California this > weekend to hack on it. I'm assuming we will spend half our time > getting development tools up and running and half the time mucking > with the Sugar interface. > > Is anyone interested? Saturday or Sunday work? First day to get > three RSVPs gets it. > > Charles > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From charles.merriam at gmail.com Wed Dec 19 23:12:11 2007 From: charles.merriam at gmail.com (Charles Merriam) Date: Wed, 19 Dec 2007 14:12:11 -0800 Subject: [Baypiggies] OLPC hacking on Saturday, December 22. 10 a.m. to 6ish? Message-ID: WHAT: Hacking with the OLPC, Python, and the Sugar Environment. BRING: Your OLPC (XO) if you have one, and a laptop if you have one. WHY: You want to play with an OLPC, or want to start developing for it. WHEN: Saturday, December 22, 2007. Starting at 10 a.m., going until we stop. CHILDREN: The house is generally kid-safe, and we have a four year old and a baby. Usually, the more the merrier, but check in with us first (charles.merriam at gmail.com). WHERE: My house. It's next to Westgate mall in Saratoga. RSVP for directions. WHY Again: It's fun. RSVP: Please. charles.merriam at gmail.com. Email with any questions to charles.merriam at gmail.com, or call me at 408.368.6050 From cvanarsdall at mvista.com Wed Dec 19 23:36:04 2007 From: cvanarsdall at mvista.com (Carl J. Van Arsdall) Date: Wed, 19 Dec 2007 14:36:04 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: References: Message-ID: <47699CD4.6020306@mvista.com> So I wonder... are the XO hackers planning on creating any new projects with the results of the hacking session? Glen Jarvis wrote: > No way! I checked my mailbox last night again.... anxious.... I think > I'm worse than a five year old at Christmas... I hadn't yet received > my XO. I'm in San Francisco.... I'm really interested in what > happens during this session... even if I only emulate and just > listen, it sounds fun. > > I'm not sure how much free time I'll have this weekend, I'll > tentative RSVP to 'any day' > > cheers, > > > glen > -- > 415-680-3964 > glen at glenjarvis.com > http://www.glenjarvis.com > > "You must be the change you wish to see in the world." -M. Gandhi > > > On Dec 19, 2007, at 9:45 AM, Charles Merriam wrote: > > >> Hello Everyone, >> >> I just received my OLPC in the mail. I expect others also have. I'm >> considering hosting people at my house in Saratoga, California this >> weekend to hack on it. I'm assuming we will spend half our time >> getting development tools up and running and half the time mucking >> with the Sugar interface. >> >> Is anyone interested? Saturday or Sunday work? First day to get >> three RSVPs gets it. >> >> Charles >> _______________________________________________ >> 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 > -- Carl J. Van Arsdall cvanarsdall at mvista.com Build and Release MontaVista Software From timjohnson at google.com Thu Dec 20 00:36:36 2007 From: timjohnson at google.com (Tim Johnson) Date: Wed, 19 Dec 2007 15:36:36 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: References: Message-ID: Did it come via USPS? On Dec 19, 2007 9:45 AM, Charles Merriam wrote: > Hello Everyone, > > I just received my OLPC in the mail. I expect others also have. I'm > considering hosting people at my house in Saratoga, California this > weekend to hack on it. I'm assuming we will spend half our time > getting development tools up and running and half the time mucking > with the Sugar interface. > > Is anyone interested? Saturday or Sunday work? First day to get > three RSVPs gets it. > > Charles > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- Tim Johnson Windows Sys Admin Goooooooooogle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071219/05979815/attachment.htm From charles.merriam at gmail.com Thu Dec 20 07:02:40 2007 From: charles.merriam at gmail.com (Charles Merriam) Date: Wed, 19 Dec 2007 22:02:40 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: <57344.204.15.2.3.1198110863.squirrel@email.powweb.com> References: <57344.204.15.2.3.1198110863.squirrel@email.powweb.com> Message-ID: Yes. I received an email saying it was one its way approximately one day after the box had arrived. On Dec 19, 2007 4:34 PM, wrote: > > Hello Everyone, > > > > I just received my OLPC in the mail. > > Did you get an e-mail saying when it was shipped out? > > -Greg > From charles.merriam at gmail.com Thu Dec 20 07:04:20 2007 From: charles.merriam at gmail.com (Charles Merriam) Date: Wed, 19 Dec 2007 22:04:20 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: References: Message-ID: It came via FedEx Home Delivery. On Dec 19, 2007 3:36 PM, Tim Johnson wrote: > Did it come via USPS? > > > On Dec 19, 2007 9:45 AM, Charles Merriam wrote: > > > > > > > > Hello Everyone, > > > > I just received my OLPC in the mail. I expect others also have. I'm > > considering hosting people at my house in Saratoga, California this > > weekend to hack on it. I'm assuming we will spend half our time > > getting development tools up and running and half the time mucking > > with the Sugar interface. > > > > Is anyone interested? Saturday or Sunday work? First day to get > > three RSVPs gets it. > > > > Charles > > _______________________________________________ > > > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > -- > Tim Johnson > Windows Sys Admin > Goooooooooogle From charles.merriam at gmail.com Thu Dec 20 07:05:10 2007 From: charles.merriam at gmail.com (Charles Merriam) Date: Wed, 19 Dec 2007 22:05:10 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: <47699CD4.6020306@mvista.com> References: <47699CD4.6020306@mvista.com> Message-ID: This hacking session is likely to be a bunch of people learning how to say Hello World. Let's be realistic. On Dec 19, 2007 2:36 PM, Carl J. Van Arsdall wrote: > So I wonder... are the XO hackers planning on creating any new projects > with the results of the hacking session? > > > Glen Jarvis wrote: > > No way! I checked my mailbox last night again.... anxious.... I think > > I'm worse than a five year old at Christmas... I hadn't yet received > > my XO. I'm in San Francisco.... I'm really interested in what > > happens during this session... even if I only emulate and just > > listen, it sounds fun. > > > > I'm not sure how much free time I'll have this weekend, I'll > > tentative RSVP to 'any day' > > > > cheers, > > > > > > glen > > -- > > 415-680-3964 > > glen at glenjarvis.com > > http://www.glenjarvis.com > > > > "You must be the change you wish to see in the world." -M. Gandhi > > > > > > On Dec 19, 2007, at 9:45 AM, Charles Merriam wrote: > > > > > >> Hello Everyone, > >> > >> I just received my OLPC in the mail. I expect others also have. I'm > >> considering hosting people at my house in Saratoga, California this > >> weekend to hack on it. I'm assuming we will spend half our time > >> getting development tools up and running and half the time mucking > >> with the Sugar interface. > >> > >> Is anyone interested? Saturday or Sunday work? First day to get > >> three RSVPs gets it. > >> > >> Charles > >> _______________________________________________ > >> 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 > > > > > -- > > Carl J. Van Arsdall > cvanarsdall at mvista.com > Build and Release > MontaVista Software > > > From cvanarsdall at mvista.com Thu Dec 20 17:44:20 2007 From: cvanarsdall at mvista.com (Carl J. Van Arsdall) Date: Thu, 20 Dec 2007 08:44:20 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: References: <47699CD4.6020306@mvista.com> Message-ID: <476A9BE4.2090601@mvista.com> Charles Merriam wrote: > This hacking session is likely to be a bunch of people learning how to > say Hello World. Let's be realistic. > Sorry to offend, wasn't meaning to be unrealistic. Some people start with hello world but have a longer term goal in mind. Just curious. Thanks, -carl > On Dec 19, 2007 2:36 PM, Carl J. Van Arsdall wrote: > >> So I wonder... are the XO hackers planning on creating any new projects >> with the results of the hacking session? >> >> >> Glen Jarvis wrote: >> >>> No way! I checked my mailbox last night again.... anxious.... I think >>> I'm worse than a five year old at Christmas... I hadn't yet received >>> my XO. I'm in San Francisco.... I'm really interested in what >>> happens during this session... even if I only emulate and just >>> listen, it sounds fun. >>> >>> I'm not sure how much free time I'll have this weekend, I'll >>> tentative RSVP to 'any day' >>> >>> cheers, >>> >>> >>> glen >>> -- >>> 415-680-3964 >>> glen at glenjarvis.com >>> http://www.glenjarvis.com >>> >>> "You must be the change you wish to see in the world." -M. Gandhi >>> >>> >>> On Dec 19, 2007, at 9:45 AM, Charles Merriam wrote: >>> >>> >>> >>>> Hello Everyone, >>>> >>>> I just received my OLPC in the mail. I expect others also have. I'm >>>> considering hosting people at my house in Saratoga, California this >>>> weekend to hack on it. I'm assuming we will spend half our time >>>> getting development tools up and running and half the time mucking >>>> with the Sugar interface. >>>> >>>> Is anyone interested? Saturday or Sunday work? First day to get >>>> three RSVPs gets it. >>>> >>>> Charles >>>> _______________________________________________ >>>> 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 >>> >>> >> -- >> >> Carl J. Van Arsdall >> cvanarsdall at mvista.com >> Build and Release >> MontaVista Software >> >> >> >> -- Carl J. Van Arsdall cvanarsdall at mvista.com Build and Release MontaVista Software From glen at glenjarvis.com Thu Dec 20 16:16:58 2007 From: glen at glenjarvis.com (Glen Jarvis) Date: Thu, 20 Dec 2007 07:16:58 -0800 Subject: [Baypiggies] OLPC hacking this weekend... In-Reply-To: References: Message-ID: <59005CB1-0952-4255-AB99-A8D778054EB4@glenjarvis.com> I forgot.... this is my Christmas present. I'm not allowed to open it until Christmas and therefore won't be able to attend the hacking session on this round... Cheers, Glen -- 415-680-3964 glen at glenjarvis.com http://www.glenjarvis.com "You must be the change you wish to see in the world." -M. Gandhi On Dec 19, 2007, at 9:45 AM, Charles Merriam wrote: > Hello Everyone, > > I just received my OLPC in the mail. I expect others also have. I'm > considering hosting people at my house in Saratoga, California this > weekend to hack on it. I'm assuming we will spend half our time > getting development tools up and running and half the time mucking > with the Sugar interface. > > Is anyone interested? Saturday or Sunday work? First day to get > three RSVPs gets it. > > Charles > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From rdm at cfcl.com Sun Dec 23 18:39:08 2007 From: rdm at cfcl.com (Rich Morin) Date: Sun, 23 Dec 2007 09:39:08 -0800 Subject: [Baypiggies] BASS Meeting (SF), Wed. December 26 Message-ID: Our XO (OLPC) arrived recently, so we'll be bringing it to BASS for folks to examine. The UI is based on Squeak and Python is used for a lot of the programming, so it's quite a testament to the power of scripting languages. Anyway, take a break from Christmas leftovers and join us for some tasty Chinese food and scintillating talk... The Beer and Scripting SIG rides again! If you'd like to eat good Chinese food, chat with other local scripters, and possibly take a look at laptop-demoed scripting hacks, this is the place to do it! For your convenience, here are the critical details: Date: Wednesday, December 26, 2007 (4th. Wed.) Time: 8:00 pm Place: Wild Pepper 3601 26th St. (near San Jose Ave.) San Francisco, CA, USA 415/695-767[89] See the BASS web page for more information: http://cfcl.com/rdm/bass/ -r P.S. Mark your calendar for the second PeepCode & Pizza gathering (Thursday, 1/24 in Redwood City). We'll be watching and discussing the Capistrano 2.1 screencast; for more information, see http://ruby.meetup.com/123/ -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development From echerlin at gmail.com Mon Dec 24 21:55:36 2007 From: echerlin at gmail.com (Edward Cherlin) Date: Mon, 24 Dec 2007 12:55:36 -0800 Subject: [Baypiggies] Eric and Idle on XO (was Playing with IDEs) Message-ID: FYI. Sorry for all the top posting. ---------- Forwarded message ---------- From: Jeffrey Kesselman Date: Dec 24, 2007 9:18 AM Subject: Fwd: Playing with IDEs To: "devel Devel.List" Its up and working! It is however kind of cramped, which surprised me given the size of the OLPC's screen. I assume its either treating the screen as lower resolution or drawing the fonts and such very large. Any Eric wizzes out there know how to fix that? JK On Dec 23, 2007 7:55 PM, Jeffrey Kesselman < jeffpk at gmail.com> wrote: > Ahah! The proper name is PyQt-qscintilla > > I have it installed... now to attempt to install eric3 > > > On Dec 23, 2007 7:53 PM, Jeffrey Kesselman < jeffpk at gmail.com> wrote: > > got it thanks > > > > That indeed makes it possible to run idle. Idle is nto exactly hat I > > would call an IDE, more an imporved shell, but at least I got it that > > far. > > > > I'd love to get Eric up and running but there don't appear to be > > prebuilt binaries of QScintilla available. At least that I could find > > :/ > > > > wrote: > > > > > ack ! that should be "yum" not "yun". > > > > > > > > > > > > On Dec 23, 2007 5:04 PM, Charles Durrett < charles.durrett at gmail.com> wrote: > > > > > > > as root in a terminal session enter > > > > > > > > yun install tkinter > > > > > > > > On Dec 23, 2007 4:15 PM, Jeffrey Kesselman < jeffpk at gmail.com> wrote: > > > > > > > > > Figured it was time for a new thread for this.... > > > > > > > > > > Idle is actually included on the olpc in /usr/lib/python2.5/idlelib > > > > > > > > > > However trying to invoke idle.py gives this error... > > > > > > > > > > ** IDLE can't import Tkinter. Your python may not be configured for Tk. > > > > > > > > > > Question for those more familiar with python on linux, Is there > > > > > something I can yum > > > > > or otherwise download and install that would fix this? > > > > > > > > > > JK > > > > > > > > > > -- > > > > > ~~ Microsoft help desk says: reply hazy, ask again later. ~~ -- Edward Cherlin Earth Treasury: End Poverty at a Profit http://www.EarthTreasury.org/ "The best way to predict the future is to invent it."--Alan Kay -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20071224/7d73dd98/attachment.htm From afife at untangle.com Mon Dec 24 22:23:28 2007 From: afife at untangle.com (Andrew Fife) Date: Mon, 24 Dec 2007 13:23:28 -0800 (PST) Subject: [Baypiggies] Eric S. Raymond @ BALUG (Jan 15th) Message-ID: <002801c84673$3b32d6b0$4301a8c0@Untangle.local> Howdy Folks: Eric S. Raymond will be kicking off the start of a great 2008 at The Bay Area Linux Users Group (BALUG) with a talk on January 15th. If you haven't been to BALUG in a while, this a great opportunity to check out what we're up to... and who knows you may just wind up eating dinner with Eric S. Raymond at your table. If you'd like to come, please RSVP: RSVP at balug.org Upcoming 2008 speakers include: Jan - Eric S. Raymond Feb - Bruce Perens March - TBD April - Eric Allman May - Jeremy Allison June - Andrew Morton So why not signup for BALUG's extremely low volume announce list: http://lists.balug.org/listinfo.cgi/balug-announce-balug.org Meeting Details... 6:30pm January 15th, 2008 Four Seas Restaurant 731 Grant Ave. San Francisco, CA 94108 Parking: http://www.portsmouthsquaregarage.com/ Cost: The meetings are always free, but dinner is $13 About BALUG: BALUG is lively gathering of Linux users & free software enthusiasts that combines great food, community & intimate access to featured speakers. We meet in the bar of the Four Seas Restaurant from 6:30pm. At 7pm, we share a family-style Chinese dinner, which is followed by our guest speaker. BALUG Mailing list Policy: BALUG promises not to abuse other LUGs mailing lists. Our current policy is to make one monthly announcement on other Bay Area LUGs mailing lists. If you feel this is not appropriate for a particular list, please tell us which list and what you feel would be a more appropriate policy for that list. Please send feedback to balug-contact at balug.org. ---------------------------------------- Andrew Fife Untangle - Open Source Security Gateway download.untangle.com 650.425.3327 (O) 415.806.6028 (C) afife at untangle.com From jjinux at gmail.com Wed Dec 26 05:16:22 2007 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Tue, 25 Dec 2007 20:16:22 -0800 Subject: [Baypiggies] Code/Idea Review (WARNING: SPOILER) In-Reply-To: References: <8249c4ac0712101635k39843cf2y7935fa8f5221d32b@mail.gmail.com> Message-ID: On Dec 15, 2007 11:23 AM, Glen Jarvis wrote: > As a recent transplant to the Bay Area, I must say that I never > realized how much of a geek haven this was. I knew it would be richer > in geeks, but I did not know moving here would be one of the smartest > decisions I ever made! > > I went to my second Bay Piggies meeting. And, I had an incredible > time. JJ was absolutely awesome and allowed me to ride with him. Ah, shucks! /me blushes > And, > he, his co-worker, several people he socialized with, and myself had > some incredible conversations for several hours. You can't help but > genuinely like all of these guys. They're fun to talk to, smart, and > just 'get it' instead of getting board or eyes glassing over. > > And, I'm usually a very big duck in a little puddle. At BayPIGgies, > I'm an itty bitty new duckling, wet behind the ears. And, there are > so many people who genuinely want to help. > > I learned two really incredible things this time: PEP-8 and the > Python Challenge. I remember that the speaker had his own opinion of how to learn Python, but I personally suggest reading "Learning Python" and doing all the exercises. I know it's getting a bit longer than it was in the first edition, but by the time you finish the book, you're 80% of the way to being a Python master. As for the Python Challenge, I really did not like it. I got really irritated by the fact that I couldn't figure out what it actually wanted by the time I got to level 7 or so. Coding the Python was usually really easy once I figured out what it wanted :-/ To each his own, I guess. Perhaps it's good training for dealing with clients ;) > Because of the talk, I discovered the Python > Challenge (http://www.pythonchallenge.com/). What a great way to > challenge ourselves. The first two (0, and 1) were real easy > challenges. However, instead of just marching on, I am trying to be a > code nazi. I want to keep the code for each of these challenges, I > want it to pass a PEP-8 level code review, and I want it to be the > most 'intelligent' choice for the objective. > > In challenge 1, I was able to create some python code fairly quickly > to translate the text enough to catch the gist fairly quickly. > However, as a typical non-python coder, I used a loop instead of > string.maketrans(). After reading the string module help, I was able > to keep reducing and rewriting this until it was closer to what I > thought the challenge wanted us to do. > > I would like it, if you don't mind, if you gave me a thorough peer > review for such a small piece of code. I want to know anytime I break > convention with PEP-8. Also, if I received replies like "crap code, > dude." that, unfortunately is not helpful. What would be helpful if I > heard *why* it was crap so I could learn from it. The same is true > for "cool code." That doesn't tell me what my weaknesses or strengths > are. > > I believe lines 6 and 7 can be reduced to be more readable and better > written. If any (or all) can oblige, I would love to learn. Be > warned, however, that this is a solution to the second Python > Challenge. You should do the first two challenges yourself so there > are no spoilers. > > I *heart* BayPIGgies! > > Cheers, Happy Hacking! -jj -- I, for one, welcome our new Facebook overlords! http://jjinux.blogspot.com/ From charles.merriam at gmail.com Fri Dec 28 00:05:32 2007 From: charles.merriam at gmail.com (Charles Merriam) Date: Thu, 27 Dec 2007 15:05:32 -0800 Subject: [Baypiggies] OLPC hacking on Saturday, January 12. 10 a.m. to 6ish? Message-ID: WHAT: Hacking with the OLPC, Python, and the Sugar Environment. BRING: Your OLPC (XO) if you have one, and a laptop if you have one. WHY: You want to play with an OLPC, or want to start developing for it. WHEN: Saturday, January 12, 2008. Starting at 10 a.m., going until we stop. CHILDREN: The house is generally kid-safe, and we have a four year old and a baby. Usually, the more kids the merrier, but check in with us first at charles.merriam at gmail.com. WHERE: My house. It's next to Westgate mall in Saratoga. RSVP for directions. WHY Again: It's fun. The skill levels will be all over the map, and I hope the house gives a relaxed atmosphere for us to all make mistakes. RSVP: Please. charles.merriam at gmail.com. If you forget to RSVP, call first for directions/space. Email with any questions to charles.merriam at gmail.com, or call me at 408.368.6050 FYI: I'll also be at the SuperHappyDevHouse on January 5th. I expect several OLPC's to be in residence. From bdbaddog at gmail.com Sun Dec 30 09:16:27 2007 From: bdbaddog at gmail.com (William Deegan) Date: Sun, 30 Dec 2007 00:16:27 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: References: Message-ID: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> Donna, > we need the Mailhost setup.. once that's done.. no more issues... I'll > look at it this weekend.. unless someone else wants to login there and > see if they can get it working.. > we need a valid smtp host.. Any progress on this? I just tried to create an account and got the same issue. Thanks, -Bill > > Donna > > > On 10/25/07, Charles Merriam wrote: > > Actions from the baypiggies website appear to be broken. > > > > In a "Join" form, I get this error: > > We were unable to send your password to your email address: (530, > > '5.5.1 Authentication Required 11sm3708788wrl', '"Portal > > Administrator" ') > > for a field of charles.merriam at gmail.com > > > > And reporting it with the 'contact us' form gives: > > Unable to send mail: Invalid email address: postmaster at localhost > > > > Aren't content managers fun! > > Charles > > _______________________________________________ > > 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 donnamsnow at gmail.com Sun Dec 30 22:15:59 2007 From: donnamsnow at gmail.com (Donna Snow) Date: Sun, 30 Dec 2007 13:15:59 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> References: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> Message-ID: Hi Guys, Sorry, we moved into a new office on Hamilton and the work hasn't slowed down any... It looks like someone added smtp.gmail.com to the mailhost settings.. (accessible when logged in as manager.. go to site setup and click on "Mail Settings" Are we sure that '25' is the right port for sending gmail..can someone with manager access check? Also.. on the home page we are getting job postings.. I can turn off comments on that page .. (if the group agrees) and put a note at the bottom requesting that jobs be posted to the list..OR we create a directory with a page that allows adding of comments as job postings. (that'll open us up to some issues with comment spam) Let me know what you want to do..I'll pop in and adjust.. I'm not real good with setting up the mail part of the system.. I'm usually provided the information to add.. as long as we have somewhere to send from that either doesn't require authentication..or we put in the auth info in the Mail Settings for.. it should work. If any of you are ever near Hamilton avenue (across from Westgate.. ) feel free to pop into our new office for a cup of coffee and a chat! :-) Donna On Dec 30, 2007 12:16 AM, William Deegan wrote: > Donna, > > > we need the Mailhost setup.. once that's done.. no more issues... I'll > > look at it this weekend.. unless someone else wants to login there and > > see if they can get it working.. > > we need a valid smtp host.. > > Any progress on this? > I just tried to create an account and got the same issue. > > Thanks, > -Bill > > > > > Donna > > > > > > On 10/25/07, Charles Merriam wrote: > > > Actions from the baypiggies website appear to be broken. > > > > > > In a "Join" form, I get this error: > > > We were unable to send your password to your email address: (530, > > > '5.5.1 Authentication Required 11sm3708788wrl', '"Portal > > > Administrator" ') > > > for a field of charles.merriam at gmail.com > > > > > > And reporting it with the 'contact us' form gives: > > > Unable to send mail: Invalid email address: postmaster at localhost > > > > > > Aren't content managers fun! > > > Charles > > > _______________________________________________ > > > 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 aahz at pythoncraft.com Sun Dec 30 22:40:12 2007 From: aahz at pythoncraft.com (Aahz) Date: Sun, 30 Dec 2007 13:40:12 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: References: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> Message-ID: <20071230214012.GA26107@panix.com> On Sun, Dec 30, 2007, Donna Snow wrote: > > Also.. on the home page we are getting job postings.. I can turn off > comments on that page .. (if the group agrees) and put a note at the > bottom requesting that jobs be posted to the list..OR we create a > directory with a page that allows adding of comments as job postings. > (that'll open us up to some issues with comment spam) Let me know what > you want to do..I'll pop in and adjust.. Either require that postings go to the list or set up a job postings page where comments require approval. I personally favor the former; that's what's been working all these years. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "Typing is cheap. Thinking is expensive." --Roy Smith From bdbaddog at gmail.com Sun Dec 30 22:44:38 2007 From: bdbaddog at gmail.com (William Deegan) Date: Sun, 30 Dec 2007 13:44:38 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: References: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> Message-ID: <8540148a0712301344x7627b613xf0cdc683da2b4690@mail.gmail.com> All, > It looks like someone added smtp.gmail.com to the mailhost settings.. > (accessible when logged in as manager.. go to site setup and click on > "Mail Settings" > > Are we sure that '25' is the right port for sending gmail..can someone > with manager access check? >From gmail help: http://mail.google.com/support/bin/answer.py?answer=13287 Looks like 25's not the right port, and you need to use authentication and TLS. Can Plone do that? What version of plone are we running now? ... -Bill From donnamsnow at gmail.com Sun Dec 30 22:57:43 2007 From: donnamsnow at gmail.com (Donna Snow) Date: Sun, 30 Dec 2007 13:57:43 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: <8540148a0712301344x7627b613xf0cdc683da2b4690@mail.gmail.com> References: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> <8540148a0712301344x7627b613xf0cdc683da2b4690@mail.gmail.com> Message-ID: Here is the info for our site... Plone version overview Plone 2.5.1, CMF-1.6.2, Zope (Zope 2.9.5-final, python 2.4.4, linux2), Five 1.4.3, Python 2.4.4 (#3, Jun 12 2007, 05:11:06) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-58)], PIL 1.1.5 I'm tracking down login info for webfaction (formerly pythong-hosting.org.. maybe something we need to do there... Donna On Dec 30, 2007 1:44 PM, William Deegan wrote: > All, > > > It looks like someone added smtp.gmail.com to the mailhost settings.. > > (accessible when logged in as manager.. go to site setup and click on > > "Mail Settings" > > > > Are we sure that '25' is the right port for sending gmail..can someone > > with manager access check? > From gmail help: > http://mail.google.com/support/bin/answer.py?answer=13287 > Looks like 25's not the right port, and you need to use authentication and TLS. > Can Plone do that? > What version of plone are we running now? > > ... > -Bill > From donnamsnow at gmail.com Sun Dec 30 23:04:57 2007 From: donnamsnow at gmail.com (Donna Snow) Date: Sun, 30 Dec 2007 14:04:57 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: References: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> <8540148a0712301344x7627b613xf0cdc683da2b4690@mail.gmail.com> Message-ID: I just sent William the login to Web Faction ..(FYI) Anyone else need it? I'm still available guys.. but the whole idea of setting up the Plone site is to put management into more than one individual's hands.. I'm here for guidance/consulting.. and I'll add products if requested.. I think you guys can pick up adding actual content. I still want to fix the light green on the site.. and a couple other issues I've noted.. Also, I got a car from the boyfriend for xmas :-) (nice red saturn) so we may be able to start attending more meetings! (err..I haven't attended one since I gave the presentation.. mainly because it's expensive to cab over.. and it usually lands smack dab in the middle of a deadline for us..but we are going to try) :-) Donna On Dec 30, 2007 1:57 PM, Donna Snow wrote: > Here is the info for our site... > > Plone version overview > Plone 2.5.1, > CMF-1.6.2, > Zope (Zope 2.9.5-final, python 2.4.4, linux2), > Five 1.4.3, > Python 2.4.4 (#3, Jun 12 2007, 05:11:06) [GCC 3.2.3 20030502 (Red Hat > Linux 3.2.3-58)], > PIL 1.1.5 > > I'm tracking down login info for webfaction (formerly > pythong-hosting.org.. maybe something we need to do there... > > > Donna > > > On Dec 30, 2007 1:44 PM, William Deegan wrote: > > All, > > > > > It looks like someone added smtp.gmail.com to the mailhost settings.. > > > (accessible when logged in as manager.. go to site setup and click on > > > "Mail Settings" > > > > > > Are we sure that '25' is the right port for sending gmail..can someone > > > with manager access check? > > From gmail help: > > http://mail.google.com/support/bin/answer.py?answer=13287 > > Looks like 25's not the right port, and you need to use authentication and TLS. > > Can Plone do that? > > What version of plone are we running now? > > > > ... > > -Bill > > > From donnamsnow at gmail.com Sun Dec 30 23:21:49 2007 From: donnamsnow at gmail.com (Donna Snow) Date: Sun, 30 Dec 2007 14:21:49 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: References: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> <8540148a0712301344x7627b613xf0cdc683da2b4690@mail.gmail.com> Message-ID: Found this... https://help.webfaction.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=82 Working on it now.. we should have email sending from site soon.. Donna On Dec 30, 2007 2:04 PM, Donna Snow wrote: > I just sent William the login to Web Faction ..(FYI) Anyone else need > it? I'm still available guys.. but the whole idea of setting up the > Plone site is to put management into more than one individual's > hands.. I'm here for guidance/consulting.. and I'll add products if > requested.. I think you guys can pick up adding actual content. I > still want to fix the light green on the site.. and a couple other > issues I've noted.. > > Also, I got a car from the boyfriend for xmas :-) (nice red saturn) so > we may be able to start attending more meetings! (err..I haven't > attended one since I gave the presentation.. mainly because it's > expensive to cab over.. and it usually lands smack dab in the middle > of a deadline for us..but we are going to try) :-) > > Donna > > On Dec 30, 2007 1:57 PM, Donna Snow wrote: > > > Here is the info for our site... > > > > Plone version overview > > Plone 2.5.1, > > CMF-1.6.2, > > Zope (Zope 2.9.5-final, python 2.4.4, linux2), > > Five 1.4.3, > > Python 2.4.4 (#3, Jun 12 2007, 05:11:06) [GCC 3.2.3 20030502 (Red Hat > > Linux 3.2.3-58)], > > PIL 1.1.5 > > > > I'm tracking down login info for webfaction (formerly > > pythong-hosting.org.. maybe something we need to do there... > > > > > > Donna > > > > > > On Dec 30, 2007 1:44 PM, William Deegan wrote: > > > All, > > > > > > > It looks like someone added smtp.gmail.com to the mailhost settings.. > > > > (accessible when logged in as manager.. go to site setup and click on > > > > "Mail Settings" > > > > > > > > Are we sure that '25' is the right port for sending gmail..can someone > > > > with manager access check? > > > From gmail help: > > > http://mail.google.com/support/bin/answer.py?answer=13287 > > > Looks like 25's not the right port, and you need to use authentication and TLS. > > > Can Plone do that? > > > What version of plone are we running now? > > > > > > ... > > > -Bill > > > > > > From donnamsnow at gmail.com Sun Dec 30 23:35:15 2007 From: donnamsnow at gmail.com (Donna Snow) Date: Sun, 30 Dec 2007 14:35:15 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: References: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> <8540148a0712301344x7627b613xf0cdc683da2b4690@mail.gmail.com> Message-ID: Sorry guys.. for all the email.. but here is the email response from the site...upon joining successfully and requesting email Sending email from the site is working now.... (this email can be customized to add a TOS or something) - not sure about the activation thing.. the system gives the user a "login" button and then logs them in.. maybe it's there in case they don't hit the login button after signing up.. Welcome, You have been registered as a member of BayPIGgies, which allows you to personalize your view of the website and participate in the community. Please activate your account by visiting http://baypiggies.net/new/plone/passwordreset/c9e57b44f1d82b1b79e6aa031850912f?userid=testagain You must activate your account within 24 hours, so before 2007-12-31 16:28 With kind regards, Donna On Dec 30, 2007 2:21 PM, Donna Snow wrote: > Found this... > > https://help.webfaction.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=82 > > Working on it now.. we should have email sending from site soon.. > > Donna > > > On Dec 30, 2007 2:04 PM, Donna Snow wrote: > > I just sent William the login to Web Faction ..(FYI) Anyone else need > > it? I'm still available guys.. but the whole idea of setting up the > > Plone site is to put management into more than one individual's > > hands.. I'm here for guidance/consulting.. and I'll add products if > > requested.. I think you guys can pick up adding actual content. I > > still want to fix the light green on the site.. and a couple other > > issues I've noted.. > > > > Also, I got a car from the boyfriend for xmas :-) (nice red saturn) so > > we may be able to start attending more meetings! (err..I haven't > > attended one since I gave the presentation.. mainly because it's > > expensive to cab over.. and it usually lands smack dab in the middle > > of a deadline for us..but we are going to try) :-) > > > > Donna > > > > On Dec 30, 2007 1:57 PM, Donna Snow wrote: > > > > > Here is the info for our site... > > > > > > Plone version overview > > > Plone 2.5.1, > > > CMF-1.6.2, > > > Zope (Zope 2.9.5-final, python 2.4.4, linux2), > > > Five 1.4.3, > > > Python 2.4.4 (#3, Jun 12 2007, 05:11:06) [GCC 3.2.3 20030502 (Red Hat > > > Linux 3.2.3-58)], > > > PIL 1.1.5 > > > > > > I'm tracking down login info for webfaction (formerly > > > pythong-hosting.org.. maybe something we need to do there... > > > > > > > > > Donna > > > > > > > > > On Dec 30, 2007 1:44 PM, William Deegan wrote: > > > > All, > > > > > > > > > It looks like someone added smtp.gmail.com to the mailhost settings.. > > > > > (accessible when logged in as manager.. go to site setup and click on > > > > > "Mail Settings" > > > > > > > > > > Are we sure that '25' is the right port for sending gmail..can someone > > > > > with manager access check? > > > > From gmail help: > > > > http://mail.google.com/support/bin/answer.py?answer=13287 > > > > Looks like 25's not the right port, and you need to use authentication and TLS. > > > > Can Plone do that? > > > > What version of plone are we running now? > > > > > > > > ... > > > > -Bill > > > > > > > > > > From bdbaddog at gmail.com Sun Dec 30 23:43:41 2007 From: bdbaddog at gmail.com (William Deegan) Date: Sun, 30 Dec 2007 14:43:41 -0800 Subject: [Baypiggies] FYI, website email broken.. In-Reply-To: References: <8540148a0712300016k45a61751sacc6f8b08be151d3@mail.gmail.com> <8540148a0712301344x7627b613xf0cdc683da2b4690@mail.gmail.com> Message-ID: <8540148a0712301443v1eb61ae7r6643d4a4c0bd350@mail.gmail.com> Donna, Just tried it. Works for me as well. ;) Thanks! -Bill On Dec 30, 2007 2:35 PM, Donna Snow wrote: > Sorry guys.. for all the email.. but here is the email response from > the site...upon joining successfully and requesting email > > Sending email from the site is working now.... (this email can be > customized to add a TOS or something) - not sure about the activation > thing.. the system gives the user a "login" button and then logs them > in.. maybe it's there in case they don't hit the login button after > signing up.. > > > Welcome, > > You have been registered as a member of BayPIGgies, > which allows you to personalize your view of the website and participate in > the community. Please activate your account by visiting > > http://baypiggies.net/new/plone/passwordreset/c9e57b44f1d82b1b79e6aa031850912f?userid=testagain > > You must activate your account within 24 > hours, so before 2007-12-31 16:28 > > > > With kind regards, > > > > Donna > > > On Dec 30, 2007 2:21 PM, Donna Snow wrote: > > Found this... > > > > https://help.webfaction.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=82 > > > > Working on it now.. we should have email sending from site soon.. > > > > Donna > > > > > > On Dec 30, 2007 2:04 PM, Donna Snow wrote: > > > I just sent William the login to Web Faction ..(FYI) Anyone else need > > > it? I'm still available guys.. but the whole idea of setting up the > > > Plone site is to put management into more than one individual's > > > hands.. I'm here for guidance/consulting.. and I'll add products if > > > requested.. I think you guys can pick up adding actual content. I > > > still want to fix the light green on the site.. and a couple other > > > issues I've noted.. > > > > > > Also, I got a car from the boyfriend for xmas :-) (nice red saturn) so > > > we may be able to start attending more meetings! (err..I haven't > > > attended one since I gave the presentation.. mainly because it's > > > expensive to cab over.. and it usually lands smack dab in the middle > > > of a deadline for us..but we are going to try) :-) > > > > > > Donna > > > > > > On Dec 30, 2007 1:57 PM, Donna Snow wrote: > > > > > > > Here is the info for our site... > > > > > > > > Plone version overview > > > > Plone 2.5.1, > > > > CMF-1.6.2, > > > > Zope (Zope 2.9.5-final, python 2.4.4, linux2), > > > > Five 1.4.3, > > > > Python 2.4.4 (#3, Jun 12 2007, 05:11:06) [GCC 3.2.3 20030502 (Red Hat > > > > Linux 3.2.3-58)], > > > > PIL 1.1.5 > > > > > > > > I'm tracking down login info for webfaction (formerly > > > > pythong-hosting.org.. maybe something we need to do there... > > > > > > > > > > > > Donna > > > > > > > > > > > > On Dec 30, 2007 1:44 PM, William Deegan wrote: > > > > > All, > > > > > > > > > > > It looks like someone added smtp.gmail.com to the mailhost settings.. > > > > > > (accessible when logged in as manager.. go to site setup and click on > > > > > > "Mail Settings" > > > > > > > > > > > > Are we sure that '25' is the right port for sending gmail..can someone > > > > > > with manager access check? > > > > > From gmail help: > > > > > http://mail.google.com/support/bin/answer.py?answer=13287 > > > > > Looks like 25's not the right port, and you need to use authentication and TLS. > > > > > Can Plone do that? > > > > > What version of plone are we running now? > > > > > > > > > > ... > > > > > -Bill > > > > > > > > > > > > > > >