close
Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
74 views

Will buffer.alloc() ever allocate memory from the Internal buffer pool under any circumstances ? I read about it from diff docs and it is contradicting. you can see here.. https://www.thenodebook.com/...
D1g1taL's user avatar
Best practices
0 votes
0 replies
37 views

I have question regarding Nodejs and the buffering it uses (my question also applies to JVM and node like environments). Why does Nodejs use its own buffering and not directly use the kernel buffering ...
Houcem Eddin Hrichi's user avatar
2 votes
1 answer
146 views

I worked on parsing .npy files in TypeScript and somehow I stumbled into issues, resulting in this minimal example: create a file textfile.txt (name it and fill it with any contents you want, in my ...
Jony's user avatar
1 vote
1 answer
78 views

I am getting the following error in Dymola 2025x: Error: The following error was detected at time: 0 Out of memory for reals It could due to too large matrices, infinite recursion, or uninitialized ...
qpdbqpdb's user avatar
3 votes
3 answers
371 views

I'm trying to do the very basics of a buffer overflow, nothing illegal at all. My understanding of the code below is that the overflowing buffer doesnt hold enough space for all the data being written,...
Luke's user avatar
1 vote
1 answer
107 views

In a Nodejs project, I am using PSD.js to generate a png from a psd. I am using the .toPng() method. I would like to go from this png object to a buffer without saving to the file system. I have ...
Matthew Michaud's user avatar
3 votes
1 answer
149 views

I encounter a very strange case when extracting value of a single point from a raster with rasterio: from rasterio import open as rs_open from rasterio.mask import mask as rs_mask from shapely....
Sylvain P's user avatar
19 votes
7 answers
3k views

I'm trying to read a package from a buffer, decode it, and then return a package that might contain a requested info or call a specific function depending on the package I received. I'd like to know ...
th3virtuos0's user avatar
0 votes
3 answers
123 views

#include <stdio.h> #include <stdlib.h> #define BUF_SIZE 1024 int main() { char *buf = (char*)malloc(BUF_SIZE*sizeof(char)); fgets(buf, BUF_SIZE, stdin); int a = 0; sscanf(buf, ...
Treio1024's user avatar
0 votes
1 answer
107 views

I have an indicator that draws dashed lines in red or blue as needed for support and resistance levels. However, I have a difficult time seeing the lines on the black background charts, so I would ...
Johnny Sandaire's user avatar
3 votes
1 answer
174 views

The spec says the following for creating an object using an existing storage - [intro.object#3]: If a complete object is created ([expr.new]) in storage associated with another object e of type “...
Amir Kirsh's user avatar
5 votes
1 answer
134 views

This is a follow-up on: Why is it UB to pass a char array as the argument of placement new? The spec says the following for creating an object using an existing storage - [intro.object#3]: If a ...
Amir Kirsh's user avatar
0 votes
0 answers
62 views

For context, I'm working with .hdf files, which are used to model floods in HEC-RAS. The code I'm working with is this: def patch_mannings_n(class_hdf_path, material_ids, new_values, material_names): ...
Irideae's user avatar
1 vote
0 answers
156 views

I'm using Redis for caching in our Next.js application and recently upgraded from v14.2 to v15.3. Previously I've used @neshca/cache-handler for cache handling, but the latest version(1.9.0) of @...
Abu Rifat Muhammed Al Hasib's user avatar
1 vote
1 answer
97 views

I'm learning C. I'm building a P2P content distribution system and as part of that system there is a section of code which reads the network. To receive the data I set a buffer: char raw_buf[4096]...
Tom Shaw's user avatar

15 30 50 per page
1
2 3 4 5
473