1,463 questions
0
votes
1
answer
61
views
Windows 11 raw input API bad performance compared to Windows 10
With my code which is just a regular RAW input example.... WM_INPUT, RIM_TYPEMOUSE... I'm getting on Windows 10 the full 1,000Hz of my mouse and on Windows 11 I'm getting about 128Hz.
How to fix this ...
0
votes
1
answer
67
views
Azure App Configuration with AKS refresher burns quota fast
I have an AKS, Azure App Configuration (AAC) and a Key Vault in my Azure cloud.
I have in AAC some environment variables like BgTaskTimer = 10, and in Key Vault DbConnectionString which is added as ...
2
votes
1
answer
112
views
SDL_PollEvent() function strangely impacts rendering
I came across a behavior in SDL3 that concerns me.
In SDL3, the standard position of the origin of the screen's coordinate system is in the upper left corner.
I tried rendering a simple 100x100 ...
0
votes
0
answers
18
views
Notification not received by poling method set interval. on PWA using service workers
Here in my code when accessed on a PWA(Ipad in my example)
the API call is made successfully also the PWA asks for notification permissions but after that there is no notification received on the PWA
...
0
votes
1
answer
98
views
Spring Boot : How can I wait until I get a record in a table and do some processing based on it?
Problem : An external API sends an event in Kafka topic and I insert it into the table when I receive the event. Meanwhile frontend calls my own API (/execute) and I need to do some processing based ...
2
votes
5
answers
513
views
High frequency polling loop in C#?
I'm trying to create a high-frequency polling loop in C#, but I've issues with accuracy and CPU usage.
Example 1: The loop sleeps for ~15.6ms, instead of the specified 1ms per iteration. I discovered ...
0
votes
1
answer
29
views
GET https://s10onilover.izisoft.io:0/socket.io/?EIO=4&transport=polling net::ERR_ADDRESS_INVALID
I am using SockIO for my Flutter project.
In production environment, the above error occurred.
Flutter version: 3.22.3
Socket_io_client version: socket_io_client: ^3.0.2
void initialize() {
socket ...
1
vote
0
answers
250
views
What are the optimal values to set for busy-polling?
I have an application written in C++ for reading market data. The networking layer is implemented using boost asio, effectively tcp ssl websockets. When the market throughput is high, I can observe ...
0
votes
1
answer
127
views
Polling in python
Here is my desired functionality:
I want to listen over the local host for a variable, let's say state 1 and state 2. I want my main script to execute function b, but if it receives a state 1 over the ...
0
votes
0
answers
33
views
error connecting to socket.io with python
I need to scrape the latest informations from the website: https://x13.bet/double
And I saw that all the informations from the website that I need is from: https://s.x13.bet:2053/socket.io/?EIO=4&...
0
votes
0
answers
62
views
C++ main thread polling and blocking, termination on signal
I have a main thread which should do some work every N seconds (20 in this case) and wait/block/suspend in-between. However, at the same time, I want the application to stop correctly on a SIGTERM/...
0
votes
1
answer
368
views
Efficient Strategy for Concurrent Workers Polling in PostgreSQL Without Duplicates
I have a PostgreSQL events table partitioned by event_timestamp:
CREATE TABLE events
(
id SERIAL PRIMARY KEY,
event_timestamp TIMESTAMP NOT NULL,
processed BOOLEAN DEFAULT FALSE,
...
0
votes
1
answer
172
views
Poll for data written to a file descriptor
Suppose we have a file descriptor for a TCP socket. Is there a way to poll for data written to a socket (as opposed to data being available for reading, or the socket being available for writing)? i.e....
0
votes
0
answers
55
views
The delay of the .poll function in the driver code has not taken effect?
I added a GPIO driver to the kernel code of Linux v3.10, and added a .poll function to the driver code. I don't know why I added 8ms to the poll() function of test code, but I noticed that the delay (...
1
vote
2
answers
114
views
Is it possible to integrate GLib mainloop into another?
I have a 3rd party library with mainloop. I want to use GLib/Gtk with the app I'm developing. Is it possible to integrate GLib mainloop into another host?
The host loop allows to register an fd and ...
0
votes
2
answers
106
views
kotlin-coroutine can not be launched
when my fragment go backgroud of system, it invoke onStop().and then when my fragment go front desk of system, it invoke onResume(). but mainViewModelScope does not lanuch a coroutine.
my fragment
...
0
votes
0
answers
142
views
With a single serial link, how to read continuous data every second (polling), and do other queries in the meantime?
I communicate with a hardware device via serial link RS232 (no other option available).
I need to continuously poll some data "foo", every second (if possible).
Sometimes I also need to ask ...
2
votes
1
answer
612
views
Why is my epoll on the timerfd not working as expected?
I want to do some calculation every 5 seconds. For that I created a timerfd with interval and value of 5s and passsed that fd to epoll but the epoll_wait seems to be triggered multiple 1000 times in ...
1
vote
3
answers
1k
views
Replace client polling with AWS SNS/SQS/MQ
Problem Statement
I have an application in which the data on the client side (frontend) needs to be updated in near-realtime.
The backend updates a field in the database. There is a GET endpoint which ...
1
vote
0
answers
407
views
aiogram. Remove executor messages from console
Using python3 aiogram library for a telegram bot. Is there a way to remove the messages from console generated by the executor? messages like Goodbye! or Updates were skipped successfully. if you ...
0
votes
0
answers
485
views
Flask application with SocketIO transport mode "polling" giving 400 Bad Request error
I have a flask application running locally and on my device's IP address.
In my app.py file, I have configured SocketIO with the below options.
import eventlet
socketio.init_app(app, async_handlers=...
1
vote
0
answers
580
views
Push notification services vs Periodic server-polling for web application?
We're currently building a platform which offers both a website and a mobile app (both for iOS and Android). The website is basically ready, the mobile app being built now.
The customer desired that ...
-1
votes
1
answer
129
views
C# .Net Serial Port "port.BytesToRead" sometime returns 0 when the "port.dataReceived" is called
I am writing a C# program to poll data from Arduino serial port which generates data through "serial.println". In C# program, I found "port.BytesToRead" sometimes returns 0 even ...
1
vote
0
answers
424
views
PowerAutomate Adaptive card needs to function as poll, how to accomplish this?
I'd like some help for this powerAutomate adaptive card I've made. I got the backbone for the card from Microsoft docs. However, when I post it in a teams channel, I can only select an option and ...
2
votes
2
answers
813
views
How to use the react-query result inside the QueryOptions
I want to use the result of a react-query v3 useQuery statement to possibly stop refetching, depending on the result. Therefore I'd use the response data object in the QueryOptions to determine the ...