[Tutor] New beginner book - "Practical Programming"

2009-05-07 Thread Kent Johnson
The Pragmatic Bookshelf has released a new book, Practical
Programming: An Introduction to Computer Science Using Python. This
looks like a good addition to the list of beginners' books. I would be
interested in a review if anyone reads it.
http://www.pragprog.com/titles/gwpy/practical-programming

Kent
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] New beginner book - "Practical Programming"

2009-05-07 Thread Alan Gauld


"Kent Johnson"  wrote in message 
news:1c2a2c590905070342jd4960f9xab7b37e871136...@mail.gmail.com...

The Pragmatic Bookshelf has released a new book, Practical
Programming: An Introduction to Computer Science Using Python. This
looks like a good addition to the list of beginners' books. I would be
interested in a review if anyone reads it.
http://www.pragprog.com/titles/gwpy/practical-programming



Based on the excerpt that I read online it looks pretty good.
I couldn't see anything to carp about at all. Very impressive.


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/ 



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Need help with registry access

2009-05-07 Thread Christopher Barkley
Python 3.0.1
Windows XP PROFESSIONAL, SP3

Looking for help manipulating the registry through python.

Heres what I'm wanting to do.

My friend and I are techies, he's on my LAN. I want to disable his keyboard 
through the registry (or some other fun way) while he's in the middle of 
playing starcraft by running a script through the LAN. Easy fix, he can restore 
or just reinstall his keyboard. But I wanna see the look on his face.

I'd like to do it through the registry, since that'd be easy to fix.___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Need help with registry access

2009-05-07 Thread Alan Gauld


"Christopher Barkley"  wrote 

My friend and I are techies, he's on my LAN. I want to disable 
his keyboard through the registry (or some other fun way) 
while he's in the middle of playing starcraft by running a 
script through the LAN. 


Look at the winreg module for accessing the registry.

How you do it over the LAN and how you disable the keyboard 
I'll leave as an exercise for your investigation!


One other option is to look into using WSH via the pythonwin 
or ctypes API.


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Need help with registry access

2009-05-07 Thread spir
Le Fri, 8 May 2009 01:20:32 +0100,
"Alan Gauld"  s'exprima ainsi:

> 
> "Christopher Barkley"  wrote 
> 
> > My friend and I are techies, he's on my LAN. I want to disable 
> > his keyboard through the registry (or some other fun way) 
> > while he's in the middle of playing starcraft by running a 
> > script through the LAN. 

> Look at the winreg module for accessing the registry.
> 
> How you do it over the LAN and how you disable the keyboard 
> I'll leave as an exercise for your investigation!
> 
> One other option is to look into using WSH via the pythonwin 
> or ctypes API.
> 

If he can do that, I'm really happy not to be a windozista!

Denis
--
la vita e estrany
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Need help with registry access

2009-05-07 Thread Lie Ryan

spir wrote:

Le Fri, 8 May 2009 01:20:32 +0100,
"Alan Gauld"  s'exprima ainsi:

"Christopher Barkley"  wrote 

My friend and I are techies, he's on my LAN. I want to disable 
his keyboard through the registry (or some other fun way) 
while he's in the middle of playing starcraft by running a 
script through the LAN. 



Look at the winreg module for accessing the registry.

How you do it over the LAN and how you disable the keyboard 
I'll leave as an exercise for your investigation!


One other option is to look into using WSH via the pythonwin 
or ctypes API.




If he can do that, I'm really happy not to be a windozista!



It is trivial if he can get physical access to the computer and can 
install a software that will listen to a certain port to hear when to 
shut off the keyboard. Well, if you can get physical access to the 
computer, pretty much anything is possible...


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor