Latest Questions

How can I get key values and correspond it to each other in js?

I have an array of objects as follow: [ { "card_key": "Edition", "card_value": "Elite Fight Night" }, { "card_key": "Car

How do I redirect to a different page from this function nodejs

I need help redirecting after I submit this order. Basically everything is working but after the order is saved I can't figure out how to redirect the view. I w

Script that returns _id in MongoDB with JavaScript

I need a javascript code that saves in a variable the _id I'm having trouble getting that _id because it’s inside an array. I have looked everywhere but I

@RetryableTopic showing weird behaviour when using with topicPartitions to reset offset - spring kafka

I am trying to use @RetryableTopic for unblocking retries and topicPartitions in order to read messages from beginning. Below is my listener (I have only one pa

Re-sizing image resizes entire nav-bar & links

I'm writing simple HTML & CSS & JS code, I've trying to create a responsive nav-bar with my logo as a link for the home page - however, when the navbar

Can i combine Slim Framework with plain PHP

I just started with PHP not too long ago and have done some small projects with just plain PHP + Ajax + html. I’m more comfortable with procedural code th

How can I configured jaas.conf in order to Kafka Inbound Endpoint WSO2 EI 6.6.0?

I have WSO2 EI 6.6.0 and I am using the next libs to configure Kafka Inbound Enpoint. dropins: org.apache.synapse.kafka.poll-1.0.10.jar lib: kafka_2.12-1.0.0.

Using Regular Expression to narrow down dictionary based on Wordle rules

I am trying to do Wordle Solver as my resume project. I want to develop some word suggestions by narrowing down dictionary of words using RegEx. Is it possible

Dictionary making weird key:value pairs

I want to make a simple calculator, where you just type in something like "2+2*2" and it calculates the answer. First step was to find, and cut out the individu

"Task exception was never retrieved" error In discord.py

I am a beginner in python and am trying to make a bot in discord.py that has a command that has whoever runs the command explain how to use something. But I get

How can I see my full PCA data on the ordination map? and how can I change geom point colors of my data in R?

I am using a package called Vegan to calculate the PCA of my environmental samples and then plot my PCA values on the ordination space in R, I am using the data

'git status' yields different results in git bash (Windows 10) an WSL2 bash

I work on Windows 10 with WSL2. I initialized a git repo in git bash (Windows) and everything works fine (commit, push etc.). git status # on Windows, git b

Tuning slow query to SYS tables

I'm monitoring the slowest queries to my databases and this one can't be indexed: USE [Project] SELECT TOP 10 t.NAME AS TableName, t.object_id, mai

Reprinting print jobs using Wireshark

I wanted to tamper with my printer by using Wireshark so after following videos relating to capturing print jobs, I decided I wanted to try to recreate it, for

Not able to assign value to variable$i in shell script

abc=( "one" "two" "three" ) for((i=0; i<${#abc[@]}; i++)) { xyz$i="hello" --- this is giving me error as no such file or directory eval xyz$i="hel

How to fix: attempt to index nil with 'entered'

So basically, the script is supposed to load text after the intro screen disappears, not sure what's wrong with it because it worked back in 2014 :/ The Code: i

How to use sql NOT operator in sqlalchemy

I have a simple table with an int[] column and I would like to be able to select rows that do not contain a specified user. And I can't figure out how to do it

how to submit a image with react-firebase-form in firebase?

const [photo,setPhot]=useState('') photo setPhoto(e.target.value)}/> const handleFormOnSubmit=e=>{ updateProfile({photoURL:photo}) const [photo,setPho

Selenium and LINK_TEXT

I tried to scrapp a cost with a LINK TEXT but my scrapping method can't find the TEXT: budget = budgets.append((driver.find_element(By.LINK_TEXT, 'Total budget/

SVG.js How do I add an svg to the HTML page

I have a page that will show several svg images that will be generated from json data. I created a javascript class that will generate the svg but I don't know

How to select elements from json column except unwanted columns in spark

I have various columns in Spark DataFrame, they are nested json columns. In configuration i will provide a list of columns and fields to remove from json. For e

Is it possible to create variables and keyvault variables in same variable group in azure DevOps

I have a requirement to create variables and key vault variables in the same variable group instead of multiple variable groups. Is there any way to configure v

Exception never seems to get thrown when an AxisFault is found

I have this catch statement: } catch (Exception e) { if (e instanceof AxisFault) { LOGGER.info("AxisFault: " + e); if (((AxisFault) e).getFa

Is it possible to create variables and keyvault variables in same variable group in azure DevOps

I have a requirement to create variables and key vault variables in the same variable group instead of multiple variable groups. Is there any way to configure v

Can't access MySQL database from exe but works fine in IDE and jar

I have a small GUI application that is supposed to access a local MySQL database. It works fine from my IDE and jar file but once I use the jpackaging tool to t

Selenium getting stuck when looping through pages

I have written code that pulls text from sites and analyses them for readability. However, I sometimes get stuck on sites. Is there any way for me to have my pr

localStorage array reset when added a new item

I'm currently working on a project where I have to store as many as players as needed into an array of players using localStorage. I'm in fact able to register

getting Error "The slice reducer for key "weathReducer" returned undefined during intialization in my expo app"

running into Error: The slice reducer for key "weatherReducer" returned undefined during initialization. If the state passed to the reducer is undefined, you mu

Checking for the presence of a Request header in Karate

I am trying to create a mock server for handling functional tests in Karate. For that purpose I need to match certain incoming requests based on certain element

how to open a text file after opening workbook in openpyxl Python

i have been trying to append some data on my excel sheet using openpyxl and after that append some data in my text file...for some reason it gives me error when