I am using a template function and I am passing and I may be sending instances of a variety of classes to a string stream. What can I do to make sure this continues to work?
Let me be more specific where do I define the behavior for this? Is there some member that should be on each class being sent to the string stream, should I in some...
Suppose I have a VarBinary[MAX] column, can I insert or update into that column using a type derived from System.IO.Stream? How?
I think that I can obtain a read-only stream from such a column using a SqlDataReader, calling GetSqlBytes() on the reader, getting the SqlBytes instance, and then referencing the Stream property on that.
...
First, most of my recent work was Java. So even though I "know" C++, I do not want to write Java in C++.
And C++ templates are one thing I will really miss when going back to Java.
Now that this out of the way, if I want to do create a new stream formatter, say pic, that will have a single std::string parameter in it's constructor.
I...
Any free control to view PDF for Silverlight?
or how to view pdf in silverlight from memory stream?
...
Hi!
I can play video from a file in C# using AxWindowsMediaPlayer.
But I want to play video from stream in chunks, not the whole video at once.
Can any body tell me how to do this?
...
Hello, I am an absolute newbie in Haskell yet trying to understand how it works.
I want to write my own lazy list of integers such as [1,2,3,4,5...].
For list of ones I have written
ones = 1 : ones
and when tried, works fine:
*Main> take 10 ones
[1,1,1,1,1,1,1,1,1,1]
How can I do the same for increasing integers ?
I have tried t...
My program is using HTTP to read gzipped files over the network.
I need my program to be able to unzip the content and parse it even when not all the gzipped file arrived yet.
Can it be done ?
If so, can it be done in C++ ? If so, how ?
...
Hey,
I am making an HTTP get request to a website for an android application I am making.
I am using a DefaultHttpClient and using HttpGet to issue the request. I get the entity response and from this obtain an InputStream object for getting the html of the page.
I then cycle through the reply doing as follows:
BufferedReader r = new...
I am looking for a way to compute SHA-1 checksums of very large files without having to fully load them into memory at once.
I don't know the details of the SHA-1 implementation and therefore would like to know if it is even possible to do that.
If you know the SAX XML parser, then what I look for would be something similar: Computin...
Hi. I'm trying to write a light-weight HTTP server in my app to feed dynamically generated MP3 data to the built-in Android MediaPlayer. I am not permitted to store my content on the SD card.
My input data is essentially of an infinite length. I tell MediaPlayer that its data source should basically be something like "http://localhos...
Hello
I want to run some tests from HPCC, STREAM and GUPS.
They will test memory bandwidth, latency, and throughput (in term of random accesses).
Can I start Single CPU test STREAM or Single CPU GUPS on NUMA node with memory interleaving enabled? (Is it allowed by the rules of HPCC - High Performance Computing Challenge?)
Usage of no...
I have seen some websites stream avi videos from megaupload using divx web player. How would I do this for my site?
Are there open source scripts to do this? How would I get started?
...
I have this StreamTokenizer Iterator Adapter that is suppose to create a Tokenizer Iterator Index Builder then build the index from a STIA wrapped around a StreamTokenizer. I am having trouble implementing the hasNext and Next for my STIA, can anyone help me, here is my class:
public class StreamTokenizerIteratorAdapter implements Itera...
C\C++ lib for cross-platform device streams capturing (It shall find all devices in system and be able to give me their streams for encoding or filtering or any thing else). I want it to be cross-platrorm So is there any lib like this, opensource?
...
Hi guys
I'm am developing an app that enables the user to stream youtube mp4 videos on the iphone. What I did was very simple - I just took a url of the form http://youtube.com/get_video?the token&fmt=18 (for example http://youtube.com/get_video?video_id=KUXGVfmrEN4&&t=vjVQa1PpcFNrxzfbeI6WrJfK6s0BdQ9ypMgV_6yqwjo=&fmt=18) an...
In my Java code, I start a new process, then obtain its input stream to read it:
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
FindBugs reports an error here:
may fail to close stream
Pattern id: OS_OPEN_STREAM, type: OS, category: BAD_PRACTICE
Must I close the InputStream of another p...
I have a binary that I want to convert to standard MIME-compliant base64 string. I thought I could use the php://filter method to filter the stream, but I'm getting hung up on how to set the "line-length" parameter. There are other methods that would achieve similar results, but I'm trying to figure out if:
If it's even possible/allowe...
Hello,
I would like to hear your suggestions on kind of design problem which I have in c#.
So, I am making a program where people can meet and draw in the same window over the internet or LAN. I am drawing into a bitmap and than I set it to a pictureBox component.
I have a hard time to decide how to send updates to each user, what is ...
I wrote something to load PNG files from a custom C++ IStream via GDI+. It worked great until I ran it on Vista machines. Crashes every time.
When compiled on VS 2008, I found that inserting code into the IStream::AddRef method, such as a cout, made the problem go away. When compiling with VS 2010, it still crashes regardless of that.
...
I am running a command to push files to Google App Engine, and it might ask me for my email and password:
$ appcfg.py update .
Application: my-cdn; version: 3. # printed out
Server: appengine.google.com. # printed out
Scanning files on local disk. # printed out
Initiating update. # printed out
Email: [email protected] # now it asks me...
...