Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
9 replies
132 views

I'm creating a program that involves showing the battery percentage and charge status. I want to be able to have the program update as close to instantly as I can get. Every example I could find ...
oosh's user avatar
  • 356
0 votes
1 answer
127 views

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 ...
Gr3g's user avatar
  • 31
1 vote
1 answer
65 views

Golang 1.24 provides synctest, which can create isolated environments with synctest.Run(f) called bubbles that have their own synthetic clock. This is really useful for testing my production code, ...
hyt's user avatar
  • 992
0 votes
1 answer
75 views

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 ...
Mihai Socaciu's user avatar
0 votes
1 answer
194 views

Currenlty I'm developing an application to automate database backup and restore operations. We are dealing with different types of databases, but one of them is MongoDb. Our MongoDb are hosted by ...
Marek's user avatar
  • 3
2 votes
1 answer
119 views

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 ...
Moritz Holzwarth's user avatar
-3 votes
1 answer
669 views

I have this scenario, where the database is updated regularly, for example say stock market prices (I do not need immediate updates a poll every 2 minutes is good enough). Using short intervals like 2 ...
Naren Murali's user avatar
  • 66.3k
0 votes
0 answers
19 views

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 ...
Siddhant Welinkar's user avatar
1 vote
0 answers
98 views

We are experiencing an issue while polling the Amazon Ads API to check the status of reports. The polling mechanism was working fine before, but for the last 3 days, reports are not completing on time,...
Arun Kumar's user avatar
0 votes
1 answer
108 views

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 ...
Akash E's user avatar
0 votes
1 answer
629 views

WebView polling breaks on Android 15 after opening Chrome Custom Tabs I'm encountering an issue where polling in a WebView stops working on Android 15 after opening Chrome Custom Tabs. The polling ...
Nagi_gadu's user avatar
2 votes
5 answers
532 views

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 ...
justpen's user avatar
  • 306
0 votes
2 answers
55 views

The code can be found in Checking INTF0 Without ISR The code works as expected when the main() function is present but it does not when main() function is left out of the code. I do not want to use ...
santosgcot's user avatar
0 votes
1 answer
30 views

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 ...
TechMind's user avatar
5 votes
1 answer
113 views

I've been working on a Future implementation in Rust, and I've encountered behavior I don't fully understand. Specifically, I'm using std::sync::mpsc::Receiver inside the poll method, and I'm trying ...
narumi's user avatar
  • 77
1 vote
0 answers
267 views

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 ...
Eduard Rostomyan's user avatar
1 vote
0 answers
266 views

I have a Django application with two celery tasks set up. Both the tasks need to run only once at one minute after midnight (12:01 AM). This is just to update some statuses which change from "...
nik's user avatar
  • 69
0 votes
1 answer
128 views

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 ...
souren.p's user avatar
0 votes
1 answer
708 views

In Flutter, I am trying to write a function that periodically calls an API until a URL is returned, then passes that URL to another function. How the API works is that on the first call, it responds ...
Tom Wiz's user avatar
  • 15
0 votes
0 answers
33 views

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&...
Guilherme Gobbo's user avatar
2 votes
1 answer
41 views

I'm working on a Go application that involves polling Stripe for customer and subscription information based on a user's login. The goal is to check if a customer or their subscription exists and is ...
Honigeintopf's user avatar
0 votes
0 answers
66 views

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/...
user3895986's user avatar
2 votes
0 answers
423 views

Problem Summary I am working on a project that requires using io_uring with polling mode, but now I have encountered two problems: I need to run it several times before I can output the content; ...
Harrison Hao's user avatar
0 votes
1 answer
386 views

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, ...
Forece85's user avatar
  • 518
1 vote
0 answers
366 views

I have a Redux store middleware that listens to an action coming from one Redux slice and as a result I'd like to trigger polling against another (RTK Query) API slice endpoint, until the returned ...
krulik's user avatar
  • 1,156
