Download .jpg from web

2005-01-06 Thread GMane Python
Hello All. Using a network camera with built-in webserver, I'd like to have a python program download .jpg files on a local lan. the location is http:///jpg/image.jpg. Currently, I'm importing urllib and using urlopen to the address, then read()-ing it, saving it to a binary file. All that i

Automatic Windows printer creation?

2005-01-19 Thread GMane Python
Anyone know if there's a module which will allow me to 'create' windows printer definitions? Not from a Windows domain network, but just to add a printer that sends to a jet-direct-attached printer. Thanks! Dave -- http://mail.python.org/mailman/listinfo/python-list

Re: Python choice of database

2005-06-21 Thread GMane Python
For my database, I have a table of user information with a unique identifier, and then I save to the filesystem my bitmap files, placing the unique identifier, date and time information into the filename. Why stick a photo into a database? For instance: User Table: uniqueID: 0001 lNane: Rose fNa

Invoke ffmpeg from MySQL

2005-07-05 Thread GMane Python
Hello All. First, I'd like to thank you all for the tremendous help I've received in the past while posting here. I'd like to ask another question. I'd like to use Python to invoke ffmpeg to encode some still-frames into an animation. I'd like to use MySQL to store the frames as a BLOB objec

Save Binary data.

2005-08-19 Thread GMane Python
Hello All. I have a program that downloads 'gigabytes' of Axis NetCam photos per day. Right now, I set up the process to put the images into a queue, and every 30 or so seconds, 'pop' them from the queue and save them to disc. I save them as individual files. I think that I'd like to modify

Netware Python?

2005-08-19 Thread GMane Python
Hello all. Looking, I have not found a version of Python which runs on Netware by Novell. I wonder, since Java there is a Java for Netware, is this where Jython would come in as useful, to be able to use a Python script where Java is installed? I'm interested in the threaded heartbeat program in

Time Difference

2004-12-17 Thread GMane Python
Hello I was wondering if there is an existing function that would let me determine the difference in time. To explain: Upon starting a program: startup = time.time() After some very long processing: now = time.time() print, now - startup So, to print in a formatted way (D-H-M-S) the dif

PyHeartBeat Client in PERL?

2004-12-27 Thread GMane Python
Hello Everyone. Whil e reading the Python Cookbook as a means of learning Python, I came across the script by Nicola Larosa. Not knowing anything about PERL, I was wondering if there were a translation in PERL so I could have my Netware servers send heartbeats to the heartbeat serve

python sane imaging

2004-12-28 Thread GMane Python
Anyone know where the python sane imaging module is? Searching google, I can't find it to download. I have a win32 & linux system -- hope to find it for both OSes. Dave -- http://mail.python.org/mailman/listinfo/python-list

Scanner Access in Python

2005-04-13 Thread GMane Python
Hello All! I was hoping for a bit of advise. I wanted to know if anyone has any experience with scanning. I'm mostly using Windows. I tried quickly the pyTwain, but haven't gotten too far with that. I'm not sure if scanner access is built-in to other packages, such as maybe PIL or any others?

Pickle an image?

2005-04-25 Thread GMane Python
Hey all. I have a ( list | tuple | dictionary ) with several graphics in it. Trying to cPickle it to a file, I get errors. For instance, UnpickleableError: Cannon pickle objects. Anyone know of a way to get around this? I'd like to pickle a list or dictionary of about 5 .JPG images. Thanks

Re: OOP

2005-04-29 Thread GMane Python
As with most things, you have to understand 'why' you want to do something before you can really understand how it applies. Ok. Go to amazon. They've setup a 'shopping cart'. That cart is made of variables, name, cred.card num, items, quantity of items, ship-to address, state, shipping cost, sh

Re: Forgot my wrapup of example! Sorry!

2005-05-02 Thread GMane Python
So, I forgot the last part of my example that might gel in your mind why Objects are useful in certain situations. Ok so you maybe followed my example of the shopping cart. Let's just forget for a moment the use for shopping carts is for websites. Let's just say you were going to write the line

Re: Byte-operations.

2005-05-19 Thread GMane Python
For anyone who cares out there, I tried a slice with hex values: IDLE 1.0.3 >>> a =['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17 ','18','19','20'] >>> print a[3:4] ['4'] >>> print a[0xa:0xc] ['11', '12'] >>> print a[0xa:0xa+5] ['11', '12', '13', '14', '15'] -Dave "J

py2exe for WMI

2005-05-24 Thread GMane Python
Hello All. I'm trying to 'compile-to-EXE' a python program which uses Win32 & WMI to pull system info. from the PC such as serial number, CPU speed, etc. I'm having problems with py2exe -- with regard to Win2000 & WinXP platforms. It seems that the program only works if I have one typelib for W

Re: "...Learning with Python" ...a property that addition andmultiplication have...

2005-05-26 Thread GMane Python
The inablility to work with negative values. Addition can do the following: 5 + (-4) read as 5 plus the value negative four. Multiplication can do the following: 5 * (-1) read as 5 times the value negative one. String concatination can not subtract the sub-string 'lo' from 'hello'. 'hello' - 'l

Seti-like program

2005-05-31 Thread GMane Python
Hello I'd like to consider making a program which is 'seti-like' where I could run a command-line Python script to just 'do something', and then be able to launch a viewer program (maybe linux x11 or Windows, possibly over a network socket) using wxPython to be able to inter-act with it. (Start jo

Re: Seti-like program

2005-05-31 Thread GMane Python
I want to have a program download pictures from a netCam (Axis 2100). So, I want to start & stop, and also see progress (how many photos, are there errors, did I begin encoding to DivX, etc) for multiple cameras. -Dave <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Other examples-

Re: Reading a CSV file into a list of dictionaries

2005-06-07 Thread GMane Python
Sounds like you want to use the ConfigObject module. http://www.voidspace.org.uk/python/modules.shtml#configobj -dave "RFQ" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, I'm struggling here to do the following with any success: > > I have a comma delimited file where each lin