15,249 questions
-4
votes
1
answer
100
views
How to check if remote audio stream has any metadata by javascript
Using the HTML5 audio Element turns out to be ineffective with unkonwn remote steam:
const playStreamFromUrl = async (musicUrl) => {
const audioPlayer = document.getElementById('audio-player-id'...
Advice
0
votes
2
replies
83
views
Can I decrypt a stream with JavaScript SubtleCrypto and AES-GCM?
I am implementing a web-based “secure folder” that downloads encrypted files and decrypts them on the client side. My current code looks like:
async function download_file(folder, file) {
const ...
2
votes
1
answer
147
views
Multiframe ZSTD file: how to jump to and stream the second file?
I compress two ndjson files into a multiframe ZST file where each ndjson is compressed into a frame. I have the following metadata meta_data (as a list) of the ZST file:
import zstandard as zstd
from ...
0
votes
2
answers
146
views
Flutter web deployed on firebase is unable to receive any data though database streams
I am trying to deploy a flutter web application on firebase. In this minimum working example a stream from a collection should be returned and simply displayed.
When run locally, the object is ...
Best practices
0
votes
1
replies
27
views
Tensorflow Keras Autoencoder Masking Features not Timesteps
I have Conv1D autoencoder network, and i a have unreliable data source of a data stream, speaking i receive different event patterns at fixed interval of e.g. 2 seconds. Sometimes I have 4 different ...
2
votes
1
answer
206
views
fopen and stream_select not working after PHP 8 upgrade
I upgraded a PHP 7 application to PHP 8. The following code was working before, but no longer:
$options = [
'http' => [
'method' => 'POST',
'header' => "Content-Type: ...
0
votes
3
answers
117
views
API response is in stream. How should I convert that in Dart so I can show it in the UI?
The thing is this
Response: agent-stream-start:Hello, Faseeh ur Rehman! How can I assist you today?
This is how the response is returned from the call. I am working on a flutter mobile application ...
0
votes
2
answers
159
views
Connect to MS-Word docs in SharePoint and copy contents to local MS-Word doc using Stream
I have MS-Word Document templates stored in SharePoint.
I want to copy the contents of the word document(s) in SharePoint, and save to a local Word document using Excel VBA.
I have the following Sub (...
Best practices
0
votes
1
replies
116
views
java stream api: logging inside a stream
Disclaimer: The question below was met with quite a bit of critisicm. The only reason I did not delete this question is becasue stackoverflow doesnt let me after somebody reacted on it. Also the code ...
Advice
0
votes
8
replies
154
views
Why is FileReader as efficient as BufferedReader in reading 1KB chunks of data?
I was trying to read data (chars) from a large text file (~250MB) in 1KB chunks and was very surprised that reading that file using either FileReader or BufferedReader takes exactly the same time, ...
Advice
0
votes
2
replies
63
views
why java stream api is one time use but reactor's publisher not?
why can we subscribe as may as we want from reactor publisher but just one time from java stream api?What reason is there for stream to be one time use?
Advice
0
votes
14
replies
6k
views
JDK 21 What is the point of wrapping a FileReader/InputStreamReader in a BufferedReader?
Java Tutorials site shows this example when discussing character streams:
//The CopyLines example invokes BufferedReader.readLine and PrintWriter.println to do input and output one line at a time.
...
1
vote
0
answers
36
views
Node.js back-pressure documentation - what's the relevance of their example?
The Node.js Backpressure in Streams documentation begins with an example that compares the use of the zip(1) utility with a Node.js script that uses a simple stream to achieve the same result.
A good ...
0
votes
1
answer
75
views
"Response Content-Length mismatch: too few bytes written (0 of 152295)" When copying pages from a PDF to another using iText
I'm trying to read a PDF as MemoryStream, and copy pages from that PDF to a new one.
I'm using iText PdfReader and PdfWriter.
var ms = new MemoryStream();
using PdfReader pdfReader = new ...
-1
votes
1
answer
95
views
Is there a way to resize the libVLC MediaPlayer after my Maui App resumes back to the foreground on Android?
So I am using the libVLC Package for my .Net MAUI App to Stream some Media on an Android tablet. As a guideline i was using the libVLC Maui Sample from here: https://code.videolan.org/videolan/...