Re: [Tutor] Really learn programming

2010-03-08 Thread Jeff Johnson
day tutorials have great merit and can help you. YMMV -- Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@googlegroups.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] sorting algorithm

2010-03-11 Thread Jeff Johnson
nfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor Take out the = in the following line if item1 >= item2: and it will sort like items together, whic

Re: [Tutor] sorting algorithm

2010-03-12 Thread Jeff Johnson
ust didn't on that thread. Thanks, -- Jeff Jeff Johnson j...@dcsoftware.com http://www.VetsFindingVets.org ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] conventions for establishing and saving default values for variables

2010-06-15 Thread Jeff Johnson
nd WritePrivateProfileString. On Linux I use ConfigParser to read and write to an ".ini" file in the home directory. I have avoided the Windows registry completely. Obviously you could use ConfigParser on Windows because of Python. -- Jeff

Re: [Tutor] conventions for establishing and saving default values for variables

2010-06-16 Thread Jeff Johnson
ile if you want me to. -- Jeff ------- Jeff Johnson j...@dcsoftware.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with choices for new database program

2010-07-02 Thread Jeff Johnson
com and subscribe to the dabo-user email list. -- Jeff --- Jeff Johnson j...@dcsoftware.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with choices for new database program

2010-07-02 Thread Jeff Johnson
ginning to lose faith in being able to get help from the Dabo mailing list. Thanks again, Chris C. *From:* Jeff Johnson [mailto:j...@dcsoftware.com] *Sent:* Friday, July 02, 2010 2:09 PM *To:* Chris C. *Subject:* Re: [Tutor] Help with choices for new database program On 07/02/2010 11:40 AM, Ch

Re: [Tutor] Help with choices for new database program

2010-07-02 Thread Jeff Johnson
too many decisions then you can consider Microsoft .NET and Microsoft SQL Server on Windows 7. I am a recovering Microsoft developer of over 20 years. ;^) BTW learning Python is awesome! -- Jeff --- Jeff Johnson j...@dcsoftware.com ___

Re: [Tutor] Help with choices for new database program

2010-07-02 Thread Jeff Johnson
plications. -- Jeff ------- Jeff Johnson j...@dcsoftware.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
ginning to lose faith in being able to get help from the Dabo mailing list. Thanks again, Chris C. *From:* Jeff Johnson [mailto:j...@dcsoftware.com] *Sent:* Friday, July 02, 2010 2:09 PM *To:* Chris C. *Subject:* Re: [Tutor] Help with choices for new database program On 07/02/2010 11:40 AM, Ch

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
creates too many decisions then you can consider Microsoft .NET and Microsoft SQL Server on Windows 7. I am a recovering Microsoft developer of over 20 years. ;^) BTW learning Python is awesome! -- Jeff --- Jeff Johnson j...@san-dc.com (623) 582-0323 www.san-dc.com _

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
y Mac Book Pro? You do have to make some decisions before moving on. The choices are endless. I have found Dabo and Django to be beneficial for me because they target what I want to do. Your mileage may vary. ;^) -- Jeff --- Jeff Johnson j...@san-dc.com (623) 582-0323 www.san-d

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
plications. -- Jeff ------- Jeff Johnson j...@san-dc.com (623) 582-0323 www.san-dc.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
On 07/02/2010 08:19 PM, bob gailer wrote: On 7/2/2010 5:56 PM, Jeff Johnson wrote: [snip] Visual FoxPro ... is very similar to Access I differ. Access and FoxPro are very different. Yes they both use tables, relationships, indexes and SQL. Yes they both have visual designers for forms and

Re: [Tutor] Help with choices for new database program

2010-07-04 Thread Jeff Johnson
On 07/03/2010 08:25 AM, Jim Byrnes wrote: Jeff Johnson wrote: On 07/02/2010 11:40 AM, Chris C. wrote: I'm writing this question because I want, for my own satisfaction, to rewrite one of my Access dbs (one that does our finances) into a stand-alone Python database program using SQLite. I

Re: [Tutor] Django Read

2010-07-08 Thread Jeff Johnson
I have six books on my bookshelf for Django. There are others I don't have. Django 1.0 Template Development is my favorite. Many of them walk you through building apps step by step. Do a search on Amazon. That is where I got most of them. -- Jeff

Re: [Tutor] Paython as a career

2009-03-17 Thread Jeff Johnson
that beneficial for income. Sincerely Hussain -- Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@googlegroups.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Personal: Fwd: Re: Paython as a career

2009-03-17 Thread Jeff Johnson
Curious to hear about your FoxPro migration journey when you have a moment. Regards, Malcolm (from the Profox list) -- Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@googlegroups.com ___ Tutor maillist - Tutor@python

Re: [Tutor] python interpreter vs bat file

