From jeffh at dundeemt.com Tue May 6 04:48:12 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Mon, 5 May 2008 21:48:12 -0500 Subject: [omaha] ANN: Omaha Python Users Group Meeting -- Wed, May 7th @ 7pm Message-ID: <5aaed53f0805051948w2fe0bd9fmadf8a5dc46580a8d@mail.gmail.com> The next meeting is fast approaching and we are looking for some one to speak. So if you have a topic you would like to speak on, speak up! I'll throw out the first, Google App Engine. Announced less than a month ago, App Engine is Python powered web environment, that is hosted and scaled by Google. -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From elicriffield at gmail.com Tue May 6 16:23:01 2008 From: elicriffield at gmail.com (Eli Criffield) Date: Tue, 6 May 2008 09:23:01 -0500 Subject: [omaha] ANN: Omaha Python Users Group Meeting -- Wed, May 7th @ 7pm In-Reply-To: <5aaed53f0805051948w2fe0bd9fmadf8a5dc46580a8d@mail.gmail.com> References: <5aaed53f0805051948w2fe0bd9fmadf8a5dc46580a8d@mail.gmail.com> Message-ID: <18e3f33d0805060723s7a477979ub182a05e30ae0118@mail.gmail.com> I would love to hear about Google App Engine. Eli On Mon, May 5, 2008 at 9:48 PM, Jeff Hinrichs - DM&T wrote: > The next meeting is fast approaching and we are looking for some one > to speak. So if you have a topic you would like to speak on, speak > up! > > I'll throw out the first, Google App Engine. Announced less than a > month ago, App Engine is Python powered web environment, that is > hosted and scaled by Google. > > > > > -- > Jeff Hinrichs > Dundee Media & Technology, Inc > jeffh at dundeemt.com > 402.218.1473 > web: www.dundeemt.com > blog: inre.dundeemt.com > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From mike at hostetlerhome.com Wed May 7 19:52:19 2008 From: mike at hostetlerhome.com (Mike Hostetler) Date: Wed, 7 May 2008 12:52:19 -0500 (CDT) Subject: [omaha] The gzip module is my new best friend Message-ID: <45315.69.58.248.102.1210182739.squirrel@email.powweb.com> ?. . . at least for now. Has anyone been using this module for a long time?? I just discovered it and, man is it useful. I have a ton of large files that are gzipped (and still 11MB . . ) and I just do "gzip.open(filename)" and then I just treat it like a regular file.? No gzipping it into another directory, no management of anything -- just treat it like a file. http://www.python.org/doc/lib/module-gzip.html From newz at bearfruit.org Wed May 7 21:10:21 2008 From: newz at bearfruit.org (Matthew Nuzum) Date: Wed, 7 May 2008 14:10:21 -0500 Subject: [omaha] The gzip module is my new best friend In-Reply-To: <45315.69.58.248.102.1210182739.squirrel@email.powweb.com> References: <45315.69.58.248.102.1210182739.squirrel@email.powweb.com> Message-ID: On Wed, May 7, 2008 at 12:52 PM, Mike Hostetler wrote: > Has anyone been using this module > for a long time? I just discovered it and, man is it useful. I have > a ton of large files that are gzipped (and still 11MB . . ) and I just do > "gzip.open(filename)" and then I just treat it like a regular > file. No gzipping it into another directory, no management of > anything -- just treat it like a file. Yes, it's very nice. I've been using it for a over 2 years on my log processing virtual machine. My log files we getting so big and during the processing phase there might be up to three copies of the log. My disk usage dropped to 1/10th using gzip. Interestingly, the same project taught me two other key things... switching from SQL storage to in memory dictionaries cut the processing time for one log file down from over 24 hours to under 30m. The SQL technique worked like this: if the record is in the database, grab its id if not, insert the record and then grab its id (repeated 8 times for each foreign key field from my log entry) insert the log entry with foreign key references into the database (these logs were for browser statistics and there were a bunch of records) Some of the dictionaries were getting too big and causing me to swap so I evaluated gdbm hash tables which work just like in memory dictionaries except they live on disk (or in fs cache). Switching from dictionaries to gdbm only increased the time to process one log file to about 45 min. Still far less than the > 24 hours previously. After processing the log data was then fed into the sql database in bulk for olap style reporting. The 45m included the time to synchronise the hashes with the sql database, but this went very fast (under 2m or so). Optimization is so fun. -- Matthew Nuzum newz2000 on freenode From netarttodd at gmail.com Wed May 7 23:58:33 2008 From: netarttodd at gmail.com (Todd Christopher Hamilton) Date: Wed, 7 May 2008 16:58:33 -0500 Subject: [omaha] ANN: Omaha Python Users Group Meeting -- Wed, May 7th @ 7pm In-Reply-To: <5aaed53f0805051948w2fe0bd9fmadf8a5dc46580a8d@mail.gmail.com> References: <5aaed53f0805051948w2fe0bd9fmadf8a5dc46580a8d@mail.gmail.com> Message-ID: <1fdb7d920805071458h3aa92402j1ecddb0534723cf2@mail.gmail.com> Where will the meeting be held? On Mon, May 5, 2008 at 9:48 PM, Jeff Hinrichs - DM&T wrote: > The next meeting is fast approaching and we are looking for some one > to speak. So if you have a topic you would like to speak on, speak > up! > > I'll throw out the first, Google App Engine. Announced less than a > month ago, App Engine is Python powered web environment, that is > hosted and scaled by Google. > > > > > -- > Jeff Hinrichs > Dundee Media & Technology, Inc > jeffh at dundeemt.com > 402.218.1473 > web: www.dundeemt.com > blog: inre.dundeemt.com > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Todd Christopher Hamilton (402) 660-2787 From jeffh at dundeemt.com Thu May 8 00:58:44 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Wed, 7 May 2008 17:58:44 -0500 Subject: [omaha] ANN: Omaha Python Users Group Meeting -- Wed, May 7th @ 7pm In-Reply-To: <1fdb7d920805071458h3aa92402j1ecddb0534723cf2@mail.gmail.com> References: <5aaed53f0805051948w2fe0bd9fmadf8a5dc46580a8d@mail.gmail.com> <1fdb7d920805071458h3aa92402j1ecddb0534723cf2@mail.gmail.com> Message-ID: <5aaed53f0805071558m176c2231maa281c0122cf6276@mail.gmail.com> Where: Roskens Hall (College of Business Administration), Room 402 University of Nebraska at Omaha 6000 Dodge Street Omaha Nebraska 68104 Other details can be found on the web site, http://www.omahapython.org/ -Jeff On Wed, May 7, 2008 at 4:58 PM, Todd Christopher Hamilton wrote: > Where will the meeting be held? > > > On Mon, May 5, 2008 at 9:48 PM, Jeff Hinrichs - DM&T > wrote: > > > > > The next meeting is fast approaching and we are looking for some one > > to speak. So if you have a topic you would like to speak on, speak > > up! > > > > I'll throw out the first, Google App Engine. Announced less than a > > month ago, App Engine is Python powered web environment, that is > > hosted and scaled by Google. > > > > > > > > > > -- > > Jeff Hinrichs > > Dundee Media & Technology, Inc > > jeffh at dundeemt.com > > 402.218.1473 > > web: www.dundeemt.com > > blog: inre.dundeemt.com > > > _______________________________________________ > > Omaha Python Users Group mailing list > > Omaha at python.org > > http://mail.python.org/mailman/listinfo/omaha > > http://www.OmahaPython.org > > > > > > -- > Todd Christopher Hamilton > (402) 660-2787 > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From jeffh at dundeemt.com Sat May 10 07:02:17 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Sat, 10 May 2008 00:02:17 -0500 Subject: [omaha] Python Consultant Message-ID: <5aaed53f0805092202u4458af07n608d38fd15ca928e@mail.gmail.com> Don't know why yet, but mailman gave Burch problems when he tried to post this. So I am forwarding it on to the list. ---------- Forwarded message ---------- From: Burch Kealey To: omaha-bounces at python.org Date: Fri, 9 May 2008 13:01:19 -0500 Subject: Python Consultant Does anyone in the PUG either want to do or could make a recommendation for a Python consult? Burch T. Kealey, PhD. RH-CBA 408-N University of Nebraska at Omaha 6000 Dodge Street Omaha Nebraska 68104 402-554-3571 This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From jeffh at dundeemt.com Sat May 17 05:22:10 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Fri, 16 May 2008 22:22:10 -0500 Subject: [omaha] Fwd: Could You Post Please-Tidy help In-Reply-To: References: Message-ID: <5aaed53f0805162022q67870d5cy3cec2fc23f9a949a@mail.gmail.com> I'm assuming you are referring to HTML Tidy, on the sourceforge page I found a link to a much more recent version http://www.paehl.com/open_source/?HTML_Tidy_for_Windows - built in March of this year. Have you tried that one? ---------- Forwarded message ---------- From: Burch Kealey Date: Fri, May 16, 2008 at 4:38 PM Subject: Could You Post Please-Tidy help To: Jeff Hinrichs - DM&T Is anyone using Tidy on a windows XP machine? I have been trying to install using the Berlios build and I get an error message that the CBA tech guys say relates to something in Windows denying hardware access to the program for installing. I can't seem to find much info out there about this. The only installer I find for Windows was built in 2004. Given all of the Windows security updates I guess I am not surprised with it not working but I am surprised no-one has fixed it for the poor unwashed innocents like me. Cheers Burch Burch T. Kealey, PhD. RH-CBA 408-N University of Nebraska at Omaha 6000 Dodge Street Omaha Nebraska 68104 402-554-3571 This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From bkealey at mail.unomaha.edu Sat May 17 06:27:31 2008 From: bkealey at mail.unomaha.edu (Burch Kealey) Date: Fri, 16 May 2008 23:27:31 -0500 Subject: [omaha] Tidy Help Message-ID: Sorry I should have phrased my question more carefully-I am looking for a Python Package for Tidy. I see I was just asking for Tidy. I have been getting some great help but have wasted too many hours this week trying to use Tidy and make it work from a python program. When I download and install (now on three machines) I get an error message that suggests a virus but we are convinced it is not. Burch T. Kealey, PhD. RH-CBA 408-N University of Nebraska at Omaha 6000 Dodge Street Omaha Nebraska 68104 402-554-3571 This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. From mike at hostetlerhome.com Sat May 17 14:35:16 2008 From: mike at hostetlerhome.com (Mike Hostetler) Date: Sat, 17 May 2008 07:35:16 -0500 Subject: [omaha] Tidy Help In-Reply-To: References: Message-ID: <664FFADC-5B68-4C27-9912-953E73BD80A0@hostetlerhome.com> I've been working with Burch on this, but I don't have a Windows machine. The exact library in quesiton is uTidyLib: http://utidylib.berlios.de/ On May 16, 2008, at 11:27 PM, Burch Kealey wrote: > > Sorry I should have phrased my question more carefully-I am looking > for a Python Package for Tidy. I see I was just asking for > Tidy. I > have been getting some great help but have wasted too many hours > this > week trying to use Tidy and make it work from a python program. > When > I download and install (now on three machines) I get an error > message > that suggests a virus but we are convinced it is not. > > Burch T. Kealey, PhD. > RH-CBA 408-N > University of Nebraska at Omaha > 6000 Dodge Street > Omaha Nebraska 68104 > 402-554-3571 > This message (including any attachments) contains confidential > information > intended for a specific individual and purpose, and is protected by > law. If > you are not the intended recipient, you should delete this > message. Any > disclosure, copying, or distribution of this message, or the > taking of > any > action based on it, is strictly prohibited. > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org Mike Hostetler mike at hostetlerhome.com http://mike.hostetlerhome.com From jeffh at dundeemt.com Sat May 17 15:33:29 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Sat, 17 May 2008 08:33:29 -0500 Subject: [omaha] Tidy Help In-Reply-To: <664FFADC-5B68-4C27-9912-953E73BD80A0@hostetlerhome.com> References: <664FFADC-5B68-4C27-9912-953E73BD80A0@hostetlerhome.com> Message-ID: <5aaed53f0805170633q4b930dd1nd19fff33a5ffc382@mail.gmail.com> What is the goal of using tidy? Are you looking to generate well formed html from a possibly broken input, or are you just trying to check for well formedness? More directly, why not BeautifulSoup? -jeff On Sat, May 17, 2008 at 7:35 AM, Mike Hostetler wrote: > I've been working with Burch on this, but I don't have a Windows machine. > > The exact library in quesiton is uTidyLib: > http://utidylib.berlios.de/ > > > On May 16, 2008, at 11:27 PM, Burch Kealey wrote: > >> >> Sorry I should have phrased my question more carefully-I am looking >> for a Python Package for Tidy. I see I was just asking for Tidy. I >> have been getting some great help but have wasted too many hours this >> week trying to use Tidy and make it work from a python program. When >> I download and install (now on three machines) I get an error message >> that suggests a virus but we are convinced it is not. >> >> Burch T. Kealey, PhD. >> RH-CBA 408-N >> University of Nebraska at Omaha >> 6000 Dodge Street >> Omaha Nebraska 68104 >> 402-554-3571 >> This message (including any attachments) contains confidential >> information >> intended for a specific individual and purpose, and is protected by >> law. If >> you are not the intended recipient, you should delete this >> message. Any >> disclosure, copying, or distribution of this message, or the taking of >> any >> action based on it, is strictly prohibited. >> _______________________________________________ >> Omaha Python Users Group mailing list >> Omaha at python.org >> http://mail.python.org/mailman/listinfo/omaha >> http://www.OmahaPython.org > > Mike Hostetler > mike at hostetlerhome.com > http://mike.hostetlerhome.com > > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From bkealey at mail.unomaha.edu Sat May 17 16:10:35 2008 From: bkealey at mail.unomaha.edu (Burch Kealey) Date: Sat, 17 May 2008 09:10:35 -0500 Subject: [omaha] Tidy Help In-Reply-To: <5aaed53f0805170633q4b930dd1nd19fff33a5ffc382@mail.gmail.com> References: <664FFADC-5B68-4C27-9912-953E73BD80A0@hostetlerhome.com>, <5aaed53f0805170633q4b930dd1nd19fff33a5ffc382@mail.gmail.com> Message-ID: I don't know-does BS clean up bad html for parsing? Burch T. Kealey, PhD. RH-CBA 408-N University of Nebraska at Omaha 6000 Dodge Street Omaha Nebraska 68104 402-554-3571 This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. From jeffh at dundeemt.com Sat May 17 19:15:00 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Sat, 17 May 2008 12:15:00 -0500 Subject: [omaha] Tidy Help In-Reply-To: References: <664FFADC-5B68-4C27-9912-953E73BD80A0@hostetlerhome.com> <5aaed53f0805170633q4b930dd1nd19fff33a5ffc382@mail.gmail.com> Message-ID: <5aaed53f0805171015h364a702ft600708c38e7fd438@mail.gmail.com> Yes, http://www.crummy.com/software/BeautifulSoup/documentation.html#Printing%20a%20Document On Sat, May 17, 2008 at 9:10 AM, Burch Kealey wrote: > > I don't know-does BS clean up bad html for parsing? > > Burch T. Kealey, PhD. > RH-CBA 408-N > University of Nebraska at Omaha > 6000 Dodge Street > Omaha Nebraska 68104 > 402-554-3571 > This message (including any attachments) contains confidential > information > intended for a specific individual and purpose, and is protected by > law. If > you are not the intended recipient, you should delete this > message. Any > disclosure, copying, or distribution of this message, or the taking of > any > action based on it, is strictly prohibited. > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From mike at hostetlerhome.com Sun May 18 00:49:16 2008 From: mike at hostetlerhome.com (Mike Hostetler) Date: Sat, 17 May 2008 17:49:16 -0500 Subject: [omaha] Tidy Help In-Reply-To: <5aaed53f0805171015h364a702ft600708c38e7fd438@mail.gmail.com> References: <664FFADC-5B68-4C27-9912-953E73BD80A0@hostetlerhome.com> <5aaed53f0805170633q4b930dd1nd19fff33a5ffc382@mail.gmail.com> <5aaed53f0805171015h364a702ft600708c38e7fd438@mail.gmail.com> Message-ID: <42895C96-601A-44B5-8D2D-32CF39B69CB6@hostetlerhome.com> The problem is that there are a lot of HTML files that are in different degrees of bad. They are all bad, but some are different degrees of bad. So we are using both Tidy and BeautifulSoup. Tidy to normalize them to something sane and then BeautifuSoup to parse what we want out of it. Using the Soup by itself is slow and gives varying results. Using Tidy first and then the Soup is faster and gives us more consist results. On May 17, 2008, at 12:15 PM, Jeff Hinrichs - DM&T wrote: > Yes, > > http://www.crummy.com/software/BeautifulSoup/ > documentation.html#Printing%20a%20Document > > On Sat, May 17, 2008 at 9:10 AM, Burch Kealey > wrote: >> >> I don't know-does BS clean up bad html for parsing? >> >> Burch T. Kealey, PhD. >> RH-CBA 408-N >> University of Nebraska at Omaha >> 6000 Dodge Street >> Omaha Nebraska 68104 >> 402-554-3571 >> This message (including any attachments) contains confidential >> information >> intended for a specific individual and purpose, and is protected by >> law. If >> you are not the intended recipient, you should delete this >> message. Any >> disclosure, copying, or distribution of this message, or the >> taking of >> any >> action based on it, is strictly prohibited. >> _______________________________________________ >> Omaha Python Users Group mailing list >> Omaha at python.org >> http://mail.python.org/mailman/listinfo/omaha >> http://www.OmahaPython.org >> > > > > -- > Jeff Hinrichs > Dundee Media & Technology, Inc > jeffh at dundeemt.com > 402.218.1473 > web: www.dundeemt.com > blog: inre.dundeemt.com > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org Mike Hostetler mike at hostetlerhome.com http://mike.hostetlerhome.com From jeffh at dundeemt.com Sun May 18 05:28:14 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Sat, 17 May 2008 22:28:14 -0500 Subject: [omaha] Tidy Help In-Reply-To: <42895C96-601A-44B5-8D2D-32CF39B69CB6@hostetlerhome.com> References: <664FFADC-5B68-4C27-9912-953E73BD80A0@hostetlerhome.com> <5aaed53f0805170633q4b930dd1nd19fff33a5ffc382@mail.gmail.com> <5aaed53f0805171015h364a702ft600708c38e7fd438@mail.gmail.com> <42895C96-601A-44B5-8D2D-32CF39B69CB6@hostetlerhome.com> Message-ID: <5aaed53f0805172028m6ec3cc9du929d7d10cf70c075@mail.gmail.com> Hmmm. So, I'm a bit confused. Is it the installer for utidylib that is causing the grief? Or are there problems using the utidylib (2004) with a modern version of Python? Since the tidylib bindings are apparently out of date, have you considered using the cmd line exe and then controlling it via process? Not quite as nice as having a proper binding to a dll, but workable. On Sat, May 17, 2008 at 5:49 PM, Mike Hostetler wrote: > The problem is that there are a lot of HTML files that are in different > degrees of bad. They are all bad, but some are different degrees of bad. > So we are using both Tidy and BeautifulSoup. Tidy to normalize them to > something sane and then BeautifuSoup to parse what we want out of it. > Using the Soup by itself is slow and gives varying results. Using Tidy > first and then the Soup is faster and gives us more consist results. > > > On May 17, 2008, at 12:15 PM, Jeff Hinrichs - DM&T wrote: > >> Yes, >> >> >> http://www.crummy.com/software/BeautifulSoup/documentation.html#Printing%20a%20Document >> >> On Sat, May 17, 2008 at 9:10 AM, Burch Kealey >> wrote: >>> >>> I don't know-does BS clean up bad html for parsing? >>> >>> Burch T. Kealey, PhD. >>> RH-CBA 408-N >>> University of Nebraska at Omaha >>> 6000 Dodge Street >>> Omaha Nebraska 68104 >>> 402-554-3571 >>> This message (including any attachments) contains confidential >>> information >>> intended for a specific individual and purpose, and is protected by >>> law. If >>> you are not the intended recipient, you should delete this >>> message. Any >>> disclosure, copying, or distribution of this message, or the taking of >>> any >>> action based on it, is strictly prohibited. >>> _______________________________________________ >>> Omaha Python Users Group mailing list >>> Omaha at python.org >>> http://mail.python.org/mailman/listinfo/omaha >>> http://www.OmahaPython.org >>> >> >> >> >> -- >> Jeff Hinrichs >> Dundee Media & Technology, Inc >> jeffh at dundeemt.com >> 402.218.1473 >> web: www.dundeemt.com >> blog: inre.dundeemt.com >> _______________________________________________ >> Omaha Python Users Group mailing list >> Omaha at python.org >> http://mail.python.org/mailman/listinfo/omaha >> http://www.OmahaPython.org > > Mike Hostetler > mike at hostetlerhome.com > http://mike.hostetlerhome.com > > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From freeav8r at yahoo.com Mon May 19 16:53:13 2008 From: freeav8r at yahoo.com (freeav8r) Date: Mon, 19 May 2008 07:53:13 -0700 (PDT) Subject: [omaha] Python SOAP and Apache Message-ID: <279663.6126.qm@web34206.mail.mud.yahoo.com> Hi All, I need to implement a number of SOAP web services in Python for an enterprise level system (lots of traffic). Prototypes are up and running on cherrypy's WSGI server without any form of connection pooling for the database connections. Any suggestions on what technologies and frameworks that will allow the following: 1. Ability to utilize existing apache web servers 2. Connection pooling to a database for the database connections that the web services will consume 3. Generation of WSDL for (and compatibility with) Python, Java, and Microsoft .net clients. Any suggestions? Anyone on the list already doing this? -freeav8r From jeffh at dundeemt.com Mon May 19 17:15:58 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Mon, 19 May 2008 10:15:58 -0500 Subject: [omaha] Python SOAP and Apache In-Reply-To: <279663.6126.qm@web34206.mail.mud.yahoo.com> References: <279663.6126.qm@web34206.mail.mud.yahoo.com> Message-ID: <5aaed53f0805190815y16ec62a5qa992810d5bd7696f@mail.gmail.com> While I haven't done any SOAP with python, here are some of the things that I know. CherryPy can run under apache via mod_wsgi http://code.google.com/p/modwsgi/wiki/IntegrationWithCherryPy so you should be able to get yourself all the goodness of apache with pretty much no code modification. Connection Pooling: depends on the database you are using. Is it thread-safe? See http://tools.cherrypy.org/wiki/Databases for more insight. regards, Jeff On Mon, May 19, 2008 at 9:53 AM, freeav8r wrote: > Hi All, > > I need to implement a number of SOAP web services in > Python for an enterprise level system (lots of > traffic). Prototypes are up and running on cherrypy's > WSGI server without any form of connection pooling for > the database connections. > > Any suggestions on what technologies and frameworks > that will allow the following: > > 1. Ability to utilize existing apache web servers > 2. Connection pooling to a database for the database > connections that the web services will consume > 3. Generation of WSDL for (and compatibility with) > Python, Java, and Microsoft .net clients. > > Any suggestions? Anyone on the list already doing > this? > > -freeav8r > > > > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From freeav8r at yahoo.com Mon May 19 17:36:24 2008 From: freeav8r at yahoo.com (freeav8r) Date: Mon, 19 May 2008 08:36:24 -0700 (PDT) Subject: [omaha] Python SOAP and Apache In-Reply-To: <5aaed53f0805190815y16ec62a5qa992810d5bd7696f@mail.gmail.com> Message-ID: <309670.83834.qm@web34208.mail.mud.yahoo.com> Hi Jeff and all, Thanks for the response. The WSGI mod appears to be what we're looking for to connect to Apache. We need true connection pooling though since we won't know which of many databases to connect to until the individual request is processed. If we are to run the CherryPy application as WSGI in apache without requiring the internal CherryPy engine to be run (this appears to be the most efficent setup), any suggestions on implementing connection pooling with apache and mysql so that the python application has access to the connections? -freeav8r --- Jeff Hinrichs - DM&T wrote: > While I haven't done any SOAP with python, here are > some of the things > that I know. > > CherryPy can run under apache via mod_wsgi > http://code.google.com/p/modwsgi/wiki/IntegrationWithCherryPy > so you > should be able to get yourself all the goodness of > apache with pretty > much no code modification. > > Connection Pooling: depends on the database you are > using. Is it > thread-safe? See > http://tools.cherrypy.org/wiki/Databases for more > insight. > > regards, > > Jeff > > On Mon, May 19, 2008 at 9:53 AM, freeav8r > wrote: > > Hi All, > > > > I need to implement a number of SOAP web services > in > > Python for an enterprise level system (lots of > > traffic). Prototypes are up and running on > cherrypy's > > WSGI server without any form of connection pooling > for > > the database connections. > > > > Any suggestions on what technologies and > frameworks > > that will allow the following: > > > > 1. Ability to utilize existing apache web servers > > 2. Connection pooling to a database for the > database > > connections that the web services will consume > > 3. Generation of WSDL for (and compatibility > with) > > Python, Java, and Microsoft .net clients. > > > > Any suggestions? Anyone on the list already doing > > this? > > > > -freeav8r > > > > > > > > > > > > _______________________________________________ > > Omaha Python Users Group mailing list > > Omaha at python.org > > http://mail.python.org/mailman/listinfo/omaha > > http://www.OmahaPython.org > > > > > > -- > Jeff Hinrichs > Dundee Media & Technology, Inc > jeffh at dundeemt.com > 402.218.1473 > web: www.dundeemt.com > blog: inre.dundeemt.com > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From mike at hostetlerhome.com Mon May 19 17:45:14 2008 From: mike at hostetlerhome.com (Mike Hostetler) Date: Mon, 19 May 2008 10:45:14 -0500 (CDT) Subject: [omaha] Python SOAP and Apache In-Reply-To: <309670.83834.qm@web34208.mail.mud.yahoo.com> References: <309670.83834.qm@web34208.mail.mud.yahoo.com> Message-ID: <36544.69.58.248.102.1211211914.squirrel@email.powweb.com> Once upon a time, I did the opposite of what you are doing -- I wrote some Python web service clients to test Java and .Net Web Services. The ZSI package has great support for both server and client.? I remember thinking that it was pretty server-centric when I messed with it: http://pywebsvcs.sourceforge.net/ If I remember correctly, the client worked better against Java than .Net, tho I never really understood why. You may also want to use Push To Test,? in which you give it a WSDL and it makes a test for you.? You can customize the script via jython: http://www.pushtotest.com/Docs/downloads/pushtotest-for-developers freeav8r wrote: > Hi Jeff and all, > > Thanks for the response. The WSGI mod appears to be > what we're looking for to connect to Apache. We need > true connection pooling though since we won't know > which of many databases to connect to until the > individual request is processed. > > If we are to run the CherryPy application as WSGI in > apache without requiring the internal CherryPy engine > to be run (this appears to be the most efficent > setup), any suggestions on implementing connection > pooling with apache and mysql so that the python > application has access to the connections? > > > > -freeav8r > > > --- Jeff Hinrichs - DM&T wrote: > >> While I haven't done any SOAP with python, here are >> some of the things >> that I know. >> >> CherryPy can run under apache via mod_wsgi >> > http://code.google.com/p/modwsgi/wiki/IntegrationWithCherryPy >> so you >> should be able to get yourself all the goodness of >> apache with pretty >> much no code modification. >> >> Connection Pooling: depends on the database you are >> using. Is it >> thread-safe? See >> http://tools.cherrypy.org/wiki/Databases for more >> insight. >> >> regards, >> >> Jeff >> >> On Mon, May 19, 2008 at 9:53 AM, freeav8r >> wrote: >> > Hi All, >> > >> > I need to implement a number of SOAP web services >> in >> > Python for an enterprise level system (lots of >> > traffic). Prototypes are up and running on >> cherrypy's >> > WSGI server without any form of connection pooling >> for >> > the database connections. >> > >> > Any suggestions on what technologies and >> frameworks >> > that will allow the following: >> > >> > 1. Ability to utilize existing apache web servers >> > 2. Connection pooling to a database for the >> database >> > connections that the web services will consume >> > 3. Generation of WSDL for (and compatibility >> with) >> > Python, Java, and Microsoft .net clients. >> > >> > Any suggestions? Anyone on the list already doing >> > this? >> > >> > -freeav8r >> > >> > >> > >> > >> > >> > _______________________________________________ >> > Omaha Python Users Group mailing list >> > Omaha at python.org >> > http://mail.python.org/mailman/listinfo/omaha >> > http://www.OmahaPython.org >> > >> >> >> >> -- >> Jeff Hinrichs >> Dundee Media & Technology, Inc >> jeffh at dundeemt.com >> 402.218.1473 >> web: www.dundeemt.com >> blog: inre.dundeemt.com >> _______________________________________________ >> Omaha Python Users Group mailing list >> Omaha at python.org >> http://mail.python.org/mailman/listinfo/omaha >> http://www.OmahaPython.org >> > > > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From newz at bearfruit.org Mon May 19 18:23:17 2008 From: newz at bearfruit.org (Matthew Nuzum) Date: Mon, 19 May 2008 11:23:17 -0500 Subject: [omaha] Python SOAP and Apache In-Reply-To: <279663.6126.qm@web34206.mail.mud.yahoo.com> References: <279663.6126.qm@web34206.mail.mud.yahoo.com> Message-ID: On Mon, May 19, 2008 at 9:53 AM, freeav8r wrote: > Hi All, > > I need to implement a number of SOAP web services in > Python for an enterprise level system (lots of > traffic). Prototypes are up and running on cherrypy's > WSGI server without any form of connection pooling for > the database connections. > 3. Generation of WSDL for (and compatibility with) > Python, Java, and Microsoft .net clients. I don't know of a way to do this automatically with python. Rumour has it that it is tricky to do since one function can have different input types and return types. For example: def multiply(x, y): ret x * y >>> multiply('hi', 2) 'hihi' >>> multiply(5, 2) 10 One way I've seen suggested is to use a tool from another language to create your wsdl file. So for example, create a java project in netbeans and then create stub functions named the same as your python functions and having the same input types and return values and then let that tool generate your wsdl file. I'll be honest, unless using Java or .Net I hate soap. SOAPpy make it pretty easy to consume web services using wsdl but every attempt to server them has been fraught with difficulty (same is true for PHP4 -- Matthew Nuzum newz2000 on freenode From jeffh at dundeemt.com Mon May 19 21:20:06 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Mon, 19 May 2008 14:20:06 -0500 Subject: [omaha] Python SOAP and Apache In-Reply-To: <309670.83834.qm@web34208.mail.mud.yahoo.com> References: <5aaed53f0805190815y16ec62a5qa992810d5bd7696f@mail.gmail.com> <309670.83834.qm@web34208.mail.mud.yahoo.com> Message-ID: <5aaed53f0805191220t755b9418rbdf385d6ac013e85@mail.gmail.com> On Mon, May 19, 2008 at 10:36 AM, freeav8r wrote: > Hi Jeff and all, > > Thanks for the response. The WSGI mod appears to be > what we're looking for to connect to Apache. We need > true connection pooling though since we won't know > which of many databases to connect to until the > individual request is processed. > > If we are to run the CherryPy application as WSGI in > apache without requiring the internal CherryPy engine > to be run (this appears to be the most efficent > setup), any suggestions on implementing connection > pooling with apache and mysql so that the python > application has access to the connections? The link I posted, http://tools.cherrypy.org/wiki/Databases gives a good way to setup your connections on a per thread basis for mysql. When you are using mod_wsgi, you can tell it (as opposed to the cherrypy server) how many instances/threads to start and set a maximum. How many different DB connections are you talking about? In the example, they use a simple vector, db, as the solution for cherrypy.thread_data. However, nothing precludes you from using a list or dictionary of connections. i.e. def connect(thread_index): # Create a connection and store it in the current thread cherrypy.thread_data.db = {} cherrypy.thread_data.db['db1'] = MySQLdb.connect('host', 'user', 'password', 'dbname') cherrypy.thread_data.db['db2'] = MySQLdb.connect('host2', 'user2', 'password2', 'dbname2') ... If you have 20 databases, each thread would have 20 connections -- 1 to each db. Then it would depend on how many threads/processes you end up starting. I've used similar for an app that connected for 4 different databases. hope that helps. -jeff > > > -freeav8r > > > --- Jeff Hinrichs - DM&T wrote: > >> While I haven't done any SOAP with python, here are >> some of the things >> that I know. >> >> CherryPy can run under apache via mod_wsgi >> > http://code.google.com/p/modwsgi/wiki/IntegrationWithCherryPy >> so you >> should be able to get yourself all the goodness of >> apache with pretty >> much no code modification. >> >> Connection Pooling: depends on the database you are >> using. Is it >> thread-safe? See >> http://tools.cherrypy.org/wiki/Databases for more >> insight. >> >> regards, >> >> Jeff >> >> On Mon, May 19, 2008 at 9:53 AM, freeav8r >> wrote: >> > Hi All, >> > >> > I need to implement a number of SOAP web services >> in >> > Python for an enterprise level system (lots of >> > traffic). Prototypes are up and running on >> cherrypy's >> > WSGI server without any form of connection pooling >> for >> > the database connections. >> > >> > Any suggestions on what technologies and >> frameworks >> > that will allow the following: >> > >> > 1. Ability to utilize existing apache web servers >> > 2. Connection pooling to a database for the >> database >> > connections that the web services will consume >> > 3. Generation of WSDL for (and compatibility >> with) >> > Python, Java, and Microsoft .net clients. >> > >> > Any suggestions? Anyone on the list already doing >> > this? >> > >> > -freeav8r >> > >> > >> > >> > >> > >> > _______________________________________________ >> > Omaha Python Users Group mailing list >> > Omaha at python.org >> > http://mail.python.org/mailman/listinfo/omaha >> > http://www.OmahaPython.org >> > >> >> >> >> -- >> Jeff Hinrichs >> Dundee Media & Technology, Inc >> jeffh at dundeemt.com >> 402.218.1473 >> web: www.dundeemt.com >> blog: inre.dundeemt.com >> _______________________________________________ >> Omaha Python Users Group mailing list >> Omaha at python.org >> http://mail.python.org/mailman/listinfo/omaha >> http://www.OmahaPython.org >> > > > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From cbc at unc.edu Mon May 19 22:03:38 2008 From: cbc at unc.edu (Chris Calloway) Date: Mon, 19 May 2008 16:03:38 -0400 Subject: [omaha] Python and Plone Boot Camps in Chapel Hill, NC Message-ID: <4831DD1A.6020301@unc.edu> Triangle (NC) Zope and Python Users Group (TriZPUG) is proud to open registration for our fourth annual ultra-low cost Plone and Python training camps, BootCampArama 2008: http://trizpug.org/boot-camp/2008/ Registration is now open for: PyCamp: Python Boot Camp, August 4 - 8 Plone Boot Camp: Customizing Plone, July 28 - August 1 Advanced Plone Boot Camp: Plone 3 Techniques, August 4 - 8 All of these take place on the campus of the University of North Carolina at Chapel Hill in state of the art high tech classrooms, with free mass transit, low-cost accommodations with free wireless, and convenient dining options. Plone Boot Camp is taught by Joel Burton, twice chair of the Plone Foundation. Joel has logged more the 200 days at the head of Plone classrooms on four continents. See plonebootcamps.com for dozens of testimonials from Joel's students. PyCamp is taught by Chris Calloway, facilitator for TriZPUG and application analyst for the Southeast Coastal Ocean Observing System. Chris has developed PyCamp for over 1500 hours on behalf of Python user groups. Early bird registration runs through June 30. So register today! PyCamp is TriZPUG's Python Boot Camp, which takes a programmer familiar with basic programming concepts to the status of Python developer with one week of training. If you have previous scripting or programming experience and want to step into Python programming as quickly and painlessly as possible, this boot camp is for you. PyCamp is also the perfect follow-on to Plone Boot Camp: Customizing Plone the previous week. At Plone Boot Camp: Customizing Plone you will learn the essentials you need to build your Plone site and deploy it. This course is the most popular in the Plone world--for a good reason: it teaches you practical skills in a friendly, hands-on format. This bootcamp is aimed at: * people with HTML or web design experience * people with some or no Python experience * people with some or no Zope/Plone experience It covers using Plone, customizing, and deploying Plone sites. At Advanced Plone Boot Camp: Plone 3 Techniques you will learn to build a site using the best practices of Plone 3 as well as advance your skills in scripting and developing for Plone. The course covers the new technologies in Plone 3.0 and 3.1 intended for site integrators and developers: our new portlet infrastructure, viewlets, versioning, and a friendly introduction to Zope 3 component architecture. Now, updated for Plone 3.1! The course is intended for people who have experience with the basics of Plone site development and HTML/CSS. It will cover what you need to know to take advantage of these new technologies in Plone 3. For more information contact: info at trizpug.org From jeffh at dundeemt.com Tue May 20 04:56:14 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Mon, 19 May 2008 21:56:14 -0500 Subject: [omaha] ANN: Free 3 month subscription to Python magazine Message-ID: <5aaed53f0805191956u5238218cn17cc124a8389a4e9@mail.gmail.com> Doug Hellman, the Technical Editor for Python Magazine is offering a free 3 month subscription to Python Magazine (http://www.pythonmagazine.com) to members of user groups who discuss Python-related topics. To take advantage of the offer, go to the web site (http://www.pythonmagazine.com) and set up an account (that's already free). When you register, the site will ask for an email address to identify the account. After you set up your account, email me the address you used to signed up. I will then forward the list of all the email addresses used, along with the name of the user group represented, Doug will take care of the rest. So get signed up, send me your email and I'll get the list to Doug. It's a good mag in my opinion -- I already have a paid subscription. Jeff Hinrichs jeffh at dundeemt.com web: www.dundeemt.com blog: inre.dundeemt.com From elicriffield at gmail.com Tue May 20 05:06:29 2008 From: elicriffield at gmail.com (Eli Criffield) Date: Mon, 19 May 2008 23:06:29 -0400 Subject: [omaha] ANN: Free 3 month subscription to Python magazine In-Reply-To: <5aaed53f0805191956u5238218cn17cc124a8389a4e9@mail.gmail.com> References: <5aaed53f0805191956u5238218cn17cc124a8389a4e9@mail.gmail.com> Message-ID: <18e3f33d0805192006x14fbf82cpa56103a2ac4a4da4@mail.gmail.com> elicriffield at gmail.com is the address i used to sign up. Eli On Mon, May 19, 2008 at 10:56 PM, Jeff Hinrichs - DM&T wrote: > Doug Hellman, the Technical Editor for Python Magazine is offering a > free 3 month subscription to Python Magazine > (http://www.pythonmagazine.com) to members of user groups who discuss > Python-related topics. > > To take advantage of the offer, go to the web site > (http://www.pythonmagazine.com) and set up an account (that's already > free). When you register, the site will ask for an email address to > identify the account. After you set up your account, email me the > address you used to signed up. I will then forward the list of all > the email addresses used, along with the name of the user group > represented, Doug will take care of the rest. > > > So get signed up, send me your email and I'll get the list to Doug. > It's a good mag in my opinion -- I already have a paid subscription. > > > Jeff Hinrichs > jeffh at dundeemt.com > web: www.dundeemt.com > blog: inre.dundeemt.com > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From freeav8r at yahoo.com Tue May 20 17:00:11 2008 From: freeav8r at yahoo.com (freeav8r) Date: Tue, 20 May 2008 08:00:11 -0700 (PDT) Subject: [omaha] Python SOAP and Apache In-Reply-To: <5aaed53f0805191220t755b9418rbdf385d6ac013e85@mail.gmail.com> Message-ID: <29327.75017.qm@web34201.mail.mud.yahoo.com> Jeff, The key here for us is knowing that you can tell mod_wsgi how many instances/threads to start and that they can persist throughout multiple sessions. Thanks for the info - It shortcutted the research needed. Jeff, Mike, Matthew, Thanks for the feedback. I hope this info helps someone else. We're using cherrypy and soaplib right now for the prototype. Setting up soap couldn't be easier with this combination (16 lines of code for the server example -- see below). The documentation is sparse, but with some digging, you'd find that the WSDL is dynamically created and accessable at http://localhost:7789/soap/api.wsdl We had no trouble accessing the web service from python or .net and can share what we learned if anyone runs into issues. The static typing of the web service is handled with the line: @soapmethod(String,Integer,_returns=Array(String)) =========== Example ===================== from soaplib.wsgi_soap import SimpleWSGISoapApp from soaplib.service import soapmethod from soaplib.serializers.primitive import String, Integer, Array class HelloWorldService(SimpleWSGISoapApp): @soapmethod(String,Integer,_returns=Array(String)) def say_hello(self,name,times): results = [] for i in range(0,times): results.append('Hello, %s'%name) #return '|'.join(results) return results if __name__=='__main__': # this example uses CherryPy2.2, use cherrypy.wsgiserver.CherryPyWSGIServer for CherryPy 3.0 from cherrypy.wsgiserver import CherryPyWSGIServer server = CherryPyWSGIServer(('localhost',7789),HelloWorldService()) server.start() --- Jeff Hinrichs - DM&T wrote: > On Mon, May 19, 2008 at 10:36 AM, freeav8r > wrote: > > Hi Jeff and all, > > > > Thanks for the response. The WSGI mod appears to > be > > what we're looking for to connect to Apache. We > need > > true connection pooling though since we won't know > > which of many databases to connect to until the > > individual request is processed. > > > > If we are to run the CherryPy application as WSGI > in > > apache without requiring the internal CherryPy > engine > > to be run (this appears to be the most efficent > > setup), any suggestions on implementing connection > > pooling with apache and mysql so that the python > > application has access to the connections? > The link I posted, > http://tools.cherrypy.org/wiki/Databases gives a > good way to setup your connections on a per thread > basis for mysql. > When you are using mod_wsgi, you can tell it (as > opposed to the > cherrypy server) how many instances/threads to start > and set a > maximum. How many different DB connections are you > talking about? In > the example, they use a simple vector, db, as the > solution for > cherrypy.thread_data. However, nothing precludes > you from using a > list or dictionary of connections. > i.e. > > def connect(thread_index): > # Create a connection and store it in the > current thread > cherrypy.thread_data.db = {} > cherrypy.thread_data.db['db1'] = > MySQLdb.connect('host', 'user', > 'password', 'dbname') > cherrypy.thread_data.db['db2'] = > MySQLdb.connect('host2', 'user2', > 'password2', 'dbname2') > ... > > If you have 20 databases, each thread would have 20 > connections -- 1 > to each db. Then it would depend on how many > threads/processes you > end up starting. I've used similar for an app that > connected for 4 > different databases. > > hope that helps. > > -jeff > > > > > > > -freeav8r > > > > > > --- Jeff Hinrichs - DM&T > wrote: > > > >> While I haven't done any SOAP with python, here > are > >> some of the things > >> that I know. > >> > >> CherryPy can run under apache via mod_wsgi > >> > > > http://code.google.com/p/modwsgi/wiki/IntegrationWithCherryPy > >> so you > >> should be able to get yourself all the goodness > of > >> apache with pretty > >> much no code modification. > >> > >> Connection Pooling: depends on the database you > are > >> using. Is it > >> thread-safe? See > >> http://tools.cherrypy.org/wiki/Databases for more > >> insight. > >> > >> regards, > >> > >> Jeff > >> > >> On Mon, May 19, 2008 at 9:53 AM, freeav8r > >> wrote: > >> > Hi All, > >> > > >> > I need to implement a number of SOAP web > services > >> in > >> > Python for an enterprise level system (lots of > >> > traffic). Prototypes are up and running on > >> cherrypy's > >> > WSGI server without any form of connection > pooling > >> for > >> > the database connections. > >> > > >> > Any suggestions on what technologies and > >> frameworks > >> > that will allow the following: > >> > > >> > 1. Ability to utilize existing apache web > servers > >> > 2. Connection pooling to a database for the > >> database > >> > connections that the web services will consume > >> > 3. Generation of WSDL for (and compatibility > >> with) > >> > Python, Java, and Microsoft .net clients. > >> > > >> > Any suggestions? Anyone on the list already > doing > >> > this? > >> > > >> > -freeav8r > >> > > >> > > >> > > >> > > >> > > >> > _______________________________________________ > >> > Omaha Python Users Group mailing list > >> > Omaha at python.org > >> > http://mail.python.org/mailman/listinfo/omaha > >> > http://www.OmahaPython.org > >> > > >> > >> > >> > >> -- > >> Jeff Hinrichs > >> Dundee Media & Technology, Inc > >> jeffh at dundeemt.com > >> 402.218.1473 > >> web: www.dundeemt.com > >> blog: inre.dundeemt.com > >> _______________________________________________ > >> Omaha Python Users Group mailing list > >> Omaha at python.org > >> http://mail.python.org/mailman/listinfo/omaha > >> http://www.OmahaPython.org > >> > > > > > > > > > > _______________________________________________ > > Omaha Python Users Group mailing list > > Omaha at python.org > > http://mail.python.org/mailman/listinfo/omaha > > http://www.OmahaPython.org > > > > > > -- > Jeff Hinrichs > Dundee Media & Technology, Inc > jeffh at dundeemt.com > 402.218.1473 > web: www.dundeemt.com > blog: inre.dundeemt.com > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From mike at hostetlerhome.com Wed May 21 19:12:02 2008 From: mike at hostetlerhome.com (Mike Hostetler) Date: Wed, 21 May 2008 12:12:02 -0500 (CDT) Subject: [omaha] The Python PIL Message-ID: <43492.69.58.248.102.1211389922.squirrel@email.powweb.com> Sometimes Python just amazes me . . . I exported a bunch of screens as JPEGs from one of the apps that I use and found out that I now had 22 files that were 5500x5500.? And only the top-right corner was filled out.? Ugh. So I took a sampling and figured out what box would contain every jpg, and grabbed the Imaging library: http://www.pythonware.com/products/pil/ And wrote the following: import os,sys from path import path import Image box = (0,0,1000,750) if __name__=='__main__': ??? inpath = path("images") ??? outpath = path("images_smaller") ??? for fname in inpath.glob("*.jpg"): ??????? outname = outpath/fname.name ??????? img = Image.open(fname) ??????? rect = img.crop(box) ??????? rect.save(outname) It took 30 seconds to run, and now I have 22 images that are just the right size. From luke at dashjr.org Fri May 23 17:37:47 2008 From: luke at dashjr.org (Luke -Jr) Date: Fri, 23 May 2008 15:37:47 +0000 Subject: [omaha] broken OLUG email confirmations Message-ID: <200805231537.50298.luke@dashjr.org> If anyone cares, neither the first link nor replying works... ---------- Forwarded Message ---------- Subject: confirm e5b1bd9ef63b3827e204770166c1b20ab2ed8083 Date: Friday 23 May 2008 From: olug-request at olug.org To: luke at dashjr.org Your membership in the mailing list OLUG has been disabled due to excessive bounces The last bounce received from you was dated 16-May-2008. You will not get any more messages from this list until you re-enable your membership. You will receive 2 more reminders like this before your membership in the list is deleted. To re-enable your membership, you can simply respond to this message (leaving the Subject: line intact), or visit the confirmation page at http://lists.olug.org/mailman/confirm/olug/e5b1bd9ef63b3827e204770166c1b20ab2ed8083 You can also visit your membership page at http://lists.olug.org/mailman/options/olug/luke%40dashjr.org On your membership page, you can change various delivery options such as your email address and whether you get digests or not. As a reminder, your membership password is ****** If you have any questions or problems, you can contact the list owner at olug-owner at olug.org ------------------------------------------------------- ---------- Forwarded Message ---------- Subject: The results of your email commands Date: Friday 23 May 2008 From: olug-bounces at olug.org To: luke at dashjr.org The results of your email command are provided below. Attached is your original message. - Results: Invalid confirmation string. Note that confirmation strings expire approximately 3 days after the initial subscription request. If your confirmation has expired, please try to re-submit your original request or message. From jay at jays.net Fri May 23 18:10:55 2008 From: jay at jays.net (Jay Hannah) Date: Fri, 23 May 2008 11:10:55 -0500 Subject: [omaha] broken OLUG email confirmations In-Reply-To: <200805231537.50298.luke@dashjr.org> References: <200805231537.50298.luke@dashjr.org> Message-ID: <4836EC8F.1020607@jays.net> Luke -Jr wrote: > If anyone cares, neither the first link nor replying works... olug.org is the Omaha Linux Users Group. This email is the Omaha Python Users Group. Did you confuse the two groups somewhere? j From JeffH at delasco.com Fri May 23 20:20:10 2008 From: JeffH at delasco.com (Jeff Hinrichs) Date: Fri, 23 May 2008 13:20:10 -0500 Subject: [omaha] broken OLUG email confirmations In-Reply-To: <4836EC8F.1020607@jays.net> Message-ID: <94BC3D204A17734681830A69CBF99993DF80B4@lilo.delasco.pri> Didn't even see that in the initial message, I just looked at the URLs in the message. Luke, are you having the problem with the Python list? I don't show any bounces from you there. -jeff -----Original Message----- From: omaha-bounces at python.org [mailto:omaha-bounces at python.org] On Behalf Of Jay Hannah Sent: Friday, May 23, 2008 11:11 AM To: Omaha Python Users Group Subject: Re: [omaha] broken OLUG email confirmations Luke -Jr wrote: > If anyone cares, neither the first link nor replying works... olug.org is the Omaha Linux Users Group. This email is the Omaha Python Users Group. Did you confuse the two groups somewhere? j _______________________________________________ Omaha Python Users Group mailing list Omaha at python.org http://mail.python.org/mailman/listinfo/omaha http://www.OmahaPython.org From luke at dashjr.org Fri May 23 20:20:58 2008 From: luke at dashjr.org (Luke -Jr) Date: Fri, 23 May 2008 18:20:58 +0000 Subject: [omaha] broken OLUG email confirmations In-Reply-To: <200805231537.50298.luke@dashjr.org> References: <200805231537.50298.luke@dashjr.org> Message-ID: <200805231821.00908.luke@dashjr.org> On Friday 23 May 2008, Luke -Jr wrote: > If anyone cares, neither the first link nor replying works... Oops, sorry, wrong list From jeffh at dundeemt.com Sat May 24 00:11:15 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Fri, 23 May 2008 17:11:15 -0500 Subject: [omaha] LinkedIn: Omaha Python Message-ID: <5aaed53f0805231511o602a74fcs24f6e3e3c70cb231@mail.gmail.com> I've created a Omaha Python Uses Group on LinkedIn. If you use linkedin go ahead and join the group. http://www.linkedin.com/e/myg/ -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From luke at dashjr.org Sat May 24 00:46:50 2008 From: luke at dashjr.org (Luke -Jr) Date: Fri, 23 May 2008 22:46:50 +0000 Subject: [omaha] LinkedIn: Omaha Python In-Reply-To: <5aaed53f0805231511o602a74fcs24f6e3e3c70cb231@mail.gmail.com> References: <5aaed53f0805231511o602a74fcs24f6e3e3c70cb231@mail.gmail.com> Message-ID: <200805232246.54406.luke@dashjr.org> On Friday 23 May 2008, Jeff Hinrichs - DM&T wrote: > I've created a Omaha Python Uses Group on LinkedIn. If you use > linkedin go ahead and join the group. > > http://www.linkedin.com/e/myg/ Just shows the groups I'm already part of... From jeffh at dundeemt.com Sat May 24 05:01:06 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Fri, 23 May 2008 22:01:06 -0500 Subject: [omaha] LinkedIn: Omaha Python In-Reply-To: <200805232246.54406.luke@dashjr.org> References: <5aaed53f0805231511o602a74fcs24f6e3e3c70cb231@mail.gmail.com> <200805232246.54406.luke@dashjr.org> Message-ID: <5aaed53f0805232001i380febf7t6a3a3ef5b327dae2@mail.gmail.com> Sorry about that, the link I should have sent, http://www.linkedin.com/e/gis/109308/4E1F9165B74D -Jeff On Fri, May 23, 2008 at 5:46 PM, Luke -Jr wrote: > On Friday 23 May 2008, Jeff Hinrichs - DM&T wrote: >> I've created a Omaha Python Uses Group on LinkedIn. If you use >> linkedin go ahead and join the group. >> >> http://www.linkedin.com/e/myg/ > > Just shows the groups I'm already part of... > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Jeff Hinrichs Dundee Media & Technology, Inc jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From jeffh at dundeemt.com Sat May 24 19:36:25 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Sat, 24 May 2008 12:36:25 -0500 Subject: [omaha] We need a logo... Message-ID: <5aaed53f0805241036g41086798v73f907c666f8b6a5@mail.gmail.com> I've been futzing around with Inkscape this morning trying to come up with an idea for a group logo. Now admittedly, I am not an artist, but to get the ball rolling, here is my first whack. Please feel free to throw your hat / logo idea in the ring. We can vote on them and pick the popular one. -- Jeff Hinrichs jeffh at dundeemt.com 402.218.1473 web: www.dundeemt.com blog: inre.dundeemt.com From Jay at RebootTheUser.com Sat May 24 19:46:16 2008 From: Jay at RebootTheUser.com (Jay Swackhamer) Date: Sat, 24 May 2008 12:46:16 -0500 Subject: [omaha] We need a logo... In-Reply-To: <5aaed53f0805241036g41086798v73f907c666f8b6a5@mail.gmail.com> References: <5aaed53f0805241036g41086798v73f907c666f8b6a5@mail.gmail.com> Message-ID: <20080524124616.o30g6fwakgsoocsw@webmail.hotr.com> If you can get one in inkscape , I can cut it out of white or black vinyl, so you can show your allegiance...... -- Jay Swackhamer Reboot The User 13416 A Street Omaha, NE 68144 402-933-6449 Hours: 7pm-11pm Wed-Fri, 5pm-9pm Sat. http://www.reboottheuser.com http://www.cafepress.com/rtu http://stores.ebay.com/RebootTheUser http://www.hotr.com Quoting Jeff Hinrichs - DM&T : > I've been futzing around with Inkscape this morning trying to come up > with an idea for a group logo. Now admittedly, I am not an artist, > but to get the ball rolling, here is my first whack. > > Please feel free to throw your hat / logo idea in the ring. We can > vote on them and pick the popular one. > > -- > Jeff Hinrichs > jeffh at dundeemt.com > 402.218.1473 > web: www.dundeemt.com > blog: inre.dundeemt.com > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From jeffh at dundeemt.com Sat May 24 17:32:35 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Sat, 24 May 2008 10:32:35 -0500 Subject: [omaha] We need a logo... Message-ID: <5aaed53f0805240832q48b49f22g6766dc713f50dff1@mail.gmail.com> I've been futzing around with Inkscape this morning trying to come up with an idea for a group logo. Now admittedly, I am not an artist, but to get the ball rolling, here is my first whack. Please feel free to throw your hat / logo idea in the ring. We can vote on them and pick the popular one. -- Jeff Hinrichs jeffh at dundeemt.com -------------- next part -------------- A non-text attachment was scrubbed... Name: OmahaPython-logo.svg Type: image/svg+xml Size: 7261 bytes Desc: not available URL: From dundeemt at gmail.com Sun May 25 03:45:37 2008 From: dundeemt at gmail.com (dundeemt at gmail.com) Date: Sat, 24 May 2008 18:45:37 -0700 Subject: [omaha] OmahaPython-logo-100x50 Message-ID: <001636457bf63fd9ab044e043824@google.com> I've shared a document with you called "OmahaPython-logo-100x50": http://docs.google.com/Doc?id=dcfq8f6s_26ggvdhdht&invite=j9v3g6 It's not an attachment -- it's stored online at Google Docs. To open this document, just click the link above. --- Here is a 100x50 first crack at a group logo. I've got an svg file if anyone wants me to email the original. -Jeff From jeffh at dundeemt.com Sun May 25 03:46:51 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Sat, 24 May 2008 20:46:51 -0500 Subject: [omaha] We need a logo... In-Reply-To: <20080524124616.o30g6fwakgsoocsw@webmail.hotr.com> References: <5aaed53f0805241036g41086798v73f907c666f8b6a5@mail.gmail.com> <20080524124616.o30g6fwakgsoocsw@webmail.hotr.com> Message-ID: <5aaed53f0805241846v3101835aw74f0757dd9bcf39f@mail.gmail.com> Cool, That is the tool I am trying to use. I just posted a link to the group. -Jeff On Sat, May 24, 2008 at 12:46 PM, Jay Swackhamer wrote: > If you can get one in inkscape , I can cut it out of white or black vinyl, > so you can show your allegiance...... > > -- > Jay Swackhamer > Reboot The User > 13416 A Street > Omaha, NE 68144 > 402-933-6449 > Hours: 7pm-11pm Wed-Fri, 5pm-9pm Sat. > http://www.reboottheuser.com > http://www.cafepress.com/rtu > http://stores.ebay.com/RebootTheUser > http://www.hotr.com > > > Quoting Jeff Hinrichs - DM&T : > >> I've been futzing around with Inkscape this morning trying to come up >> with an idea for a group logo. Now admittedly, I am not an artist, >> but to get the ball rolling, here is my first whack. >> >> Please feel free to throw your hat / logo idea in the ring. We can >> vote on them and pick the popular one. >> >> -- >> Jeff Hinrichs >> jeffh at dundeemt.com >> 402.218.1473 >> web: www.dundeemt.com >> blog: inre.dundeemt.com >> _______________________________________________ >> Omaha Python Users Group mailing list >> Omaha at python.org >> http://mail.python.org/mailman/listinfo/omaha >> http://www.OmahaPython.org >> > > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From jeffh at dundeemt.com Sun May 25 04:11:18 2008 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Sat, 24 May 2008 21:11:18 -0500 Subject: [omaha] We need a logo... In-Reply-To: <5aaed53f0805241846v3101835aw74f0757dd9bcf39f@mail.gmail.com> References: <5aaed53f0805241036g41086798v73f907c666f8b6a5@mail.gmail.com> <20080524124616.o30g6fwakgsoocsw@webmail.hotr.com> <5aaed53f0805241846v3101835aw74f0757dd9bcf39f@mail.gmail.com> Message-ID: <5aaed53f0805241911v45fbb5f4i73451f1834450f8b@mail.gmail.com> Here is a link to a 640x480 export -- easier to see http://docs.google.com/Doc?id=dcfq8f6s_28g9fpcsfs I've been reading through the PSF stuff on using a derivative logo, http://www.python.org/psf/trademarks/ -- I've emailed them to get better feedback on what is/isn't permissible by user groups. -jeff On Sat, May 24, 2008 at 8:46 PM, Jeff Hinrichs - DM&T wrote: > Cool, > That is the tool I am trying to use. I just posted a link to the group. > > -Jeff > > On Sat, May 24, 2008 at 12:46 PM, Jay Swackhamer wrote: >> If you can get one in inkscape , I can cut it out of white or black vinyl, >> so you can show your allegiance...... >> >> -- >> Jay Swackhamer >> Reboot The User >> 13416 A Street >> Omaha, NE 68144 >> 402-933-6449 >> Hours: 7pm-11pm Wed-Fri, 5pm-9pm Sat. >> http://www.reboottheuser.com >> http://www.cafepress.com/rtu >> http://stores.ebay.com/RebootTheUser >> http://www.hotr.com >> >> >> Quoting Jeff Hinrichs - DM&T : >> >>> I've been futzing around with Inkscape this morning trying to come up >>> with an idea for a group logo. Now admittedly, I am not an artist, >>> but to get the ball rolling, here is my first whack. >>> >>> Please feel free to throw your hat / logo idea in the ring. We can >>> vote on them and pick the popular one. >>> >>> -- >>> Jeff Hinrichs >>> jeffh at dundeemt.com >>> 402.218.1473 >>> web: www.dundeemt.com >>> blog: inre.dundeemt.com >>> _______________________________________________ >>> Omaha Python Users Group mailing list >>> Omaha at python.org >>> http://mail.python.org/mailman/listinfo/omaha >>> http://www.OmahaPython.org >>> >> >> >> >> _______________________________________________ >> Omaha Python Users Group mailing list >> Omaha at python.org >> http://mail.python.org/mailman/listinfo/omaha >> http://www.OmahaPython.org >> >