Latest Questions

AWS Kendra PreHook Lambdas for Data Enrichment

I am working on a POC using Kendra and Salesforce. The connector allows me to connect to my Salesforce Org and index knowledge articles. I have been able to set

Playing background music in a React app using Howler

So im using Howler to play background music when my React app is loaded. So I store ID of the instance of Howler(i.e is responsible for background music) using

Create Infinite Scroll with react typescript

How do I create a infinite scroll that detects when we reach the bottom of the page but with typescript

Getting "undefined" on response.d MVC ASP.NET Core Ajax

I´m trying to create a datatable using Ajax, but before creating and filling the data table with the ajax response, on success I send an alert with "respo

Rounding columns in a dataframe with file.dtypes.iteritems()

I'm making a function on rounding decimals, I wrote the following already: for colname, coltype in file.dtypes.iteritems(): if coltype in lst: file[

When delete key pressed: java.lang.IllegalArgumentException: end cannot negative. [end: -1]

I was building an app using the Jetpack Compose library, I had an OutlinedTextField composable and I accidently pressed the delete key on the keyboard. the curs

Trap and exit big shell script with background processes

I have 2 shell scripts that contain ffmpeg commands (command1.sh and command2.sh). command2.sh has like 500 ffmpeg commands that trigger one after another with

SwiftUI tvOS custom Button missing accessibility Focused state

TL;DR: Is there any way to have custom button style (custom pressed state) in SwiftUI on tvOS while it is still working correctly with Accessibility Focus API a

What's the best way to get the package name of the application in the foreground?

I'm working on an AOSP project and as part of that I'm modifying the Bluetooth SDK. I have made changes in android.bluetooth.BluetoothAdapter::getDefaultAdapter

lambda expresion that return the names of the function from a list that have more then one parameter

I need to make a lambda expresion that return the names of the function from a list that have more then one parameter, I wrote the code below but insted of givi

ESP32S3 - Micropython - network.WLAN.active(True) Hangs

I purchased this from Digikey (docs). I flashed the latest firmware release with the following commands: $ esptool.py \ --port /dev/tty.usbmodem14201 \

How do I handle this Nested JSON in PHP as below? [duplicate]

I've a GET request in PHP that receives data in JSON as below. { "data": { "id": "1cc58ad2-ccfd-4ede-a6a6-35809c81cb8a", "

Prisma migrate on an altered DB

Given a team composed of data scientists and developers. Developers want to use schema.prisma but data scientists don't and want to freely edit the DB directly.

How do you hide the row actions behind the 3 dots in laravel-admin package?

How do you create the row actions to be like this (screen shot from documentation) To see just 3 dots and click on them and then show the buttons? This is the

Export multiple .csv files into .txt files in one go

I have multiple .csv files with different names like ATUL.csv, ISEC.csv, XYZ.csv and so on... Every file has similar data format mentioned below: datetime

Custom model for GtkColumnView (GTK4)

I have an interface to ODBC, SQlite and ORACLE. I keep the data in my recordsets which I can edit (deleteRow, editRow, insertRow, pushBackRow,...). I am trying

Evaluate and save Argument variable value during function definition?

Consider this function plus_x: y <- 1 plus_x <- function(input, x = y){ return(input + x) } here the y default-value for x is evaluated during the fun

Getting weird compiler errors while compiling my own "allocator<>" with MSVC 2022 in Debug-mode

I need an std::allocator<> compliant allocator with page-aligned allocation and preferrably no memory-pooling for very large allocations. Another requirem

How to create linked lists using pydantic so auto-completion doesn't break

I am trying to create a linked list using pydantic. The following code works, but I can't get auto-completion to work. As you can see from the attached screensh

Jenkins jenkins.plugins.casc.ConfiguratorException

Am new and have problem while build jenkins on dockerfile in localhost. error: io.jenkins.plugins.casc.ConfiguratorException: No configurator for the following

Gatsby v4 - Joining Author Details Into a Post [closed]

Using Gatsby v4. In my blog posts there is a field author. There is a separate authors file which includes details of the blog post authors -

How to save audio as File in flutter and send it to a flask server?

I'm trying to send an audio file (.m4a) to a flask server in my flutter app. the audio file is recorded using FlutterSoundRecorder package and saved to path "au

Assign variable a value oustide a listener in Kotlin [duplicate]

I'm kinda new to Kotlin and Firebase. I have this problem and I can't figure out why it happens. I'm trying to get the Firebase Cloud Firest

How to skip endpoint from middleware processing in asp.net framework

I created an owin middleware for asp.net framework. I want to mark some endpoints (methods of controller) to skip them from middleware processing. For asp core

WooCommerce automatically add variable product to cart based on another product variation

Bear with me - I'm a newbie. Here's what I'm trying to do: if [product A/variation 1] is in the cart then add [product B/variation 1]. I need help setting up a

Combine @Component and @ConditionalOnBean into one annotation

I want to combine two Spring annotations into a single one. More exactly I want to combine @Component and @ConditionalOnBean into one annotation named @SubCompo

Importing extra API data via importJSON + usage of data from json in formulas

I have made a google sheet with support of Tanaike. It is fully functional but I want to change something in the input and also a colum resulted in another form

How to run npm start without opening browser for react development on linux

I am learning react and find myself running npm start on the terminal a couple of times but its annoying how it opens a new browser window everytime. I'm tryin

Computational complexity of finding (not necessarily contiguous) longest zero 'subarray'

I understand that there are efficient algorithms to find contiguous zero subarrays of any given 2-dimensional array of numbers. Is there an algorithm for findin

dplyr get linear regression coefficients

I'm wondering if there is a better way is to get linear regression coefficients as columns in dplyr. Here is some sample data. mydata <- data.frame( S