stream Questions

5

Solved

Is there any way to use regex match on a stream in python? like reg = re.compile(r'\w+') reg.match(StringIO.StringIO('aa aaa aa')) And I don't want to do this by getting the value of the whole s...
Iila asked 8/1, 2011 at 14:41

5

Solved

I'd like to add new line with text to my date.txt file, but instead of adding it into existing date.txt, app is creating new date.txt file.. TextWriter tw = new StreamWriter("date.txt"); // write...
Smokeproof asked 24/11, 2011 at 10:26

4

I guess PHP's get_headers does not allow for a context, so I have to change the default stream context to only get the HEAD of a request. This causes some issues with other requests on the page. I ...
Maddening asked 8/12, 2011 at 10:16

0

i'm try to setup load balancer with nginx to keep Client IP at backends node by create file /etc/nginx/sites-available/test.conf and symlink for it stream { upstream backend_servers { server http...
Pleo asked 29/9, 2021 at 9:26

2

Solved

I have a List of users. public class User { private String UserID; private String departmentId; private String email; } And I have a list of departmentIds List<String> departmentIdList = Arr...
Nanete asked 27/9, 2021 at 9:34

6

Solved

I'm working on a machine with limited memory, and I'd like to upload a dynamically generated (not-from-disk) file in a streaming manner to S3. In other words, I don't know the file size when I star...
Discerning asked 28/12, 2011 at 7:35

1

Need to know whether I can get last value from Stream without using third party library. The first​ way I tried, when I can sending the value to stream in 'changeEmail', I can store the newValue i...
Arak asked 22/1, 2019 at 13:59

5

Solved

I am trying to create a web server stream. Here is the code: import 'dart:io'; main() async { HttpServer requestServer = await HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, 8000); requestServ...
Hexagon asked 5/3, 2017 at 17:54

2

Solved

I am attempting to edit an instance of Axios so that the response type should be a 'stream' rather than standard JSON. It doesn't seem clear to me from other posts on S.O. how this can be accompl...
Inextensible asked 3/2, 2020 at 22:43

7

Solved

I'm trying to see the value of stream (ifstream, but it should work for all kind of streams I guess). The example code could look like this: stringstream in("One Two Three Four Five"); while(in) c...
Wanettawanfried asked 4/12, 2011 at 21:25

1

I want to check if there is a field named isfeatured exists in Doc of collection? I get below error if certain feild doesn't exist in the document of firestore database, even though I'm tackling it...
Ezequiel asked 26/8, 2021 at 11:21

3

Solved

All the docs I can find seem to suggest I need two http requests to do this: one to the stream, giving me a link to the last event, and then one to follow that link. That seems bizarre, isn't ther...
Bargello asked 13/11, 2017 at 22:10

2

Solved

Following the example on Piping results with Streams2, I'm trying to stream results from MySQL to stdout in node.js. Code looks like this: connection.query('SELECT * FROM table') .stream() .pip...
Phillada asked 12/3, 2015 at 15:12

23

Solved

I would like to find the fastest way to check if a file exists in standard C++11, 14, 17, or C. I have thousands of files and before doing something on them I need to check if all of them exist. Wh...
Mosely asked 8/10, 2012 at 1:10

4

Solved

I often find myself reading a large JSON file (usually an array of objects) then manipulating each object and writing back to a new file. To achieve this in Node (at least the reading the data por...
Hollister asked 23/9, 2019 at 21:21

24

Solved

I was surprised to find today that I couldn't track down any simple way to write the contents of an InputStream to an OutputStream in Java. Obviously, the byte buffer code isn't difficult to write,...
Boschbok asked 4/9, 2008 at 3:46

3

Solved

I have the following chunk of Python code (running v2.7) that results in MemoryError exceptions being thrown when I work with large (several GB) files: myProcess = Popen(myCmd, shell=True, stdout=...
Michaelmas asked 29/7, 2011 at 23:46

1

Is there a way to read a stream backwards? The stream is seekable.
Oidium asked 10/7, 2021 at 2:2

2

This is a short example of the implementation of a custom readable stream. The class is called MyStream. The stream gets the file/foldernames out of a directory and pushes the values to the data-ev...
Digitigrade asked 3/12, 2015 at 13:24

3

Solved

I have external programs such as ffmpeg and gstreamer running in the background and writing to a log file. I want to display the contents of this log with my Flask application, so that the user can...
Coefficient asked 21/2, 2016 at 19:27

16

Videos on most sites make use of progressive downloading, which means that the video is downloaded to my computer, and easy to trace. There are lots of extensions out there to do this, and ev...

3

Solved

I am creating a radio application for iPhone (coded in Swift 4.2) and I want to add a function allowing me to record and save in a file, the sound produced by my radio (read from an AVPlayer) when ...
Tuyere asked 15/1, 2019 at 20:32

3

I want to make it possible that multiple users can view the same website (a specific URL that all agree on) and all events of the users will be shared so that everyone has the same state. So that y...
Abbie asked 11/2, 2020 at 8:36

1

Stream listen is not called when limit is added in Firestore query in Dart / Flutter final _startAtTimestamp = Timestamp.fromMillisecondsSinceEpoch(DateTime.parse('2000-01-01 01:01:01.001').millise...
Badillo asked 20/6, 2021 at 5:7

5

Solved

I am trying to deserialize a XML-file. I need to check if the XML-file stream is empty before tying to deserialize it. IsolatedStorageFileStream isfs1 = new IsolatedStorageFileStream("test.xml", ...
Gaudet asked 30/5, 2011 at 19:5

© 2022 - 2024 — McMap. All rights reserved.