WebOrb to record from my webcam
Can WebOrb record a video (flv) streaming using the webcam as a source? How? ...
Can WebOrb record a video (flv) streaming using the webcam as a source? How? ...
Following this example, I can list all elements into a pdf file import pyPdf pdf = pyPdf.PdfFileReader(open("pdffile.pdf")) list(pdf.pages) # Process all the objects. print pdf.resolvedObjects now, I need to extract a non-standard object from the pdf file. My object is the one named MYOBJECT and it is a string. The piece printed by...
I am attempting to use the .BaseStream property of the .NET2.0 SerialPort to do asynchronous reads and writes (BeginWrite/EndWrite, BeginRead/EndRead). I am having some success in this, but after a time, I notice (using Process Explorer) a very gradual increase in the Handles the app is using, and occasionally an extra thread, which als...
The .NET Console class and its default TextWriter implementation (available as Console.Out and implicitly in e.g. Console.WriteLine()) does not signal any error when the application is having its output piped to another program, and the other program terminates or closes the pipe before the application has finished. This means that the a...
With reference to the following thread: http://stackoverflow.com/questions/498636/java-app-unable-to-read-iso-8859-1-encoded-file-correctly What is the best way to programatically determine the correct charset encoding of an inputstream/file ? I have tried using the following: File in = new File(args[0]); InputStreamReader r = ne...
I need to capture the input stream from a microphone in my application, which is written in VB.NET. I need to be able to stream this data to a file or over HTTP and possibly encode it using LAME MP3. Can anybody help me get started with this? Thank you! ...
Hello, why do we need to close a FileInputStream (and streams in general) in any case before we leave the program? What would happen otherwise? If the program stops before the input stream is closed explicitly in the program, doesn't the stream also close automatically? Thank you. ...
Why do I fail to extract an integer value into Num variable ? #include <sstream> #include <vector> #include <iostream> using namespace std; int main() { string Digits("1 2 3"); stringstream ss(Digits); string Temp; vector<string>Tokens; while(ss >> Temp) Tokens.push_back(Temp); ss.str(Tokens[0]); ...
Hello, is it possible to read data from a generic webcam in C++ as you would from a stream object? Is there a common API or standard that works with all webcams? I'm talking about C++ in *nix environment. Thanks in advance. ...
I have a Stream object that is populated with the contents of an XSD file I have as an embedded resource on a project I am working on like so: using ( Stream xsdStream = assembly.GetManifestResourceStream( xsdFile ) ) { // Save the contents of the xsdStream here... } Within this using block I would like to prompt the user with a Sav...
How does one set the TOS flags/DSCP flags in Ruby on a UDP/TCP stream (preferably using the Ruby/Sockets library)? ...
I have some data that I would like to gzip, uuencode and then print to standard out. What I basically have is: compressor = Popen("gzip", stdin = subprocess.PIPE, stdout = subprocess.PIPE) encoder = Popen(["uuencode", "dummy"], stdin = compressor.stdout) The way I feed data to the compressor is through compressor.stdin.write(stuff...
I'm making a simple download service so a user can download all his images from out site. To do that i just zip everything to the http stream. However it seems everything is stored in memory, and the data isn't sent til zip file is complete and the output closed. I want the service to start sending at once, and not use too much memory. ...
Dear all, I'm new to python programming. I have this problem: I have a list of text files (both compressed and not) and I need to : - connect to the server and open them - after the opening of the file, I need to take his content and pass it to another python function that I wrote def readLogs (fileName): f = open (fileName, 'r') inStr...
Hi, I got this piece of code: <object id="MMPlayer1" codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height=238 width=240 align=absmiddle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95> <param name="FileName" value="http://www.abradio.cz/asx/beta32.asx"&...
What's the difference between File (File* pointer)stream in C and iostream in C++? Why are they both called stream, do they have something in common? ...
Is it possible to stream mp3s using pure Java? If so, what are the best resources to implement this. If not, are any other music formats streamable using Java only? ...
Hi All, I need a Javascript sample which reads contents from a url and creates a file in the client with same contents when some button is clicked. I also understand that Javascript cannot be allowed to access the local file system (Unless you use ActiveX objects). I do not want to rely on ActiveX objects (since my client is not IE alway...
I am working with a DataInputStream and had a question about EOFExceptions. According to java docs: Signals that an end of file or end of stream has been reached unexpectedly during input. This exception is mainly used by data input streams to signal end of stream. Note that many other input operations return a specia...
I would like to redirect the output from a command to a file and to stdout. I am using Windows XP command line. I realize that there is a command in linux called tee which will do this, but I want this in windows. ...