2009-07-18 Thread Jeff Johnson
from the Python interpreter no memory error occurs. Any idea why this might be? Dinesh Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@googlegroups.com ___ Tutor maillist - Tutor@python.org http://mail.python.org

Re: [Tutor] Vista UAC

2009-09-10 Thread Jeff Johnson
ot;real" executable. If one exists, it copies the exe to the application folder and executes it. My solution for Vista - which works very well - is to put my application in a folder C:\users\public\applications\myapplication. This way there is no need for raised privileges. -- Jeff Je

Re: [Tutor] Vista UAC

2009-09-11 Thread Jeff Johnson
Lie Ryan wrote: Jeff Johnson wrote: I have an application that uses something that auto updates but it may not be the same process as yours. I have a "stub" executable that checks a network location for a different copy of the "real" executable. If one exists, it c

Re: [Tutor] ODBC SQL Server Question

2009-09-18 Thread Jeff Johnson
e invalid cursor state error online but most of it occurs on the fetchall statement not the execute statement. Any ideas? Thanks! -- Cheers, Krissy --- Testing the waters is always fun... -- Jeff Jeff Johnson j...@dcsoftware

Re: [Tutor] ODBC SQL Server Question

2009-09-18 Thread Jeff Johnson
n wrote: On Fri, Sep 18, 2009 at 11:49 AM, Jeff Johnson wrote: Kristina: I would format it as follows: self.cursor.execute("SELECT CUSTID FROM Stories WHERE NAME = '%s'" % name) No, that is a recipe for SQL injection attacks such as this: http://xkcd.com/327/ self.cur

Re: [Tutor] ODBC SQL Server Question

2009-09-18 Thread Jeff Johnson
Thanks for the clarification Kent! Kent Johnson wrote: On Fri, Sep 18, 2009 at 2:14 PM, Jeff Johnson wrote: Kent: How about this: self.cursor.execute("SELECT CUSTID FROM Stories WHERE NAME = '%s'" % (name, )) No, that has the same result as your original. For example,

Re: [Tutor] What language should I learn after Python?

2009-10-07 Thread Jeff Johnson
cost (free), licensing, and ease of use. One other thing that is important to me is packaging an application for distribution and updating existing applications. That "language" would be Inno Setup. HTH FWIW, Python is my favorite language to use for too many reasons to list here!

Re: [Tutor] Beginners question

2009-10-08 Thread Jeff Johnson
s in this procedure are not required but don't do any harm. I often use extra parentheses to clarify what I am doing so it is more readable when going back to look at it a couple of years later. Especially in long calculations or SQL with lots of ands and ors. -- Jeff Jeff Johnson j...@dcs

Re: [Tutor] What books do you recommend?

2009-12-11 Thread Jeff Johnson
ate Python. http://www.amazon.com/Python-Phrasebook-Brad-Dayley/dp/0672329107 I am not suggesting Amazon, it was just the first link I found. I see it in bookstores like Borders. -- Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@google

Re: [Tutor] 200 dollar questions!

2007-06-30 Thread Jeff Johnson
___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Which GUI?

2007-08-02 Thread Jeff Johnson
would like to > take a look at programming in a GUI. Which GUI is generally the easiest > to learn? > > -- > Your friend, > Scott > I am using Dabo. -- http://dabodev.com and for a mailing list: http://leafe.com/mailman/listinfo/dabo-users It is basically a wxpython wrappe

Re: [Tutor] Ingenious script (IMO)

2007-08-11 Thread Jeff Johnson
lnlen = len(denominations) lni = 0 while lni <= lnlen - 1: # floor division yields no decimals and no rounding givetocustomer[lni] = change // denominations[lni] # modulus returns remainder change = change % denominations[lni] if givetocustomer[lni] > 0: if

Re: [Tutor] [SPAM] A fun puzzle

2007-08-22 Thread Jeff Johnson
10 return rev def main(): for i in range(1, 100): j = reverse(i) if (i <> j) and (i % 10 <> 0) and (i % j == 0): print str(i) main() Jeff Johnson [EMAIL PROTECTED] 623-582-0323 Fax 623-869-0675 No virus found in this outgoing message. Checked by

[Tutor] Python Magazine

2007-10-05 Thread Jeff Johnson
I've just been told by the editors at Python Magazine that the first issue is out. It's all-electronic so anyone can download and read it. Let them know what you think: http://www.pythonmagazine.com/c/issue/2007/10 You can also subscribe for print + online. -- Jeff Jeff John

Re: [Tutor] New Introductory Book

2007-11-06 Thread Jeff Johnson
reading on line and prefer books. So I for one appreciate the post. Thank you, Jeff Jeff Johnson [EMAIL PROTECTED] SanDC, Inc. 623-582-0323 Fax 623-869-0675 Rikard Bosnjakovic wrote: > On 06/11/2007, Michael H. Goldwasser <[EMAIL PROTECTED]> wrote: > >>We are pleased to an

