From jay at jays.net Thu Jul 7 20:01:33 2011 From: jay at jays.net (Jay Hannah) Date: Thu, 7 Jul 2011 13:01:33 -0500 Subject: [omaha] [odynug] Meeting: Tue July 12 7pm In-Reply-To: <8876197710559035056@unknownmsgid> References: <185478E7-D883-4613-8BB8-48C5A0733331@iinteractive.com> <4FDB7492-568D-4C6C-90DB-E2B710B05586@iinteractive.com> <8876197710559035056@unknownmsgid> Message-ID: <0FF92040-ACA1-4BDA-ABF4-35B9CBB47ED2@jays.net> On Jul 7, 2011, at 12:47 PM, Nick Nisi wrote: > I'd also be up for meeting this weekend. Woot! What part of town do you live in again? I'm in Millard. Sat 10am Panera Bread @ OakView mall? (3219 Oak View Dr) Now if only a Pythonista would WSGI with us, we'd have a web app hat trick! j http://odlug.org/ (All are welcome to join our pre-meeting mini-hackathon. :) From shawnhermans at gmail.com Fri Jul 8 01:50:35 2011 From: shawnhermans at gmail.com (Shawn Hermans) Date: Thu, 7 Jul 2011 18:50:35 -0500 Subject: [omaha] [odynug] Meeting: Tue July 12 7pm In-Reply-To: <185478E7-D883-4613-8BB8-48C5A0733331@iinteractive.com> References: <185478E7-D883-4613-8BB8-48C5A0733331@iinteractive.com> Message-ID: I will definitely plan to brief either August 9th or September 13th. I am not sure about this Saturday. My parent's are in town and I don't know if they are planning anything. On Thu, Jul 7, 2011 at 12:24 PM, Jay Hannah wrote: > I dumped in our volunteer list: > > http://odlug.org/ > > Nick: Are you ready to go Tuesday? Any Pythonistas willing to do the WSGI > (Python) bit? Maybe we should meet over beer this weekend and rough out some > code before the meeting. :) > > Justin / Shawn: Are you ready if Nick and I run short? How do August 9th > and September 13th look on your calendars? > > Did I miss anybody/anything? Other volunteers? > > Thanks, > > Jay Hannah > Senior Developer / Consultant > http://www.iinteractive.com > Email: jay.hannah at iinteractive.com > AOL IM: deafferret > Mobile: 1.402.598.7782 > Fax: 1.402.691.9496 > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Omaha Dynamic Language User Group" group. > To post to this group, send email to odynug at googlegroups.com. > To unsubscribe from this group, send email to > odynug+unsubscribe at googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/odynug?hl=en. > > From jmoseman01 at gmail.com Thu Jul 14 02:21:01 2011 From: jmoseman01 at gmail.com (jesse moseman) Date: Wed, 13 Jul 2011 19:21:01 -0500 Subject: [omaha] best python web framwork Message-ID: I've done some cgi for my "job" just generating html based off of a database and stuff but i'm looking in setting up my own test web server that's python powered. I've heard of django but don't know much about it. I know it's like a content management system but it doesn't have a front end. One thing i also looked at was mod_python for apache. Any one have any recommendations on getting python powered websites going on you're own server? From shawnhermans at gmail.com Thu Jul 14 02:36:08 2011 From: shawnhermans at gmail.com (Shawn Hermans) Date: Wed, 13 Jul 2011 19:36:08 -0500 Subject: [omaha] best python web framwork In-Reply-To: References: Message-ID: I have to confess I haven't used much other than Django, but I find it to be really, really great. There is a four step tutorial on their website that will get you up and running in a short period of time. On Wed, Jul 13, 2011 at 7:21 PM, jesse moseman wrote: > I've done some cgi for my "job" just generating html based off of a > database > and stuff but i'm looking in setting up my own test web server that's > python > powered. I've heard of django but don't know much about it. I know it's > like a content management system but it doesn't have a front end. One > thing > i also looked at was mod_python for apache. Any one have any > recommendations on getting python powered websites going on you're own > server? > _______________________________________________ > 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 Thu Jul 14 03:23:39 2011 From: newz at bearfruit.org (Matthew Nuzum) Date: Wed, 13 Jul 2011 20:23:39 -0500 Subject: [omaha] best python web framwork In-Reply-To: References: Message-ID: On Wed, Jul 13, 2011 at 7:21 PM, jesse moseman wrote: > I've done some cgi for my "job" just generating html based off of a > database > and stuff but i'm looking in setting up my own test web server that's > python > powered. I've heard of django but don't know much about it. I know it's > like a content management system but it doesn't have a front end. One > thing > i also looked at was mod_python for apache. Any one have any > recommendations on getting python powered websites going on you're own > server? > > django isn't really a content management system and mod_python isn't a framework at all. mod_python embeds Python in the web server and is generally a bad idea currently. Instead use mod_wsgi (pronounced "mod whiskey") if you have the option. (or fastcgi if you like to fiddle) Here are a couple of my opinions on frameworks: Django - I use this every day. It's extremely easy to be productive. It has a lot of built in features. You don't need to learn a database, just describe your data as a python class. You'll be going fast. Optimizing your site can be challenging because the abstractions that make you very productive also hide the guts of what's happening. For example, I had a page that was going a bit slow so I installed the django-debug-toolbar and it showed that what I thought was one SQL query was actually 13. I simply had to use an option called select_related on that query and it turned into one like I'd expected. My point is that the framework abstracts you away from the details so sometimes there are a few surprises lurking in there. Turbogears - it is a framework that is made of piecing some of the best bits of many other python frameworks. I used this several years ago. Since then it's changed a lot. At the time it used cherry py which is a great cgi-like framework. It used an excellent database ORM and a more powerful templating system than Django. It's main disadvantages were a smaller community and that the pieces were not cohesive. Flask - a very lightweight framework. Much more like cgi. You have a lot of control over the inner workings of your app. It gives you some of the most needed features of a web app and that's it. Google App Engine - a platform that lets you use other frameworks (like App Engine Oil) to publish Python apps to Google's hosted cloud platform. Zope - don't use this unless you like xml and pain. With any of these you can make a content management system or any number of other web apps. Here are some sites my team has made: http://www.ubuntu.com/usn - a CMS for hosting security notices about Ubuntu https://login.ubuntu.com/ - a single sign in service using OpenID https://pay.ubuntu.com/ and the related Ubuntu Software Center (a web service with a native Ubuntu client) - an e-commerce platform for handling software purchases If you like CGI I'd suggest Flask. If you want to go whole-hog into Python web development I'd suggest Django. The only other framework I recommend to anyone these days is Ruby on Rails but this is the wrong list for that. :-) -- Matthew Nuzum newz2000 on freenode, skype, linkedin and twitter ? You're never fully dressed without a smile! ? From zbuhman at gmail.com Thu Jul 14 15:25:42 2011 From: zbuhman at gmail.com (Zack Buhman) Date: Thu, 14 Jul 2011 08:25:42 -0500 Subject: [omaha] Omaha Digest, Vol 53, Issue 2 In-Reply-To: References: Message-ID: > Date: Wed, 13 Jul 2011 19:21:01 -0500 > From: jesse moseman > To: omaha at python.org > Subject: [omaha] best python web framwork > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > I've done some cgi for my "job" just generating html based off of a database > and stuff but i'm looking in setting up my own test web server that's python > powered. ?I've heard of django but don't know much about it. ?I know it's > like a content management system but it doesn't have a front end. ?One thing > i also looked at was mod_python for apache. ?Any one have any > recommendations on getting python powered websites going on you're own > server? +1 for Flask. Definitely don't use mod_python, whatever you do; that's the last thing you should be using; it's an outdated, unsupported, and obsolete relic. If you really wanted to use Apache, use mod_wsgi with flask; but I usually steer clear of Apache in general. There's actually quite a few ways to actually deploy Flask; one of the simplest is to just use nginx to proxy_pass requests to the builtin flask server--but there are a few problems with doing it that way, most of which werkzeug handles for you (mainly the X-Real-IP and so on) but the advantage is that it's HTTP 1.1, so you can have multiple application servers listening on multiple subdomains but "bound" to the same physical port/address. The best way to do it, however, would be using things like gunicorn or uwsgi (or any other wsgi server); the flask documentation (which is absolutely outstanding by the way) has plenty of examples on deploying your application correctly. There's all kinds of neat things that flask can do that I haven't seen in any other framework. I would highly recommend you check it out. Zack Buhman From james.harr at gmail.com Thu Jul 14 17:05:22 2011 From: james.harr at gmail.com (James Harr) Date: Thu, 14 Jul 2011 10:05:22 -0500 Subject: [omaha] best python web framwork In-Reply-To: References: Message-ID: I share this sentiment about Zope. On the other hand (and slightly OT), ZODB is a pretty interesting database for light use. - Pretty good at repeat reads. - Terrible at writes (you'll only get about 60-80TPS on a standard system, no matter how many threads you run). - Super light weight modeling. With a 1 line decoration, and object can now be shoved in ZODB. - Transactions are serializable and it has a really cool way to resolve conflicts without completely retrying a transaction. This is optional, and is more interesting than it is useful. - Handles cyclical object graphs - Really easy to mess up transactions if you use threading. Get a DB connection per thread and never share objects between threads (I learned this the hard way -- oops). - A year ago, docs were kind of sparse, but they've improved since then. - You can basically think of it as a fancy "pickle these objects to disk". There's no way to do aggregate queries without maintaining your own indices/structures. I've never used it for a full application because it seemed like a risky time investment, but it might come in handy some day and is worth toying with if you're bored. I ended up using http://www.sqlalchemy.org/ for that project and love it. A lot of frameworks give you a choice as to which model framework you use and this is a good one. On Wed, Jul 13, 2011 at 8:23 PM, Matthew Nuzum wrote: > > On Wed, Jul 13, 2011 at 7:21 PM, jesse moseman wrote: > > > I've done some cgi for my "job" just generating html based off of a > > database > > and stuff but i'm looking in setting up my own test web server that's > > python > > powered. ?I've heard of django but don't know much about it. ?I know it's > > like a content management system but it doesn't have a front end. ?One > > thing > > i also looked at was mod_python for apache. ?Any one have any > > recommendations on getting python powered websites going on you're own > > server? > > > > > django isn't really a content management system and mod_python isn't a > framework at all. mod_python embeds Python in the web server and is > generally a bad idea currently. Instead use mod_wsgi (pronounced "mod > whiskey") if you have the option. (or fastcgi if you like to fiddle) > > Here are a couple of my opinions on frameworks: > > Django - I use this every day. It's extremely easy to be productive. It has > a lot of built in features. You don't need to learn a database, just > describe your data as a python class. You'll be going fast. Optimizing your > site can be challenging because the abstractions that make you very > productive also hide the guts of what's happening. For example, I had a page > that was going a bit slow so I installed the django-debug-toolbar and it > showed that what I thought was one SQL query was actually 13. I simply had > to use an option called select_related on that query and it turned into one > like I'd expected. My point is that the framework abstracts you away from > the details so sometimes there are a few surprises lurking in there. > > Turbogears - it is a framework that is made of piecing some of the best bits > of many other python frameworks. I used this several years ago. Since then > it's changed a lot. At the time it used cherry py which is a great cgi-like > framework. It used an excellent database ORM and a more powerful templating > system than Django. It's main disadvantages were a smaller community and > that the pieces were not cohesive. > > Flask - a very lightweight framework. Much more like cgi. You have a lot of > control over the inner workings of your app. It gives you some of the most > needed features of a web app and that's it. > > Google App Engine - a platform that lets you use other frameworks (like App > Engine Oil) to publish Python apps to Google's hosted cloud platform. > > Zope - don't use this unless you like xml and pain. > > With any of these you can make a content management system or any number of > other web apps. > > Here are some sites my team has made: > > http://www.ubuntu.com/usn - a CMS for hosting security notices about Ubuntu > https://login.ubuntu.com/ - a single sign in service using OpenID > https://pay.ubuntu.com/ and the related Ubuntu Software Center (a web > service with a native Ubuntu client) - an e-commerce platform for handling > software purchases > > If you like CGI I'd suggest Flask. If you want to go whole-hog into Python > web development I'd suggest Django. The only other framework I recommend to > anyone these days is Ruby on Rails but this is the wrong list for that. :-) > > -- > Matthew Nuzum > newz2000 on freenode, skype, linkedin and twitter > > ? You're never fully dressed without a smile! ? > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org -- ^[:wq^M From jay.hannah at iinteractive.com Thu Jul 14 18:16:48 2011 From: jay.hannah at iinteractive.com (Jay Hannah) Date: Thu, 14 Jul 2011 11:16:48 -0500 Subject: [omaha] best python web framwork In-Reply-To: References: Message-ID: <65C3EB30-CA16-4776-AADE-501DDFD25EEE@iinteractive.com> On Jul 13, 2011, at 8:23 PM, Matthew Nuzum wrote: > django isn't really a content management system and mod_python isn't a > framework at all. mod_python embeds Python in the web server and is > generally a bad idea currently. Instead use mod_wsgi (pronounced "mod > whiskey") if you have the option. (or fastcgi if you like to fiddle) Have you done much with WSGI? Nick and I were looking for a Python guy for our meeting we just had on Tuesday. He presented Ruby's Rack and I presented Perl's Plack. :) http://odlug.org/ Thanks, Jay Hannah Senior Developer / Consultant http://www.iinteractive.com Email: jay.hannah at iinteractive.com AOL IM: deafferret Mobile: 1.402.598.7782 Fax: 1.402.691.9496 From newz at bearfruit.org Thu Jul 14 18:35:47 2011 From: newz at bearfruit.org (Matthew Nuzum) Date: Thu, 14 Jul 2011 11:35:47 -0500 Subject: [omaha] best python web framwork In-Reply-To: <65C3EB30-CA16-4776-AADE-501DDFD25EEE@iinteractive.com> References: <65C3EB30-CA16-4776-AADE-501DDFD25EEE@iinteractive.com> Message-ID: On Thu, Jul 14, 2011 at 11:16 AM, Jay Hannah wrote: > On Jul 13, 2011, at 8:23 PM, Matthew Nuzum wrote: > > django isn't really a content management system and mod_python isn't a > > framework at all. mod_python embeds Python in the web server and is > > generally a bad idea currently. Instead use mod_wsgi (pronounced "mod > > whiskey") if you have the option. (or fastcgi if you like to fiddle) > > Have you done much with WSGI? Nick and I were looking for a Python guy for > our meeting we just had on Tuesday. He presented Ruby's Rack and I presented > Perl's Plack. :) > > I've deployed numerous apps with it but I've not stretched it's limits. I know it has some cool features. I will say that an app I'm deploying new was having some poor performance so asked an Apache hacker friend for some times. We removed a lot of unnecessary apache modules and switched to the worker mpm and boosted the performance on my baby VPS from about 35 req/sec to 59 req/sec. After I was done these are the only mods I have enabled on my Ubuntu 10.04 server: alias authn_file authz_host cgid deflate env mime reqtimeout rewrite setenvif ssl wsgi He told me that if I'm not using SSL that the event mpm is even faster than the worker mpm. I didn't try it out because I do need SSL. -- Matthew Nuzum newz2000 on freenode, skype, linkedin and twitter ? You're never fully dressed without a smile! ? From shawnhermans at gmail.com Thu Jul 14 18:45:43 2011 From: shawnhermans at gmail.com (Shawn Hermans) Date: Thu, 14 Jul 2011 11:45:43 -0500 Subject: [omaha] Real Time Mapping Displays using Python or JavaScript Message-ID: All, I currently have a project where data is being published to a RabbitMQ feed in real-time. The data is Atom/GeoRSS encoded entries. I was wondering if anyone knew of a simple way to pull that data off the queue and display it on a map in real-time. Basically, I need to go through and see if the current messages match any previous Atom entries and update those entries. If they don't exist, I need to display those on the map. Lastly, I need to clean up any old data. I have done similar things with Google Earth in the past via a network link. I wanted to know if anyone else had different approaches that may work better. Thanks, Shawn From james.harr at gmail.com Thu Jul 14 19:12:53 2011 From: james.harr at gmail.com (James Harr) Date: Thu, 14 Jul 2011 12:12:53 -0500 Subject: [omaha] best python web framwork In-Reply-To: <65C3EB30-CA16-4776-AADE-501DDFD25EEE@iinteractive.com> References: <65C3EB30-CA16-4776-AADE-501DDFD25EEE@iinteractive.com> Message-ID: I've played with WSGI a little bit. It really looks like a more modern version of CGI. I'd be more inclined to use a framework that can use WSGI than to use WSGI directly. IIRC, most of the controller frameworks (ie: django, turbogears) can be rigged up to work with WSGI, run as their own daemon (mostly for code development), or just mod_python directly. At some point, I'm going to hack up a light weight JSON-RPC controller framework in python that supports "Class.method" instead of just "method" to go along with a GWT JSON-RPC library (https://github.com/jamesharr/jsondto/wiki ; need to throw up some better samples). WSGI seems like a good fit for that. On Thu, Jul 14, 2011 at 11:16 AM, Jay Hannah wrote: > On Jul 13, 2011, at 8:23 PM, Matthew Nuzum wrote: >> django isn't really a content management system and mod_python isn't a >> framework at all. mod_python embeds Python in the web server and is >> generally a bad idea currently. Instead use mod_wsgi (pronounced "mod >> whiskey") if you have the option. (or fastcgi if you like to fiddle) > > Have you done much with WSGI? Nick and I were looking for a Python guy for our meeting we just had on Tuesday. He presented Ruby's Rack and I presented Perl's Plack. ? :) > > ? http://odlug.org/ > > Thanks, > > Jay Hannah > Senior Developer / Consultant > http://www.iinteractive.com > Email: jay.hannah at iinteractive.com > AOL IM: deafferret > Mobile: 1.402.598.7782 > Fax: 1.402.691.9496 > > > > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- ^[:wq^M From jeffh at delasco.com Thu Jul 14 19:15:58 2011 From: jeffh at delasco.com (Jeff Hinrichs) Date: Thu, 14 Jul 2011 12:15:58 -0500 Subject: [omaha] best python web framwork In-Reply-To: References: <65C3EB30-CA16-4776-AADE-501DDFD25EEE@iinteractive.com> Message-ID: On Thu, Jul 14, 2011 at 11:35 AM, Matthew Nuzum wrote: > On Thu, Jul 14, 2011 at 11:16 AM, Jay Hannah >wrote: > > > On Jul 13, 2011, at 8:23 PM, Matthew Nuzum wrote: > > > django isn't really a content management system and mod_python isn't a > > > framework at all. mod_python embeds Python in the web server and is > > > generally a bad idea currently. Instead use mod_wsgi (pronounced "mod > > > whiskey") if you have the option. (or fastcgi if you like to fiddle) > > > > Have you done much with WSGI? Nick and I were looking for a Python guy > for > > our meeting we just had on Tuesday. He presented Ruby's Rack and I > presented > > Perl's Plack. :) > > > > > I've deployed numerous apps with it but I've not stretched it's limits. I > know it has some cool features. > > I will say that an app I'm deploying new was having some poor performance > so > asked an Apache hacker friend for some times. We removed a lot of > unnecessary apache modules and switched to the worker mpm and boosted the > performance on my baby VPS from about 35 req/sec to 59 req/sec. > > After I was done these are the only mods I have enabled on my Ubuntu 10.04 > server: > > alias > authn_file > authz_host > cgid > deflate > env > mime > reqtimeout > rewrite > setenvif > ssl > wsgi > > He told me that if I'm not using SSL that the event mpm is even faster than > the worker mpm. I didn't try it out because I do need SSL. > > -- > Matthew Nuzum > newz2000 on freenode, skype, linkedin and twitter > > ? You're never fully dressed without a smile! ? > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > I agree with the things said previously. I've used Twisted, mod_python, vampire, CherryPy, TurboGears (pre-pyramid -- back when CherryPy was bundled with) and Django 1.x -> 1.3 Currently, all that I do is under mod_wsgi and Django 1.x although I do have some legacy apps still running mod_python/vampire until I get time to move the to Django. Out of all that I have used, I would recommend Django -- the reason is documentation. None of the others mentioned hold a candle to the docs and resources available for Django. The second reason, is testing -- although most popular Django tutorials don't go into testing there is documentation both online and in the code. Now I concede that you can find cases where Django is not a good fit, and that is true, however, these cases are not better suited by another platform they usually revolve around specific needs that make writing custom code a better trade-off than using a platform. It is easy to get started with Django on a solo box and the move from HelloWorld to more non-trivial apps is not a bone breaker. Best, Jeff p.s. I didn't respond to the wsgi invite because I'm not really a "wsgi" guy. It is the plumbing that I use but at a level that has me thinking about it as much as I think about the 7 layer OS networking model :) From jeffh at delasco.com Thu Jul 14 19:17:49 2011 From: jeffh at delasco.com (Jeff Hinrichs) Date: Thu, 14 Jul 2011 12:17:49 -0500 Subject: [omaha] best python web framwork In-Reply-To: References: <65C3EB30-CA16-4776-AADE-501DDFD25EEE@iinteractive.com> Message-ID: On Thu, Jul 14, 2011 at 12:12 PM, James Harr wrote: > I've played with WSGI a little bit. It really looks like a more modern > version of CGI. I'd be more inclined to use a framework that can use > WSGI than to use WSGI directly. IIRC, most of the controller > frameworks (ie: django, turbogears) can be rigged up to work with > WSGI, run as their own daemon (mostly for code development), or just > mod_python directly. > > At some point, I'm going to hack up a light weight JSON-RPC controller > framework in python that supports "Class.method" instead of just > "method" to go along with a GWT JSON-RPC library > (https://github.com/jamesharr/jsondto/wiki ; need to throw up some > better samples). WSGI seems like a good fit for that. Check out, Piston https://bitbucket.org/jespern/django-piston/wiki/Home for your REST needs. Best, Jeff From jeffh at delasco.com Thu Jul 14 19:22:11 2011 From: jeffh at delasco.com (Jeff Hinrichs) Date: Thu, 14 Jul 2011 12:22:11 -0500 Subject: [omaha] Real Time Mapping Displays using Python or JavaScript In-Reply-To: References: Message-ID: On Thu, Jul 14, 2011 at 11:45 AM, Shawn Hermans wrote: > All, > I currently have a project where data is being published to a RabbitMQ feed > in real-time. The data is Atom/GeoRSS encoded entries. I was wondering > if anyone knew of a simple way to pull that data off the queue and display > it on a map in real-time. Basically, I need to go through and see if the > current messages match any previous Atom entries and update those entries. > If they don't exist, I need to display those on the map. Lastly, I need to > clean up any old data. I have done similar things with Google Earth in the > past via a network link. I wanted to know if anyone else had different > approaches that may work better. > > > Sorry, nothing for mapping, but getting subscribed to a Rabbit with python is straightforward. We use RabbitMQ in house and I even have a topic exchange based helper project http://code.google.com/p/thumper/ best, Jeff From matt.wynn at gmail.com Thu Jul 14 19:38:51 2011 From: matt.wynn at gmail.com (Matt Wynn) Date: Thu, 14 Jul 2011 12:38:51 -0500 Subject: [omaha] best python web framwork Message-ID: I've dabbled a bit in a couple frameworks, but have settled on Django. Each has its strengths and weaknesses and probably should be looked at with an eye on what you want to accomplish. Django's biggest strength, I think, is its intuitive admin. If you're working on a project that will require input by trusted users (like a blog or company website), the admin will save you tons of time and make you happy. Others have better templating systems. It just really depends what you want to do. But I can back these dudes bigtime on the mod_apache hate. If you do it, you'll regret it forever. Or until you fix it, whichever comes first. -Matt From wereapwhatwesow at gmail.com Thu Jul 14 20:08:19 2011 From: wereapwhatwesow at gmail.com (Steve Young) Date: Thu, 14 Jul 2011 13:08:19 -0500 Subject: [omaha] Meeting Monday 7/18 Message-ID: Anyone want to suggest some topics for this month's meeting? -- Steve Young From mike at hostetlerhome.com Thu Jul 14 21:25:43 2011 From: mike at hostetlerhome.com (Mike Hostetler) Date: Thu, 14 Jul 2011 14:25:43 -0500 Subject: [omaha] Real Time Mapping Displays using Python or JavaScript In-Reply-To: References: Message-ID: <1310671543.26150.2.camel@sweetg> On Thu, 2011-07-14 at 11:45 -0500, Shawn Hermans wrote: > All, > I currently have a project where data is being published to a RabbitMQ feed > in real-time. The data is Atom/GeoRSS encoded entries. I was wondering > if anyone knew of a simple way to pull that data off the queue and display > it on a map in real-time. Basically, I need to go through and see if the > current messages match any previous Atom entries and update those entries. > If they don't exist, I need to display those on the map. Lastly, I need to > clean up any old data. I have done similar things with Google Earth in the > past via a network link. I wanted to know if anyone else had different > approaches that may work better. I've used Gpsbabel to convert one Geo-format to another. It's an extra executable but it works quite fast. You can make up your own CSV format and have it spit out . . . well, just about anything: http://www.gpsbabel.org/capabilities.html It's what Google Earth uses as well. :) From mike at hostetlerhome.com Thu Jul 14 22:02:42 2011 From: mike at hostetlerhome.com (Mike Hostetler) Date: Thu, 14 Jul 2011 15:02:42 -0500 Subject: [omaha] best python web framwork In-Reply-To: References: <65C3EB30-CA16-4776-AADE-501DDFD25EEE@iinteractive.com> Message-ID: <1310673762.26150.13.camel@sweetg> On Thu, 2011-07-14 at 12:15 -0500, Jeff Hinrichs wrote: > On Thu, Jul 14, 2011 at 11:35 AM, Matthew Nuzum wrote: > > > On Thu, Jul 14, 2011 at 11:16 AM, Jay Hannah > >wrote: > > > > > On Jul 13, 2011, at 8:23 PM, Matthew Nuzum wrote: > > > > django isn't really a content management system and mod_python isn't a > > > > framework at all. mod_python embeds Python in the web server and is > > > > generally a bad idea currently. Instead use mod_wsgi (pronounced "mod > > > > whiskey") if you have the option. (or fastcgi if you like to fiddle) > > > > > > Have you done much with WSGI? Nick and I were looking for a Python guy > > for > > > our meeting we just had on Tuesday. He presented Ruby's Rack and I > > presented > > > Perl's Plack. :) > > > > > > > > I've deployed numerous apps with it but I've not stretched it's limits. I > > know it has some cool features. > > > > I will say that an app I'm deploying new was having some poor performance > > so > > asked an Apache hacker friend for some times. We removed a lot of > > unnecessary apache modules and switched to the worker mpm and boosted the > > performance on my baby VPS from about 35 req/sec to 59 req/sec. > > > > After I was done these are the only mods I have enabled on my Ubuntu 10.04 > > server: > > > > alias > > authn_file > > authz_host > > cgid > > deflate > > env > > mime > > reqtimeout > > rewrite > > setenvif > > ssl > > wsgi > > > > He told me that if I'm not using SSL that the event mpm is even faster than > > the worker mpm. I didn't try it out because I do need SSL. > > > > -- > > Matthew Nuzum > > newz2000 on freenode, skype, linkedin and twitter > > > > ? You're never fully dressed without a smile! ? > > _______________________________________________ > > Omaha Python Users Group mailing list > > Omaha at python.org > > http://mail.python.org/mailman/listinfo/omaha > > http://www.OmahaPython.org > > > > I agree with the things said previously. I've used Twisted, mod_python, > vampire, CherryPy, TurboGears (pre-pyramid -- back when CherryPy was bundled > with) and Django 1.x -> 1.3 > > Currently, all that I do is under mod_wsgi and Django 1.x although I do have > some legacy apps still running mod_python/vampire until I get time to move > the to Django. > > Out of all that I have used, I would recommend Django -- the reason is > documentation. None of the others mentioned hold a candle to the docs and > resources available for Django. The second reason, is testing -- although > most popular Django tutorials don't go into testing there is documentation > both online and in the code. Now I concede that you can find cases where > Django is not a good fit, and that is true, however, these cases are not > better suited by another platform they usually revolve around specific needs > that make writing custom code a better trade-off than using a platform. > > It is easy to get started with Django on a solo box and the move from > HelloWorld to more non-trivial apps is not a bone breaker. > Fascinating discussion . .. I'm just finishing up a Django/Satchmo project (Satchmo->a Django-powered ecommerce engine) and going to start up a new project real soon. Thinking of some of the pain I just had, I'm wondering if anything would be better suited (I will recognize that most of the pain I went through was Satchmo's doing, and the next project will not be ecommerce). I think Django's killer features are it's admin interface and it's documentation. A secondary feature is the amount of high-quality plugins for it -- Haystack for search, Memcache, etc. Even though I just complained about Satchmo, it is pretty good when you want an web-store alongside a blog, CMS, or other webapp and have them integrated. I just looked at Flask and it seem interesting, though it would be hard to go back to making my own database schemas. But simple and light -- never a bad thing. Anyone have current experience on TurboGears2? That seems interesting as well. SQLObject is wonderful (I used it pre-TurboGears). > Best, > > Jeff > > p.s. I didn't respond to the wsgi invite because I'm not really a "wsgi" > guy. It is the plumbing that I use but at a level that has me thinking > about it as much as I think about the 7 layer OS networking model :) > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > http://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org From jay.hannah at iinteractive.com Thu Jul 7 19:24:29 2011 From: jay.hannah at iinteractive.com (Jay Hannah) Date: Thu, 7 Jul 2011 12:24:29 -0500 Subject: [omaha] Meeting: Tue July 12 7pm Message-ID: <185478E7-D883-4613-8BB8-48C5A0733331@iinteractive.com> I dumped in our volunteer list: http://odlug.org/ Nick: Are you ready to go Tuesday? Any Pythonistas willing to do the WSGI (Python) bit? Maybe we should meet over beer this weekend and rough out some code before the meeting. :) Justin / Shawn: Are you ready if Nick and I run short? How do August 9th and September 13th look on your calendars? Did I miss anybody/anything? Other volunteers? Thanks, Jay Hannah Senior Developer / Consultant http://www.iinteractive.com Email: jay.hannah at iinteractive.com AOL IM: deafferret Mobile: 1.402.598.7782 Fax: 1.402.691.9496 From jeffh at dundeemt.com Mon Jul 18 23:09:04 2011 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Mon, 18 Jul 2011 16:09:04 -0500 Subject: [omaha] Meeting Monday 7/18 In-Reply-To: References: Message-ID: Any nominations? Steve, everything reserved? _Jeff On Thu, Jul 14, 2011 at 1:08 PM, Steve Young wrote: > Anyone want to suggest some topics for this month's meeting? > > -- > Steve Young > _______________________________________________ > 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 steve at alrlighting.com Mon Jul 18 23:24:30 2011 From: steve at alrlighting.com (Steve Young) Date: Mon, 18 Jul 2011 16:24:30 -0500 Subject: [omaha] Meeting Monday 7/18 In-Reply-To: References: Message-ID: The room is ours tonight. See you at 7 (or a little early - I am already hungry!) On Mon, Jul 18, 2011 at 4:09 PM, Jeff Hinrichs - DM&T wrote: > Any nominations? > > Steve, everything reserved? > > _Jeff > > On Thu, Jul 14, 2011 at 1:08 PM, Steve Young >wrote: > > > Anyone want to suggest some topics for this month's meeting? > > > > -- > > Steve Young > > _______________________________________________ > > 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 > -- Steve Young Architectural Lighting Resources 13829 Industrial Rd Omaha, NE 68137 402-651-5216 Cell 402-397-2867 Office www.ALRLighting.com