Latest Questions

LEMON Graph library: Inheritance in Maps

in my PhD project, I want to create a graph using LEMON. The graph itself is directed and hierarchical meaning that the graph has a tree-like shape. The leaves

Error with aws ruby sdk S3: `Aws::S3::Errors::AccessControlListNotSupported`

I've image upload functionality and using active storage with S3. The bucket is private and while uploading image facing issue: Aws::S3::Errors::AccessControlLi

TextInput React Native not working onChangeText

The text does not update on the screen {account}. When you type on the text input it seems like the onChangeAccount is not called. I have destructured it but it

Inspector to temporarily modify UI elements of Windows Desktop Applications

Is there a way to inspect and temporarily modify controls and elements of a Windows application like how a browser has dev tools which allows for doing that to

ARIMA model won't work: error in optim function

hopefully someone can help me out. I want to do an autoregressive regression on some monthly logreturns (60 observations). I found that only lag 1,3,11,18 are s

Oracle wallet -(Exception)Invalid number format for port number, while trying to establish JDBC connection

I am trying to make JDBC database call(Using Oracle wallet) using spring boot application but getting below exception. org.springframework.jdbc.CannotGetJdbcCon

make Hamburger Nav sticky on Scroll and responsive on all mobile media queries

I am trying to make the navbar Hamburger on mobile view responsive and sticky on scroll on 320px, 375px, and 425px screen sizes. I would like to have a solution

Python: Order Dates that are in the format: %B %Y

I have a df with dates in the format %B %Y (e.g. June 2021, December 2022 etc.) Date Price Apr 2022 2 Dec 2021 8 I am trying to sort dates in order of oldest

E/RecyclerView: No adapter attached; skipping layout . Adapter doesn't want to be recognized/detected

I'm really sorry for asking the same question like 100 other people did but i have tried every solution provided and I can't seem to find what is wrong with my

Dependent dynamic dropdown in Angular

I have a component(parent), where I am loading a single select option(Angular Material) and a multi select(Angular Material) option by an api call. I want to ha

Flipper plugins and Expo 45

I have Flipper up and running with a development build from expo 45 with eas build. React DevTools is running perfectly and getting detected by flipper. But I n

TwoSums code Python (Locating Indexes of Sum Values)

Could someone please explain the lines of the following code? I am having difficulty visualizing how the hash table/map stores the values. I am also confused as

When is the compiler allowed to optimize away a validity check of an enum or enum class type value in C++?

While searching for an answer to the question above, I came across the answer of Luke Kowald to the question Check if a value is defined in an C enum?. It state

What is the definition of "parent component" in React?

What is the definition for "parent component" in React? eg. const A = () => { return ( <B> <C/> </B> ); } Is A the paren

Using CSS border-radius (rounded corners), how can we prevent the rounded corners from disappearing if the image is scaled down (max width/height)?

Consider this scenario: An image is centered both horizontally and vertically using a flex box The image has a CSS border-radius configured (rounded corners) Th

when using Hardhat doesnt exist create project

after maked directory and on terminal I typed 'npx hardhat' enter image description here but doesnt showed create project when i saw their tutorial, possible to

on swipe how can i set text in text field after that edit text and insert again on that position where we swipe

on swipe how can I set text in the text field after that edit text and insert it again in that position. swipe in Dismissible and after swipe, I want my text on

Comparing two objects with == operator

I have this code that checks the references of two variables, I came across this case which is a bit confusing : string first = "10"; object second = 10.ToStrin

Create a mock TextIOWrapper for using as a middleman for subprocess

I am running an automation on a script and I want to evaluate the output of the shell instance before it gets written to a file. bashCommand = "ls -a" middleman

Python flask - Log to 2 different destinations with different log error levels

I am having a python flask app. We have used local logger with file handler and stream handler for logging messages. Handler levels INFO fh.setLevel(logging

Getting CWWKF0044E incompatible feature error using Open Liberty with Maven, but I didn't configure incompatible features

When using Open Liberty version 22.0.0.5 and liberty-maven-plugin version 3.3 with a server config (server.xml) configuring just a single feature: <featu

SagePay Server Integration

I'm integrating SagePay Server and am stuck at step 4 here: https://developer-eu.elavon.com/docs/opayo-server/taking-payments I get this error: Server error 500

Post a message from iframe in React

I have trouble about sending message from cross-domain iframe in React. I read many articles, most of them are about sending message to iframe. The issue is tha

Brace Initialize struct with virtual functions

Brace initialization struct A { int a; int b; void foo(){} }; A a{1, 2}; It works fine. Bu

Design pattern for directing user

I have quite large website for incident analysis. Now the owner wants to make a smaller analys tool with parts of the old tool to make it simpler for smaller in

Design pattern for directing user

I have quite large website for incident analysis. Now the owner wants to make a smaller analys tool with parts of the old tool to make it simpler for smaller in

How to install tailwind-rn?

I have been trying to use tailwind for my react native project but for some reason it won't work. I've done "npm install tailwind-rn" and then "npx setup-tailwi

Circular linked list not working after appending 3rd node

It's Showing output for 2 nodes but after adding 3rd node it doesn't showing any output, what i'm doing anything wrong?? This is the append method that i have

Issue with getLastRow(), output includes the empty rows as well which I do not want

getLastRow() not working in my script. I am trying to return the last row that has data. But since the spreadsheet has empty rows below the rows filled with dat

pandas.query in a chain not giving expected results

I have a pandas dataframe that looks like this: df = pd.DataFrame( { "ID": [1, 2, 3, 4], "Name": ["Alpha", "Beta", "Gamma", "Delta"],