Re: [Tutor] New Introductory Book

2007-11-06 Thread Jeff Johnson
le or free resources for Python. I went to Amazon and ordered the book right away. Jeff Jeff Johnson [EMAIL PROTECTED] SanDC, Inc. 623-582-0323 Fax 623-869-0675 Eric Lake wrote: > For that price the book better write my code for me. > > Alex Ezell wrote: >> On 11/6/07, Chris Callow

Re: [Tutor] Condensed python2.5 cheat sheet

2007-12-19 Thread Jeff Johnson
There is an excellent book for programmers from other languages. Dive Into Python. http://www.diveintopython.org/toc/index.html Jeff On Wed, 2007-12-19 at 10:08 +, Samm and Andy wrote: > Hi people, > > I've a competent programmer friend who I'm trying to convert to the ways > of python an

Re: [Tutor] Program review

2008-01-05 Thread Jeff Johnson
s with Ed Leafe with Dabo and it has helped a lot. Keep it up! Jeff Jeff Johnson [EMAIL PROTECTED] SanDC, Inc. 623-582-0323 Fax 623-869-0675 Ricardo Aráoz wrote: > Kent Johnson wrote: >> Ricardo Aráoz wrote: >>> Ok, here is a corrected new version, I hope. >>> >>&

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-16 Thread Jeff Johnson
thout needing to incorporate a bunch of api's or third party applications. Jeff Jeff Johnson [EMAIL PROTECTED] SanDC, Inc. 623-582-0323 Fax 623-869-0675 Kent Johnson wrote: > Marc Tompkins wrote: >> It's funny - years ago I used to use Visual Studio and _enjoy_ it. I&#x

Re: [Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-14 Thread Jeff Johnson
s you like. It is not intended to be a web framework. http://dabodev.com/wiki/FrontPage -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] Jaggo wrote: Hello. I haven't much experience with programming. I'd like to point this question to programme

Re: [Tutor] study advice on javascript to python hand-off

2008-08-14 Thread Jeff Johnson
This is a three tier framework where you can use any back end you want. They currently support the major ones: MySQL, SQLite, PostGreSQL, MSSql to name the ones I can think of. http://dabodev.com/wiki/FrontPage -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL

Re: [Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-15 Thread Jeff Johnson
coloring and I can make changes, save and run it all in the editor. YMMV -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] Dick Moores wrote: At 06:36 AM 8/14/2008, Jeff Johnson wrote: I use Dabo's Editor.py. It has templates to provide code highlighting, et

Re: [Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-15 Thread Jeff Johnson
You can use just the Editor if you wish. Editor.py is the program. Dick Moores wrote: Thanks for the info. I'll take a look at Dabo. Dick -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] ___ Tutor mai

Re: [Tutor] experience/opinions with deploying python GUI app to Linux, Win32, and Mac OS X

2008-11-13 Thread Jeff Johnson
-- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] greg whittier wrote: Hi gang, I know this is probably like asking whether vi or emacs is better, but I'm looking for the best cross-platform (linux, windows, mac os x) user interface toolkit. Sinc

[Tutor] [Fwd: Python Course]

2008-12-02 Thread Jeff Johnson
type of information, please let me know. I thought members might be interested in available Python courses. -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] ___ Tutor maillist - Tutor@python.org http://mail.python.

Re: [Tutor] Choice of Python

2010-12-28 Thread Jeff Johnson
eck out Webfaction for a hosting company. They are probably the largest Django host, but using their control panel to do things is very easy! I have been using them for over two years. Jeff --- Jeff Johnson j...@dcsoftware.com ___

Re: [Tutor] Choice of Python

2010-12-28 Thread Jeff Johnson
y they are the largest Django hosting site. They support a ton of software, too. SVN, Trac are two I use. I've been with them at least 3 years and I find their cost amazing for what I get! Their documentation, support and forums are about the best I've seen.

Re: [Tutor] Choice of Python

2010-12-28 Thread Jeff Johnson
On 12/28/2010 01:35 PM, Brett Ritter wrote: On Tue, Dec 28, 2010 at 3:06 PM, Jeff Johnson wrote: Webfaction supports long processes and that is why they are the largest Django hosting site. They support a ton of software, too. SVN, Trac are two I use. I didn't see git hosting among

Re: [Tutor] Lists

2011-06-11 Thread Jeff Johnson
Alan: Thank you for all you do. I always look for your posts! You have helped me immensely with Python and I appreciate it! Jeff --- Jeff Johnson j...@dcsoftware.com Jeff --- Jeff Johnson j...@san-dc.com (623) 582-0323 www.san-dc.com On 06/11/2011 08:30

Re: [Tutor] Python Speech

2011-08-24 Thread Jeff Johnson
--- Jeff Johnson j...@dcsoftware.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor