Questions tagged [readable]
65 questions
0
votes
1 answer
Readable.from is not a function node 8.12.0 error in production
From many days I was not able to detect the root cause of the failure of my api in production.Today, When I checked kubernetes log I found an error, readable.from is not function. Is there any other way I can convert buffer content to stream ?
In…

sonuD
- 47
- 9
0
votes
1 answer
Node.js stops when reading from multiple Readable streams
After creating a stream (A), creating another stream (B) and reading stream (B), the reading process stops from the stream (A).
How can I solve this problem?
Node.js v14.18.1
import * as readline from 'readline';
import { Readable } from…

Takakiri
- 33
- 2
- 6
0
votes
0 answers
Is there a way to retrieve the Arabic data that have been saved in the database in a different encoding?
I had made a form to record attendance, I tried it on local server, Arabic data was saved in the database correctly and I could read it clearly,
but When the form was published to public to enter their data, I was surprised that the data was saved…

Samar Seraj
- 1
- 2
0
votes
1 answer
The behaviour of standard input's readable event in Node JS
I wrote a UDP client to send lines from standard input to an UDP socket:
var PORT = 12000;
var HOST = '127.0.0.1';
var dgram = require('dgram');
var client = dgram.createSocket('udp4');
process.stdin.on("readable",
function() {
var chunk =…

Gergely
- 6,879
- 6
- 25
- 35
0
votes
2 answers
how can i optimise the following jquery logic
I am having the following jquery logic. i want to make it more concise or optimise it. by using arrays.
function toggleStudyFields(service_type) {
if (service_type == "Study") {
$("#study_or_migrate").addClass("hidden");
…

John
- 1,273
- 3
- 27
- 61
0
votes
1 answer
How can I listen to an event inside a custom Readable stream in NodeJS?
This is my code :
class Counter extends Readable {
constructor() {
super();
}
_read () {
readStream.on('data', (data) => {
console.log(JSON.stringify(data));
this.push(JSON.stringify(data));
…

Arka
- 65
- 9
0
votes
0 answers
0
votes
1 answer
Python - Print readable format from String containing \n and other unicodes?
this message was originally a set and then i converted into string with str(a)
a = "Let\u2019s trade!\n\u00a0\n\nAn Old Friendship, A New Day!\nHere comes the old, visiting at your home.\nIt comes with a new story, about how to live the present,…

xvienxz2
- 53
- 1
- 5
0
votes
0 answers
Java- how to make an image readable
I am trying to create an object with a png image property. I a code to test if the image is readable. My code tells me the image is not readable. Is there a way to make the image readable or do I need to find a new image?
…

tdammon
- 599
- 1
- 7
- 26
0
votes
3 answers
pickle a dictonary in python in a readable format
I have a python dictionary in a file in a format like this:
(dp0
S'Test'
p1
S'Test1'
p2
sS'Test2'
p3
S'Test2'
p4
sS'Starspy'
p5
S'SHSN4N'
p6
s.
see:
Save a dictionary to a file (alternative to pickle) in…

Jose
- 11
- 1
- 1
0
votes
1 answer
Converting COMP-3 columns in Mainframes to readable format using Record Editor tool
This is the file which we received as Binary from Mainframes which includes COMP-3 columns as well along with other columns
And when we tried loading this Binary file into Record Editor, It is displaying Special Characters
Kindly let us know…

Rahul Patel
- 307
- 1
- 9
- 27
0
votes
0 answers
laravel Image source not readable
hello everyone this my form
if (Input::file()) {
$image = Input::file('dataimage');
$filename = $image->getClientOriginalName();
$path = public_path('resimler/' . $filename);
Image::make($image->getRealPath())->resize(250,…

Eren Kartal
- 1
- 1
0
votes
1 answer
Tailing a local file using fileevent
I am trying to tail a file using fileevent (Should only Tcl 8.4 version, so I can't use chan command).
% proc GetData {chan} {
set data [read $chan]
puts "[string length $data] $data"
if {[eof $chan]} {
fileevent $chan readable {}
…

Dinesh
- 16,014
- 23
- 80
- 122
0
votes
3 answers
iOS readable string/date formatter
I'm trying to display difference of 2 date in readable format.
As you can see from my below code there are a lot of if-else closures.
Is there any kind of formatter or my way of if-elses is right?
NSCalendar *c = [NSCalendar…

Shamsiddin Saidov
- 2,281
- 4
- 23
- 35
0
votes
1 answer
How can I check (control) a .avi format video file in specific file, is it over 0KB and readable?
How can I check (control) a .avi format video file in specific file, is it over 0KB and readable?
for example;
I have a video recorder Button, and I click on it, then my function record 1 minute and save into file as test.avi (this function in a…

Ali Kahya
- 1
- 1
- 7