0 votes
1 answer
194 views

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....
InterLinked's user avatar
  • 1,506
1 vote
2 answers
480 views

The situation is as follows: I have a websocket for communication between app and server. If the websocket were to break I would like to enable backup long polling until the websocket becomes active ...
Lorenzo's user avatar
  • 95
0 votes
0 answers
55 views

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 (...
Vimer's user avatar
  • 21
0 votes
1 answer
143 views

So I have an agent implemented in past that is facing the issue. When I have 2 servers joined in a cluster, the publisher server cannot serve polling on IPv6. Running polling on IPv6 works locally on ...
Shivam Rai's user avatar
1 vote
2 answers
120 views

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 ...
haael's user avatar
  • 1,069
2 votes
1 answer
147 views

The structure of pollfd is: struct pollfd { int fd; /* file descriptor */ short events; /* requested events */ short revents; /* returned events */ } ...
Tom's user avatar
  • 57
0 votes
2 answers
107 views

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 ...
eta cao's user avatar
0 votes
1 answer
159 views

I have a routine that polls the status of a button connected on the microcontroller ATMega328P (on chip arduino nano but code is written in C++), the routine code is this: #include <avr/io.h> #...
Vincenzo Catania's user avatar
0 votes
0 answers
144 views

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 ...
Basj's user avatar
  • 47.6k
1 vote
0 answers
186 views

I use go-telegram-bot-api for building a Telegram Bot.The logic is as follows: I send a link to the site with authorization in the tg bot, the user goes, logs in, and after clicking on the grant ...
Feof1l's user avatar
  • 11
2 votes
1 answer
626 views

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 ...
Sourav Paul's user avatar
0 votes
0 answers
634 views

I am working on a simple client server program in C in which multiple clients will be connected to a single server. Clients will submit operations/actions to the server and the server will process ...
nick2225's user avatar
  • 575
1 vote
3 answers
1k views

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 ...
Rishabh Rusia's user avatar
-3 votes
2 answers
127 views

Let's say we have some Promise for we knew it resolves at some point. Now I have sync code (ag. no await possible) called repeatedly (eg. onAnimationFrame). How to use the result of the promise there, ...
dronus's user avatar
  • 11.4k
1 vote
0 answers
409 views

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 ...
OscarAkaElvis's user avatar
0 votes
1 answer
2k views

I'm trying to implement a polling function in React using typescript. The polling function needs to make a REST API call to read a record in DynamoDB and continue polling every 30s until the 'Status' ...
Sudha N's user avatar
  • 35
0 votes
0 answers
488 views

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=...
Zaina's user avatar
  • 1
0 votes
0 answers
390 views

I have an event descriptor that was created in C code like this: int notifyED = eventfd(0, EFD_SEMAPHORE | EFD_CLOEXEC); The counter goes up and down as expected as a result of calls to eventfd_read()...
Simon Walke's user avatar
1 vote
0 answers
584 views

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 ...
DevelJoe's user avatar
  • 1,552
0 votes
1 answer
124 views

I made a simple HTTP server that waits for requests and sends a small HTTP response and I want it to handle multiple requests. I made the fd non-blocking and I poll before doing any operation but the ...
younes askour's user avatar
-1 votes
1 answer
139 views

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 ...
universe123's user avatar
0 votes
0 answers
165 views

Note: this is about adaptive scaling SQS poller/subscriber, but I tried to present it in slightly more abstract terms, just a backpressure managment and a mediator. In code, I skipped all lock, ...
Milosz Krajewski's user avatar
1 vote
0 answers
435 views

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 ...
Phi Tiet's user avatar
0 votes
0 answers
172 views

so I have a background task which is to keep on listing to mongodb streams and do some processing. this task never ends and as long as the application runs i want this task to run, it this fails i ...
kicinixav's user avatar
2 votes
2 answers
824 views

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 ...
cachius's user avatar
  • 2,025

1
2 3 4 5
30