stream Questions

7

Solved

What is the basic difference between stream processing and traditional message processing? As people say that kafka is good choice for stream processing but essentially kafka is a messaging framewo...
Shugart asked 19/1, 2017 at 14:39

2

I am attempting to write a small demo program that has two cuda streams progressing and, governed by events, waiting for each other. So far this program looks like this: // event.cu #include <i...
Veridical asked 19/3, 2013 at 14:5

4

Solved

I want to read a live stream from youtube to perform some basic CV things, probably we have to somehow strip of the youtube URL to convert it in a format that might be readable by openCV like?: ca...
Branching asked 26/3, 2017 at 17:30

2

I'm reading how the probabilistic data structure count-min-sketch is used in finding the top k elements in a data stream. But I cannot seem to wrap my head around the step where we maintain a heap ...

6

Solved

What's the best way to pipe the output from an java.io.OutputStream to a String in Java? Say I have the method: writeToStream(Object o, OutputStream out) Which writes certain data from the obj...
Autocrat asked 19/10, 2008 at 20:3

5

Solved

Currently, there isn't a NetworkStream.Peek method in C#. What is the best way of implementing such a method which functions just like NetworkStream.ReadByte except that the returned byte is not ac...
Contaminate asked 4/2, 2010 at 1:20

3

Solved

I am using HttpClient of Java 11 to post the request to an HTTP2 server. The HttpClient Object is created as a Singleton Spring bean as shown below. @Bean public HttpClient getClient() { return H...
Erastatus asked 28/2, 2019 at 3:19

20

Solved

I understand that a stream is a representation of a sequence of bytes. Each stream provides means for reading and writing bytes to its given backing store. But what is the point of the stream? Why ...
Lime asked 3/2, 2009 at 16:6

9

Solved

I have read quite a number of articles on Serialization and how it is so nice and great but none of the arguments were convincing enough. I am wondering if someone can really tell me what is it tha...
Wonderful asked 9/2, 2010 at 21:45

6

Solved

What is the best solution in C# for computing an "on the fly" md5 like hash of a stream of unknown length? Specifically, I want to compute a hash from data received over the network. I know I am do...
Pigeon asked 1/9, 2010 at 19:5

4

I always open and write into files using with statement: with open('file_path', 'w') as handle: print >>handle, my_stuff However, there is one instance where I need to be able to be more ...
Carbonyl asked 8/3, 2014 at 3:9

3

Solved

My program uses HttpClient to send a GET request to a Web API, and this returns a file. I now use this code (simplified) to store the file to disc: public async Task<bool> DownloadFile() { v...
Giddens asked 19/8, 2016 at 7:58

2

Solved

Given a function parses incoming streams: async onData(stream, callback) { const parsed = await simpleParser(stream) // Code handling parsed stream here // ... return callback() } I'm look...
Brawley asked 24/1, 2019 at 14:22

1

I'm having an issue with Node.js Streams/Buffers where they aren't being closed/flushed following first use. I have a read stream created from fs.createReadStream that I am piping to a custom write...
Cleo asked 13/11, 2018 at 20:45

9

Solved

Can anyone explain in simple English about the differences between printf, fprintf, and sprintf with examples? What stream is it in? I'm really confused between the three of these while reading a...
Bedlamite asked 7/1, 2011 at 15:49

2

I have a large javascript object that I want to convert to JSON and write to a file. I thought I could do this using streams like so var fs = require('fs'); var JSONStream = require('JSONStream'...
Goner asked 6/9, 2015 at 20:19

3

I am trying to capture the download progress of a Fetch request and use that to change the width of a progress bar. I looked at ProgressEvent.lengthComputable as a potential solution but unsure if ...
Mommy asked 14/11, 2017 at 11:54

11

Solved

2 streams: Given readable streams stream1 and stream2, what's an idiomatic (concise) way to get a stream containing stream1 and stream2 concatenated? I cannot do stream1.pipe(outStream); stream2...
Sass asked 8/5, 2013 at 1:21

3

Solved

//File: email_sign_in_model.dart class EmailSignInModel { EmailSignInModel({ this.email='', this.formType=EmailSignInFormType.signIn, this.isLoading=false, this.password='', this.submitted=f...
Flanch asked 14/6, 2020 at 12:33

12

Solved

I am trying to read a file given in an NSURL and load it into an array, with items separated by a newline character \n. Here is the way I've done it so far: var possList: NSString? = NSString.st...
Corcyra asked 4/7, 2014 at 23:4

5

Solved

I was reading the cplusplus.com tutorial on I/O. At the end, it says fstream buffers are synchronized with the file on disc Explicitly, with manipulators: When certain manipulators are used on str...
Divan asked 10/1, 2013 at 6:15

2

Solved

I am trying to use zipfile module to read a file in an archive. the uncompressed file is ~3GB and the compressed file is 200MB. I don't want them in memory as I process the compressed file line by ...
Ossetic asked 14/7, 2012 at 8:48

4

I was wondering if someone could show me how to implement the Flutter StreamProvider "catchError" property? Example code below to add to: StreamProvider<LocationModelNormal>.value( initial...
Jugoslavia asked 8/7, 2019 at 21:44

5

if printf uses stdout but how would i write a print function using my own output stream? i want to handle this stream with a OO-like structure but i can do that myself. is this possible? this for l...
Obligee asked 27/11, 2011 at 20:49

3

Solved

I have some base64 stored in a database (that are actually images) that needs to be uploaded to a third party. I would like to upload them using memory rather than saving them as an image then post...
Chicle asked 20/7, 2015 at 19:1

© 2022 - 2024 — McMap. All rights reserved.