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

2010-07-04 Thread Jim Byrnes
Martin Walsh wrote: On 07/03/2010 10:25 AM, Jim Byrnes wrote: Jeff Johnson wrote: [snip] http://dabodev.com/ Please check it out. And go to www.leafe.com and subscribe to the dabo-user email list. I would like to try out Dabo, but I don't see it in the Ubuntu repositories and I would like

Re: [Tutor] Help with exercises from learning to program python wikibooks

2010-07-04 Thread Richard D. Moores
On Sun, Jul 4, 2010 at 07:39, Zubin Mithra wrote: > The Python tutorial for both 2.x and 3.0 is really good. > Python 2.x - http://docs.python.org/tutorial/ > Python 3.0 - http://docs.python.org/release/3.0.1/tutorial/ The 3.0 link is broken. Try Dick Moo

Re: [Tutor] Running a python script as root.

2010-07-04 Thread Alan Gauld
"Srihari k" wrote The script still works as before .. date: cannot set date: Operation not permitted Sun Jul 4 23:37:37 IST 2010 I guess this because the python interpreter is still being run by the normal user and is unprivileged to set the date ? Is it ? I'd hope so! No matter what the s

[Tutor] Running a python script as root.

2010-07-04 Thread Srihari k
I have a small script that uses python-gammu to read time from my phone and set the system time: #!/usr/bin/python import gammu sm=gammu.StateMachine() sm.ReadConfig() sm.Init() cell_time=sm.GetDateTime() import os os.system('date -s \'%s\''% cell_time) Now this script works when i run it as root

Re: [Tutor] Help with exercises from learning to program python wikibooks

2010-07-04 Thread Hugo Arts
CC'd to tutor for completeness On Sun, Jul 4, 2010 at 3:58 PM, John Palmer wrote: > yep i'm using version 2.6.5. > > Would you recommend using the newer version? as on the python website it > seems to imply that the different versions have different uses and if in > doubt you should use version 2

Re: [Tutor] Help with exercises from learning to program python wikibooks

2010-07-04 Thread Zubin Mithra
On Sun, Jul 4, 2010 at 7:02 PM, Hugo Arts wrote: > On Sun, Jul 4, 2010 at 3:20 PM, John Palmer > wrote: > > Hi > > > > I've just decided to try an learn python but i'm already stuck on one of > the > > first exercises, i've given the link below: > > > > http://en.wikibooks.org/wiki/Python_Progra

Re: [Tutor] Help with exercises from learning to program pythonwikibooks

2010-07-04 Thread Alan Gauld
"John Palmer" wrote I've looked at the solution but it appears not to be working when i use this code File "hello.py", line 1 print ("Hello, ", end=" " ) ^ SyntaxError: invalid syntax This is Python V3 syntax, I suspect you have Python v2 installed. This is not

Re: [Tutor] Help with exercises from learning to program python wikibooks

2010-07-04 Thread Hugo Arts
On Sun, Jul 4, 2010 at 3:20 PM, John Palmer wrote: > Hi > > I've just decided to try an learn python but i'm already stuck on one of the > first exercises, i've given the link below: > > http://en.wikibooks.org/wiki/Python_Programming/Creating_Python_programs > > The exercise that i'm stuck on is

[Tutor] Help with exercises from learning to program python wikibooks

2010-07-04 Thread John Palmer
Hi I've just decided to try an learn python but i'm already stuck on one of the first exercises, i've given the link below: http://en.wikibooks.org/wiki/Python_Programming/Creating_Python_programs The exercise that i'm stuck on is number three: I've looked at the solution but it appears not to

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 know I'