From cbc at unc.edu Sat Nov 3 21:58:57 2012 From: cbc at unc.edu (Chris Calloway) Date: Sat, 03 Nov 2012 16:58:57 -0400 Subject: [CentralOH] Django Fundamentals Bootcamp Message-ID: <50958591.6020406@unc.edu> Triangle Python Users Group members Caktus Consulting Group announce Django Fundamentals Bootcamp, a two day beginners course for anyone who wants to learn the basics of building a Django web application. Designed for developers with basic programming experience, this course will provide you with the essentials needed to build and develop a simple Django application in a hands-on and interactive setting. The training will focus on the construction of a crossword drill application to illustrate Django?s architecture and versatility. Django Fundamentals Bootcamp takes place Saturday, Janaury 12th and Sunday, January 13, 2013 at Caktus, 209 Lloyd St, Suite 110, Carrboro, NC. Tickets are $550 for the early bird special through November 12, 2012, $700 thereafter, and include coffee, drinks, snacks, and two lunches. For more information visit: http://www.djangobootcamp.com -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From joskra42.list at gmail.com Sun Nov 4 19:53:56 2012 From: joskra42.list at gmail.com (Joshua Kramer) Date: Sun, 4 Nov 2012 13:53:56 -0500 Subject: [CentralOH] What's your favorite Django blogging engine? Message-ID: Hi Folks - Is anyone using a Django blogging engine? I am putting up a blog system that may be used by multiple users. So far the best combination of features I've seen is TechBlog... but it will require some work before it's ready. Cheers, -JK -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Sun Nov 4 23:15:59 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Sun, 4 Nov 2012 17:15:59 -0500 Subject: [CentralOH] Automated Patches In-Reply-To: <20121025182632.1a5914d4.jep200404@columbus.rr.com> References: <20121025182632.1a5914d4.jep200404@columbus.rr.com> Message-ID: <20121104171559.06dfadd6.jep200404@columbus.rr.com> Brace yourself for some hurlingly bad code below. On Thu, 25 Oct 2012 18:26:32 -0400, jep200404 at columbus.rr.com wrote: > Does a library exist for something like I describe below exist? > If so, I'd prefer to use it and avoid re-inventing the wheel > and NIH[1]. > > I'm dealing with a many input files, some of which have some bad > data. Coding one-off ad-hoc workarounds is bad for production. > I'm tempted to write a file-like class for reading the input > files and automatically finding and applying corresponding > patch files. The patch files would be UNIX patch files and > their names would be the input file name or sha1sum of the > input file, with '.patch' appended. > > The generation of the patch files would be manual. > That hassle would not be eliminated, > but the application of them would be automated, > and the input files would be maintained in their original > state, so one wouldn't have to worry about whether one > had the original or corrected version of the input file. I wrote something that works, but the code is quite disgusting. What improvements can you make to hurl.py while avoiding temporary files and changes to existing data files? Partial improvements are welcome. from subprocess import Popen, PIPE from zipfile import ZipFile import fnmatch import pipes def autopatch(filename, inside_filename): patch_filename = '.'.join([filename, inside_filename, 'ed-patch']) # print 'patch_filename', repr(patch_filename) try: raw_patch_file = open(patch_filename, 'rU') except IOError: # No patch file exists, so just read inside_filename # print patch_filename, 'does not exist' patched_file = ZipFile(filename).open(inside_filename, 'rU') else: # print patch_filename, 'exists' patch = Popen( ['awk', '{print} END {print "1,$p"}'], stdin=raw_patch_file, stdout=PIPE, universal_newlines=True,).stdout patched_file = Popen( ['ed', '-s', '!unzip -p ' + pipes.quote(filename) + ' ' + pipes.quote(inside_filename)], stdin=patch, stdout=PIPE, stderr=open('/dev/null', 'w'), universal_newlines=True,).stdout return patched_file filename='foo.zip' if True: z = ZipFile(filename) for inside_filename in fnmatch.filter(z.namelist(), '*author.txt'): patched_file = autopatch(filename, inside_filename) for line in patched_file.readlines(): print line, With files from the attached file, foo.tgz, it should work as follows. [jep200404 at test ~]$ python hurl.py Aaron Aardvark Boris Bouchet Bjork (rhymes with jerk) Calmus Chavet [jep200404 at test ~]$ rm foo.zip.200707author.txt.ed-patch [jep200404 at test ~]$ python hurl.py Aaron Aardvark Boris Bovchek Calmus Chavet [jep200404 at test ~]$ foo.zip.200707author.txt.ed-patch was generated by diff -e. -------------- next part -------------- A non-text attachment was scrubbed... Name: foo.tgz Type: application/x-gzip Size: 969 bytes Desc: not available URL: From blorenz at gmail.com Mon Nov 5 16:48:13 2012 From: blorenz at gmail.com (Brandon Lorenz) Date: Mon, 5 Nov 2012 10:48:13 -0500 Subject: [CentralOH] What's your favorite Django blogging engine? In-Reply-To: References: Message-ID: Have you been to http://www.djangopackages.com/grids/g/blogs/ ? I have not had experience in any one of these, so I cannot provide any recommendations. Maybe this will suggest some other ones. Brandon On Sun, Nov 4, 2012 at 1:53 PM, Joshua Kramer wrote: > Hi Folks - > > Is anyone using a Django blogging engine? I am putting up a blog system > that may be used by multiple users. So far the best combination of > features I've seen is TechBlog... but it will require some work before it's > ready. > > Cheers, > -JK > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at intellovations.com Mon Nov 5 16:58:39 2012 From: eric at intellovations.com (Eric Floehr) Date: Mon, 5 Nov 2012 10:58:39 -0500 Subject: [CentralOH] What's your favorite Django blogging engine? In-Reply-To: References: Message-ID: Joshua, I've played with Mezzanine (http://mezzanine.jupo.org/) which is one of the more popular and active Django CMS engines. It does Blog, but a lot of other things. Think of it as the Wordpress of Django. It may be more than you need, but it does multi-user nicely, plus static pages, media download, etc. I ultimately went with Wordpress for my business site, but I played around with Mezzanine enough to contribute some stuff back to it. It's nice in that there are sensible defaults, but you can easily extend it. I am also looking at it again to integrate into another site I have that is just using the basic "tutorial" blogging code that's been out there forever. -Eric On Sun, Nov 4, 2012 at 1:53 PM, Joshua Kramer wrote: > Hi Folks - > > Is anyone using a Django blogging engine? I am putting up a blog system > that may be used by multiple users. So far the best combination of > features I've seen is TechBlog... but it will require some work before it's > ready. > > Cheers, > -JK > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joskra42.list at gmail.com Mon Nov 5 18:29:54 2012 From: joskra42.list at gmail.com (Joshua Kramer) Date: Mon, 5 Nov 2012 12:29:54 -0500 Subject: [CentralOH] What's your favorite Django blogging engine? In-Reply-To: References: Message-ID: That's a GREAT link, Eric. I had looked at Mezzanine before but couldn't get it to work with some combination of stuff I had installed. But this time around it was as easy as following the Quick Start instructions on the Mezzanine website. I'm going to look at Mezzanine to construct some sites that I had previously planned for DjangoCMS. (https://www.django-cms.org/) Django-CMS requires a bit more work than Mezzanine. On Mon, Nov 5, 2012 at 10:58 AM, Eric Floehr wrote: > Joshua, > > I've played with Mezzanine (http://mezzanine.jupo.org/) which is one of > the more popular and active Django CMS engines. It does Blog, but a lot of > other things. Think of it as the Wordpress of Django. It may be more than > you need, but it does multi-user nicely, plus static pages, media download, > etc. > > I ultimately went with Wordpress for my business site, but I played around > with Mezzanine enough to contribute some stuff back to it. It's nice in > that there are sensible defaults, but you can easily extend it. > > I am also looking at it again to integrate into another site I have that > is just using the basic "tutorial" blogging code that's been out there > forever. > > -Eric > > > > On Sun, Nov 4, 2012 at 1:53 PM, Joshua Kramer wrote: > >> Hi Folks - >> >> Is anyone using a Django blogging engine? I am putting up a blog system >> that may be used by multiple users. So far the best combination of >> features I've seen is TechBlog... but it will require some work before it's >> ready. >> >> Cheers, >> -JK >> >> _______________________________________________ >> CentralOH mailing list >> CentralOH at python.org >> http://mail.python.org/mailman/listinfo/centraloh >> >> > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Mon Nov 5 22:32:32 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 5 Nov 2012 16:32:32 -0500 Subject: [CentralOH] Automated Patches: Version Control Systems In-Reply-To: <20121029182547.808686f2.nludban@columbus.rr.com> References: <20121025182632.1a5914d4.jep200404@columbus.rr.com> <20121029165334.78d56b5e.jep200404@columbus.rr.com> <20121029182547.808686f2.nludban@columbus.rr.com> Message-ID: <20121105163232.6d19dada.jep200404@columbus.rr.com> On Mon, 29 Oct 2012 18:25:47 -0400, Neil Ludban wrote: > On Mon, 29 Oct 2012 16:53:34 -0400 jep200404 at columbus.rr.com wrote: > > I am archiving data files as originally received. > > It is a requirement to preserve the original files > > as received, regardless of how good or bad they are. > > They are all compressed. There are many files. > > Some of them are around 1/2 Gigabyte. > > We have enough data that we have to move files that are not > > likely to be needed, from production servers, to off-line > > storage. > > The internets suggest that subversion is using zlib compression for > everything > You would need to decompress the originals before committing, ... Since it is a requirement to preserve the original (compressed) files as received, using subversion on the uncompressed data would result in doubling the storage requirements (if subversion's compression for internal storage was similar to the compression of the original data). Needing twice as much storage is not attractive, especially since we already have storage limitation issues. Do you know of a version control system that would work efficiently while preserving the original (compressed) files as received? From kurtis.mullins at gmail.com Tue Nov 6 01:20:30 2012 From: kurtis.mullins at gmail.com (Kurtis Mullins) Date: Mon, 5 Nov 2012 19:20:30 -0500 Subject: [CentralOH] What's your favorite Django blogging engine? In-Reply-To: References: Message-ID: I can't release the code or details (NDA), but I've converted Mezzanine into a multiple-user blog pretty easily. Not just one blog with multiple users ... but one blogging system that contained multiple blogs and each blog being modifiable by multiple users. Mezzanine is written in a fairly structured way (mixins, clean code, nice models) so it's very easy to adapt to whatever your needs are. I don't have experience with any other Django-based Blogs. Mezzanine also has a lot of other features that you may or may not want. (e.g. CMS) On the other hand, creating a blog application in Django from scratch is ridiculously easy. Just my 2 cents. On Mon, Nov 5, 2012 at 12:29 PM, Joshua Kramer wrote: > That's a GREAT link, Eric. I had looked at Mezzanine before but couldn't > get it to work with some combination of stuff I had installed. But this > time around it was as easy as following the Quick Start instructions on the > Mezzanine website. > > I'm going to look at Mezzanine to construct some sites that I had > previously planned for DjangoCMS. (https://www.django-cms.org/) > Django-CMS requires a bit more work than Mezzanine. > > > > On Mon, Nov 5, 2012 at 10:58 AM, Eric Floehr wrote: > >> Joshua, >> >> I've played with Mezzanine (http://mezzanine.jupo.org/) which is one of >> the more popular and active Django CMS engines. It does Blog, but a lot of >> other things. Think of it as the Wordpress of Django. It may be more than >> you need, but it does multi-user nicely, plus static pages, media download, >> etc. >> >> I ultimately went with Wordpress for my business site, but I played >> around with Mezzanine enough to contribute some stuff back to it. It's nice >> in that there are sensible defaults, but you can easily extend it. >> >> I am also looking at it again to integrate into another site I have that >> is just using the basic "tutorial" blogging code that's been out there >> forever. >> >> -Eric >> >> >> >> On Sun, Nov 4, 2012 at 1:53 PM, Joshua Kramer wrote: >> >>> Hi Folks - >>> >>> Is anyone using a Django blogging engine? I am putting up a blog system >>> that may be used by multiple users. So far the best combination of >>> features I've seen is TechBlog... but it will require some work before it's >>> ready. >>> >>> Cheers, >>> -JK >>> >>> _______________________________________________ >>> CentralOH mailing list >>> CentralOH at python.org >>> http://mail.python.org/mailman/listinfo/centraloh >>> >>> >> >> _______________________________________________ >> CentralOH mailing list >> CentralOH at python.org >> http://mail.python.org/mailman/listinfo/centraloh >> >> > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From raymondchandleriii at gmail.com Tue Nov 6 01:56:17 2012 From: raymondchandleriii at gmail.com (Raymond Chandler) Date: Mon, 5 Nov 2012 19:56:17 -0500 Subject: [CentralOH] CentralOH Digest, Vol 67, Issue 4 In-Reply-To: References: Message-ID: Mezzanine is by far the best for getting up quickly. Its very wordpressy. Also Django CMS if you want to customize everything. Ive used both. Ive loved both. Cheers, Raymond On Nov 5, 2012 7:20 PM, wrote: > Send CentralOH mailing list submissions to > centraloh at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/centraloh > or, via email, send a message with subject or body 'help' to > centraloh-request at python.org > > You can reach the person managing the list at > centraloh-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of CentralOH digest..." > > > Today's Topics: > > 1. Re: What's your favorite Django blogging engine? (Brandon Lorenz) > 2. Re: What's your favorite Django blogging engine? (Eric Floehr) > 3. Re: What's your favorite Django blogging engine? (Joshua Kramer) > 4. Re: Automated Patches: Version Control Systems > (jep200404 at columbus.rr.com) > 5. Re: What's your favorite Django blogging engine? (Kurtis Mullins) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 5 Nov 2012 10:48:13 -0500 > From: Brandon Lorenz > To: "Mailing list for Central Ohio Python User Group (COhPy)" > > Subject: Re: [CentralOH] What's your favorite Django blogging engine? > Message-ID: > cwjg at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Have you been to http://www.djangopackages.com/grids/g/blogs/ ? I have > not > had experience in any one of these, so I cannot provide any > recommendations. Maybe this will suggest some other ones. > > > Brandon > > > On Sun, Nov 4, 2012 at 1:53 PM, Joshua Kramer >wrote: > > > Hi Folks - > > > > Is anyone using a Django blogging engine? I am putting up a blog system > > that may be used by multiple users. So far the best combination of > > features I've seen is TechBlog... but it will require some work before > it's > > ready. > > > > Cheers, > > -JK > > > > _______________________________________________ > > CentralOH mailing list > > CentralOH at python.org > > http://mail.python.org/mailman/listinfo/centraloh > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/centraloh/attachments/20121105/e1703980/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Mon, 5 Nov 2012 10:58:39 -0500 > From: Eric Floehr > To: "Mailing list for Central Ohio Python User Group (COhPy)" > > Subject: Re: [CentralOH] What's your favorite Django blogging engine? > Message-ID: > < > CAJzarMNWL-fm1BDuW3KGgMduXanYxwLJFv5FeKiurg3Aq1aw_g at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Joshua, > > I've played with Mezzanine (http://mezzanine.jupo.org/) which is one of > the > more popular and active Django CMS engines. It does Blog, but a lot of > other things. Think of it as the Wordpress of Django. It may be more than > you need, but it does multi-user nicely, plus static pages, media download, > etc. > > I ultimately went with Wordpress for my business site, but I played around > with Mezzanine enough to contribute some stuff back to it. It's nice in > that there are sensible defaults, but you can easily extend it. > > I am also looking at it again to integrate into another site I have that is > just using the basic "tutorial" blogging code that's been out there > forever. > > -Eric > > > > On Sun, Nov 4, 2012 at 1:53 PM, Joshua Kramer >wrote: > > > Hi Folks - > > > > Is anyone using a Django blogging engine? I am putting up a blog system > > that may be used by multiple users. So far the best combination of > > features I've seen is TechBlog... but it will require some work before > it's > > ready. > > > > Cheers, > > -JK > > > > _______________________________________________ > > CentralOH mailing list > > CentralOH at python.org > > http://mail.python.org/mailman/listinfo/centraloh > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/centraloh/attachments/20121105/83c0d972/attachment-0001.html > > > > ------------------------------ > > Message: 3 > Date: Mon, 5 Nov 2012 12:29:54 -0500 > From: Joshua Kramer > To: "Mailing list for Central Ohio Python User Group (COhPy)" > > Subject: Re: [CentralOH] What's your favorite Django blogging engine? > Message-ID: > dw+bcBA at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > That's a GREAT link, Eric. I had looked at Mezzanine before but couldn't > get it to work with some combination of stuff I had installed. But this > time around it was as easy as following the Quick Start instructions on the > Mezzanine website. > > I'm going to look at Mezzanine to construct some sites that I had > previously planned for DjangoCMS. (https://www.django-cms.org/) > Django-CMS requires a bit more work than Mezzanine. > > > On Mon, Nov 5, 2012 at 10:58 AM, Eric Floehr >wrote: > > > Joshua, > > > > I've played with Mezzanine (http://mezzanine.jupo.org/) which is one of > > the more popular and active Django CMS engines. It does Blog, but a lot > of > > other things. Think of it as the Wordpress of Django. It may be more than > > you need, but it does multi-user nicely, plus static pages, media > download, > > etc. > > > > I ultimately went with Wordpress for my business site, but I played > around > > with Mezzanine enough to contribute some stuff back to it. It's nice in > > that there are sensible defaults, but you can easily extend it. > > > > I am also looking at it again to integrate into another site I have that > > is just using the basic "tutorial" blogging code that's been out there > > forever. > > > > -Eric > > > > > > > > On Sun, Nov 4, 2012 at 1:53 PM, Joshua Kramer >wrote: > > > >> Hi Folks - > >> > >> Is anyone using a Django blogging engine? I am putting up a blog system > >> that may be used by multiple users. So far the best combination of > >> features I've seen is TechBlog... but it will require some work before > it's > >> ready. > >> > >> Cheers, > >> -JK > >> > >> _______________________________________________ > >> CentralOH mailing list > >> CentralOH at python.org > >> http://mail.python.org/mailman/listinfo/centraloh > >> > >> > > > > _______________________________________________ > > CentralOH mailing list > > CentralOH at python.org > > http://mail.python.org/mailman/listinfo/centraloh > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/centraloh/attachments/20121105/e27ec256/attachment-0001.html > > > > ------------------------------ > > Message: 4 > Date: Mon, 5 Nov 2012 16:32:32 -0500 > From: jep200404 at columbus.rr.com > To: "Mailing list for Central Ohio Python User Group \(COhPy\)" > > Subject: Re: [CentralOH] Automated Patches: Version Control Systems > Message-ID: <20121105163232.6d19dada.jep200404 at columbus.rr.com> > Content-Type: text/plain; charset=US-ASCII > > On Mon, 29 Oct 2012 18:25:47 -0400, Neil Ludban > wrote: > > > On Mon, 29 Oct 2012 16:53:34 -0400 jep200404 at columbus.rr.com wrote: > > > > I am archiving data files as originally received. > > > It is a requirement to preserve the original files > > > as received, regardless of how good or bad they are. > > > They are all compressed. There are many files. > > > Some of them are around 1/2 Gigabyte. > > > We have enough data that we have to move files that are not > > > likely to be needed, from production servers, to off-line > > > storage. > > > > The internets suggest that subversion is using zlib compression for > > everything > > > You would need to decompress the originals before committing, ... > > Since it is a requirement to preserve the original (compressed) > files as received, using subversion on the uncompressed data > would result in doubling the storage requirements (if subversion's > compression for internal storage was similar to the compression > of the original data). Needing twice as much storage is not > attractive, especially since we already have storage limitation > issues. Do you know of a version control system that would > work efficiently while preserving the original (compressed) > files as received? > > > > ------------------------------ > > Message: 5 > Date: Mon, 5 Nov 2012 19:20:30 -0500 > From: Kurtis Mullins > To: "Mailing list for Central Ohio Python User Group (COhPy)" > > Subject: Re: [CentralOH] What's your favorite Django blogging engine? > Message-ID: > < > CAPbEHsd3xtBFj0QQkE_WFb0u6TOr+ZZq4bH9WNN9qtofmHetvw at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I can't release the code or details (NDA), but I've converted Mezzanine > into a multiple-user blog pretty easily. Not just one blog with multiple > users ... but one blogging system that contained multiple blogs and each > blog being modifiable by multiple users. Mezzanine is written in a fairly > structured way (mixins, clean code, nice models) so it's very easy to adapt > to whatever your needs are. > > I don't have experience with any other Django-based Blogs. Mezzanine also > has a lot of other features that you may or may not want. (e.g. CMS) > > On the other hand, creating a blog application in Django from scratch > is ridiculously easy. > > Just my 2 cents. > > > On Mon, Nov 5, 2012 at 12:29 PM, Joshua Kramer >wrote: > > > That's a GREAT link, Eric. I had looked at Mezzanine before but couldn't > > get it to work with some combination of stuff I had installed. But this > > time around it was as easy as following the Quick Start instructions on > the > > Mezzanine website. > > > > I'm going to look at Mezzanine to construct some sites that I had > > previously planned for DjangoCMS. (https://www.django-cms.org/) > > Django-CMS requires a bit more work than Mezzanine. > > > > > > > > On Mon, Nov 5, 2012 at 10:58 AM, Eric Floehr >wrote: > > > >> Joshua, > >> > >> I've played with Mezzanine (http://mezzanine.jupo.org/) which is one of > >> the more popular and active Django CMS engines. It does Blog, but a lot > of > >> other things. Think of it as the Wordpress of Django. It may be more > than > >> you need, but it does multi-user nicely, plus static pages, media > download, > >> etc. > >> > >> I ultimately went with Wordpress for my business site, but I played > >> around with Mezzanine enough to contribute some stuff back to it. It's > nice > >> in that there are sensible defaults, but you can easily extend it. > >> > >> I am also looking at it again to integrate into another site I have that > >> is just using the basic "tutorial" blogging code that's been out there > >> forever. > >> > >> -Eric > >> > >> > >> > >> On Sun, Nov 4, 2012 at 1:53 PM, Joshua Kramer >wrote: > >> > >>> Hi Folks - > >>> > >>> Is anyone using a Django blogging engine? I am putting up a blog > system > >>> that may be used by multiple users. So far the best combination of > >>> features I've seen is TechBlog... but it will require some work before > it's > >>> ready. > >>> > >>> Cheers, > >>> -JK > >>> > >>> _______________________________________________ > >>> CentralOH mailing list > >>> CentralOH at python.org > >>> http://mail.python.org/mailman/listinfo/centraloh > >>> > >>> > >> > >> _______________________________________________ > >> CentralOH mailing list > >> CentralOH at python.org > >> http://mail.python.org/mailman/listinfo/centraloh > >> > >> > > > > _______________________________________________ > > CentralOH mailing list > > CentralOH at python.org > > http://mail.python.org/mailman/listinfo/centraloh > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/centraloh/attachments/20121105/aba2734a/attachment.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > > ------------------------------ > > End of CentralOH Digest, Vol 67, Issue 4 > **************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Tue Nov 6 04:44:07 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 5 Nov 2012 22:44:07 -0500 Subject: [CentralOH] =?utf-8?b?MjAxMuW5tC0xMeaciC0wNeaXpSDpgZPloLQ=?= Message-ID: <20121105224407.6ecaabc8.jep200404@columbus.rr.com> pandas[2] is _awesome_. Someone recently blasted through much of "Python for Data Analysis"[1]. pandas teaser: import pandas.io.data as web google = web.get_data_yahoo("GOOG") google["Close"].describe() close = google.Close close["2009-11"] google.pct_change().abs().sort_index(by="Close", ascending=False)[:10] close - close.mean() close.skew() close.quantile(0.95) # close.pct_change().sort() ipython is nifty also http://ipython.org/ Practical Vim: Edit Text at the Speed of Thought XY highly recommends this book. http://pragprog.com/book/dnvim/practical-vim McIlroy v Knuth: http://www.leancrew.com/all-this/2011/12/more-shell-less-egg/ which reminds me of my ugly code that I posted. PiCrust: I/O expander for Raspberry Pi http://joewalnes.com/2012/10/24/hello-picrust-connect-things-to-your-raspberry-pi/ http://picru.st/ Small USB flash drive: http://www.sandisk.com/products/usb/drives/cruzer-fit/?capacity=32GB http://www.microcenter.com/product/398489/Cruzer_Fit_16GB_USB_20_Flash_Drive_SDCZ33-016G-B35 This dojo was more interesting than usual. [1] Python for Data Analysis Wes McKinney O'Reilly http://shop.oreilly.com/product/0636920023784.do [2] http://pypi.python.org/pypi/pandas http://pandas.pydata.org/ Thank you Mr. McKinney From jep200404 at columbus.rr.com Fri Nov 9 04:06:53 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Thu, 8 Nov 2012 22:06:53 -0500 Subject: [CentralOH] Python Lunch: Thai Orchid Tuesday 11:30 Message-ID: <20121108220653.7b00f914.jep200404@columbus.rr.com> Join us for Python lunch at Thai Orchid[1] on Tuesday 2012-11-13 at 11:30. [1] Thai Orchid 7654 Sawmill Road Dublin, Ohio 43017 614-792-1112 http://www.thaiorchidcolumbus.com/ From jep200404 at columbus.rr.com Tue Nov 13 03:58:47 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 12 Nov 2012 21:58:47 -0500 Subject: [CentralOH] Lunch Reminder In-Reply-To: <20121108220653.7b00f914.jep200404@columbus.rr.com> References: <20121108220653.7b00f914.jep200404@columbus.rr.com> Message-ID: <20121112215847.13f616ba.jep200404@columbus.rr.com> On Thu, 8 Nov 2012 22:06:53 -0500, jep200404 at columbus.rr.com wrote: > Join us for Python lunch at Thai Orchid[1] on Tuesday 2012-11-13 at 11:30. Let us know if you coming so we know how big a table to get. From jep200404 at columbus.rr.com Fri Nov 16 01:53:12 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Thu, 15 Nov 2012 19:53:12 -0500 Subject: [CentralOH] IPython Installation Message-ID: <20121115195312.1727c355.jep200404@columbus.rr.com> Several local folks have already been using IPython, or have started using IPython and pandas recently because of the newly published "Python for Data Analysis"[1]. At least one person had difficulty installing pandas and/or ipython with pip in a virtualenv under Centos 6.3, so here's a recipe for such. Some of the following system packages might not be necessary. Also, more system packages might be required that are not listed below. Please post corrections. sudo yum install python-devel sudo yum install gcc-c++ sudo yum install freetype sudo yum install freetype-devel sudo yum install libpng-devel virtualenv env source env/bin/activate pip install numpy pip install matplotlib pip install pandas pip install ipython [1] Python for Data Analysis Wes McKinney O'Reilly 978-1-449-31979-3 Jason Conaway might be particularly interested in Chapter 11. From jep200404 at columbus.rr.com Tue Nov 20 16:26:41 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Tue, 20 Nov 2012 10:26:41 -0500 Subject: [CentralOH] Django/Postgresql unique_together with None/NULL Values Message-ID: <20121120102641.68ac200a.jep200404@columbus.rr.com> What's a cleaner way of accomplishing the unique_together stuff, hopefully without the (redundant) previous_id_num attribute? I'm using Postgresql with Django. Postgresql's implementation of unique constraints when a value is NULL (None in Python) does not work as desired. I figured out an ugly workaround. Hopefully, you know a better way. def none_to_zero(previous): return previous.id if previous else 0 class Book(models.Model): class Meta: ''' From Postgresql dox[1] about unique constraints: However, two null values are not considered equal in this comparison. That means even in the presence of a unique constraint it is possible to store duplicate rows that contain a null value in at least one of the constrained columns. This behavior conforms to the SQL standard, ... That behavior is undesirable. unique_together must not allow two records that have the same name and the same 'previous' value of None/NULL. Because of that, 'previous' can not be used in unique_together. The workaround is to use a redundant attribute, 'previous_id_num', in unique_together that uses 0 instead of None/NULL. [1] At bottom of section 5.3.3. Unique Constraints http://www.postgresql.org/docs/devel/static/ddl-constraints.html ''' unique_together = (('name', 'previous_id_num'),) name = FixedCharField(max_length=35, null=True, blank=True) stuff = models.CharField(null=True, blank=True, max_length=2000) ''' Versioning of Book Data From time to time, the existing book data is updated. So for a book as indentified by a particular name there may be multiple versions. We preserve all versions in the database. In the following, we discuss the various versions indentified by a particular name. A singly-linked list of records is maintained from newer to older versions. The newest version is the head and the oldest version is the tail. For the oldest version, the previous link will be None (NULL). ''' previous = models.ForeignKey('self', null=True, blank=True, db_index=True) previous_id_num = models.IntegerField() # Filled by pre_save(). @receiver(pre_save, sender=Book) def do_book_pre_save_stuff(sender, **kwargs): book = kwargs['instance'] book.previous_id_num = none_to_zero(book.previous) Additionally with updates, if 'previous' is updated, I need to remember to update 'previous_id_num' also. An (ugly) thought is to not use None/NULL values for previous to indicate end of linked list. Instead one would set up a sentinel dummy Book record for the end of a linked list. That would make unique_constraint happy, but push ugliness into the code that groks the linked list. The closest thing I've found on the web is: http://stackoverflow.com/questions/1006617/models-unique-together-constraint-none-fail What else am I missing? From jdsantiagojr at gmail.com Sun Nov 25 21:30:22 2012 From: jdsantiagojr at gmail.com (John Santiago) Date: Sun, 25 Nov 2012 15:30:22 -0500 Subject: [CentralOH] CherryPy, Flask, or Django Message-ID: I have been jumping between Python 2.7 and 3. Playing with various web frameworks. I really wanted to see what people were using, and get there feed back. I have only had experience building web-applications with CherryPy. Getting ready to start building larger sites and considering using either Flask or CherryPy solo or combining the two. Django is always a possibility but it is really heavy. What are you guys using? -- This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Mon Nov 26 16:36:44 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 26 Nov 2012 10:36:44 -0500 Subject: [CentralOH] Python Lunch In-Reply-To: References: <20120927154548.4f32cb99.jep200404@columbus.rr.com> <20120927212237.6721072a.jep200404@columbus.rr.com> <20120927213511.54c4263b.jep200404@columbus.rr.com> Message-ID: <20121126103644.6428fdad.jep200404@columbus.rr.com> On Thu, 27 Sep 2012 21:42:09 -0400, Jonathan Hogue wrote: > We've been hitting explorer's club pretty regularly. mmm good. more than girth. > > 1586 South High Street > Columbus, OH 43207 > (614) 725-0155 That sounds like a good place for the next Python lunch. How about Tuesday? What day works good for others? From lenjaffe at jaffesystems.com Mon Nov 26 16:39:16 2012 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Mon, 26 Nov 2012 10:39:16 -0500 Subject: [CentralOH] GIS presentation at 2CO Message-ID: I'm looking for any links to the GIS presentation that happened at 2Checkout last year. It was about how one of the COHPY members uses GIS tools and python to help manage a family farm. Can anybody point me in the right direction? Thank you. Len. -- lenjaffe at jaffesystems.com 614-404-4214 www.volunteerable.net Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage Greenbar : Grubmaster: 2012-2009, Grub Asst: 2008, Trained: 2007. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Mon Nov 26 16:51:23 2012 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 26 Nov 2012 10:51:23 -0500 Subject: [CentralOH] GIS presentation at 2CO In-Reply-To: References: Message-ID: <20121126105123.0571b285.jep200404@columbus.rr.com> On Mon, 26 Nov 2012 10:39:16 -0500, Len Jaffe wrote: > I'm looking for any links to the GIS presentation that happened at > 2Checkout last year. It was about how one of the COHPY members uses GIS > tools and python to help manage a family farm. > > Can anybody point me in the right direction? I think it was Steve Roggenkamp of COLUG, not CohPy, who gave that presentation about GIS. http://lists.colug.net/pipermail/colug-432/2011-April/000821.html From eric at intellovations.com Mon Nov 26 17:00:56 2012 From: eric at intellovations.com (Eric Floehr) Date: Mon, 26 Nov 2012 11:00:56 -0500 Subject: [CentralOH] CherryPy, Flask, or Django In-Reply-To: References: Message-ID: Hi John, I'm using Django, and really like it. Django is heavy in the sense that it's "batteries included" but it's not heavy in the sense that you have to write a lot of code to get a decent site up and running. Another advantage of Django is there is a large ecosystem of components available. If you want to build everything yourself, that's not an advantage, but if you don't want to constantly have to reinvent the wheel, it's a real blessing. Also, with Django being used on a number of high-traffic sites, a lot of its inefficiencies have been ironed out... you won't generally have to worry about performance until you are really up there in views. I can't say anything about CherryPy or Flask, I'm sure they are good frameworks as well, but it was really easy for me to get started with Django, and it's been able to grow as my sites have grown. Cheers, Eric On Sun, Nov 25, 2012 at 3:30 PM, John Santiago wrote: > I have been jumping between Python 2.7 and 3. Playing with various web > frameworks. I really wanted to see what people were using, and get there > feed back. I have only had experience building web-applications with > CherryPy. Getting ready to start building larger sites and considering > using either Flask or CherryPy solo or combining the two. Django is always > a possibility but it is really heavy. > > What are you guys using? > > -- > This electronic message is intended to be for the use only of the named > recipient, and may contain information that is confidential or privileged. > If you are not the intended recipient, you are hereby notified that any > disclosure, copying, distribution or use of the contents of this message is > strictly prohibited. If you have received this message in error or are not > the named recipient, please notify us immediately by contacting the sender > at the electronic mail address noted above, and delete and destroy all > copies of this message. Thank you. > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wam at cisco.com Mon Nov 26 17:41:17 2012 From: wam at cisco.com (William McVey) Date: Mon, 26 Nov 2012 11:41:17 -0500 Subject: [CentralOH] CherryPy, Flask, or Django In-Reply-To: References: Message-ID: <1353948077.27902.15.camel@zelbinion.cisco.com> On Sun, 2012-11-25 at 15:30 -0500, John Santiago wrote: > I have been jumping between Python 2.7 and 3. Playing with various web > frameworks. I really wanted to see what people were using, and get > there feed back. I have only had experience building web-applications > with CherryPy. Getting ready to start building larger sites and > considering using either Flask or CherryPy solo or combining the two. > Django is always a possibility but it is really heavy. > > What are you guys using? I tend to use Django to build "sites" and use flask when I'm building "applications" that have a web interface. I know it can kind of be a fine line between the two. The biggest criteria for me is whether I'm looking at having a database as part of my deployed site/app and whether I'm interfacing with a pre-existing DB or starting with a blank slate on the db side. If I need a db and I have free reign of structuring the db tables for my use, then I use Django. If I either don't need a db or I'm interfacing with a pre-existing db, then I'll go with flask (possibly with the Flask-SQLAlchemy extension). -- William From winningham at gmail.com Mon Nov 26 17:49:42 2012 From: winningham at gmail.com (Thomas Winningham) Date: Mon, 26 Nov 2012 11:49:42 -0500 Subject: [CentralOH] CherryPy, Flask, or Django In-Reply-To: <1353948077.27902.15.camel@zelbinion.cisco.com> References: <1353948077.27902.15.camel@zelbinion.cisco.com> Message-ID: I spend a lot of time with experiments or prototypes, and in that regard I enjoy Flask quite a bit. It is rather quick to go from "some random function that does something" to the same but on a web page. These things don't stick around very long, although I have deployed Flask on GAE a couple of times. I'm not entirely sure what I do couldn't be done with any other WSGI system, but for a quick turn around, Flask does it for me. I don't do much traditional form / database type stuff either, but I can see where Flask might leave you wanting more in that regard, especially compared to Django. Best of luck!! On Mon, Nov 26, 2012 at 11:41 AM, William McVey wrote: > On Sun, 2012-11-25 at 15:30 -0500, John Santiago wrote: > > I have been jumping between Python 2.7 and 3. Playing with various web > > frameworks. I really wanted to see what people were using, and get > > there feed back. I have only had experience building web-applications > > with CherryPy. Getting ready to start building larger sites and > > considering using either Flask or CherryPy solo or combining the two. > > Django is always a possibility but it is really heavy. > > > > What are you guys using? > > I tend to use Django to build "sites" and use flask when I'm building > "applications" that have a web interface. I know it can kind of be a > fine line between the two. The biggest criteria for me is whether I'm > looking at having a database as part of my deployed site/app and whether > I'm interfacing with a pre-existing DB or starting with a blank slate on > the db side. If I need a db and I have free reign of structuring the db > tables for my use, then I use Django. If I either don't need a db or I'm > interfacing with a pre-existing db, then I'll go with flask (possibly > with the Flask-SQLAlchemy extension). > > -- William > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at intellovations.com Fri Nov 30 20:05:27 2012 From: eric at intellovations.com (Eric Floehr) Date: Fri, 30 Nov 2012 14:05:27 -0500 Subject: [CentralOH] November/December COhPy Meeting Message-ID: Sorry for the late notice on this. Thanksgiving and TechColumbus email issues prevented a timely confirmation of location. The combined November/December COhPy meeting will be at TechColumbus in Conference Room A starting at 6pm on Monday, December 3. This month our speaker will be Brandon Rhodes who will be previewing his Code Mash talk: Thanks to NumPy's industrial-strength support for numeric data, Matplotlib's beautiful graphs, and iPython Notebook's ability to pull it all together into an easily sharable and editable web page, Python is becoming the go-to language for science data processing. Using the stars and planets as examples, this talk will show how Python can be used to explore the universe and learn about it at the same time! More details and to RSVP here: http://meetu.ps/qPnFH -------------- next part -------------- An HTML attachment was scrubbed... URL: