Latest Questions

How to transfer data from a form for Whatsapp to another page before submitting

I created a form in HTML that sends the data to WhstsApp, but I need that before going directly to WhatsApp, go through another page so that I can put the Googl

Making a plot that has an x-axis that has neg. values representing hours prior to the start of the event, then pos. values representing hours after

I'm not sure if my question makes sense, so apologies on that. Basically, I am plotting some data that is ~100 hours long. On the x-axis, I want to make it so t

SSRS: how to display each value of the multi-value Parameter in a TextBox after page break based on that multi-value Parameter

This query is Based on the example in this Link https://www.sqlshack.com/using-multi-value-parameters-in-ssrs/. Let us assume that I have several Job Titles in

Getting the index of the first occurrence of a given element in a given list

I am trying to implement the following specification: busca.v.xs = <Min i : 0 ≤ i < #xs ∧ xs.i = v : i> I wrote something like the following. b

What's the equivalent of `pandas.Series.map(json.loads)` in polars?

Based on the document of polars, one can use json_path_match to extract JSON fields into string series. But can we do something like pandas.Series.map(json.load

Creating installer using cpack and windeployqt, To contain qt and VTK libraries

Trying to package an application with Microsoft Visual Studio 2022 and qt6 libraries I do not no were to start from. I've done a bit of research most people use

accessing useContext state-variable returns undefined value

I am trying to implement authentication flow where a User can log in and log out. If the user presses a button in LoginScreen, the signIn() function from AuthCo

ERROR in ./node_modules/@chakra-ui/hooks/dist/chakra-ui-hooks.esm.js 238:11-22

I installed chakra-ui via, npm i @chakra-ui/react @emotion/react@^11 @emotion/styled@^11 framer-motion@^6 while using ChakraProvider component I'm getting follo

Mfcc classification: in sklearn how could I solve the dimension error of y

prediction_class = labelencoder.inverse_transform(predicted_label) prediction_class ValueError: y should be a 1d array, got an array of shape (1, 10) instead. p

Setting name of current file being read as variable

Using a for loop in a batch file, from a folder full of xml files, I am trying to parse an xml tag but also the file name of the current file being read. I have

Docker-Compose script not running

I'm pretty new to Docker and especially to docker-compose and I'm running into an issue I can't seem to fix. I have a docker-compose.yml file that looks like ve

Why is std::reverse_iterator slower than a direct iterator?

I noticed that std::reverse_iterator always decrements a copy of internal iterator before dereference: _GLIBCXX17_CONSTEXPR reference operator*() const { _I

Join columns of Day, Month , Year to calculate age

public function patients_view($id) { $patient = Patients::where('id', '=', $id)->first(); // .... } I just need to view the age. Thanks , im usin

Clear all form field in react, using react hook forms

I am creating a login form and want to clear the form when form submitted.I am using react hook form ,here are my codes.. const onSubmit = (data) => { co

How reliable is Redis Cache

I am planning on implementing Redis cache to improve my SaaS based application in azure. And I am thinking of storing credentials (azure Key/Vault info) in Cach

Access to the path /usr/share\OPC Foundation\pki\own is denied - this happens when deploying the OPC UA server

I have a Dockerfile for a DOTNET application with multi layered image where my first image creates the artifacts and my second image copies the artifacts from

Telethon (bot), how to work with commands, buttons and anwers

I want to implement something like BotFather. It sends buttons and you select your option, and if the option need a answer you must answer with the correct answ

springSecurityService.encodePassword for Spring Boot only

I have a legacy app made in grails which uses springSecurityService.encodePassword to generate user password. It's stored in database like this: {bcrypt}$2a$04$

ValueError: Excel file format cannot be determined, you must specify an engine manually

I'm trying to convert multiples files in a diretory to CSV format; I did this code, and ran it in 3 folders. But that one i get this error i found something li

Permission Denied for wrong user when I use "git push" [duplicate]

I was using git with my username and email and everything was working well. For one specific project I used different username and email to pu

Chrome extension to replace text on webpage works only after manually refreshing webpage sometimes

I am developing a chrome extension to replace specific texts on webpage. For some websites, it works only after refreshing webpages manually with F5. For exampl

I am trying to take the contents of fa plain txt file and put it into a char array, then I would like to print it out of the array

#include <stdio.h> #include <fstream> #include <string> #include <iostream> #include <cstdlib> using namespace std; int

SQL convert output from integer to float

The numbers in my results are of type integer, but I want to convert them to float. import sqlite3 connection = sqlite3.connect("mydatabase.db") my_cursor = con

To trigger event when column is not updated for certain time

I need to trigger an event when db column is not updated for certain time using spring boot and gcp. Note:- we should use spring boot schedular. Let me know is

AWS lambda function times out invoked from aws java sdk V2

I have created a AWS lambda function (written in python) that reads a tar.gz file from one S3 bucket, unzips and untars it and writes the extracted files to ano

Express Redirect to index.html doesn't render app.js (React Refresh Cannot Get issue)

I'm relatively new to React, but facing an issue which I understand to be fairly common; my app works fine, but when I refresh or try to link directly to a rout

Safari Browsers not loading videos or audio with wav file type

I have been digging into a bug with our website where videos and wav type audio files are not loading/showing up when viewed through the Safari browser. Instead

Wildfly 26 elytron security domain config is not working

I am trying to migrate an application to wildfly 26, and i am trying to use elytron to secure the application. I successfully run this commands using the jboss

Phoenix live view link not working with dynamic element

I have code in an html.eex file that needs to render a series of links and I'm using this code currently, <%= for item <- @links do %> <%= link(it

Python Pandas SUMIF excel equivalent

I can't figure out how to achieve a certain task in my python script. I have a dataframe that contains media coverage for a specific topic. One of my columns na