stream Questions

3

Solved

Let's say I have an API - example: https://jsonplaceholder.typicode.com/posts Now, I want to apply StreamBuilder to it with a ListView have ListTiles. How do I configure? How do I create a stream ...
Henze asked 19/8, 2019 at 10:12

2

Solved

Hello I'm trying to make my first social app with Flutter and I'm stuck. I would like to get my messages (in a conversasion between tow users) from my api. Not a probleme when I use Future and Futu...
Aime asked 17/6, 2020 at 16:32

3

I'm struggling with customization of my spring kafka streams application. I have been trying to configure handling uncaught (runtime exceptions) at my KStreams. Refering to documentation https://do...

2

Solved

I would like to wait for a bool to be true, then return from a Future, but I can't seem to make my Future to wait for the Stream. Future<bool> ready() { return new Future<bool>(() { ...
Phyllome asked 8/4, 2018 at 22:16

5

Solved

I have been trying to listen to more than one collection from Firestone using a StreamBuilder or something similar. My original code when I was working with only one Stream was: import 'package:fl...
Jamila asked 6/7, 2018 at 16:13

2

Solved

In this code I stream a file from a url and save it to a file. Is there a way to also pipe it through something that will count the number of bytes piped? (Which would tell me the file size.) req...
Taiga asked 21/4, 2017 at 16:28

2

Solved

Let's say I have the following code: try { let size = 0; await pipeline( fs.createReadStream('lowercase.txt'), async function* (source) { for await (const chunk of source) { size += chunk.le...
Untouchable asked 7/4, 2020 at 3:42

3

Solved

I want to enable the user to play a sound. My implementation works fine with firefox. On Safari the sound is not played. I verified, that the audio control works in safari with other websites. So, ...
Rattlesnake asked 7/2, 2019 at 8:57

6

Solved

I have two text files, Source.txt and Target.txt. The source will never be modified and contain N lines of text. So, I want to delete a specific line of text in Target.txt, and replace by an specif...
Impi asked 28/12, 2009 at 19:7

2

So I understand that call-by-need is simply a memoized version of call-by-name. In Martin Odersky's FP Course on Coursera, in lecture 7.3 (Lazy Evaluation), he mentions that if Streams were impleme...
Scram asked 6/5, 2013 at 20:47

2

Solved

I want to zip a stream and stream out the result. I'm doing it using AWS Lambda which matters in sense of available disk space and other restrictions. I'm going to use the zipped stream to write an...
Circle asked 4/4, 2019 at 11:23

1

I've seen various questions on SO about downloading files using Axios and uploading them to S3 but none that tie it all together and I'm getting confused with streams, blobs, multi-part forms etc. ...
Ribband asked 15/7, 2020 at 16:35

9

Solved

I have a library that takes as input a ReadableStream, but my input is just a base64 format image. I could convert the data I have in a Buffer like so: var img = new Buffer(img_string, 'base64'); ...
Grimonia asked 5/11, 2012 at 10:46

4

Solved

I'm sending an image encoded as base64 through sockets and decoding is not working. The file that must contain the new image is written as base64 instead of a jpg file. encoding socket: function en...
Islington asked 11/9, 2019 at 9:24

3

Solved

My work recently involves programmatically making videos. In python, the typical workflow looks something like this: import subprocess, Image, ImageDraw for i in range(frames_per_second * video_d...
Gratia asked 8/11, 2012 at 17:57

6

Solved

So, when I request my webservice for getting download a zip file, it downloads the file content secretely and all of a sudden, the file appears in the download task bar but already downloaded full ...
Gobble asked 13/12, 2021 at 1:19

10

Solved

How to close a readable stream in Node.js? var input = fs.createReadStream('lines.txt'); input.on('data', function(data) { // after closing the stream, this will not // be called again if (go...
Breaux asked 9/10, 2013 at 16:4

3

Solved

I'm designing a small tool that will generate CSV test data. I want to use Akka Streams (1.0-RC4) to implement the data flow. There will be a Source that generates random numbers, a transformation ...
Up asked 13/7, 2015 at 8:46

1

My goal is to request transactions from an API and store them to a database. The response is paginated and I want to read every page and store the transactions in batches. So for one request/respo...
Amieeamiel asked 22/5, 2020 at 23:14

2

Solved

I have a code that starts a java process (i.e.: executing a compiled java code) via ProcessBuilder builder = new ProcessBuilder("java", "Sample", "arg1", "arg2"); builder.redirectErrorStream(true...
Vladimir asked 19/9, 2013 at 19:41

16

Solved

Let's suppose that have a stream of text (or Reader in Java) that I'd like to check for a particular string. The stream of text might be very large so as soon as the search string is found I'd like...
Ahl asked 10/5, 2009 at 21:43

4

Solved

The following line will download an image file from a specified url variable: var filename = path.join(__dirname, url.replace(/^.*[\\\/]/, '')); request(url).pipe(fs.createWriteStream(filename)); ...
Kantor asked 13/6, 2013 at 22:40

9

Solved

What's the correct way to handle errors with streams? I already know there's an 'error' event you can listen on, but I want to know some more details about arbitrarily complicated situations. For...
Tier asked 14/2, 2014 at 5:2

3

The examples in the RxJS README seem to suggest we have to subscribe to a source. In other words: we wait for the source to send events. In that sense, sources seem to be push-based: the source dec...
Centralia asked 11/11, 2015 at 22:47

2

Solved

I am working with two C# stream APIs, one of which is a data source and the other of which is a data sink. Neither API actually exposes a stream object; both expect you to pass a stream into them ...
Impossible asked 10/10, 2018 at 15:40

© 2022 - 2024 — McMap. All rights reserved.