Re: frame grabber hardware

2008-07-01 Thread rubbishemail
> Do you mean something like this? > > Easy Cap Audio-Video Capturing Adapter > http://www.youtube.com/watch?v=3AvT8JQ7NzI this would be suitable, if it had a documented driver, some sites said it could only be used with the included software. many bad comments, though: http://forums.ebay.com/db

Re: frame grabber hardware

2008-06-30 Thread rubbishemail
On Jun 29, 11:36 pm, Tim Roberts <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > >can anybody recommend a simple USB or PCI framegrabber with video > >input that runs under xp and has a python driver available? I just > >want to get the image into a file, no special requirements. > > Ther

frame grabber hardware

2008-06-27 Thread rubbishemail
Hello, can anybody recommend a simple USB or PCI framegrabber with video input that runs under xp and has a python driver available? I just want to get the image into a file, no special requirements. Thank you Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: copy locked files

2007-06-18 Thread rubbishemail
Hi Adam, On 18 Jun., 18:41, "Adam Pletcher" <[EMAIL PROTECTED]> wrote: > Do you mean files marked in-use by the OS, like DLLs used by an open > application? I dont know the exact name, but some programs totally lock the files, like Visual Studio shutil.copy('C:\\a\\test\\test.ncb','C:\\b\test.n

copy locked files

2007-06-18 Thread rubbishemail
Hello, do you know of any way to copy locked / opened files under win xp? I know there is something like "Volume Shadow Copy" but I don't know how to use it. Maybe someone already has a python solution? Many thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: arguments of a function/metaclass

2007-01-18 Thread rubbishemail
thank you! -- http://mail.python.org/mailman/listinfo/python-list

arguments of a function/metaclass

2007-01-16 Thread rubbishemail
Hello, I have a member function with many (20) named arguments def __init__(self,a=1,b=2): self.a=a self.b=b I would like to get rid of the many redundant lines like self.a=a and set the members automatically. The list of default arguments could be given like def __init__(**kwargs):

Re: convert binary data to int

2007-01-10 Thread rubbishemail
[ord(x) for ...] perfect, thank you Daniel -- http://mail.python.org/mailman/listinfo/python-list

convert binary data to int

2007-01-10 Thread rubbishemail
Hello, I need to convert a 3 byte binary string like "\x41\x00\x00" to 3 int values ( (65,0,0) in this case). The string might contain characters not escaped with a \x, like "A\x00\x00" Any ideas? Daniel -- http://mail.python.org/mailman/listinfo/python-list

automatic progress indicator

2006-10-02 Thread rubbishemail
Hello, I have several functions calling each other several times: iter=0 iterations=50*20 in this case, how can the program calculate this value automatically def a(y): for x in range(20): # this takes a constant time ... iter+=1 progress=iter/iterations

IVI-COM (Interchangeable Virtual Instrument)

2006-08-25 Thread rubbishemail
Hello, has anyone experience using IVI-COM drivers from python? http://adn.tm.agilent.com/index.cgi?CONTENT_ID=1919 http://ivifoundation.org/ Many thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: lambda

2006-04-21 Thread rubbishemail
Hello Alexis, thank you for the fast help! I am not against lambdas, but, sometimes they are a bit confusing to me, especially as you don't see many examples used. Daniel -- http://mail.python.org/mailman/listinfo/python-list

lambda

2006-04-21 Thread rubbishemail
Hello, I need your help understanding lambda (and doing it a better way without). f = lambda x : x*x # this is a list of functions [f for y in range(1,5)] [f for y in range(1,5)][0](2) # returns 4, as expected # ok now I want a list like # [x^2, 2*x^2, 3*x^2,...] [f*y for y in range(5)] # t

record sound to numarray/list

2005-09-08 Thread rubbishemail
Hello, do you know any way to record a sound from the soundcard on winXP to a numarray? many thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: Pointers and ctypes

2005-08-29 Thread rubbishemail
thanks a bunch, i just got the answer myself. next time i think about it a little longer. thanks again carlo -- http://mail.python.org/mailman/listinfo/python-list

Pointers and ctypes

2005-08-29 Thread rubbishemail
Hello, i've got a problem with pointers in the following function which i want to use: I16 __stdcall DO_ReadPort (U16 CardNumber, U16 Port, U32 *Value) The function is supposed to read out the status of a digital port of analog digital interface card. I got this function from Dask.h which came wi