Re: [Tutor] design question (Django?)
It doesn't do everything you want but you might try using the Create Map function on Google maps. You can draw lines and mark points in different colours. You cannot count households - though i am not sure how you plan to do that with python; where will the nHouseholds data come from? On Sat, Apr 20, 2013 at 11:00 AM, Albert-Jan Roskam fo...@yahoo.com wrote: On Sun, 14 Apr 2013, Don Jennings wrote: On Apr 14, 2013, at 7:06 AM, Albert-Jan Roskam wrote: Subject: Re: [Tutor] design question (Django?) On 13/04/13 09:48, Albert-Jan Roskam wrote: I think I have to make a diagram of this. This stuff is quite hard Would it also be a good idea to simultaneously make a paper-and-pencil drawing of the UI? Absolutely! Test it with three users. See Jakob Nielsen's brief take on the matter: You might check out Pencil, which I quite like. http://pencil.evolus.vn/ Hi Wayne, Walter, Thank you! I checked out both Pencil and Balsamiq. Based on the websites, Pencil seems to work better for me. It can export to html, among others so I could use it as a basis for my Django template. Not sure if Balsamiq can do this (I watched the video demo). The following doesn't apply to my case (as it is just a hobby project), but is there a potential risk that a mock up creates the illusion for clients that the entire job (not just a nonfunctional UI) is almost done? Regards, Albert-Jan ps: sorry about the formatting. Yahoo's rich text formatting won't turn of anymore ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] 3to2?
I was looking at google pengine for python and it only supports 2.7. I've installed 3 and would rather not go back (I kept doing Print without the parentheses for awhile and it was really annoying ;') So the question comes up. If there is a 2to3 script, which I got working, is there a 3to2 script?. Or does that even makes sense since 3 has features 2 does not, although I read somewhere that many have been backported? -- *Jim Mooney Today is the day that would have been tomorrow if yesterday was today * ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] 3to2?
On Sat, Apr 20, 2013 at 2:32 PM, Jim Mooney cybervigila...@gmail.com wrote: I was looking at google pengine for python and it only supports 2.7. I've installed 3 and would rather not go back Do you mean Google App Engine (GAE)? Django 1.5 supports 3.x (via Six), but GAE is at 1.4. I'm not sure if GAE has other dependencies holding it up, but AFAIK Google hasn't even published a release schedule for 3.x support. See issue 909: https://code.google.com/p/googleappengine/issues/detail?id=909 Six: http://pythonhosted.org/six So the question comes up. If there is a 2to3 script, which I got working, is there a 3to2 script?. Or does that even makes sense since 3 has features 2 does not, although I read somewhere that many have been backported? https://bitbucket.org/amentajo/lib3to2 As you've already guessed, 3to2 can't backport all 3.x code. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] 3to2?
On 20 April 2013 12:50, eryksun eryk...@gmail.com wrote: On Sat, Apr 20, 2013 at 2:32 PM, Jim Mooney cybervigila...@gmail.com wrote: I was looking at google pengine for python and it only supports 2.7. I've installed 3 and would rather not go back Do you mean Google App Engine (GAE)? -- Yeah, looks like my fingers got tangled. New keyboard. I'm not used to flat buttons. I picked Python to learn since I'm retired and it seemed like the most fun (although I won't turn down a Python contract now and then if I ever learn it well ;'). I tried Ruby and Python and liked the Py indentations so I chose that. But to me, it really is so much more enjoyable to learn it for fun than I've-got-to-learn-this-to-make-money. That doesn't mean I wan to just dabble, though. This is the first language I want to learn formally and in detail, not just to get it over with so I can hack a website. But still, past a certain point, since I was a webmaster, I would of course want to make web-use of it, if only for a nonprofit site, since I've run a few of those. *Jim Mooney Today is the day that would have been tomorrow if yesterday was today * ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] 3to2?
On 20/04/13 19:32, Jim Mooney wrote: I was looking at google pengine for python and it only supports 2.7. I've installed 3 and would rather not go back This is why we tend to recommend 2.7 for anyone doing serious work in Python. Any dependency on a 3rd party library is much more likely to succeed if you stick with 2.x. And as for automated tools - its very unusual to provide tools to port backwards, most folks want to go the other way... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] does anyone know a good module for automation
I once had a friend who built a bot to play a strategy game called Red Alert : Tiberian Sun. I guess it would be similar to warcraft 3. Im wondering, does anyone know a good python module that would help me if I wanted to accomplish something similar? All I have found so far while surfing has been for webgames that you can take a screenshot and program with coordinates from the screenshot. Ive just gotten the hang of pywinauto, and now I realized I need to get another program called selenium just to use Internet Explorer properly. So I figure Ill need another module ontop of that to run other programs such as games like sim city and other programs like that... Unless you think pywinauto would work in a game envoirnment ? I think it might but have not tried it because no games on my pc... I just know it didnt work for internet explorer. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] does anyone know a good module for automation
On 20/04/13 23:07, Frank Schiro wrote: Unless you think pywinauto would work in a game envoirnment ? I think it might but have not tried it because no games on my pc... I just know it didnt work for internet explorer. I don't know pywinauto but the lowest common denominator on Windows is the Win32 API and the Windows messages. You can use either ctypes or pythonwin to access those and/or create your own to simulate button presses and mouse clicks etc. Doing that you can automate anything in windows, but its a non trivial, error prone and frustrating exercise so its better to get a higher level library if you can. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Time frame for Py 3 Maturity
This is why we tend to recommend 2.7 for anyone doing serious work in Python. Understood. I am in no rush, but what do you think it the time frame when Py 3 will be mature? A year from now? Two years? At some point I might want to use it more practically. Or maybe there will be huge inflation, I'll go broke, and have to use it more practically ;') Also, is there a good syllabus for the best way to progress in this language? One can certainly get sidetracked. -- *Jim Mooney Today is the day that would have been tomorrow if yesterday was today * ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Time frame for Py 3 Maturity
On 21/04/13 12:10, Jim Mooney wrote: This is why we tend to recommend 2.7 for anyone doing serious work in Python. Understood. I am in no rush, but what do you think it the time frame when Py 3 will be mature? A year from now? Two years? At some point I might want to use it more practically. Or maybe there will be huge inflation, I'll go broke, and have to use it more practically ;') Define mature. As a language, Python 3 was fully mature by the time Python 3.1 came out. (Python 3.0 was, alas, seriously broken, and slow, and is no longer supported.) Since 3.1, Python has simply become *better*, with more features, better text handling, the decimal module is now nearly as fast as built-in floats, a few rough edges have been cleaned up. I expect 3.4 will be better still. Likewise for the standard library. All of the standard library is fully compliant with Python 3. Naturally. As for the external ecosystem of Python libraries and applications, I think the answer is, it depends. There are still people relying on Python 1.5 (!), so from the perspective of when will everyone migrate to the latest version?, the answer is Never, and even Python 2 is not fully mature. On the other hand, from the perspective of When will the *majority* of publicly-available libraries and packages support Python 3, then the answer is Right now. The Python 3 Wall of Shame turned mostly green some time ago, and is now known as the Python 3 Wall of Superpowers: https://python3wos.appspot.com/ Based on the number of downloads, almost three quarters of the Top 50 Python packages support Python 3: http://py3ksupport.appspot.com/ On the third hand, if *you personally* require one of the packages which has not been updated, then the answer for you will depend on the specific package you care about. When Python 3 was first floated as a backwards-incompatible version, it was expected that the overall migration would take about ten years. We're now half-way through that decade, and uptake is going according to plan, possibly even a little faster than expected. The early adopters have been using 3 for many years now, the majority of libraries and packages have been updated, the Linux distros are starting to plan for the day when Python 3 is the default, and the majority of trolls have given up complaining about Python 3. Also, is there a good syllabus for the best way to progress in this language? One can certainly get sidetracked. I don't quite understand that question. Syllabus? As in a list of topics like this? You must learn A, then B, then C, then D, ... and now you are an expert! No. -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] 3to2?
On 21/04/13 04:32, Jim Mooney wrote: I was looking at google pengine for python and it only supports 2.7. I've installed 3 and would rather not go back (I kept doing Print without the parentheses for awhile and it was really annoying ;') So the question comes up. If there is a 2to3 script, which I got working, is there a 3to2 script?. Or does that even makes sense since 3 has features 2 does not, although I read somewhere that many have been backported? Is google broken in your part of the world? *wink* https://duckduckgo.com/html/?q=python+3to2 https://www.google.com.au/search?q=python+3to2 http://au.search.yahoo.com/search?p=python+3to2 http://www.bing.com/search?q=python+3to2 Some features of Python 3 have already been back-ported, like the with statement. Some can be optionally enabled, e.g.: from __future__ import division, print_function from future_builtins import * In general, provided you only care about Python 2.7, you can write code which behaves the same way in both 2 and 3. But as you go further back, it becomes harder and harder. By the time you're trying to support 2.4 onwards, it becomes very annoying, and I'm speaking from experience. Although I see that CherryPy actually manages to support everything from 2.3 onwards using a single code base, which truly astonishes me! -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor