12,862 questions
Advice
0
votes
0
replies
35
views
How to show push notifications in Angular 17 when receiving SSE events (even with the browser tab inactive)?
I'm using Angular 17 and Spring Boot 3.3.0, and I have Server-Sent Events (SSE) working on both the backend and frontend.
I need to display a push notification in Angular whenever a new SSE event is ...
2
votes
1
answer
94
views
How to connect a callback to "Reset original view" event in Matplotlib?
I would like to connect onTool() callback to "Reset original view" event, i.e. clicking on "home" icon in the bottom left corner of Matplotlib figure. I tried several options ...
0
votes
0
answers
54
views
Approach for Handling CRUD Operations with Two Related DataGridViews and Save Changes Button
In a C# desktop application I have two related DataGridViews (dgvAlgorithm and dgvParameter) and a save changes button (btnSave). Both DataGridViews are related to 3 tables: (algorithm, parameter, ...
0
votes
1
answer
46
views
Overriding Browser's Keyboard Shortcuts 2
I would like to override browser's keyboard shortcuts.
I created an Angular Service that listen the 'keydown' event and manage it.
I tried to use stopPropagation(), preventDefault(), ...
0
votes
0
answers
38
views
Python command/event registration pattern
I am working on my first service using ddd.
My domain layer looks simillar to:
/ domain
/A
/aggregateA.py -> fires an EventA
/aggregateARepository.py
/B
/aggregateB.py
/...
0
votes
1
answer
56
views
How to handle Android UI events in C++ without blocking the main thread but keeping execution order?
I’m building an Android native application where most of the business logic resides in C++.
For example, UI events like Key Press or Drag-Drop arrive on the main thread. To process them, I forward ...
0
votes
1
answer
101
views
React Axios POST request returns success but no Preview/Response in Chrome Network DevTools
I am building a signup feature in React. My API is working fine — when I hit the endpoint in Postman or cURL, I get a 201 Created response with JSON.
But in Chrome DevTools → Network tab, when I ...
0
votes
0
answers
31
views
React - Passing event handlers that need arguments as props to child components [duplicate]
I'm new to React, so when I finished the Tic-Tac-Toe Tutorial from the documentation, I started doing the challenges to improve the game and practice. I got stuck at the second challenge:
"2. ...
0
votes
0
answers
99
views
Error: System.InvalidOperationException: JavaScript interop calls cannot be issued at this time
I am getting an intermittent exception in the console from the DOM:
Uncaught (in promise) Error: System.InvalidOperationException:
JavaScript interop calls cannot be issued at this time. This is
...
0
votes
1
answer
70
views
How to handle properly the Click Event when we also need low level event data? (Android)
I am looking a recommended way in how we can handle the Click Event in Android. My requirement is that I want a little bit more of granularity in data so that based on it I can invoke a different flow....
0
votes
0
answers
84
views
How to use RabbitMQ in a windows service
I'll start with the basics.
I am creating an app and want to split it out to microservices. Because I want the microservices to run when the computer is turned on, in the background, regardless of ...
0
votes
0
answers
73
views
How do I display GeoJson data from Folium map in NiceGUI?
I'm unable to display on screen or terminal the data from an on click event on a Folium/Leaflet map within a NiceGUI interface. As per Folium API I've been able to display coordinate clicks on the map ...
1
vote
1
answer
55
views
Problem with accessing stale Redux state in event handlers
I have a SignalR (WebSocket) server for a game, and a React/Redux client that connects to it. I have a component whose task is to listen to SignalR messages to handle them, which usually involves ...
0
votes
3
answers
165
views
Unsubscribing from an anonymous method that references the object containing the event in C#
I wrote this code (simplified):
Camera cam;
cam.StreamGrabber.ImageGrabbed += (_, e) => StreamGrabber_ImageGrabbed(cam, e);
The Camera class is imported from a compulsory third-party dll that I ...
0
votes
0
answers
51
views
Tkinter button text/image not updating after incrementing a value in another class
I'm working on a Tamagotchi-like app in Python with Tkinter. I detect clicks on a canvas item and increment a "clicks" counter stored in a JSON-backed character object. When the clicks reach ...