Re: WTF?

2005-11-01 Thread Ed Hotchkiss
happens to me too. -- http://mail.python.org/mailman/listinfo/python-list

testing for modules?

2005-10-25 Thread Ed Hotchkiss
i have a generic script that is using several modules on windows and linux boxes. i need to have the scripts test if a module is installed, and then if not - then to install the module. can anyone give me a headsup on how to test for a module, returning something to indicate whether or not it is

Re: Which SQL module to use?

2005-10-04 Thread Ed Hotchkiss
I'm using MySQLdb. I use a FREE MySQL server at freesql.org. I also have an example class and some functions that use the module. even a simple script that turns a .cvs into a mysql table. contact me if interested. -edward -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl's documentation come of age

2005-09-21 Thread Ed Hotchkiss
please feed the trolls. On 9/21/05, Steve Holden [EMAIL PROTECTED] wrote: Rudy Schockaert wrote: snip • Do think clearly before writing. /snip You should start thinking before you write something. Do you really think anyone takes you serious the way you talk? I haven't seen anything constructive

Re: Perl's documentation come of age

2005-09-21 Thread Ed Hotchkiss
I'm new to Python, not programming. I agree with the point regarding the interpreter. what is that? who uses that!? Why are most examples like that, rather than executed as .py files? Another problem that I have (which does get annoying after awhile), is not using foo and bar. Spam and Eggs

Re: Best Encryption for Python Client/Server

2005-09-20 Thread Ed Hotchkiss
hah :P awesome, I will be busy this week! -edward On 20 Sep 2005 14:23:10 -0700, Paul Rubin http://phr.cx@nospam.invalid wrote: Steve Holden [EMAIL PROTECTED] writes: Here's my mission: simple P2P class with encryption of whatever type of file is being sent, and authentication via encrypted

Re: Best Encryption for Python Client/Server

2005-09-19 Thread Ed Hotchkiss
can be used for functionality like this, through tunneling. You can eventunnel interprocess communication through SSH. Its not exceptionally complicated.On Sunday 18 September 2005 13:36, Ed Hotchkiss wrote: Let us say that I am trying to create a very small and simple private network/connection

Re: Best Encryption for Python Client/Server

2005-09-19 Thread Ed Hotchkiss
No worries,I apologize for my outburst. I will check out the viability of using an SSH module, or using pyCrypto or something to encrypt the data. Here's my mission: simple P2P class with encryption of whatever type of file is being sent, and authentication via encrypted user name/password. So

Best Encryption for Python Client/Server

2005-09-18 Thread Ed Hotchkiss
Let us say that I am trying to create a very small and simple private network/connection between several scripts on different machines, to communicate instructions/data/files etc. to each other over the net. Is SSL the best method? Any recommendations of something to get started with? Thanks in

Best Encryption for Python Client/Server

2005-09-18 Thread Ed Hotchkiss
Let us say that I am trying to create a very small and simple private network/connection between several scripts on different machines, to communicate instructions/data/files etc. to each other over the net. Is SSL the best method? Any recommendations of something to get started with? Thanks in

[no subject]

2005-09-18 Thread Ed Hotchkiss
Let us say that I am trying to create a very small and simple private network/connection between several scripts on different machines, to communicate instructions/data/files etc. to each other over the net. Is SSL the best method? Any recommendations of something to get started with? Thanks in

tuples and mysqldb tables

2005-09-18 Thread Ed Hotchkiss
I have used fetchall() to insert the values from a table into a tuple. anywhere from 0 - ? many rows could be in this tuple, so it is a row within a row. How do I use a loops to iterate through the nested tuple, and assign the tuples integers and strings to variables, ugh :P The Tables data is

Re: Inserting tuple from text file into database fields

2005-09-17 Thread Ed Hotchkiss
So I changed the code a little, still throwing the SQL syntax error. I still cannot seem to identify the problem. # Script to add links from a comma deliminated file to a MySQL database# 9/16/05 import MySQLdb conn=MySQLdb.connect(host=www.freesql.org,user=edhotchkiss,port=3306,passwd=test1,

