Questions tagged [readable]

65 questions
26
votes
9 answers

How to display a readable array - Laravel

After I write: Route::get('/', function() { dd(User::all()); }); And after I refresh the browser I get an unreadable array. Is there a way to get that array in a readable format?
Gilko
  • 2,280
  • 8
  • 36
  • 45
11
votes
2 answers

Reading file from SFTP server using Node.js and SSH2

I have a pretty strange problem working with read streams in Node.js. I'm using SSH2 to create a sftp connection between me and a sftp server. I then try to create a read stream from the sftp stream. From the read stream's emitted 'data' event I…
ramburglar
  • 251
  • 1
  • 2
  • 9
11
votes
10 answers

Does a pronounceable encoding exist?

I am using UUIDs, but they are not particularly nice to read, write and communicate. So I would like to encode them. I could use base64, or base32, but they would not be easy anyway: base64 has capitalized letters and symbols. Base32 is a bit…
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
5
votes
1 answer

Howto: Improve the PDF- quality before OCR using C#

I'm creating a service that monitors a folder for scanned files. Once the file is there, The service picks it up, and convert it to a readable PDF. In this process the service also searches for a barcode. After this, the text is extracted and the…
Anthony Claeys
  • 231
  • 1
  • 9
4
votes
1 answer

Trouble Converting a Hex String (in Lua)

I've been trying different ways to read this hex string, and I cannot figure out how. Each method only converts part of it. The online converters don't do it, and this is the method I tried: function string.fromhex(str) return (str:gsub('..',…
Jonathan Picazo
  • 975
  • 3
  • 13
  • 23
3
votes
1 answer

Forwarding an uploaded file stream to another server with Node.js

I'm building an Angular / Node.js application connected to a DMS (Alfresco). The server side Node.js / Express layer acts as a proxy to hide the complexity of Alfresco from the client: Angular client <--> Node backend <--> Alfresco This question is…
trsft
  • 109
  • 1
  • 6
3
votes
2 answers

How to keep a readable store in SvelteKit from being unsubscribed when changing pages/routes

In SvelteKit, I get "Subscribed" and "Unsubscribed" logged to the console each time I navigate between the /first and /second routes. I want to have the readable's start function run only once for each user who visits the website - allowing me to…
nstuyvesant
  • 1,392
  • 2
  • 18
  • 43
3
votes
0 answers

Nodejs readable stream pipe to response

I have to maintain a legacy code. The basics: it should handle incoming stream (audio and/or video). The 3rd party device send the stream when it's requested. Then a client should consume it. The code was unfinished, but for me, seems good. NodeJS…
huncyrus
  • 648
  • 8
  • 18
3
votes
5 answers

Declare variables just to make code human readable, programming best practices C#

I was wondering if it is good practice to declare variables just to make code (such as a long condition in an if statement) more human readable or if this wastes resources and using detailed comments is better? Here's a simple example. //declare…
justlearning
  • 165
  • 1
  • 6
2
votes
1 answer

Node.js Readable self.push() stops after working 15 iterations

I am trying to understand why Readable = require('stream').Readable in this code only works 15 times on a node.js. I omit this line X.on('data',function() {console.log('data')}); with this line it repeats indefinitely which is…
2
votes
0 answers

NodeJS: Readable object streams, patterns for generating the data asynchronously

I'd like to crawl data over SSH in a server cluster with NodeJS. The remote scripts output JSON that is then parsed and split into an object stream. My problem is now that the callback-oriented libraries I use (SSH2, MySQL) lead to a…
2
votes
2 answers

Reading txt files and display the data with a line break

Here is my code for reading a txt file, but I can't seem to properly arrange the output of the file content. This is the file content: venti lador 13 male taguig pito dingal 26 male pateros dony martinez 24 male hagonoy package…
2
votes
2 answers

Why is it common for binary (ELF) SUID executables to also allow READ access?

As part of the recent "rowhammer" exploit proof-of-concept, a read-suid-exec tool "ping" was used to create a more finely tuned proof of concept. And so my question - why do various distributions prepare suid (especially root) executables as…
1
vote
1 answer

Can not read email content from gmail after extracting with python program

Hello I have a Python program and it is capable of fetching emails from gmail. Everything works fine, except for the fact that there are a bunch of ......"ransition99/xhtml">=0D=0A=0D= =0A
xopenex
  • 263
  • 4
  • 9
1
vote
2 answers

How to check if stdin is readable in TCL?

With the following command you can register some callback for stdin: fileevent stdin readable thatCallback This means that during the execution of the update command it will evaluate thatCallback time after time while there is input available at…
Vahagn
  • 4,670
  • 9
  • 43
  • 72
1
2 3 4 5