Re: merits of Lisp vs Python

2006-12-23 Thread defcon8
All of you are nazis! -- http://mail.python.org/mailman/listinfo/python-list

Ghostscript interface

2006-09-10 Thread defcon8
Does a ghostscript interface for python exist? I have searched google quite a bit and all I have been able to find are command line hacks from within python. Thanks in advance for any useful help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Documents

2006-09-07 Thread defcon8
Claudio Grondi wrote: > defcon8 wrote: > > How can I print html documents in Python on Windows? > > > ;-) > > 1. You start the Microsoft Internet Explorer and make some space on the > Desktop for a Python shell window. > 2. You start the Python shell and position it

Printing Documents

2006-09-07 Thread defcon8
How can I print html documents in Python on Windows? -- http://mail.python.org/mailman/listinfo/python-list

A game idea.

2006-06-26 Thread defcon8
I have had what I think is quite a nice game idea, but I don't really have the experience or knowledge to go about it. Would anyone be willing to start a game project? The game I am thinking about is a virtual IRC stock exchange. There will be a bot in the channel which gets the live stock quotes a

Re: Python database access

2006-06-26 Thread defcon8
arvind wrote: > Hi all, > I am going to work on Python 2.4.3 and MSSQL database server on > Windows platform. > But I don't know how to make the connectivity or rather which module to > import. > I searched for the modules in the Python library, but I couldn't find > which module to go for. > Ple

About python 2.5 and its try statement.

2006-06-26 Thread defcon8
I can't remember the proposal number, but many of you reading will have probably read the features that will be added to python 2.5. The actual part I wanted to talk about was the finally part of try. Isn't it totally defeating a compiler's job by executing the finally part even if there is an erro

Re: Python and cellular automata (It works this time!)

2006-06-24 Thread defcon8
blog-of-justin.blogspot.com Sorry for the error. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and cellular automata (It works this time!)

2006-06-24 Thread defcon8
Sorry about the code. It seems to have been truncated. I have it hosted at http://xahlee.org/x/realautomata.py Thanks to Xah Lee. -- http://mail.python.org/mailman/listinfo/python-list

Python and cellular automata (It works this time!)

2006-06-24 Thread defcon8
I thought people would be interested in this little script I wrote to reproduce the 256 simple automata that is shown in the first chapters of "A New Kind of Science". You can see a few results without running the script, at http://cooper-j.blogspot.com . And here is the code (You will need PIL (Py

PIL problems

2006-06-23 Thread defcon8
Hello. I have been trying to use PIL's .putdata() method and I have been having some problems. The error I get is: Traceback (most recent call last): File "realautomata.py", line 72, in ? nim.putdata(y) File "C:\Python24\Lib\site-packages\PIL\Image.py", line 1120, in putdata self.im.pu

Re: Python keywords vs. English grammar

2006-05-24 Thread defcon8
1. Does it matter? 2. Is it affecting your productivity. 3. Are you not trying to programme? 4. It is open source, change it and stop whining. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting URL's

2006-05-18 Thread defcon8
Thanks -- http://mail.python.org/mailman/listinfo/python-list

Getting URL's

2006-05-18 Thread defcon8
How do I get all the URL's in a page? -- http://mail.python.org/mailman/listinfo/python-list

Re: saving file permission denied on windows

2006-05-15 Thread defcon8
Have you checked the persmissions to the folder? You can look from the properties of the folder to see. -- http://mail.python.org/mailman/listinfo/python-list

Re: Cellular automata and image manipulation

2006-05-14 Thread defcon8
Actually never mind either. I guessed I needed to append all values after eachother in one row list: x = [] for y in buff: for z in y: x.append(z) thanks for the help -- http://mail.python.org/mailman/listinfo/python-list

Re: Cellular automata and image manipulation

2006-05-14 Thread defcon8
Sorry this is the latest, the previous didn't work so well: import Image x = [] buff = [] buff = [[0 for y in range(41)] for x in range(21)] buff[0][(len(buff[0])-1)/2] = 1 def rule1(): for i in range(len(buff)-1): for j in range(len(buff[0])-1): if i == len(buff)-1:

Re: Cellular automata and image manipulation

2006-05-14 Thread defcon8
import Image x = [] buff = [] buff = [[0 for y in range(41)] for x in range(21)] buff[0][(len(buff)-1)/2] = 1 def rule1(): for i in range(len(buff)-1): for j in range(len(buff[0])-1): if i == len(buff)-1: break elif j == 0: if buf

Re: Cellular automata and image manipulation

2006-05-14 Thread defcon8
It seemed to work with a 1d list but not with 2d. -- http://mail.python.org/mailman/listinfo/python-list

Re: Cellular automata and image manipulation

2006-05-14 Thread defcon8
Thank you very much. That is highly simple, useful and it works. -- http://mail.python.org/mailman/listinfo/python-list

Cellular automata and image manipulation

2006-05-13 Thread defcon8
Hello. I have recently been experimenting with cellular automata and I would like to know how I could convert a 2d list of 0's and 1's into white and black squares on an image. I have tried to install matplotlib and also NumTut but both to no avail. There seem to be bugs in their installation and I