18,191 questions
0
votes
0
answers
16
views
bind parameters to callback server function in NextJS 15
I am trying to send a React Server Function as a callback into a client component but the parameters need to be bound before passing the callback.
Basically i want to create a general YesNoModalDialog,...
0
votes
1
answer
22
views
Callback Return None removes gridlines
In chart.js line chart, I place a vertical grid line in only every 720 ticks, which works fine.
then I add a number on the x axis using callback and it removes my nice gridlines.
this is also ...
0
votes
0
answers
19
views
How to refresh a list from GET endpoint after POST request in Rust Yew
The backend on localhost:3040/todos accepts GET and POST requests. In the frontend there is a form with an input field and the submit button to send POST. Underneath the form is the list retrieved by ...
0
votes
1
answer
25
views
How to get a reference to traced variable in tkinter
I have a tkinter application with variable number of entries and I want to detect changes to the contents and specifically, which entry has been changed
import tkinter as tk
from tkinter import ttk
...
-1
votes
0
answers
16
views
Technique To Prevent Duplicate Callbacks - 3rd Party Sends Multiple duplicate Callbacks To URL Within 4ms Causing Issues
I'm building an app which integrates with a 3rd party software. This 3rd party software sends out a "change notification" via a callback url to notify my app when to search for new data. ...
0
votes
1
answer
35
views
Cannot get update of React state variable from callback function to actually change the state to trigger re-rendering
The main problem is that setting a state variable from a callback function does not seem to successfully actually change the state, so re-rendering is not triggered, and when re-rendering happens ...
3
votes
1
answer
78
views
Derived class member function not implicitly converted to base class member function
In the following code, there are generic classes reg and regmap and a user-defined class mymap which is derived from the regmap class.
In the mymap class, the user creates instances of reg and ...
-1
votes
0
answers
23
views
Unity 2D: new input system issue with JUMP Action via CallbackContext canceled
This is my code for Jump Action using the new input system:
/// JUMP action callback
public void Jump(InputAction.CallbackContext context)
{
if (context.performed)
{
//hold down button:...
-1
votes
1
answer
39
views
How do Payment Gateways POST to my return URL in a way that the output shows up in my Browser and not their code that is POSTing
A common method that Payment Gateways work is this:
I post the amount and other secure details to the Gateway URL
The Gateway then claims to POST to my return/callback URL with the transaction ...
0
votes
0
answers
34
views
How to capture clicked legends in Plotly?
I created a radar chart that displays data called zones. I am not able to make a callback function that returns the legends visible currently by user's action on the legend. When user deselects legend ...
1
vote
2
answers
52
views
Get the BuildContext from within a callback function at the place it is called
I have made a Widget (MyComplexWidget) consisting of 2 other widgets A and B.
On construction of MyComplexWidget, I pass it a callback function for one of its children widget's (A, B) onTap/onPressed ...
0
votes
0
answers
22
views
Intercept key events as fallback in app accessibility service
I'm trying to implement accessibility service to handle the keyevents(onKeyDown/onKeyUp) of a Device HW key(ex: Volume key/Power key), which can process certain operations.
But I want handle this ...
0
votes
0
answers
12
views
Get SMILES from Jsme-component through callback
I am trying to get the SMILES from a JSME component through a callback within a python dash app.
I have been trying this example:
import dash
from dash import dcc, html, Input, Output
from dash_bio ...
0
votes
0
answers
20
views
Facing the error throw new MongooseError('Model.find() no longer accepts a callback'); [duplicate]
router.get('/list',(req,res) =\>{
Student.find((err , docs) =\>{
if(!err){
res.render('student/list', {
list: docs,
})
}else{
console.log('Error in retrieval: '+ ...
0
votes
0
answers
20
views
Javascript - How to recursively call a method as a callback? [duplicate]
As a learning exercise, I'm making a Javascript browser game where when the user presses a button, it simulates rolling several 6-sided dice and then shows images that correspond to the random value ...
0
votes
1
answer
37
views
Ansible callback plugin prints metacharacters when playbook trace is redirected to file
I'm writing an Ansible playbook with an ad-hoc df -h command:
---
- name: execute df -h
hosts: all
gather_facts: false
tasks:
- name: Execute df -h
command: df -h
register: ...
0
votes
0
answers
73
views
In FastAPI, how to properly handle asynchronous external APIs which may never callback?
I am using FastAPI to build an API service. My service needs to call an external API through the network, let's call it ex_api. The documentation of ex_api states that it accepts tasks submitted by ...
0
votes
0
answers
28
views
Add lazy constraints not linked to current solution candidate in CPLEX callback
I need to add some lazy constraints within a CPLEX generic callback (version 22.1.1).
Those lazy constraints do not exclude the current solution candidate, but they nevertheless exclude other integer ...
0
votes
2
answers
74
views
NUCLEO F401RE and multiple reading with HAL_I2C_Mem_Read_DMA
I'm doing a project involving STM32 and an accelerometer sensor (LIS2DE)
I have to read every second the register from the sensor and send it via UART to arduino IDE but, idk why, the other two ...
0
votes
1
answer
30
views
How do you type the refObject of a dynamic tag element in React Typescript?
This issue keeps reoccurring and I always seem to code around it so I'm hoping someone out there can help me shed some light on the correct way to type this.
function MyComponent({ isCondition }): ...
1
vote
0
answers
96
views
Keycloak infinite redirect loop on iframe callback when logging in
This issue started after noticing chrome blocking third party cookies and iframes.
From my understanding, keycloak injects an iframe into the dom which is used to do a silent check, login, then return ...
0
votes
0
answers
22
views
Backup active storage document to track the changes
#<UserDocument:0x00007dd24a338ae8
id: 697,
file: nil, ...
0
votes
0
answers
30
views
figure from clickData in callback (python, dash) won't show in app.layout - data for fig comes from sqlite db
after hours of R&D I don't know what to do anymore - help please.
I feed a sqlite db with mqtt values from 700 meteorological stations. In my dash app I see the stations on an open-street-map. The ...
1
vote
0
answers
55
views
How should I handle errors in Wayland event handler callbacks in C?
I'm just getting started with Wayland and I think I understand the basics, but I'm wondering how to handle errors that occur within event handler callbacks. Is there a standard way of doing this? I ...
0
votes
0
answers
29
views
Printing out coordinates of clicked points while user draws polyline in Matlab App Designer
In Matlab AppDesigner I want to let the user draw a polyline on a plot. After each click I want to print out the point's coordinate on the command line. However I can't get the callback or event ...
0
votes
2
answers
56
views
Rails callback, create a record after creating or updating an associated record
Can I, or should I, use a callback to create an associated record in Rails? Also, if either record creation or update fails will both records not be saved in the database?
The idea behind this ...
2
votes
1
answer
87
views
Calling a C# delegate and then handling a callback in powershell
Let us say I have a BankBalance class in C# that defines a function DebitTransaction.
DebitTransaction performs following operation.
If balance > amount to be debited, it debits the amount and ...
0
votes
0
answers
25
views
HTTP GET Callback Requests Delayed or Not Reaching AWS ECS from Third-Party Service
I’m running an application on AWS Elastic Container Service (ECS) with a backend server that exposes a GET endpoint to receive callbacks from a third-party service (outside of our VPC). The third ...
0
votes
1
answer
53
views
How to Execute a Javascript Callback based on a Variable or Parameter
I have an array that is passed to React from a Laravel back end, representing columns in a database. I iterate over this array to construct headings for a table.
For each column, I want to run a ...
0
votes
2
answers
43
views
Cannot Find Fragment that implements Listener
I have been trying to call a callback of Fragment A from Fragment B but I can seem to find an the appropriate Fragment A when I call onAttach of Fragment B.
More specifically, Fragment A file:
class ...
0
votes
3
answers
135
views
Using callback functions
I am following a tutorial series and there's a lesson about callback functions featuring a simple calculator. I am inept at programming, but I do understand pointers and functions.
The tutorial ...
0
votes
0
answers
31
views
Bokeh Colour Sliders Example Rework
Overview of Problem
I'm trying to adapt the Bokeh Colour Slider example found here: https://docs.bokeh.org/en/latest/docs/examples/interaction/js_callbacks/color_sliders.html . The idea is to have two ...
1
vote
1
answer
40
views
How JS Engine knows whether there is a callback waiting to get executed?
From what I know, When there is an setTimeout, timer webAPI is called and once the timer finishes, the callback will be pushed to callback queue.
once the call stack is empty, event loop picks up the ...
1
vote
1
answer
74
views
Can I set both DAG level and task level on_failure_callbacks in Airflow?
I would like to set both task-level and DAG-level on_failure_callbacks and have them perform two different actions. Would the DAG level failure callbacks and task level callbacks both trigger if ...
0
votes
0
answers
49
views
Can you detect when content has finished transferring to the clipboard?
TL;DR: I want to detect when content has finished transferring to the system clipboard.
Scenario
I am using a FlavorListener to toggle a button when the clipboard content type changes. The listener ...
2
votes
1
answer
56
views
How to know what graph are you referring with multiple eCharts graphs in one page with `renderItem` callback
If there are more then one charts in a single page and you got some functions like this to change the graph type
function setGraph_chartName1_to_customType(e){ //there are multiple functions like this
...
0
votes
0
answers
157
views
Multiple eCharts graphs in one page and data mapping / [ECharts] `setOption` should not be called during main process
I'm trying to put multiple charts of eCharts in one page of only one type with series like (type: 'line') but datas should be formatted according to different parameters for each graph.
For a single ...
1
vote
1
answer
57
views
Why is the callback provided to `XRSession.requestAnimationFrame()` not getting called?
Here is a minimal example which reproduces a problem I have encountered in a more complex situation:
let session;
const dummyRenderLoop = (time, frame) => {
if (!session)
return;
...
0
votes
0
answers
44
views
Dash app client-side callback not passing value to server-side callback
I'm working on a Dash app integrated with a Django template, and I'm encountering an issue where a client-side callback is not passing a value to a server-side callback. The value is correctly logged ...
0
votes
1
answer
36
views
How to bind a pick event callback directly to an artisti in matplotlib
I'm drawing 2 lines into a figure and I want to draw a vertical line when clicking the lines.
What I want is the callback "on_pick_line1" being called when clicking on line "y1" ...
0
votes
1
answer
43
views
callback function not call in flutter
I have a widget with callback function, but callback function is not called.
My code is as follow:
DetailsRow(
title: "APP",
value: 'MYTEXT',
link: '',
linkTap: () {
print("...
0
votes
1
answer
59
views
Callback in python ctypes
I'm trying to wrap a C library in Python using ctypes. A function call requires a callback function which I implemented using the programming manual.The problem is that I'm unable get the return value ...
1
vote
1
answer
69
views
Taipy callback function with parameters
in the following taipy code, the intended functionality is that when the image is clicked a paramter cat should be passed to select_category function, but i couldn't get it to work without error:
--- ...
0
votes
0
answers
57
views
Dash: A nonexistent object was used in an Input of a callback when dynamically loading components
I'm developing a multi-page Dash application where I dynamically switch between different views, such as a login page and a script selection page, using a placeholder div to load the content ...
1
vote
2
answers
123
views
PHP - Argument #3 ($modifier) must be of type callable, string given
I am trying to store a callable/closure as a class field/property.
My initial attempt was this:
class MyClass
{
protected callable $modifier;
public function __construct(callable $modifier) {
...
0
votes
0
answers
37
views
R shiny + google map: Pin (marker) doesn't load when using googleway::google_map_update()
I have an app that uses googleway to work with google maps api. It uses a callback javascript function to handle the autocompletion functionality from google maps api (see reprex below). At start it ...
0
votes
0
answers
24
views
How to dynamically route traffic to different databases?
dsn := "user:pass@tcp(127.0.0.1:3306)/testDB?charset=utf8mb4&parseTime=True&loc=Local"
db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
if err != nil {
panic("...
0
votes
1
answer
66
views
How to Pass Extra Data to Callback Functions in Python C API?
I'm working on integrating C code with Python using the Python C API, and I need to register callback functions with additional data. Specifically, I want to pass extra data to my callback function so ...
0
votes
1
answer
43
views
Mongoose error: lodash bind no longer accepts a callback function
The upgrade to MongoDB 7 dropped function callbacks, as has been discussed on other threads. Most times it is fairly easy to replace the callback by .then asyn/await etc, as documented at ...
1
vote
1
answer
50
views
implementing a Tcl "atreturn" feature?
I'm using a Tcl-based framework for building packages (MacPorts) and would like to implement an atexit-like feature where I can print some information in case a build fails and the framework aborts.
A ...