MySQLdb error - PLEASE SAVE ME!

2005-09-17 Thread Ed Hotchkiss
Ok. I am trying to read a csv file with three strings separated by commas. I am trying to insert them into a MySQL DB online. MySQLdb is installed, no problems. I think that I am having some kind of error with my csv going into the fields and being broken apart correctly. Can someone please help?

Re: My First Python Script

2005-09-16 Thread Ed Hotchkiss
Sweet, time to play with python for a whole day today :P On 9/16/05, Gary Wilson Jr [EMAIL PROTECTED] wrote: Ed Hotchkiss wrote: def ZeroThrough255(): x = 0 while x = 255: if len(x) == 1: mySet = '00' + str(x) elif len(x) == 2: mySet = '0' + str(x) else: mySet = x print mySet x +=1

Re: Looking for a database. Sugestions?

2005-09-16 Thread Ed Hotchkiss
Awesome, I'm checking both out right now, trying to get it setup - thanks. On 9/16/05, Christoph Haas [EMAIL PROTECTED] wrote: On Thu, Sep 15, 2005 at 11:00:46PM +0200, ionel wrote: I'm looking for a thread-safe database. Preferably an embedded, sql database. What are the best choices in terms of

Re: Looking for a database. Sugestions?

2005-09-16 Thread Ed Hotchkiss
So I opted actually to stick with MySQL since I got hooked up with a DB free and It's more of a standard. I'm looking at documentation, and wondering why not just use _mysql which is built in, versus the MySQLdb module? I don't get this ... -edward --

Re: My First Python Script

2005-09-16 Thread Ed Hotchkiss
.%03.d.%03.d\n' % (octet1, octet2,octet3, octet4) ipFile.write(ipAddress) ipFile.close() # execute the function findIPs()Thanks though, your response helps me understand variables better now.. On 9/16/05, John Hazen [EMAIL PROTECTED] wrote: * Ed Hotchkiss [EMAIL PROTECTED] [2005-09-15 20:36

MySQL Python

2005-09-15 Thread Ed Hotchkiss
Just migrating now from ASP/to MySQL and Python. I am trying to create a simple script to access a MySQL DB. The Module for MySQL looks very easy, however I do not understand one thing ... In ASP, you can just create a new DB with Access. In MySQL, how do I create a database to start playing

encryption with python?

2005-09-15 Thread Ed Hotchkiss
What's the best module for encryption with python, anyone out there using python and encryption together?-- edward hotchkiss -- http://mail.python.org/mailman/listinfo/python-list

My First Python Script

2005-09-15 Thread Ed Hotchkiss
So I have a script, first part of a script that I am making to determine each possible combination of IP addresses that are out there. This part is just to get the end of the IP (the last 3 digits). So, they are from 0 - 255. I just want to print 0 - 255, HOWEVER If the number is only say ... 3,

Re: My First Python Script

2005-09-15 Thread Ed Hotchkiss
its called string formatting.JamesOn Thursday 15 September 2005 20:33, Ed Hotchkiss wrote: So I have a script, first part of a script that I am making to determine each possible combination of IP addresses that are out there.This part is just to get the end of the IP (the last 3 digits). So

Re: Looking for a database. Sugestions?

2005-09-15 Thread Ed Hotchkiss
Is this for running an SQL database, then using a separate python module to access the database? On 15 Sep 2005 21:31:27 -0700, gsteff [EMAIL PROTECTED] wrote: SQLite rocks, its definitely the way to go.Its binary is around 250K,but it supports more of the SQL standard than MySQL.It CAN be thread

Re: encryption with python?

2005-09-15 Thread Ed Hotchkiss
Awesome. I just started Python today so I'd have no idea ... how good is this encryption compared to PGP? Any info on using this file? Didn't see any on this guys site ... On 9/16/05, Robert Kern [EMAIL PROTECTED] wrote: Ed Hotchkiss wrote: Gmail was just an example, I just wanted to learn