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 in

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
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 sucks

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:>> >> • Do think clearly before writing. >> >> 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 constru

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 enc

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

Re: Best Encryption for Python Client/Server

2005-09-19 Thread Ed Hotchkiss
  I apologize for misreading your H my dear professor. Perhaps you can google:asshole and see if your image is present, I would highly doubt that it is not within the first page of results.   I'm sorry that I did not see the message in the thread which recommended SSH rather than SSL. There is no

Re: Best Encryption for Python Client/Server

2005-09-19 Thread Ed Hotchkiss
wrote: SSH 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

Re: threads/sockets quick question.

2005-09-19 Thread Ed Hotchkiss
Let's say that I avoid the complexities of using classes, and that I avoid using anything to count the threads...   import socketimport threading def scan(ip, port):    try:    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)    s.connect((ip, port))    s.close()    print '%s |

Re: threads/sockets quick question.

2005-09-19 Thread Ed Hotchkiss
  Well, I fixed those problems, now what I have is this: but i am getting errors with the global variables or something ... am i supposed to use this class and def together differently? I just don't seem to understand ... -edward import socketimport threadingimport traceback class scanThread(thr

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 l

[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 adv

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 adv

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 adv

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: 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,   pas

Re: My First Python Script

2005-09-16 Thread Ed Hotchkiss
Address = '%03.d.%03.d.%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 Hotchkis

First Script Problem

2005-09-16 Thread Ed Hotchkiss
This script should just be writing every possibly IP (yea, there are billions i know blah blah) to a txt file. Instead of just writing the IP, it continues and the number goes past 4 groups. IE: The possible IP keeps getting 3 characters longer every time. And at the end of the last loops do I some

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 -- http://mail.python.org/mailman/listinfo/py

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 ter

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'

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 j

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

Re: My First Python Script

2005-09-15 Thread Ed Hotchkiss
perties as theunix printf. In python, I think 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.&g

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 ...

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

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 w