Latest Questions

Selenium turning off on redirection problem

I have a problem with my selenium script. Basicly what is it supposed to do is click an element that redirects you to a completly different page (url and everyt

Many to many relation table field into MongoDB

While doing a many to many relationship in SQL we create a table that will have the ID of the 2 tables that are forming the relationship. Sometimes in that tabl

Mockito Capture argument of a Constructor in mockConstruction

I have the following classes: public class Bar { private final Listener mListener; public Bar(Listener listener) { mListener = listener; } } p

MuPDF - How to save the separations to png or gray image using MUPDF C++

I am developing a pdf separation viewer app using Mupdf (c++) library. I need to know is there any possibility to on/off the separation/colors. Or else export

Retrieving images from json server and display with relevant question

I am building a trivia app. initially I just implemented plain text Q&A trivia but now I also want to add images with questions. I am getting data from my l

Code with event handler using "functional state update" working perfectly in React 17 does not work properly in React 18

I have observed a very strange behavior of React 18 compared to React 17 and I am wondering what I am doing wrong (since React 18 was not supposed to "break" ex

Get text inside brackets along with splitting delimiters in regex java?

I have a multiline string which is delimited by a set of different delimiters, A Z DelimiterB B X DelimiterA (C DelimiterA D) DelimiterB (E DelimiterA F) Delimi

How exactly does discord.CommandPermission work?

I try to gray out some slash commands that only someone with the right permissions can use. I found out that you can gray them out for everyone if you set defau

I got formatting type error but I don't know why this happen

#35 name1 = "eric" age1 = 10 name2 = "jay" age2 = 13 print('name:',name1,'age:','%d','\n'+'name:',name2,'age:','%d' % (age1,age2)) I got an error which is this

How do I store an array of objects that have arrays as value in Redux?

How do I store an array of objects that have arrays as value in Redux where the value is an array of items and key is a string like the name. I have to store so

Iterating through rows in a dataframe

I have a dataframe of 12 different teams with their own statistics. My objective is to repeat an entire series of steps for one team, and so on, until the last

If statement getting Skipped in a Function

I have defined a function that takes three entries, 2 numbers and an array. The Array is a 800 row 10 col array. The first column in the array has a number for

Missing property direction in Azure HTTP functions

newbie here to code and especially with Azure. I hit a rock with bellow placed Azure functions code. When I press F5 to load it goes to an error saying "Missing

dotnet restore in Github Actions gives 401 unauthorized

a NET6 project on Github cannot be dotnet-restored in Github Actions. dotnet restore works fine locally. Looking at the Action logs, it seems GH looks for Micro

Scrapy symbol replace

I try to delete symsol ":" from dates and it doesn't work: oper_dates=response.css('.textonline__date::text').extract() for item in oper_dates: clean_oper

Convert .htaccess rewrite rule for showing a custom 404 to be php-fpm friendly

I'm reinstall server on Ubuntu 20.04 with control panel "Hestia" with php-fpm support. But i have 404 error in front page domain.com/ if i use in .htaccess: Rew

SSAS corrupt string store data file for one of the table columns error

I'm getting error on SSAS when redeploy the project. The error is; The JSON DDL request failed with the following error: Error happened while loading table data

Segue Identifier is going missing in Swift 5.6

I've only been programming for a month, and I am trying to cobble together a mockup and I keep getting the following error: Terminating app due to uncaught exc

Recursive query which aggregates child items in sqlite3

I have a table of parent-child relationships: CREATE TABLE item_parent(item_hash, parent_hash); CREATE UNIQUE INDEX item_parent_unique ON item_parent(item_hash,

Color picking by coordinates

When using a colorpicker like from google, the luminosity at the top left is 100%, on the top right it is 50%. However on both corners on the bottom the luminos

Why is the method executed immediately when I use setTimeout?

I'm trying to write a simple code with a setTimeout, but the setTimeout just won't wait the time it's supposes to and the code execute immediately. What am I do

Spring environment variable values computing

Can I somehow use environment variable to set a properties value, but using computing, something like this: test2: ${TEST+1:2} test: ${TEST:1} As you can see

Flutter AutoRoute UI glitch with nested tab routes

This is my AutoRoute setup: @MaterialAutoRouter( replaceInRouteName: "Page,Route", routes: [ AutoRoute(path: "/login", initial: true, page: Login),

Hibernate- Liquibase throwing exception : java.lang.UnsupportedOperationException: The application must supply JDBC connections

I am trying to generate changelog based on DB and Entity class My Liquibase properties file is as follows `url=jdbc:h2:mem:testdb changeLogFile=classpath:/db/ch

Is it possible to apply Tableau Extensions on Original View of Tableau server

I have built tableau auto date range slider extension. Which updates the end date in the slider to current (today's) date automatically. I need to apply this ex

Typescript auto generated JS file: "Uncaught TypeError: Failed to resolve module specifier"

Currently working on a Blazor project where I want advanced mapping functionality, using the Leaflet.js library with typescript bindings. I have added leaflet a

How to use recaptcha v3 in chrome extension?

Is it possible to use reCaptcha V3 in chrome extension. If yes, than how to implement it? Currently I am implementing it and facing error Refused to load the sc

Django user authentication fails in selenium tests

I'm writing tests for my djangocms app, first time using selenium to replicate the browser/user. I'm trying to test the login page, user simply fills out the us

MongoDB Projecting specific values from objects in nested arrays according to filtering rules

I am quite new to MongoDB, using it first time on a large scale app. We have a complicated nested structure representing an object with multiple documents assoc

what is the right Schema microdata type to use for News Card?

we have news cards on our site as shown below .. what would be the right microdata itemtype for this ?i am inclined towards treating it as "NewsArticle" but tec