7,099 questions
-5
votes
0
answers
63
views
Android USB Buffering Causes Delay in Communication [closed]
so I'm trying to build an app that sends the phone's sensor data (accelerometer, GPS, etc) to an ESP32 through serial communication
I'm not a app developer and I have little to no knowledge when it ...
1
vote
1
answer
71
views
Using PSD.js, how to output png as buffer?
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 ...
19
votes
7
answers
3k
views
How to reduce repetition in a large amount of if-else statements when reading from a buffer
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 ...
0
votes
1
answer
63
views
Is there a way to draw a dashed line on a MQL5 chart that contains two colors?
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 ...
5
votes
1
answer
123
views
Buffer of chars, unsigned chars or a void* - do we have contradictions in the C++ standard?
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 ...
1
vote
0
answers
139
views
Redis cache integration with Next.js v15.3 causing high CPU usage
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 @...
2
votes
2
answers
155
views
How to flush cin including all occurrences of newline
My app first takes some input, then it 'thinks' showing a progress bar, then throws an exit code and waits with getchar() for ENTER to be clicked before exiting.
The problem is that if I click ENTER ...
0
votes
1
answer
47
views
Send and receive Buffers via nodejs net Socket is very slow
I try so send nodejs Buffers via node:net Server and Socket.
That works fine in principle.
But when I re-create the Buffer on the receiver side using Buffer.concat(), this is really slow.
Expected: ...
1
vote
0
answers
454
views
Can I with SDL3 GPU load vertexes, normals, colours, UVs in different buffers?
gLTF and probably other formats have different "buffers" that are long series of data. Unless the gLTF have a "stride", that is interleaved data, every buffer store things ...
0
votes
2
answers
119
views
can you give me a test case where these two c programs will produce different outputs?
program 1:
#include <stdio.h>
#define MAXSTR 100
int main()
{
char ch;
char str[MAXSTR];
char line[MAXSTR];
scanf("%c", &ch); // Just read character
...
1
vote
0
answers
61
views
Is it possible to stream text to a page in ColdFusion with IIS without modifying the isapi_redirect.properties file?
We run a ColdFusion server with Internet Information Services and there exists a configuration file called isapi_redirect.properties that specifically has a flag called iis_buffer_enable that is set ...
3
votes
3
answers
153
views
Issue with getchar() Skipping Input in a C Program
A number guessing C program; After the 4th iteration which prompts “well, is it 5 then?”, the character \n (enter) still remains in the buffer which then gets read by the first getchar() in the while ...
3
votes
2
answers
196
views
Sizeof vs array size [closed]
I've got a question regarding the sizeof() operator. Browsing Open Source projects written in C obviously, some developers tend to use the sizeof() operator in one place and on other places the ...
0
votes
0
answers
145
views
How do I update Godot4 mesh normals during runtime by writing into the buffer directly?
I'm working on a procedural planet generator. My implementation is running a compute shader that calculates vertice positions based on noise algorithms and writing the vertex data directly into the ...
0
votes
2
answers
147
views
sf buffer is jagged and irregular
I have a line sf object that I am trying to create a buffer around, say 10m, and finally calculate the area of the buffer in square meters. My issue is that, using my current setup, my buffer is ...
1
vote
1
answer
57
views
How to Reproduce Data Loss Due to Unflushed Kernel Buffers?
I recently encountered an issue in my Linux development environment. I wrote a function to export results to an Excel file, triggered by a button click. After the function executes, it flushes the ...
1
vote
1
answer
74
views
In the shell, repeated reading is due to buffer overflow or memory overflow issues?
When I run the code, I find it will call the function lsh_read_line() twice.However, according to the logic of the program, it will only call the function once.
In the shell, repeated reading is due ...
1
vote
0
answers
17
views
What is the causing my buffer to overrun?
Somehow in one of or more of my loops are overrunning my buffer but I can't catch it. It's either that or somehow my capacity or size is at 0 when it shouldn't be but either way I can't find the issue ...
1
vote
0
answers
488
views
Compiling JS failed: 301940:101:')' expected at end of function call Buffer size 23200960
I started a new project using version 0.74.6 because I want to upgrade my old project, which is on version 0.64.4. I've been migrating code from the old project to the new one and installing libraries ...
1
vote
1
answer
92
views
Upload Progress Bar Not Working with Nginx
I’m experiencing issues with an upload progress bar that won’t update when uploading files through Nginx. The progress bar fails to reflect any progress updates, staying at 0% throughout the upload.
...
0
votes
0
answers
53
views
How to understand that there is a photo in the buffer JavaScript
I want to determine that when I click on the Print Screen button on keyboard, is it written to the console whether it’s a image or not? Needs use buffer like
const checkHaveImageInClipboar = async () ...
0
votes
1
answer
54
views
How can I access the frame buffer in iOS 17
I wanted to ask how to access and modify the frame buffer in iOS 17.
I want to modify the entire screen to create black bars on the top of the screen, to decrease the total screen size and resize the ...
0
votes
1
answer
216
views
ASP.NET Core 6 : HttpContext.Request.Body stream cant go higher than 4096
I'm writing an ASP.NET Core 6 program which receives many files and writes them to a SQLite database.
I'm using the following code on the client to send the file:
var request = new HttpRequestMessage()...
0
votes
0
answers
72
views
Why is my output buffer getting flushed in C++?
For what i know, the differences between this codes:
#include <iostream>
//CODE 1
int main(){
std::cout << "Hi there" << std::endl;
while(1);
return 0;
}
#...
0
votes
0
answers
105
views
KNX Bus - Read - Buffer - Write to SQL database. What best practice to perform deferral queue in Async way?
BackGround Info: For a Home Automation, an KNX installation (running sound and stable), setup a Group Address recorder. Logging values of heating control valve actuators positions, room temperatures, ...