From eric at intellovations.com Fri Jul 1 15:22:56 2011 From: eric at intellovations.com (Eric Floehr) Date: Fri, 1 Jul 2011 09:22:56 -0400 Subject: [CentralOH] EuroPython 2011 Videos available Message-ID: All, Thanks to a tweet by Scott Scites, I discovered that videos are available (free) from EuroPython 2011. There looks to be some great talks. Unfortunately, you'll have to bittorrent them, as they aren't available from a streaming source. Since we just talked about it on Monday, I thought I'd point out that one of the videos is titled "Creating Videogames with Panda3D". The torrent link is: http://ep2011.europython.eu/conference/talks/creating-videogames-with-panda3d/video?torrent=1 The videos are still coming online, so the later torrent links are non-functioning, but they are continuing to add them as we speak. Anyway, check it out! -Eric From eric at intellovations.com Fri Jul 1 16:13:58 2011 From: eric at intellovations.com (Eric Floehr) Date: Fri, 1 Jul 2011 10:13:58 -0400 Subject: [CentralOH] EuroPython 2011 Videos available In-Reply-To: References: Message-ID: I just realized I gave the link to the Panda3D video, but not to the full list of talks with their torrent links: http://ep2011.europython.eu/p3/schedule/ep2011/list/ -Eric On Fri, Jul 1, 2011 at 9:22 AM, Eric Floehr wrote: > All, > > Thanks to a tweet by Scott Scites, I discovered that videos are > available (free) from EuroPython 2011. ?There looks to be some great > talks. > > Unfortunately, you'll have to bittorrent them, as they aren't > available from a streaming source. > > Since we just talked about it on Monday, I thought I'd point out that > one of the videos is titled "Creating Videogames with Panda3D". ?The > torrent link is: > http://ep2011.europython.eu/conference/talks/creating-videogames-with-panda3d/video?torrent=1 > > The videos are still coming online, so the later torrent links are > non-functioning, but they are continuing to add them as we speak. > > Anyway, check it out! > > -Eric > From mark at microenh.com Fri Jul 1 17:12:19 2011 From: mark at microenh.com (Mark Erbaugh) Date: Fri, 1 Jul 2011 11:12:19 -0400 Subject: [CentralOH] pip freeze / subversion / setup.py Message-ID: <43BC2B07-1A65-40F7-A5AC-69F5568D3843@microenh.com> Hi, First question: I'm trying to set up workspaces in subversion such that I can get a repeatable build environment. I use virtualenv to create a base environment then checkout my project into that environment. One of the files checked out is setup.py that uses setuptools to populate the virtualenv's site-packages with needed libraries. Things seem to be working for me, but I just noticed that on a couple of my older projects that were already in svn version control that I then added setup.py and related files to, pip freeze reports some sort of svn warning: > svn URL does not fit normal structure (tags/branches/trunk): http://server.local/svn/buildexams2/trunk/src > -e svn+http://server.local/svn/buildexams2/trunk/src at 28#egg=BuildExams-dev_r28 Other than that things seem to be working as expected. What is this warning telling me? Is it something to be concerned about? How do I fix it? One thing that's interesting is that it appears to reference version 28. The current version as reported by svn info is 30. On the other project, the version in the warning seems to be 33, and what's strange is that svn info reports version 30. Here's my setup.py > from setuptools import setup, find_packages > > setup( > # basic package data > name = "BuildExams", > version = "2.04b", > > # package structure > packages=find_packages('src'), > package_dir={'':'src'}, > > install_requires = [ > 'reportlab==2.5', > 'pdfrw==0.1', > 'nose==1.0.0', > ], > test_suite='nose.collector', > ) Second question. In this particular workspace, to complete the setup I need to copy a couple of files to specific locations within the directory structure created by virutalenv. I'm not checking these directories into version control. This is a workaround to get wxPython working with virtualenv. See Robin Dunn's post: http://wiki.wxpython.org/wxPythonVirtualenvOnMac Is there a way to include the copying in setup.py. My first attempt is to use subprocess and call cp. The problem with that is that it gets called everytime setup.py is invoked and I think I only need the copying to be done if setup.py is invoked with install or develop. I'm sure I could check sys.argv and respond appropriately, but I wonder if setuptools.setup already has hooks that I should be using? Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at intellovations.com Sun Jul 10 18:26:50 2011 From: eric at intellovations.com (Eric Floehr) Date: Sun, 10 Jul 2011 12:26:50 -0400 Subject: [CentralOH] Python and Entrepreneurship Message-ID: Hi all, I am looking for 1-2 more panelists for my panel discussion at PyOhio on Python and Entrepreneurship. I'm looking for folks who run their own business (consulting or product) or have a part-time business that is making money while still employed at a "regular" job. Of course the product should be based on Python, but we are inclusive and I'm open to businesses built on other Python-like languages. If you are or know of someone that would be interested in sharing their experiences (no preparation for the panel is necessary), please let me know. The panel is scheduled for Sunday at 2:30pm at PyOhio. Thanks so much for your help! Eric From sean.mcnally.927 at gmail.com Mon Jul 11 05:53:18 2011 From: sean.mcnally.927 at gmail.com (Sean McNally) Date: Sun, 10 Jul 2011 20:53:18 -0700 Subject: [CentralOH] Python Web Browser Message-ID: Dear Central Ohio Users, Would Python be a good code choice for creating a web browser? If not, which code would you recommend. Thanks, Sean McNally -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonebird at gmail.com Mon Jul 11 14:18:27 2011 From: jonebird at gmail.com (Jon Miller) Date: Mon, 11 Jul 2011 08:18:27 -0400 Subject: [CentralOH] Python Web Browser In-Reply-To: References: Message-ID: I generally would not recommend creating a web browser. If you really had a need to develop your own web browser, you'd do yourself a huge favor by reusing an existing engine and extending it. Take a look at the current web browser landscape and note the "XXXXX-based" verbiage for which engine each of the web browsers leveraged: http://en.wikipedia.org/wiki/List_of_web_browsers That said, I know of none that are based on Python. They are typically written in C++. Were you, by chance, looking for a project to implement in Python in effort to learn the language? -- Jon Miller On Sun, Jul 10, 2011 at 11:53 PM, Sean McNally wrote: > Dear Central Ohio Users, > ? ? Would Python be a good code choice for creating a web browser? If not, > which code would you recommend. > Thanks, > Sean McNally > > > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > From wam at cisco.com Mon Jul 11 17:14:25 2011 From: wam at cisco.com (William McVey) Date: Mon, 11 Jul 2011 11:14:25 -0400 Subject: [CentralOH] Python Web Browser In-Reply-To: References: Message-ID: <1310397265.4714.2778.camel@goldfinger> On Sun, 2011-07-10 at 20:53 -0700, Sean McNally wrote: > Dear Central Ohio Users, > Would Python be a good code choice for creating a web browser? If > not, which code would you recommend. This really depends on what your goal is. There are some really good python bindings to the main HTML rendering engines now days (PythonWebKit and PyWebkitGTK/PyWebkitQt4 come to mind). KDE and GTK also support python interfaces into the default webbrowser control for each of those interfaces. Even the Windows web control can be instantiated and controlled from python via the PyWin32 package. This would allow you to focus your efforts on things like bookmark management, networking, and UI interface design; rather than HTML rendering. You'd then have to figure how to handle Javascript (for this, pyv8 might be able to be employed, although I don't know how/if the v8 engine would have access to the DOM model of the HTML controls I listed above). Other features of modern browsers (e.g. Flash, SVG, Canvas, etc) would all require additional libraries or just graceful failure within your browser. So... to answer your question... there is nothing about the python language itself that makes it a particularly bad choice, but the availability of mature libraries that can be used effectively to make a cohesive whole app (especially wrt things like Javascript and Flash plugins) means you'd be facing an uphill battle. Of course, that's if your goal is to make full fledged browser app. If you just want to suck down some HTML and render it mostly correct in a window... well, that is pretty simple to do and python is a fine glue language for that kind of processing. -- William From jep200404 at columbus.rr.com Mon Jul 11 23:47:12 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 11 Jul 2011 17:47:12 -0400 Subject: [CentralOH] Python 3.0 % Use Message-ID: <20110711174712.78c00d97.jep200404@columbus.rr.com> For new work, how common (rough percentage) is use of Python 3.0? I have noticed that only one of the common OSs I am exposed to, Ubuntu 11.04, has Python 3.0. Even then, it's an option. From issac.kelly at gmail.com Mon Jul 11 23:50:44 2011 From: issac.kelly at gmail.com (Issac Kelly) Date: Mon, 11 Jul 2011 17:50:44 -0400 Subject: [CentralOH] Python 3.0 % Use In-Reply-To: <20110711174712.78c00d97.jep200404@columbus.rr.com> References: <20110711174712.78c00d97.jep200404@columbus.rr.com> Message-ID: Django isn't compatible with Python 3.X right now, so I haven't really bothered with it yet. On Mon, Jul 11, 2011 at 5:47 PM, wrote: > For new work, how common (rough percentage) is use of Python 3.0? > > I have noticed that only one of the common OSs I am exposed to, > Ubuntu 11.04, has Python 3.0. Even then, it's an option. > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From morgan.goose at gmail.com Tue Jul 12 00:48:00 2011 From: morgan.goose at gmail.com (Morgan Goose) Date: Mon, 11 Jul 2011 18:48:00 -0400 Subject: [CentralOH] Python 3.0 % Use In-Reply-To: References: <20110711174712.78c00d97.jep200404@columbus.rr.com> Message-ID: Blogofile is, so I use it for my site (morgangoose.com), and have messed with and ported a few helper libs and scripts to it. - goose On Mon, Jul 11, 2011 at 5:50 PM, Issac Kelly wrote: > Django isn't?compatible?with Python 3.X right now, so I haven't really > bothered with it yet. > > On Mon, Jul 11, 2011 at 5:47 PM, wrote: >> >> For new work, how common (rough percentage) is use of Python 3.0? >> >> I have noticed that only one of the common OSs I am exposed to, >> Ubuntu 11.04, has Python 3.0. Even then, it's an option. >> >> _______________________________________________ >> 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 > > From eric at intellovations.com Fri Jul 15 19:05:11 2011 From: eric at intellovations.com (Eric Floehr) Date: Fri, 15 Jul 2011 13:05:11 -0400 Subject: [CentralOH] PyOhio Sprints Location Message-ID: All, PyOhio will be doing sprints this year Saturday and Sunday evening, and all day Monday. Right now there are two projects on the board, http://pyohio.org/Sprints/ but a few people have mentioned others (just have to step up to the plate and be a leader, helping people get started...). Last year we were at Subway, which had a large area, ample power, wifi, and stayed open late. However, sprinters gave it mixed reviews. The air conditioning wasn't working well Saturday, the wifi was a bit spotty, etc. I wanted to send this note out and ask for help from anyone who can recommend a better place within walking distance from the conference that would be a better fit. None emerged last year, but it's a year later, so things do change. Note... I'm looking for confirmed locations, not "ideas". Please email if you know the site can accommodate 10-20 people, has solid wifi, and have called to confirm that the location will be open late on PyOhio nights (or can accommodate our request to remain open late since we'll be spending lots of money on food!). Thanks for your help! Eric From jep200404 at columbus.rr.com Mon Jul 18 00:52:42 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Sun, 17 Jul 2011 18:52:42 -0400 Subject: [CentralOH] Python 3.x Message-ID: <20110717185242.5c9a7765.jep200404@columbus.rr.com> Which is more likely to first be used more than its predecessors? Python 3.x or IPv6? From mark at microenh.com Mon Jul 18 14:22:35 2011 From: mark at microenh.com (Mark Erbaugh) Date: Mon, 18 Jul 2011 08:22:35 -0400 Subject: [CentralOH] Website Security with Pylons/Pyramid/Akhet Message-ID: I want to implement a simple user name / password logon for a website. The website has a backend database and the user should only see entries in the database that are tied to his/her user name (or user id). In essence, each user that logs on only sees 'their' data. There is a tutorial (at http://pyramid.chromaticleaves.com/simpleauth/) that shows how to implement this kind security using Pyramid & Akhet, and I think it could be adapted for use without Akhet. It uses a http template to generate the log on screen. OTOH, when I use .htaccess to limit access to a static website served by apache, the web browser presents it's own logon screen. In Firefox, it pops up a dialog for user name and password. In Safari (Mac) a sheet descends from the title bar. Is there a way to create a http page that will trigger the brower's log in response rather than having to design the whole screen? Designing the whole screen isn't that difficult, I just think that the pop up dialog / sheet looks better in this application. Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.costlow at gmail.com Mon Jul 18 15:26:05 2011 From: brian.costlow at gmail.com (Brian Costlow) Date: Mon, 18 Jul 2011 09:26:05 -0400 Subject: [CentralOH] Website Security with Pylons/Pyramid/Akhet In-Reply-To: References: Message-ID: In order to get the browser to provide a pop-up asking for authenticaton, you have to send an http response 401 (instead of 200) when a user tries to access the resource without being logged in. The browser is then going to send the response back in an http header, and you'll need to handle it there. More here http://en.wikipedia.org/wiki/Digest_access_authentication and here http://en.wikipedia.org/wiki/Basic_access_authentication. I'm not familiar with Pyramid, so I don't know how to process the incoming headers to get the returned response. If you just like the dialog effect, I'd use a regular form, but use javascript to create some kind of overlay div. It will look even better, and be easier to get the input. Remember though, none of this is secure unless you are doing it over https. On Mon, Jul 18, 2011 at 8:22 AM, Mark Erbaugh wrote: > I want to implement a simple user name / password logon for a website. The > website has a backend database and the user should only see entries in the > database that are tied to his/her user name (or user id). In essence, each > user that logs on only sees 'their' data. > > There is a tutorial (at http://pyramid.chromaticleaves.com/simpleauth/) > that shows how to implement this kind security using Pyramid & Akhet, and I > think it could be adapted for use without Akhet. It uses a http template to > generate the log on screen. OTOH, when I use .htaccess to limit access to a > static website served by apache, the web browser presents it's own logon > screen. In Firefox, it pops up a dialog for user name and password. In > Safari (Mac) a sheet descends from the title bar. Is there a way to create a > http page that will trigger the brower's log in response rather than having > to design the whole screen? Designing the whole screen isn't that > difficult, I just think that the pop up dialog / sheet looks better in this > application. > > Thanks, > Mark > > _______________________________________________ > 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 Jul 18 16:02:50 2011 From: eric at intellovations.com (Eric Floehr) Date: Mon, 18 Jul 2011 10:02:50 -0400 Subject: [CentralOH] Python 3.x In-Reply-To: <20110717185242.5c9a7765.jep200404@columbus.rr.com> References: <20110717185242.5c9a7765.jep200404@columbus.rr.com> Message-ID: At this rate, I'll say Python 3.x :-). Once a few more dominoes fall, like Django, it'll be a no-brainer. -Eric On Sun, Jul 17, 2011 at 6:52 PM, wrote: > Which is more likely to first be used more than its predecessors? > > ? Python 3.x or IPv6? > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > From jep200404 at columbus.rr.com Tue Jul 19 00:32:10 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 18 Jul 2011 18:32:10 -0400 Subject: [CentralOH] DoJoe? Message-ID: <20110718183210.45661d24.jep200404@columbus.rr.com> Is there a DoJoe tomorrow morning? From jep200404 at columbus.rr.com Tue Jul 19 00:35:46 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 18 Jul 2011 18:35:46 -0400 Subject: [CentralOH] DoJoe?: NoJoe! In-Reply-To: <20110718183210.45661d24.jep200404@columbus.rr.com> References: <20110718183210.45661d24.jep200404@columbus.rr.com> Message-ID: <20110718183546.23b5fe2a.jep200404@columbus.rr.com> On Mon, 18 Jul 2011 18:32:10 -0400, jep200404 at columbus.rr.com wrote: > Is there a DoJoe tomorrow morning? >From http://pythondojoe.appspot.com/, I see that the answer is no, that they are suspended for a month or so. From mark at microenh.com Tue Jul 19 01:36:01 2011 From: mark at microenh.com (Mark Erbaugh) Date: Mon, 18 Jul 2011 19:36:01 -0400 Subject: [CentralOH] Website Security with Pylons/Pyramid/Akhet In-Reply-To: References: Message-ID: On Jul 18, 2011, at 9:26 AM, Brian Costlow wrote: > In order to get the browser to provide a pop-up asking for authenticaton, you have to send an http response 401 (instead of 200) when a user tries to access the resource without being logged in. The browser is then going to send the response back in an http header, and you'll need to handle it there. Based on my testing, is seems that in addition to the 401 status, the http response must include a WWW-Authenticate header. Fotrunately, Pyramid makes this pretty simple. The Pyramid Response object has an __init__ parameter of www_authenticate to which you pass the type of authentication desired, in my case 'Basic'. I found some code in the Pyramid cookbook http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/authentication.html#basic-authentication-policy showing how to extract the user name and password from the browser's re-request. Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Tue Jul 19 21:31:00 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Tue, 19 Jul 2011 15:31:00 -0400 Subject: [CentralOH] Need Code to Beat On Message-ID: <20110719153100.5856d352.jep200404@columbus.rr.com> Please let me know of Python projects that are: o small o buggy I am learning Python. I have been reading much, and following the little exercises, but need a whole program to beat. I do not have an itch to scratch right now, except to learn Python. From brywilharris at gmail.com Tue Jul 19 23:14:24 2011 From: brywilharris at gmail.com (Bryan Harris) Date: Tue, 19 Jul 2011 17:14:24 -0400 Subject: [CentralOH] Need Code to Beat On In-Reply-To: <20110719153100.5856d352.jep200404@columbus.rr.com> References: <20110719153100.5856d352.jep200404@columbus.rr.com> Message-ID: You could look at my little python project: https://launchpad.net/reduce It's a program that takes a directory of stress-strain curve files and plots them for you. When you do materials tests you end up with hundreds of datafiles and you need a quick way to look at them. I can send you some generic stress strain curves if you like. My program fits your criterion of being smallish and probably buggy since I tend to hack on it as needed. It does run on both Ubuntu Linux and Windows as I develop it on the former, but my users are on the latter. On Tue, Jul 19, 2011 at 3:31 PM, wrote: > Please let me know of Python projects that are: > > ? o small > ? o buggy > > I am learning Python. I have been reading much, and following the little > exercises, but need a whole program to beat. I do not have an itch to > scratch right now, except to learn Python. > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > From jep200404 at columbus.rr.com Wed Jul 20 02:00:41 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Tue, 19 Jul 2011 20:00:41 -0400 Subject: [CentralOH] Need Code to Beat On: reduce In-Reply-To: References: <20110719153100.5856d352.jep200404@columbus.rr.com> Message-ID: <20110719200041.4c3cecde.jep200404@columbus.rr.com> On Tue, 19 Jul 2011 17:14:24 -0400, Bryan Harris wrote: > You could look at my little python project: > https://launchpad.net/reduce Thank you! I'll start beating on it. > I can send you some generic stress strain curves if you like. Yes please. Sample input (and output) will be very helpful. > My program fits your criterion of being smallish and probably buggy > since I tend to hack on it as needed. It seems small enough. I hope it's buggy enough. :-) From mark at microenh.com Wed Jul 20 14:12:19 2011 From: mark at microenh.com (Mark Erbaugh) Date: Wed, 20 Jul 2011 08:12:19 -0400 Subject: [CentralOH] Browsing Python Modules Message-ID: <9D0006F2-055F-4387-A9BF-AA188CD37621@microenh.com> How do folks using vi to write their Python code find the Python source of libraries used by their application? The Idle IDE has an Open Module command that can find source code by module name. Are there any vi plugins that add this feature? I've found that sometimes the only way to figure out how to use a library is to read the source . Mark From coding.solo at gmail.com Wed Jul 20 14:51:38 2011 From: coding.solo at gmail.com (coding.solo) Date: Wed, 20 Jul 2011 08:51:38 -0400 Subject: [CentralOH] Django + Celery + RabbitMQ Message-ID: Hi all, I hope you guys can help me on this: I have a developing a Django app that processes many . My current implementation to get everything up and running was to block for and then deliver the results in a view. That works great, but was really long. Now I want to take it 2.0 with the auspicious notion of asynchronous back-end processing whilst polling with AJAX on the front-end to populate the results as they are ready. Currently, a returns a list of lists. Instead of returning a list of lists, I want to factor out the enveloping list and just want to return lists. Now begins my questions. I have Celery successfully working with RabbitMQ. In my Django view, I execute my .delay() and catch its AsyncResult. I get the AsyncResult.task_id over to the front-end browser so that it can poll this task. 1) In my AJAX Django view, how am I supposed to query the task with only this task_id? 2) Since my original view no longer returns a list of lists, what do you guys suggest I do to pass my *lists* back to the browser front-end when each individual one is ready? I would suspect RabbitMQ could handle such an exchange somehow, possibly even Celery. I am thinking I want to populate a list for the AJAX view to draw from when the front-end polls that view. Thanks all! Can't wait for my first PyOhio! Brandon Lorenz -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.albright at gmail.com Wed Jul 20 16:18:02 2011 From: nick.albright at gmail.com (Nick Albright) Date: Wed, 20 Jul 2011 10:18:02 -0400 Subject: [CentralOH] Django + Celery + RabbitMQ In-Reply-To: References: Message-ID: Hello Brandon! I've never really worked with Celery or RabbitMQ (though, I want to!) so I can't really address those issues, but I have done a bit of ajax and django, so I can try to help out. (Uncertain based on your Qs if I can help, but I prolly can't hurt! :) 1) Sorry, sounds like a Celery Q, I can't help there. 2) I might be able to help here! = ) So I assume you are doing some browser side ajax polling (using the task_id returned by Celery) to a django view which in turn will query to see if there are results to return. Once you get the list from celery in the django view. I'd format the list to HTML (seen below) and return that to the browser, which can then insert that in the umm.. div/list of the browser. (I use jQuery for all my ajax and dom manipulation) So the django side might look something like: def check_for_results( request, task_id = None ): response = {} # Could be passing the task_id in the GET params task_id = int( request.GET.get( 'task_id', task_id ) ) # Assumes task_id is really an int. If not, don't cast it to one! :) results = CheckCeleryForResults( task_id ) # Whatever celery magic goes here if results: # Convert the list to HTML for display response[ 'list' ] = render_to_string( 'appname/inclues/ist_display.html', { 'results_list': results, }, context_instance = RequestContext( request ) ) response[ 'done' ] = 1 # If you know there are more results coming later, could make this 0 else: response[ 'done' ] = 0 return( HttpResponse( simplejson.dumps( response ), mimetype='application/json' ) Note, I'm a huge fan of letting django format the HTML using a template, as I can use that same template on initial page generation if I have any list elements initially when the page is generated. It's DRY and all that. :) And in your HTML, you have a call like: I hope that helps! -Nick On Wed, Jul 20, 2011 at 8:51 AM, coding.solo wrote: > Hi all, I hope you guys can help me on this: > > I have a developing a Django app that processes many . > My current implementation to get everything up and running was to block for > and then deliver the results in a view. That works great, > but was really long. Now I want to take it 2.0 with the auspicious notion > of asynchronous back-end processing whilst polling with AJAX on the > front-end to populate the results as they are ready. Currently, a > returns a list of lists. Instead of returning a list of > lists, I want to factor out the enveloping list and just want to return > lists. > > Now begins my questions. I have Celery successfully working with > RabbitMQ. In my Django view, I execute my .delay() and > catch its AsyncResult. I get the AsyncResult.task_id over to the front-end > browser so that it can poll this task. > > 1) In my AJAX Django view, how am I supposed to query the task with > only this task_id? > 2) Since my original view no longer returns a list of lists, what do > you guys suggest I do to pass my *lists* back to the browser front-end > when each individual one is ready? I would suspect RabbitMQ could handle > such an exchange somehow, possibly even Celery. I am thinking I want to > populate a list for the AJAX view to draw from when the front-end polls that > view. > > > > Thanks all! Can't wait for my first PyOhio! > > > Brandon Lorenz > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From coding.solo at gmail.com Wed Jul 20 16:54:29 2011 From: coding.solo at gmail.com (coding.solo) Date: Wed, 20 Jul 2011 10:54:29 -0400 Subject: [CentralOH] Django + Celery + RabbitMQ In-Reply-To: References: Message-ID: Thanks, Nick! Being new to Django, I have built my views to render_to_response(). I like your example to get this over the wire using JSON with a customized response. As I see in your code, you are relying on Django to markup the results as opposed to letting JS do this -- that definitely steered me in a new direction. I am grasping this DRY principle, fondly. :) I haven't done any JSON with Django yet, so this provides a concrete example how to accomplish it. Thank you for your time and contribution, Nick!! Now just for that Celery part, and I think I'll be sitting pretty. Brandon On Wed, Jul 20, 2011 at 10:18 AM, Nick Albright wrote: > Hello Brandon! > > I've never really worked with Celery or RabbitMQ (though, I want to!) so I > can't really address those issues, but I have done a bit of ajax and django, > so I can try to help out. (Uncertain based on your Qs if I can help, but I > prolly can't hurt! :) > > 1) Sorry, sounds like a Celery Q, I can't help there. > 2) I might be able to help here! = ) > > So I assume you are doing some browser side ajax polling (using the task_id > returned by Celery) to a django view which in turn will query to see if > there are results to return. Once you get the list from celery in the > django view. I'd format the list to HTML (seen below) and return that to > the browser, which can then insert that in the umm.. div/list of the > browser. (I use jQuery for all my ajax and dom manipulation) So the django > side might look something like: > > def check_for_results( request, task_id = None ): > response = {} > > # Could be passing the task_id in the GET params > task_id = int( request.GET.get( 'task_id', task_id ) ) # Assumes > task_id is really an int. If not, don't cast it to one! :) > > results = CheckCeleryForResults( task_id ) # Whatever celery magic > goes here > > if results: > # Convert the list to HTML for display > response[ 'list' ] = render_to_string( > 'appname/inclues/ist_display.html', > { > 'results_list': results, > }, > context_instance = RequestContext( request ) ) > response[ 'done' ] = 1 # If you know there are more results > coming later, could make this 0 > else: > response[ 'done' ] = 0 > > return( HttpResponse( simplejson.dumps( response ), > mimetype='application/json' ) > > > Note, I'm a huge fan of letting django format the HTML using a template, as > I can use that same template on initial page generation if I have any list > elements initially when the page is generated. It's DRY and all that. :) > > And in your HTML, you have a call like: > > > > > > I hope that helps! > -Nick > > > On Wed, Jul 20, 2011 at 8:51 AM, coding.solo wrote: > >> Hi all, I hope you guys can help me on this: >> >> I have a developing a Django app that processes many . >> My current implementation to get everything up and running was to block for >> and then deliver the results in a view. That works great, >> but was really long. Now I want to take it 2.0 with the auspicious notion >> of asynchronous back-end processing whilst polling with AJAX on the >> front-end to populate the results as they are ready. Currently, a >> returns a list of lists. Instead of returning a list of >> lists, I want to factor out the enveloping list and just want to return >> lists. >> >> Now begins my questions. I have Celery successfully working with >> RabbitMQ. In my Django view, I execute my .delay() and >> catch its AsyncResult. I get the AsyncResult.task_id over to the front-end >> browser so that it can poll this task. >> >> 1) In my AJAX Django view, how am I supposed to query the task with >> only this task_id? >> 2) Since my original view no longer returns a list of lists, what do >> you guys suggest I do to pass my *lists* back to the browser front-end >> when each individual one is ready? I would suspect RabbitMQ could handle >> such an exchange somehow, possibly even Celery. I am thinking I want to >> populate a list for the AJAX view to draw from when the front-end polls that >> view. >> >> >> >> Thanks all! Can't wait for my first PyOhio! >> >> >> Brandon Lorenz >> >> _______________________________________________ >> 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 josh at globalherald.net Wed Jul 20 17:38:54 2011 From: josh at globalherald.net (Joshua Kramer) Date: Wed, 20 Jul 2011 11:38:54 -0400 (EDT) Subject: [CentralOH] Django + Celery + RabbitMQ In-Reply-To: References: Message-ID: > ? I have a developing a Django app that processes many .? My > current implementation to get everything up and running was to block for > and then deliver the results in a view.? That works great, Hi Brandon - If your project is open enough I'd love to see the code you write to handle this. I did something similar a while back, albeit witout the async Ajax polling, using Apache QPid and Google Protocol Buffers. It was the same basic idea, a Django web request fires off a message through Qpid, which in turn hits a Python backend that runs a long-running transaction in R (the R Statistics Package). Protocol Buffers was the "sanest" format when it came to handling arbitrarily nested data structures. From nick.albright at gmail.com Wed Jul 20 18:27:26 2011 From: nick.albright at gmail.com (Nick Albright) Date: Wed, 20 Jul 2011 12:27:26 -0400 Subject: [CentralOH] Django + Celery + RabbitMQ In-Reply-To: References: Message-ID: My pleasure! Yeah, most of my views use render_to_response(), I generally only use render_to_string for returning ajax responses that need HTML. Very handy. = ) And if you have a need, you can use the same view to do ajax and normal http responses, you can just key off of request.is_ajax() like: if request.is_ajax() // Do ajax stuff, like calling render_to_string else: // Do the normal web stuff, calling render_to_response If you have any more ajax/django Qs, ask away! :) -Nick On Wed, Jul 20, 2011 at 10:54 AM, coding.solo wrote: > Thanks, Nick! Being new to Django, I have built my views to > render_to_response(). I like your example to get this over the wire using > JSON with a customized response. As I see in your code, you are relying on > Django to markup the results as opposed to letting JS do this -- that > definitely steered me in a new direction. I am grasping this DRY principle, > fondly. :) I haven't done any JSON with Django yet, so this provides a > concrete example how to accomplish it. Thank you for your time and > contribution, Nick!! > > > Now just for that Celery part, and I think I'll be sitting pretty. > > Brandon > > > > > On Wed, Jul 20, 2011 at 10:18 AM, Nick Albright wrote: > >> Hello Brandon! >> >> I've never really worked with Celery or RabbitMQ (though, I want to!) so I >> can't really address those issues, but I have done a bit of ajax and django, >> so I can try to help out. (Uncertain based on your Qs if I can help, but I >> prolly can't hurt! :) >> >> 1) Sorry, sounds like a Celery Q, I can't help there. >> 2) I might be able to help here! = ) >> >> So I assume you are doing some browser side ajax polling (using the >> task_id returned by Celery) to a django view which in turn will query to see >> if there are results to return. Once you get the list from celery in the >> django view. I'd format the list to HTML (seen below) and return that to >> the browser, which can then insert that in the umm.. div/list of the >> browser. (I use jQuery for all my ajax and dom manipulation) So the django >> side might look something like: >> >> def check_for_results( request, task_id = None ): >> response = {} >> >> # Could be passing the task_id in the GET params >> task_id = int( request.GET.get( 'task_id', task_id ) ) # Assumes >> task_id is really an int. If not, don't cast it to one! :) >> >> results = CheckCeleryForResults( task_id ) # Whatever celery magic >> goes here >> >> if results: >> # Convert the list to HTML for display >> response[ 'list' ] = render_to_string( >> 'appname/inclues/ist_display.html', >> { >> 'results_list': results, >> }, >> context_instance = RequestContext( request ) ) >> response[ 'done' ] = 1 # If you know there are more results >> coming later, could make this 0 >> else: >> response[ 'done' ] = 0 >> >> return( HttpResponse( simplejson.dumps( response ), >> mimetype='application/json' ) >> >> >> Note, I'm a huge fan of letting django format the HTML using a template, >> as I can use that same template on initial page generation if I have any >> list elements initially when the page is generated. It's DRY and all that. >> :) >> >> And in your HTML, you have a call like: >> >> >> >> >> >> I hope that helps! >> -Nick >> >> >> On Wed, Jul 20, 2011 at 8:51 AM, coding.solo wrote: >> >>> Hi all, I hope you guys can help me on this: >>> >>> I have a developing a Django app that processes many . >>> My current implementation to get everything up and running was to block for >>> and then deliver the results in a view. That works great, >>> but was really long. Now I want to take it 2.0 with the auspicious notion >>> of asynchronous back-end processing whilst polling with AJAX on the >>> front-end to populate the results as they are ready. Currently, a >>> returns a list of lists. Instead of returning a list of >>> lists, I want to factor out the enveloping list and just want to return >>> lists. >>> >>> Now begins my questions. I have Celery successfully working with >>> RabbitMQ. In my Django view, I execute my .delay() and >>> catch its AsyncResult. I get the AsyncResult.task_id over to the front-end >>> browser so that it can poll this task. >>> >>> 1) In my AJAX Django view, how am I supposed to query the task with >>> only this task_id? >>> 2) Since my original view no longer returns a list of lists, what do >>> you guys suggest I do to pass my *lists* back to the browser front-end >>> when each individual one is ready? I would suspect RabbitMQ could handle >>> such an exchange somehow, possibly even Celery. I am thinking I want to >>> populate a list for the AJAX view to draw from when the front-end polls that >>> view. >>> >>> >>> >>> Thanks all! Can't wait for my first PyOhio! >>> >>> >>> Brandon Lorenz >>> >>> _______________________________________________ >>> 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 coding.solo at gmail.com Wed Jul 20 21:40:24 2011 From: coding.solo at gmail.com (coding.solo) Date: Wed, 20 Jul 2011 15:40:24 -0400 Subject: [CentralOH] Django + Celery + RabbitMQ In-Reply-To: References: Message-ID: All, I am currently exploring Kombu ( http://ask.github.com/kombu/ ) and I believe that is what I was looking for. In fact, there is a nice adaptable tutorial here: Tutorial: Creating a click counter using Kombu and celery ? Celery v2.3.0rc2 documentationon Celery's site. Unless someone has any other questions/input, I'll consider this issue resolved. Brandon On Wed, Jul 20, 2011 at 12:27 PM, Nick Albright wrote: > My pleasure! Yeah, most of my views use render_to_response(), I generally > only use render_to_string for returning ajax responses that need HTML. Very > handy. = ) > > And if you have a need, you can use the same view to do ajax and normal > http responses, you can just key off of request.is_ajax() like: > > if request.is_ajax() > // Do ajax stuff, like calling render_to_string > else: > // Do the normal web stuff, calling render_to_response > > If you have any more ajax/django Qs, ask away! :) > -Nick > > On Wed, Jul 20, 2011 at 10:54 AM, coding.solo wrote: > >> Thanks, Nick! Being new to Django, I have built my views to >> render_to_response(). I like your example to get this over the wire using >> JSON with a customized response. As I see in your code, you are relying on >> Django to markup the results as opposed to letting JS do this -- that >> definitely steered me in a new direction. I am grasping this DRY principle, >> fondly. :) I haven't done any JSON with Django yet, so this provides a >> concrete example how to accomplish it. Thank you for your time and >> contribution, Nick!! >> >> >> Now just for that Celery part, and I think I'll be sitting pretty. >> >> Brandon >> >> >> >> >> On Wed, Jul 20, 2011 at 10:18 AM, Nick Albright wrote: >> >>> Hello Brandon! >>> >>> I've never really worked with Celery or RabbitMQ (though, I want to!) so >>> I can't really address those issues, but I have done a bit of ajax and >>> django, so I can try to help out. (Uncertain based on your Qs if I can help, >>> but I prolly can't hurt! :) >>> >>> 1) Sorry, sounds like a Celery Q, I can't help there. >>> 2) I might be able to help here! = ) >>> >>> So I assume you are doing some browser side ajax polling (using the >>> task_id returned by Celery) to a django view which in turn will query to see >>> if there are results to return. Once you get the list from celery in the >>> django view. I'd format the list to HTML (seen below) and return that to >>> the browser, which can then insert that in the umm.. div/list of the >>> browser. (I use jQuery for all my ajax and dom manipulation) So the django >>> side might look something like: >>> >>> def check_for_results( request, task_id = None ): >>> response = {} >>> >>> # Could be passing the task_id in the GET params >>> task_id = int( request.GET.get( 'task_id', task_id ) ) # Assumes >>> task_id is really an int. If not, don't cast it to one! :) >>> >>> results = CheckCeleryForResults( task_id ) # Whatever celery magic >>> goes here >>> >>> if results: >>> # Convert the list to HTML for display >>> response[ 'list' ] = render_to_string( >>> 'appname/inclues/ist_display.html', >>> { >>> 'results_list': results, >>> }, >>> context_instance = RequestContext( request ) ) >>> response[ 'done' ] = 1 # If you know there are more results >>> coming later, could make this 0 >>> else: >>> response[ 'done' ] = 0 >>> >>> return( HttpResponse( simplejson.dumps( response ), >>> mimetype='application/json' ) >>> >>> >>> Note, I'm a huge fan of letting django format the HTML using a template, >>> as I can use that same template on initial page generation if I have any >>> list elements initially when the page is generated. It's DRY and all that. >>> :) >>> >>> And in your HTML, you have a call like: >>> >>> >>> >>> >>> >>> I hope that helps! >>> -Nick >>> >>> >>> On Wed, Jul 20, 2011 at 8:51 AM, coding.solo wrote: >>> >>>> Hi all, I hope you guys can help me on this: >>>> >>>> I have a developing a Django app that processes many >>>> . My current implementation to get everything up and >>>> running was to block for and then deliver the results in a >>>> view. That works great, but was really long. Now I want to take it 2.0 >>>> with the auspicious notion of asynchronous back-end processing whilst >>>> polling with AJAX on the front-end to populate the results as they are >>>> ready. Currently, a returns a list of lists. Instead of >>>> returning a list of lists, I want to factor out the enveloping list and just >>>> want to return lists. >>>> >>>> Now begins my questions. I have Celery successfully working with >>>> RabbitMQ. In my Django view, I execute my .delay() and >>>> catch its AsyncResult. I get the AsyncResult.task_id over to the front-end >>>> browser so that it can poll this task. >>>> >>>> 1) In my AJAX Django view, how am I supposed to query the task with >>>> only this task_id? >>>> 2) Since my original view no longer returns a list of lists, what do >>>> you guys suggest I do to pass my *lists* back to the browser front-end >>>> when each individual one is ready? I would suspect RabbitMQ could handle >>>> such an exchange somehow, possibly even Celery. I am thinking I want to >>>> populate a list for the AJAX view to draw from when the front-end polls that >>>> view. >>>> >>>> >>>> >>>> Thanks all! Can't wait for my first PyOhio! >>>> >>>> >>>> Brandon Lorenz >>>> >>>> _______________________________________________ >>>> 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 >> >> > > _______________________________________________ > 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 Thu Jul 21 16:48:40 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Thu, 21 Jul 2011 10:48:40 -0400 Subject: [CentralOH] Standard Names for Argument Values to sys.exit() Message-ID: <20110721104840.1b059f58.jep200404@columbus.rr.com> Does Python (2.6) define standard argument values for sys.exit()? If so, what are they? For portability, I am used to using EXIT_SUCCESS and EXIT_FAILURE in C, because not all operating systems define success as 0 and failure as non-zero. I have been STFW for the Python versions of EXIT_SUCCESS and EXIT_FAILURE, but am getting the idea that Python does not have such. By the way, my attempts to connect to http://docs.python.org are being refused. Are others having the same difficulty? From brywilharris at gmail.com Thu Jul 21 17:46:45 2011 From: brywilharris at gmail.com (Bryan Harris) Date: Thu, 21 Jul 2011 11:46:45 -0400 Subject: [CentralOH] Standard Names for Argument Values to sys.exit() In-Reply-To: <20110721104840.1b059f58.jep200404@columbus.rr.com> References: <20110721104840.1b059f58.jep200404@columbus.rr.com> Message-ID: I am able to access that site right now. On Thu, Jul 21, 2011 at 10:48 AM, wrote: > Does Python (2.6) define standard argument values for sys.exit()? > If so, what are they? > > For portability, I am used to using EXIT_SUCCESS and EXIT_FAILURE > in C, because not all operating systems define success as 0 and > failure as non-zero. I have been STFW for the Python versions of > EXIT_SUCCESS and EXIT_FAILURE, but am getting the idea that Python > does not have such. > > By the way, my attempts to connect to http://docs.python.org are > being refused. Are others having the same difficulty? > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > From jep200404 at columbus.rr.com Thu Jul 21 18:06:34 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Thu, 21 Jul 2011 12:06:34 -0400 Subject: [CentralOH] Standard Names for Argument Values to sys.exit(): os.EX_* Does Not Suffice In-Reply-To: <20110721104840.1b059f58.jep200404@columbus.rr.com> References: <20110721104840.1b059f58.jep200404@columbus.rr.com> Message-ID: <20110721120634.045e8b48.jep200404@columbus.rr.com> On Thu, 21 Jul 2011 10:48:40 -0400, jep200404 at columbus.rr.com wrote: > Does Python (2.6) define standard argument values for sys.exit()? > If so, what are they? > > For portability, I am used to using EXIT_SUCCESS and EXIT_FAILURE > in C, because not all operating systems define success as 0 and > failure as non-zero. I have been STFW for the Python versions of > EXIT_SUCCESS and EXIT_FAILURE, but am getting the idea that Python > does not have such. I'm still looking. I found os.EX_OK, but it does not suffice. There does not seem to be an equivalent for EXIT_SUCCESS. os.EX_* seem to be for return values of other calls. (That it is in os, not sys, should be a clue) import os for s in dir(os): if s[:3] == 'EX_': print s, os[s] dir(sys) and dir(sys.exit) do not reveal much. > By the way, my attempts to connect to http://docs.python.org are > being refused. Are others having the same difficulty? On Thu, 21 Jul 2011 11:46:45 -0400, Bryan Harris wrote: > I am able to access that site right now. Me too. It's back. Thanks to issackelly on #cohpy IRC channel, for his tip about a Python doc mirror: http://readthedocs.org/docs/python/en/ From jep200404 at columbus.rr.com Thu Jul 21 18:25:50 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Thu, 21 Jul 2011 12:25:50 -0400 Subject: [CentralOH] Standard Names for Argument Values to sys.exit(): os.EX_* Does Not Suffice In-Reply-To: <20110721120634.045e8b48.jep200404@columbus.rr.com> References: <20110721104840.1b059f58.jep200404@columbus.rr.com> <20110721120634.045e8b48.jep200404@columbus.rr.com> Message-ID: <20110721122550.5729352e.jep200404@columbus.rr.com> On Thu, 21 Jul 2011 12:06:34 -0400, jep200404 at columbus.rr.com wrote: > On Thu, 21 Jul 2011 10:48:40 -0400, jep200404 at columbus.rr.com wrote: > > > Does Python (2.6) define standard argument values for sys.exit()? > > If so, what are they? > I found os.EX_OK, but it does not suffice. Now that I've found docs for it, os.EX_* and friends look better. http://docs.python.org/library/os.html#os._exit From mark at microenh.com Sun Jul 24 01:04:02 2011 From: mark at microenh.com (Mark Erbaugh) Date: Sat, 23 Jul 2011 19:04:02 -0400 Subject: [CentralOH] Radio buttons with Chameleon Message-ID: I'm trying to design a HTML form using Chameleon. I want to have one of group of radio buttons selected based on the value of a form parameter. I got something that seems to work but is awkward. Am I doing it right? > The field contact.relationship contains an integer, -2 = 'Very Poor' through +2 = 'Very Good' Is there a way to generate this code using a tal:repeat instead? Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Sun Jul 24 07:42:08 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Sun, 24 Jul 2011 01:42:08 -0400 Subject: [CentralOH] Browsing Python Modules In-Reply-To: <9D0006F2-055F-4387-A9BF-AA188CD37621@microenh.com> References: <9D0006F2-055F-4387-A9BF-AA188CD37621@microenh.com> Message-ID: <20110724014208.43f5b3fc.jep200404@columbus.rr.com> On Wed, 20 Jul 2011 08:12:19 -0400, Mark Erbaugh wrote: > How do folks using vi to write their Python code find the > Python source of libraries used by their application? I don't use vi as an IDE. I lean towards the Unix philosophy of having many small programs where each one does one thing well. The magic is how one uses them (alone and in combination with other programs). The shell is the closest I come to using an IDE. I had never tried to do what you asked about. I would probably use the locate program. For example: [jep at localhost ~]$ locate os.py /etc/rpm/macros.python26 /usr/lib/python2.4/os.py /usr/lib/python2.4/os.pyc /usr/lib/python2.4/os.pyo /usr/lib/python2.4/encodings/palmos.py /usr/lib/python2.4/encodings/palmos.pyc /usr/lib/python2.4/encodings/palmos.pyo /usr/lib/python2.4/site-packages/libsvn/repos.py /usr/lib/python2.4/site-packages/libsvn/repos.pyc /usr/lib/python2.4/site-packages/libsvn/repos.pyo /usr/lib/python2.4/site-packages/svn/repos.py /usr/lib/python2.4/site-packages/svn/repos.pyc /usr/lib/python2.4/site-packages/svn/repos.pyo /usr/lib/python2.4/site-packages/yum/repos.py /usr/lib/python2.4/site-packages/yum/repos.pyc /usr/lib/python2.4/site-packages/yum/repos.pyo /usr/lib/python2.4/test/test_os.py /usr/lib/python2.4/test/test_os.pyc /usr/lib/python2.4/test/test_os.pyo /usr/lib/python2.6/os.py /usr/lib/python2.6/os.pyc /usr/lib/python2.6/os.pyo /usr/lib/python2.6/encodings/palmos.py /usr/lib/python2.6/encodings/palmos.pyc /usr/lib/python2.6/encodings/palmos.pyo [jep at localhost ~]$ Slightly refined to: [jep at localhost ~]$ locate os.py | grep '/os.py' /usr/lib/python2.4/os.py /usr/lib/python2.4/os.pyc /usr/lib/python2.4/os.pyo /usr/lib/python2.6/os.py /usr/lib/python2.6/os.pyc /usr/lib/python2.6/os.pyo [jep at localhost ~]$ I could do that within vim with the following vim commands: !!locate os.py !!locate os.py | grep /os.py :r!locate os.py :r!locate os.py | grep /os.py That said, there are other folks who try to do much with vim for messing with Python. I.e., to use vim as a Python IDE. http://wiki.python.org/moin/Vim http://dancingpenguinsoflight.com/2009/02/python-and-vim-make-your-own-ide/ http://blog.dispatched.ch/2009/05/24/vim-as-python-ide/ http://www.sontek.net/python-with-a-modular-ide-vim Search for Python here: http://www.vim.org/scripts/index.php From mark at microenh.com Mon Jul 25 15:00:50 2011 From: mark at microenh.com (Mark Erbaugh) Date: Mon, 25 Jul 2011 09:00:50 -0400 Subject: [CentralOH] Browsing Python Modules In-Reply-To: <20110724014208.43f5b3fc.jep200404@columbus.rr.com> References: <9D0006F2-055F-4387-A9BF-AA188CD37621@microenh.com> <20110724014208.43f5b3fc.jep200404@columbus.rr.com> Message-ID: On Jul 24, 2011, at 1:42 AM, jep200404 at columbus.rr.com wrote: >> >> How do folks using vi to write their Python code find the >> Python source of libraries used by their application? > > I don't use vi as an IDE. I lean towards the Unix philosophy of > having many small programs where each one does one thing well. > The magic is how one uses them (alone and in combination with > other programs). The shell is the closest I come to using an IDE. > I had never tried to do what you asked about. I would probably > use the locate program. For example: I'll add something that I just got working. I'm using virtualenv. In the virtualenv bin directory, I added a script named idle with the contents: #! /bin/bash python -m idlelib.idle & Then when I need to look at library source, I can launch idle from inside vi with :! idle. I know this still requires a GUI, but it works. Mark From eric at intellovations.com Mon Jul 25 21:34:16 2011 From: eric at intellovations.com (Eric Floehr) Date: Mon, 25 Jul 2011 15:34:16 -0400 Subject: [CentralOH] Does anyone know if this exists? Message-ID: All, Does anyone know if there is a Python version of these sites? They are basically learning sites where you answer questions/problems, submit answers, and get scored: http://projecteuler.net/ and http://4clojure.com/ Also, does anyone know if equivalent sites like this exist for other languages besides Clojure? Thanks! Eric From jep200404 at columbus.rr.com Tue Jul 26 05:58:21 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Mon, 25 Jul 2011 23:58:21 -0400 Subject: [CentralOH] Browsing Python Modules In-Reply-To: <9D0006F2-055F-4387-A9BF-AA188CD37621@microenh.com> References: <9D0006F2-055F-4387-A9BF-AA188CD37621@microenh.com> Message-ID: <20110725235821.63cdec14.jep200404@columbus.rr.com> On Wed, 20 Jul 2011 08:12:19 -0400, Mark Erbaugh wrote: > How do folks using vi to write their Python code find the > Python source of libraries used by their application? The following are very ugly but work: !!echo 'import sys;print sys.path' | python !!echo 'import sys;print sys.modules' | python !!echo 'import sys;[sys.stdout.write('\''sys.module[\%s]="\%s"\n'\'' \% (i,str(sys.modules[i]))) for i in sys.modules]' | python You could put such cruft in a shell script and call from vi: !!foo Of course I doubt that anyone does any of the above. Jim From wilson.eric.n at gmail.com Tue Jul 26 14:39:19 2011 From: wilson.eric.n at gmail.com (Eric Wilson) Date: Tue, 26 Jul 2011 08:39:19 -0400 Subject: [CentralOH] CentralOH Digest, Vol 51, Issue 12 In-Reply-To: References: Message-ID: PythonChallenge is the closest thing I can think of. It is nice in that it points you toward some of the things that Python does really well, but sometimes the riddles can be frustrating when you are more interested in learning how to use urilib than solving subtle word-play puzzle . . . and both are required to move on the the next level. http://www.pythonchallenge.com/ Eric Message: 2 > Date: Mon, 25 Jul 2011 15:34:16 -0400 > From: Eric Floehr > To: Central Ohio Python Users Group > Subject: [CentralOH] Does anyone know if this exists? > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > All, > > Does anyone know if there is a Python version of these sites? They > are basically learning sites where you answer questions/problems, > submit answers, and get scored: > > http://projecteuler.net/ > > and > > http://4clojure.com/ > > Also, does anyone know if equivalent sites like this exist for other > languages besides Clojure? > > Thanks! > Eric > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at microenh.com Tue Jul 26 20:44:21 2011 From: mark at microenh.com (Mark Erbaugh) Date: Tue, 26 Jul 2011 14:44:21 -0400 Subject: [CentralOH] HTML Editor? Message-ID: Yes, this really is a Python question. I'm working on a web-based application using the Pyramid framework. Pyramid is a descendent of Pylons and can be configured to use various templating languages. I'm using Chameleon as it's the default for the template I started with. Anyways, I'm knee deep in HTML inside vi trying to find a mis-matched tag. Do people using templates still edit the HTML by hand? I've got Kompozer, but doesn't seem to like the template language. Thanks, Mark FWIW, I'm impressed with Pyramid and yes, I will be willing to make a presentation to the group. From godber at gmail.com Tue Jul 26 21:08:01 2011 From: godber at gmail.com (Austin Godber) Date: Tue, 26 Jul 2011 12:08:01 -0700 Subject: [CentralOH] Does anyone know if this exists? In-Reply-To: References: Message-ID: I had thought of establishing a standard solution repository layout for Project Euler (language agnostic) that would accomodate multiple languages and basically use continuous integration to (compile and) check results. And then maybe setting up the central CI system that people could submit to. I have been trying to think of small challenges we could just do, ad-hoc like over IRC and just occasionally throwing out the challenges and see who takes it ... though making that compelling might require tracking. Austin On Mon, Jul 25, 2011 at 12:34 PM, Eric Floehr wrote: > All, > > Does anyone know if there is a Python version of these sites? They > are basically learning sites where you answer questions/problems, > submit answers, and get scored: > > http://projecteuler.net/ > > and > > http://4clojure.com/ > > Also, does anyone know if equivalent sites like this exist for other > languages besides Clojure? > > Thanks! > Eric > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.albright at gmail.com Tue Jul 26 21:14:36 2011 From: nick.albright at gmail.com (Nick Albright) Date: Tue, 26 Jul 2011 15:14:36 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: References: Message-ID: I'm prolly a bad example. But I definitely do my HTML by hand (emacs). When I have a mismatched tag error (Which I generally try to avoid by loading the page alot as I'm editing/making sure all looks good/putting closing tags right after the starting tag, etc..), I'll throw it by an HTML validation tool. Typically those will be part of some 'web development' plugin I have for my browser, and here is one I think that is called alot: http://validator.w3.org/ It should find tags that are missing close tags. Between that and right clicking and selecting "Inspect Element" in Chrome to bring up one of Chrome's many great development tools (Love the Console for JS debugging!), but the elements tab of that will let me see the DOM tree, what what it thinks it is. (Well, what it is, vs what I what I think it should be ;) I hope that helps! (I know your pain all too well :) -Nick On Tue, Jul 26, 2011 at 2:44 PM, Mark Erbaugh wrote: > Yes, this really is a Python question. > > I'm working on a web-based application using the Pyramid framework. Pyramid > is a descendent of Pylons and can be configured to use various templating > languages. I'm using Chameleon as it's the default for the template I > started with. > > Anyways, I'm knee deep in HTML inside vi trying to find a mis-matched tag. > Do people using templates still edit the HTML by hand? I've got Kompozer, > but doesn't seem to like the template language. > > Thanks, > Mark > > FWIW, I'm impressed with Pyramid and yes, I will be willing to make a > presentation to the group. > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From issac.kelly at gmail.com Tue Jul 26 21:31:11 2011 From: issac.kelly at gmail.com (Issac Kelly) Date: Tue, 26 Jul 2011 15:31:11 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: References: Message-ID: <-1904534825628927718@unknownmsgid> I will never use anything other than a text editor to write HTML. If you can't read and write your templates with a text editor, you're probably doing several things The Wrong Way. Some tips * use includes liberally * nest as little as possible * make a comment at your closing tags if their opening tag is > 10 lines away Markup should be semantic breakdowns of your page, and CSS should define layout. Break that rule as little as possible. Best of luck. Issac Kelly On Jul 26, 2011, at 2:45 PM, Mark Erbaugh wrote: > Yes, this really is a Python question. > > I'm working on a web-based application using the Pyramid framework. Pyramid is a descendent of Pylons and can be configured to use various templating languages. I'm using Chameleon as it's the default for the template I started with. > > Anyways, I'm knee deep in HTML inside vi trying to find a mis-matched tag. Do people using templates still edit the HTML by hand? I've got Kompozer, but doesn't seem to like the template language. > > Thanks, > Mark > > FWIW, I'm impressed with Pyramid and yes, I will be willing to make a presentation to the group. > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh From nick.albright at gmail.com Tue Jul 26 21:37:56 2011 From: nick.albright at gmail.com (Nick Albright) Date: Tue, 26 Jul 2011 15:37:56 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: <-1904534825628927718@unknownmsgid> References: <-1904534825628927718@unknownmsgid> Message-ID: Ohh! I wanna say that Issac hit the nail on the head of the closing tags. I will typically use the css 'selector' for the tag in question, like:
[Lots of lines]
Or
[Lots of lines]
And maybe some good pointers for what Issac was saying about HTML/CSS (I'm big fan of this guy and his site) http://www.webdesignfromscratch.com/html-css/semantic-html/ http://www.webdesignfromscratch.com/html-css/how-html-css-js-work-together/ Good Luck! -Nick On Tue, Jul 26, 2011 at 3:31 PM, Issac Kelly wrote: > I will never use anything other than a text editor to write HTML. If > you can't read and write your templates with a text editor, you're > probably doing several things The Wrong Way. > > Some tips > > * use includes liberally > * nest as little as possible > * make a comment at your closing tags if their opening tag is > 10 lines > away > > Markup should be semantic breakdowns of your page, and CSS should > define layout. Break that rule as little as possible. > > Best of luck. > Issac Kelly > > > On Jul 26, 2011, at 2:45 PM, Mark Erbaugh wrote: > > > Yes, this really is a Python question. > > > > I'm working on a web-based application using the Pyramid framework. > Pyramid is a descendent of Pylons and can be configured to use various > templating languages. I'm using Chameleon as it's the default for the > template I started with. > > > > Anyways, I'm knee deep in HTML inside vi trying to find a mis-matched > tag. Do people using templates still edit the HTML by hand? I've got > Kompozer, but doesn't seem to like the template language. > > > > Thanks, > > Mark > > > > FWIW, I'm impressed with Pyramid and yes, I will be willing to make a > presentation to the group. > > _______________________________________________ > > 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 Tue Jul 26 22:00:20 2011 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Tue, 26 Jul 2011 16:00:20 -0400 Subject: [CentralOH] HTML Edit By Hand: Of Course! In-Reply-To: References: Message-ID: <20110726160020.13754b46.jep200404@columbus.rr.com> Understanding code is a good thing. KISS On Tue, 26 Jul 2011 14:44:21 -0400, Mark Erbaugh wrote: > Do people using templates still edit the HTML by hand? I usually edit HTML by hand. That helps me keep it simple. When editing by hand, the HTML does not become more complicated than my ability to understand it. The code from big HTML generators often exceeds my ability to understand it, and hence my ability to maintain it. From brian.costlow at gmail.com Wed Jul 27 01:49:35 2011 From: brian.costlow at gmail.com (Brian Costlow) Date: Tue, 26 Jul 2011 19:49:35 -0400 Subject: [CentralOH] Not quite python Message-ID: At the meeting Monday, I mentioned a jquery plug-in that simplified returning data from an xmlhttprequest, that was useful in certain situations with Django. But I couldn't remember the name. It's taconite: http://jquery.malsup.com/taconite/ This is especially useful with Django (or similar template systems) when you want to return some part of the page with an initial page load and then update it later via ajax-y type calls. You can isolate the changeable bit of the page in its own template file, then include that in both a larger template for the html page, and a taconite wrapper template. Here's some totally contrived code that shows what I'm talking about: content.xml:
    {% for foo in foo_list %}
  • {{ foo.name }}
  • {% endfor %}
Next, set up a template with taconite commands in it and include the content template. ajax.xml: {% include "content.xml" %} Next set up your full page template and include the content template fullpage.html: Taco Night Tricks {% include "content.xml" %} now in your views, set up a proc that returns the data that will populate content.xml's data. def get_real_data(request): ...do stuff to return a dict to populate content.xml template then set up a view fuction for both rendering the full page, AND rendering the response to an AJAX call: def full_page(request): return render_to_response(fullpage.html, get_real_data(request)) def ajax_part(request): return render(request, ajax.xml, get_real_data(request),content_type="text/xml") If the data set returned evolves, you mod content.xml and get_real_data(), the other stuff says the same. This works really well for simple stuff, but it gets tricky when things get complicated. For example if I was clicking a button and updating tabular data, (or doing it on a time loop) this would be great. But if I wanted the table itself to be interactive, I'd probably just send json and use the datagrid plugin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at microenh.com Wed Jul 27 16:47:28 2011 From: mark at microenh.com (Mark Erbaugh) Date: Wed, 27 Jul 2011 10:47:28 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: <-1904534825628927718@unknownmsgid> References: <-1904534825628927718@unknownmsgid> Message-ID: <24C10063-91E2-4206-BDE6-39B6359B7E73@microenh.com> On Jul 26, 2011, at 3:31 PM, Issac Kelly wrote: > I will never use anything other than a text editor to write HTML. If > you can't read and write your templates with a text editor, you're > probably doing several things The Wrong Way. > > Some tips > > * use includes liberally > * nest as little as possible > * make a comment at your closing tags if their opening tag is > 10 lines away > > Markup should be semantic breakdowns of your page, and CSS should > define layout. Break that rule as little as possible. Issac, Thanks. I'm glad to learn that hand-coding HTML isn't out of line. Speaking of that, what are people's recommendations for reference documentation on HTML, CSS and related topics? Mark From issac.kelly at gmail.com Wed Jul 27 16:54:26 2011 From: issac.kelly at gmail.com (Issac Kelly) Date: Wed, 27 Jul 2011 10:54:26 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: <24C10063-91E2-4206-BDE6-39B6359B7E73@microenh.com> References: <-1904534825628927718@unknownmsgid> <24C10063-91E2-4206-BDE6-39B6359B7E73@microenh.com> Message-ID: When I learned html, it was from htmlgoodies.com, and then webmonkey, but it was several years ago, and quite recently, Dive into HTML5 was a good resource for the differences between html4 and html5. Kasey really liked the book "The Zen of CSS" On Wed, Jul 27, 2011 at 10:47 AM, Mark Erbaugh wrote: > > On Jul 26, 2011, at 3:31 PM, Issac Kelly wrote: > > > I will never use anything other than a text editor to write HTML. If > > you can't read and write your templates with a text editor, you're > > probably doing several things The Wrong Way. > > > > Some tips > > > > * use includes liberally > > * nest as little as possible > > * make a comment at your closing tags if their opening tag is > 10 lines > away > > > > Markup should be semantic breakdowns of your page, and CSS should > > define layout. Break that rule as little as possible. > > > Issac, > > Thanks. I'm glad to learn that hand-coding HTML isn't out of line. > > Speaking of that, what are people's recommendations for reference > documentation on HTML, CSS and related topics? > > Mark > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at microenh.com Wed Jul 27 16:57:09 2011 From: mark at microenh.com (Mark Erbaugh) Date: Wed, 27 Jul 2011 10:57:09 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: <-1904534825628927718@unknownmsgid> References: <-1904534825628927718@unknownmsgid> Message-ID: <78AE5FAA-A7D2-4E23-8F20-C00DE15B4039@microenh.com> On Jul 26, 2011, at 3:31 PM, Issac Kelly wrote: > I will never use anything other than a text editor to write HTML. If > you can't read and write your templates with a text editor, you're > probably doing several things The Wrong Way. > > Some tips > > * use includes liberally > * nest as little as possible > * make a comment at your closing tags if their opening tag is > 10 lines away > > Markup should be semantic breakdowns of your page, and CSS should > define layout. Break that rule as little as possible. > > Best of luck. > Issac Kelly Another question. You say use includes liberally. From what I've read, HTML doesn't have an include command. How do you do includes? I did a quick scan of the Chameleon (the templating library) documentation and didn't see any include syntax. Mark From issac.kelly at gmail.com Wed Jul 27 17:08:40 2011 From: issac.kelly at gmail.com (Issac Kelly) Date: Wed, 27 Jul 2011 11:08:40 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: <78AE5FAA-A7D2-4E23-8F20-C00DE15B4039@microenh.com> References: <-1904534825628927718@unknownmsgid> <78AE5FAA-A7D2-4E23-8F20-C00DE15B4039@microenh.com> Message-ID: Ah, i just assumed whatever template language you were using has some include syntax. Django Templates, and Jinja do ------- Issac Kelly servee.com issackelly.com -------------------------- On Wed, Jul 27, 2011 at 10:57 AM, Mark Erbaugh wrote: > > On Jul 26, 2011, at 3:31 PM, Issac Kelly wrote: > > > I will never use anything other than a text editor to write HTML. If > > you can't read and write your templates with a text editor, you're > > probably doing several things The Wrong Way. > > > > Some tips > > > > * use includes liberally > > * nest as little as possible > > * make a comment at your closing tags if their opening tag is > 10 lines > away > > > > Markup should be semantic breakdowns of your page, and CSS should > > define layout. Break that rule as little as possible. > > > > Best of luck. > > Issac Kelly > > > Another question. You say use includes liberally. From what I've read, > HTML doesn't have an include command. How do you do includes? I did a quick > scan of the Chameleon (the templating library) documentation and didn't see > any include syntax. > > Mark > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brywilharris at gmail.com Wed Jul 27 20:41:58 2011 From: brywilharris at gmail.com (Bryan Harris) Date: Wed, 27 Jul 2011 14:41:58 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: <24C10063-91E2-4206-BDE6-39B6359B7E73@microenh.com> References: <-1904534825628927718@unknownmsgid> <24C10063-91E2-4206-BDE6-39B6359B7E73@microenh.com> Message-ID: > Speaking of that, what are people's recommendations for reference documentation on HTML, CSS and related topics? Page -> View Source On Wed, Jul 27, 2011 at 10:47 AM, Mark Erbaugh wrote: > > On Jul 26, 2011, at 3:31 PM, Issac Kelly wrote: > >> I will never use anything other than a text editor to write HTML. If >> you can't read and write your templates with a text editor, you're >> probably doing several things The Wrong Way. >> >> Some tips >> >> * use includes liberally >> * nest as little as possible >> * make a comment at your closing tags if their opening tag is > 10 lines away >> >> Markup should be semantic breakdowns of your page, and CSS should >> define layout. Break that rule as little as possible. > > > Issac, > > Thanks. I'm glad to learn that hand-coding HTML isn't out of line. > > Speaking of that, what are people's recommendations for reference documentation on HTML, CSS and related topics? > > Mark > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > From nick.albright at gmail.com Wed Jul 27 20:59:42 2011 From: nick.albright at gmail.com (Nick Albright) Date: Wed, 27 Jul 2011 14:59:42 -0400 Subject: [CentralOH] HTML Editor? In-Reply-To: References: <-1904534825628927718@unknownmsgid> <24C10063-91E2-4206-BDE6-39B6359B7E73@microenh.com> Message-ID: The 4.0 stuff is a little dry for me, but back when, I used live on this site: http://htmlhelp.com/ I had the 3.2 reference page bookmarked. :) It was great to get an overview of what tags were available. As well seeing what tags were allowed in which tags. I also liked their page on CSS syntax: http://htmlhelp.com/reference/css/structure.html It is where I learned the rules of specificity/when 2 rules clash, how to determine which will "win" That's all I've really used/can recommend, -Nick On Wed, Jul 27, 2011 at 2:41 PM, Bryan Harris wrote: > > Speaking of that, what are people's recommendations for reference > documentation on HTML, CSS and related topics? > > Page -> View Source > > On Wed, Jul 27, 2011 at 10:47 AM, Mark Erbaugh wrote: > > > > On Jul 26, 2011, at 3:31 PM, Issac Kelly wrote: > > > >> I will never use anything other than a text editor to write HTML. If > >> you can't read and write your templates with a text editor, you're > >> probably doing several things The Wrong Way. > >> > >> Some tips > >> > >> * use includes liberally > >> * nest as little as possible > >> * make a comment at your closing tags if their opening tag is > 10 lines > away > >> > >> Markup should be semantic breakdowns of your page, and CSS should > >> define layout. Break that rule as little as possible. > > > > > > Issac, > > > > Thanks. I'm glad to learn that hand-coding HTML isn't out of line. > > > > Speaking of that, what are people's recommendations for reference > documentation on HTML, CSS and related topics? > > > > Mark > > _______________________________________________ > > 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 eric at intellovations.com Thu Jul 28 14:37:49 2011 From: eric at intellovations.com (Eric Floehr) Date: Thu, 28 Jul 2011 08:37:49 -0400 Subject: [CentralOH] PyOhio Volunteer Opportunities Message-ID: Hi all, If you are going to attend PyOhio and haven't already contacted me to offer your volunteering services (MANY thanks to those that have), would you consider replying back to me if you can volunteer? We are specifically looking for: Session Chairs (let me know your block preferences -- 2 talks back-to-back in same room -- Sat Morning, Sat Afternoon 1, Sat Afternoon 2, Sunday Afternoon 1, Sunday Afternoon 2, and room) Session Chairs are responsible for helping the speaker set up, getting water, etc. and then timing the talk (and flashing time cards to the speaker) Registration Desk -- pretty obvious :-) Video -- help Carl with video'ing the talks and helping out with that. Thanks, Eric From eric at intellovations.com Sat Jul 30 21:47:57 2011 From: eric at intellovations.com (Eric Floehr) Date: Sat, 30 Jul 2011 15:47:57 -0400 Subject: [CentralOH] Youngstown based company looking for Python developer. In-Reply-To: <9a809b77-983a-4591-af76-5e7c7546cbb9@fq4g2000vbb.googlegroups.com> References: <9a809b77-983a-4591-af76-5e7c7546cbb9@fq4g2000vbb.googlegroups.com> Message-ID: All, This was on the Pittsburgh Python list... a Youngstown company looking for a Python developer. Cheers, Eric ---------- Forwarded message ---------- From: vctmasters Date: Sat, Jul 30, 2011 at 11:44 AM Subject: [pgh-python] Youngstown based company looking for Python developer. To: PGH Python Ohio Valley Energy Systems Looking for a programmer familiar with wxWidgets, SQL to create a GUI for data created by remote monitoring equipment. **Requirements** * wxPython * Python (duh) ?3+ years (the more the better) * Experienced with threads/threading * SQL (or similar) * Willing to commute to Youngstown office * Even Better - C/c++; Embedded systems; Analog to Digital data aquistion; GSM/cellular Networking; electronics We are an oil and gas production company looking to impliment custom remote monitioring and automation equipment. * **Contact**: Victor Masters - project manager * **E-mail contact**: vctmasters at MastersRepairGroup.com * **Other Contact Info**: 330.207.7517 The permanance of this position will be dependent on these skills and a multitude of others not listed and somewhat unrelated. -- You received this message because you are subscribed to the Google Groups "PGH Python" group. To post to this group, send email to pghpy at googlegroups.com. To unsubscribe from this group, send email to pghpy+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/pghpy?hl=en. From morgan.goose at gmail.com Tue Jul 26 20:33:42 2011 From: morgan.goose at gmail.com (Morgan Goose) Date: Tue, 26 Jul 2011 14:33:42 -0400 Subject: [CentralOH] Does anyone know if this exists? In-Reply-To: References: Message-ID: <20110726183342.GA5216@grumpy.morgan-dyn-o-saur.com> Sure, though euler is language agnostic, there is one that comes to mind, http://www.pythonchallenge.com/ But it's not laid out the same as the two examples you give, but it's a fun bit of coding since it'll make you use more of the stdlib than normal. - goose On Mon, Jul 25, 2011 at 03:34:16PM -0400, Eric Floehr wrote: > All, > > Does anyone know if there is a Python version of these sites? They > are basically learning sites where you answer questions/problems, > submit answers, and get scored: > > http://projecteuler.net/ > > and > > http://4clojure.com/ > > Also, does anyone know if equivalent sites like this exist for other > languages besides Clojure? > > Thanks! > Eric > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh ---end quoted text---