Re: [Tutor] Saving data as jpg file

2011-06-11 Thread Steven D'Aprano
Johan Geldenhuys wrote: Hi, I have a Axis IP camera that I can send a HTTP command to and the data returned is the jpg image. When I get this data, I want to save it as a .jpg file, but I think my encoding is not correct, because the image is all distorted. Are you sure that the data produced

Re: [Tutor] dummy, underscore and unused local variables

2011-06-11 Thread Steven D'Aprano
Tim Johnson wrote: Consider the following code: for i in range(mylimit): foo() running pychecker gives me a """ Local variable (i) not used """ complaint. If I use for dummy in range(mylimit): ## or for _ in range(mylimit): I get no complaint from pychecker. I wou

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

[Tutor] Saving data as jpg file

2011-06-11 Thread Johan Geldenhuys
Hi, I have a Axis IP camera that I can send a HTTP command to and the data returned is the jpg image. When I get this data, I want to save it as a .jpg file, but I think my encoding is not correct, because the image is all distorted. I looked at using PIL, but the device I will install my scr

[Tutor] dummy, underscore and unused local variables

2011-06-11 Thread Tim Johnson
Consider the following code: for i in range(mylimit): foo() running pychecker gives me a """ Local variable (i) not used """ complaint. If I use for dummy in range(mylimit): ## or for _ in range(mylimit): I get no complaint from pychecker. I would welcome comments on

Re: [Tutor] STUPID telnet connection question

2011-06-11 Thread Kĩnũthia Mũchane
On 06/11/2011 08:02 PM, davidheise...@gmail.com wrote: I think Steven and Alan misunderstood the Rayon's question. What is 1 + 1? David I am with you. Rayon is using his telnet script to pass commands to a device ONE AT A TIME. Then he breaks the connection and reconnects for the next comman

Re: [Tutor] Lists

2011-06-11 Thread Kĩnũthia Mũchane
On 06/11/2011 06:51 PM, Piotr Kamiński wrote: Dnia 11-06-2011 o 17:30:50 Alan Gauld napisał(a): "Piotr Kamiński" wrote This is a *technical* list, as I understand it, solely dedicated to the technical side of teaching the *Python* programming language and *programming* in general. I woul

Re: [Tutor] STUPID telnet connection question

2011-06-11 Thread Steven D'Aprano
davidheise...@gmail.com wrote: I think Steven and Alan misunderstood the Rayon's question. Rayon is using his telnet script to pass commands to a device ONE AT A TIME. Then he breaks the connection and reconnects for the next command.. He is asking how to open a telnet connection, pass MULTI

[Tutor] STUPID telnet connection question

2011-06-11 Thread davidheiserca
I think Steven and Alan misunderstood the Rayon's question. Rayon is using his telnet script to pass commands to a device ONE AT A TIME. Then he breaks the connection and reconnects for the next command.. He is asking how to open a telnet connection, pass MULTIPLE commands, then close the se

Re: [Tutor] Building games

2011-06-11 Thread Corey Richardson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/11/2011 12:32 PM, Wolf Halton wrote: > I think pygame would let you do a simple graphical game. > pygame can do plenty of complex graphics too. FWIW, you might have a better time using something like PySFML(2) or pyglet (I like pyglet much mor

Re: [Tutor] Building games

2011-06-11 Thread Wolf Halton
I think pygame would let you do a simple graphical game. On Jun 11, 2011 7:54 AM, "Tommy Bell" wrote: > Hello > > I've been programming for a few years, mainly scripts and small > applications that monitor folders and performs actions based on content > of files and so on. > > I recently got the

Re: [Tutor] Lists

2011-06-11 Thread Piotr Kamiński
Dnia 11-06-2011 o 17:30:50 Alan Gauld napisał(a): "Piotr Kamiński" wrote This is a *technical* list, as I understand it, solely dedicated to the technical side of teaching the *Python* programming language and *programming* in general. I would like to keep it this way ... Since this s

Re: [Tutor] Lists

2011-06-11 Thread Piotr Kamiński
Hello, I've been told that some of you, or everybody got my e-mail four times. I'm sorry for the inconvenience. It seems there was a temporary failure of my piotr-kam[at]o2.pl mail account. I tried to send the e-mail three times, and each time got the "Undelivered Mail Returned to Sender" me

Re: [Tutor] Building games

2011-06-11 Thread Alan Gauld
"Tommy Bell" wrote Now, regarding the title, building games, i need to be able to place buildings, like squares that is placed with the mouse and can be clicked and these kind of things. Can anyone recommend places to go or books to read? Not specifically for Python but there are many boo

Re: [Tutor] Lists

2011-06-11 Thread Alan Gauld
"Piotr Kamiński" wrote This is a *technical* list, as I understand it, solely dedicated to the technical side of teaching the *Python* programming language and *programming* in general. I would like to keep it this way ... Since this seems to be something we can all agree on can we consider

Re: [Tutor] Lists

2011-06-11 Thread Piotr Kamiński
Dnia 11-06-2011 o 04:34:47 Steven D'Aprano napisał(a): Piotr Kamiński wrote: Could you please refrain from presenting your *religious* convictions in this list: the notions you believe in as well as the ones that you believe are false? This is a *technical* list, as I understand it, solel

[Tutor] Building games

2011-06-11 Thread Tommy Bell
Hello I've been programming for a few years, mainly scripts and small applications that monitor folders and performs actions based on content of files and so on. I recently got the idea of trying to do a small game that is capable of illustrating some common problems in my field, now the gam