37,993 questions
0
votes
2
answers
89
views
Is it safe to mutate, emit, and snapshot the same operator-state instance in Apache Flink?
I'm building a single global Topology object in a non-keyed ProcessFunction with parallelism = 1. I keep it as a local mutable object and update it for every input event using topology.apply(GnmiEvent)...
4
votes
2
answers
160
views
Excel VBA Type Mismatch on Row Delete
I have a "simple" comparison that is generating a "Type mismatch" error when I delete a row in the worksheet (worksheet change event fires).
If Target.Column = gblScheduled And ...
-1
votes
1
answer
75
views
MouseEvent and CustomEvent won't do the same in Javascript [duplicate]
Using this example:
const checkbox = document.getElementById('termsCheckbox');
const submitBtn = document.getElementById('submitBtn');
checkbox.addEventListener('change', function() {
submitBtn....
0
votes
0
answers
20
views
My Laravel 12 spatie laravel-medialibrary - ConversionHasBeenCompletedEvent was not fired in EventServiceProvider
I try to listen to ConversionHasBeenCompletedEvent to delete the original image after the conversion has been completed, but this event did not trigger in my listener.
I'm using spatie laravel-...
0
votes
0
answers
50
views
Update total in Stripe payments upon shipping rate change (Amazon, Google Pay etc)
Here is some infromation about shippingratechange for Stripe express checkout.
https://docs.stripe.com/js/elements_object/express_checkout_element_shippingratechange_event
which implemented and when ...
2
votes
1
answer
84
views
Catch mouse enter and leave signals from AppplicationWindow in GTK4 Python
I'm creating a Gtk4 app in python 3 and I want to trigger a state change when the user mouses over the ApplicationWindow but I'm banging my head against a wall trying to figure out what signal string ...
3
votes
2
answers
208
views
How to log "who did what" without adding userId in every method?
I'm implementing a DDD app where my entities emit DomainEvents for auditing purposes. Every action that occurs in my board should log something to the DB. In the example bellow, I'm logging that ...
0
votes
0
answers
26
views
How to properly coordinate consecutive Livewire 3 events between sibling components to reflect loading state in Alpine.js?
I have two sibling Livewire components: a country select and a city select. When the user selects a country, I want to:
Notify the city select to show a loading spinner (via loading-cities event)
Load ...
0
votes
1
answer
84
views
MudBlazor MudTable OnRowClick Event - examples in documentation don't work
I am using a MudBlazor MudTable. I cannot get the OnRowClick Event to work. I tried using the pattern from their documentation, but keep getting an error message.
[using .Net 8.0, MudBlazor 8.12]
...
0
votes
0
answers
49
views
Can fluentbit write or pub to redis on output?
I'd like to ingest server access logs via Fluentbit and then do some modification using the filters and output the results to Redis. All on the same server.
Is there a Redis output plugin or would ...
1
vote
1
answer
95
views
How to distinguish between OS-triggered vs app-simulated input events in Android?
I’m working on an Android project where I need to handle user input events (KeyEvent, MotionEvent) consistently.
Sometimes these events come from real user input (keyboard/touch), and other times I ...
0
votes
0
answers
14
views
How can I subclass a JComobBox and handle events there but, have access to the top level class?
How can I move then event handling into the subclass of a JComboBox? I can make it work if everything is in TopLevel but, I want to move the event handling (actionPerformed(ActionEvent e)) into a ...
1
vote
1
answer
59
views
Discord.js "guildMemberUpdate" event only fires the second time i change a Nickname
The Issue:
I wanted to create a feature where the bot sets a certain prefix before the Nickname fitting my discord server theme if a user decides to change it. I'm allowing the users to change their ...
0
votes
1
answer
106
views
Multi threaded file search app using events and critical sections not working as expected
I built this multi threaded file search using Events and Critical sections.
I have a single thread (FolderThread) to locate all the folders recursively, and multiple threads (FileThread) to look for ...
-1
votes
1
answer
343
views
Is it still necessary to use 'useEffectEvent' function [closed]
When I read the react document, I found a new feature useEffectEvent, which raised a question.
If I use responsive variables A and B in useEffect, but I am very sure that it is meaningful to make the ...
0
votes
0
answers
75
views
Invoke_Invoked event in Accessibility Insights for Windows
I have an issue with catching Invoke action.
I created a simple WinForms app, with a single text field and a single button. I want to catch the Invoke_Invoked event in the Accessibility Insight ...
2
votes
1
answer
84
views
Is there a way to overule the Selection change event when I am right-clicking the mouse
Is there a way in VBA to differentiate between a right mouse click and a selection change?
My program goes to the Selection change event every time that I click the right mouse button.
Please help
I ...
0
votes
0
answers
78
views
GTK Attempting To Catch Key Press in Eventbox, Lacking Understanding
I'm trying to modify the popular waybar program (which can be found here). Waybar is a highly customizable status bar that organizes various visual elements into "modules", which can respond ...
0
votes
2
answers
134
views
How can I change a property of multiple objects in a collection [closed]
How can I quickly change a property for selected or all objects in a collection. Is there a faster method than iteration? I've considered events. What do you think? Can this be done even faster?
using ...
1
vote
1
answer
89
views
OneNote COM Application Interface events with Python
I would like to use the Python win32com library (part of pywin32) to receive events from the local OneNote Application Interface (as documented here). Note this question does NOT relate to the newer ...
1
vote
0
answers
92
views
How to consume COM events with C# dynamic without COM registration
I can use an out-of-process COM server that is not registered with C# dynamic, and this works fine, but I cannot get events to work.
My code basically is something like this:
Process.Start("path\\...
-2
votes
1
answer
88
views
Impossible to create events with "react-native-calendars"
I'm trying to create an event to display with the react-native-calendar library.
The timeline displays correctly, but the problem is that I don't know how to display the events in the timeline.
I've ...
0
votes
0
answers
105
views
ServiceWorker not reacting on periodicSync event
In the web app, it looks good since onSuccess gets called, but the only console log from the service worker I get is the one from initializing it. Somehow, it looks like listening for the periodicsync ...
0
votes
0
answers
80
views
@RecordApplicationEvents (still) not working for async events
I tried to switch our application to use Async Events. Now our event publisher tests fail.
I found a few posts mentioning this https://github.com/spring-projects/spring-framework/pull/30020
So with ...
0
votes
1
answer
99
views
Combining Windows' GetMessage Event Loop with a UI Animation Loop for Low CPU Usage [closed]
I am developing an app on Windows using the WinAPI. This app has a UI built using my own framework. Some views of this UI are animated and need to be refreshed over time.
Prior to implementing ...
2
votes
1
answer
56
views
Implement same task for two different user interfaces in Kotlin [closed]
I am working on a program which has both a TUI (terminal user interface) as well as a GUI (graphical user interface).
The program has some functions which take quite a long time to complete (waiting ...
-2
votes
1
answer
67
views
addEventListener vs onclick - which one overwrites the other? [duplicate]
If I use both Which one runs? Do they both run? Having trouble understanding the difference.
const button = document.getElementById('button')
button.onclick = function() { console.log('onclick'); } // ...
1
vote
1
answer
81
views
Add event to style WinUI like css
I'd want to modify the event onmouverover directly in the style and not on the button. I'd like to do manage events in WinUI xaml like in css is it possible?
Something like :
.joinBtn:hover {
...
1
vote
1
answer
42
views
Azure Event Hubs to share specific partitions with specific consumer groups
How can we ensure that the right consumer groups receive the right events (i.e., "Project Creation" events for Consumer Group D and "Project Update" events for Consumer Groups A, B,...
0
votes
1
answer
63
views
ReactJS - Javascript addEventListener does not remove the listener function at component's unMount
I have added an event listener to "keydown" event in my ReactJS application. Because of a third party library, I'm adding it via setTimeout in a useEffect, this component is like a popup, so ...
1
vote
0
answers
147
views
How do I stop infinite iteration of a thread with an event/message?
I'm using the last nightly version of Rust and I want to listen to different events (user input, file modification, unix signals) in an event loop.
For that purpose I have a few functions with ...
0
votes
0
answers
50
views
How to send event from MainActivity to React Native in new architecture (bridgeless mode)?
I have following implementation (I've skipped imports and some parts):
class MainActivity : ReactActivity(), DefaultHardwareBackBtnHandler, PermissionAwareActivity {
var communicationModule: ...
1
vote
1
answer
122
views
Laravel 12, Event Listener First array member is not a valid class name or object error
I am trying to add multiple listeners on an event in Laravel 12 which is something like this:
AppServiceProvider.php
use App\Events\Frontend\OTPVerificationEvent;
use App\Listeners\Frontend\{...
3
votes
1
answer
136
views
Moq.RaiseAsync results in System.NullReferenceException Moq.Raise works fine
Problem
While writing tests for a .NET 8 and Moq 4.20.72 App (same situation in .NET 9).
I found that while invoking an event VaccumPumpActivationEvent with
mockCommunicator.Raise(e => e....
0
votes
0
answers
28
views
Some json events are missing while bulkingester writes data to elasticsearch
My Configuration is
Java version JDK 17
Elastic search client version = 8.16
Elastic Cluster Version = 7.17
when we deployed above configuration in production , we faced severe prod issue and our ...
1
vote
0
answers
37
views
Excel web - new style checkboxes - is there an event to do work when they are clicked?
In Excel Web, I have a column containing a new style checkbox in each cell. I would like to add a date to the adjacent column when a checkbox is checked.
To do this, I'd like to run a script when any ...
0
votes
1
answer
51
views
How to increase `MaxListeners` on a EventTarget/BroadcastChannel?
I play a bit with worker threads and need to pass some data between them.
In my code i register for each component a new event listener, which results in a
(node:47363) MaxListenersExceededWarning: ...
2
votes
1
answer
92
views
powershell -Action Scriptblock doesn't care about closure
My problem is fairly simple:
I'm trying to execute a file on a timer elapsed event.
I use a closure to preserve the value of my variable.
But I think I struggle to understand what is the lifetime of ...
2
votes
1
answer
111
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
2
answers
128
views
laravel model withoutEvents not suppressing event
I am working with an application built on Laravel 11. I have a Survey model with the following public function:
public function finish(): void
{
$this->update([
'finished_at' => ...
0
votes
1
answer
34
views
key up event is not firing after key down and very fast key up
When the keys are pressed and released very quickly, the keyup event does not execute. Does anyone know how to fix this?
window.addEventListener("load", function (ev) {
const samurai = ...
0
votes
0
answers
17
views
Control.Validating event not firing
Good morning. I have a problem I hope you can help with. I have a simple production management package consisting of about 15 programs. To help with consistency and reduce typing and bugs, I created a ...
0
votes
1
answer
44
views
Dealing with a series of prometheus gauges that are actually events
We are using the https://github.com/Labbs/github-actions-exporter at my workplace and I'm having a hard time accomplishing a query that can alert us when a particular workflow in a particular repo has ...
0
votes
1
answer
51
views
MySQL 8.0 Stored Procedure Showing as Slow Query Due to Total Execution Time
I have a stored procedure that runs daily to archive data from a large table. It moves data in batches of 10,000 rows from table_name to table_archive_table, and deletes the moved rows from table_name....
1
vote
1
answer
84
views
Dynamically created buttons and on_click event flet
What is the problem with this code? The last button that is created is always the one that is clicked!
import flet as ft
def main(page: ft.Page):
def click(e, button: ft. Button):
button....
0
votes
1
answer
38
views
How to handle cross-platform keyboard shortcuts with Alt + Z (Windows) / Option + Z (macOS) across different keyboard layouts?
I’m trying to implement a keyboard shortcut that triggers when the user presses:
• Windows/Linux: Alt + Z
• macOS: Option + Z
The problem is with using event.code === 'KeyZ'. It works fine on a ...
1
vote
1
answer
98
views
shopware 6 create custom order filter in admin panel
I want to create a custom filter in the admin panel, in the order overview. Therefore I added a filter to the filter list:
Shopware.Component.override('sw-order-list', {
...
// Custom ...
0
votes
2
answers
92
views
How to split overlapping time intervals in R, assign precedence, and fill gaps with dummy events?
I’m working with machine events data in R, where each event has a start and end time, a unique event code, and a precedence level (ordered factor). Events may overlap, and I need to transform this ...
-3
votes
1
answer
40
views
Events not neutralised after use
As you can see in the demonstration program, when two widgets are superimposed, they both receive the same event and process it one after the other, whereas the desired behaviour would be for the ...
1
vote
3
answers
107
views
Trying to create VBA macro which will select a column depending on the date
I am a new to VBA.
I will have many sheets in a workbook, for 300+ projects, and I wish to create a macro that is run when a project sheet is opened.
Each sheet in Row 4 has the months from 2017 to ...