Latest Questions

Unresolved Imports - "help: a similar path exists"

I'm fairly new to Rust and am trying to set up a new project. I'd like to have code for a parser, tokens, and addressing for a little 6502 project in separate f

N-dimensional array indexing with numpy

I have imported a cube in Python and I would like to index the cube but in 'k' axis (N and M are two integer numbers), and then cross it by a plane (b) in the

How to use a capacitor plugin meant to be imported in a vanilla js app

I'm currently pulling hairs trying to figure out how to go about this. So, I'm working in a vanilla JS environment with no webpack setup served with capacitor a

How can I set the crond for docker? [duplicate]

I installed cron and FROM python:3.9.5 ENV PYTHONUNBUFFERED 1 RUN apt-get update && apt-get install -y netcat && apt-get inst

What does the error of receive end mean in Apache IoTDB Database?

What does the error of receive end mean in Apache IoTDB Database? To initialize the offset of synchronization to start synchronization again, I delete $IOTDB_H

Tkinter button background color is not working in mac os

I am trying to change the bg color of a tkinter button on my mac (catalina) but instead of getting a colored background, it is showing a blank space in the layo

Strange result when removing item from a list while iterating over it [duplicate]

I've got this piece of code: numbers = range(1, 50) for i in numbers: if i < 20: numbers.remove(i) print(numbers) but the re

Just Typing "python --version" Causes Python to Crash

In the past, I have used python3 with no issues. However, after updating to the latest version of Mac Os, I am having issues. When I type "which python3" I get

I am trying to load words from a text file into a binary search tree

I am trying to load words from a text file into a binary search tree. Each line of the file contains one word. #include <stdio.h> #include <stdlib.h>

Try to do methods C#

I can try to do method for change length of array. But newArray not visible in main... What can i do for? I am a begginer and need some help internal class

if i using angularjs function excel upload button function how to write my code

I writed code $scope.updatepricingimport = function(file) { debugger if(file == null || file == undefined || file == "") {

Cobol MCH3601 error when calling C program

there is a MCH3601 when calling a C program in COBOL multiple times. In the first calls, it works well, but then it fails with that error (MCH3601)... I call t

TypeScript literal number type not being calculated [closed]

I'm confused with such behavior: TS Playground. type N = 1 | -1 | 0 // Type 'number' is not assignable to type 'N'. function test_3(arg: N):

Two random unique samples of the same pool

I am trying to get two samples with unique elements in each sample. That is, the strings on the "first" vector cannot be in the "second" vector. Unfortunately,

PACT - Contract deployment in Chainweaver, issue resolving for Fungible-v2.Account-Details

getting acquainted with chainweaver and pact for deploying. I cannot get to deployment, i have an error when forking anedak or coin.pact to deploy. I load fungi

Add Forgot password link to email signin with passwordless template

I would like to add a Forgot Password link to the email signin page, like so: I'm using the passwordless starter pack that splits Phone and Email signups/signi

Way to group rows in a table based on multiple columns

I am trying to find out if there is a way to group rows in a table within a database based on the values from multiple columns. My specific problem is that I am

StaticResource does not work in Xamarin forms

I'm new to Xamarin I have this code and the Style="{StaticResource MyStyleButton}" doesn't work in an other Page. componentPage.xaml <ContentPage.Resources&

How to add an active class to an active Link in react router dom v6.3 using styled components - ReactJs ^18.1.0

I have designed my NavLinks using the styled-components. I want to add an active class to the active link I am unable to do it. I tried the isActive property bu

Group of structured binding errors, pertains to neural networking

so i downloaded a library that hasnt been in use in years, for Neural Evolutionary Augmenting Topologies. Basically, a neural network that evolves. It came with

R - get value of one variable for maximum value of another variable INSIDE a ggplot call

I have some code like this: seq(0, 2*pi, length.out = 100) %>% cbind.data.frame(t = ., Y = sin(.)) %>% qplot(t, Y, data = ., geom = "line")+ geom_

Change drag image inside a DragEnter event

I'm trying to define the image that appears when I drag an element inside my page. I saw how to do it with DataTransfer.setDragImage() in that link but with me

Should exported types always be moved to seperate file?

I don't like the idea of having a file with both export type SomeType ... etc. (can be multiple) and an exported class. But my colleague argues that its a desir

How can you use flexbox method to center div(second child) inside another div (parent), but not let it be affected by (first) child? [duplicate]

In my case, flexbox method works very well for centering the navbar as the navbar has fixed positioning. What I don't want is the other div th

502 Bad Gateway from Azure Application Gateway Connecting to Azure Container Instance

I am working on learning Terraform and Azure Web Services. After following a series of tutorials, I've been working on getting an Azure Container Instance setup

java.net.UnknownHostException: "localhost": Name or service not known

I'm trying to connect to Redis in Java using Jedis. I'm doing this simply like return new JedisPool(jedisPoolConfig, redisData.get("address"

GA4 does not recognize the ecommerce 'items' parameter

To collect e-commerce data, I created a Ga4 data layer with GTM. value, shipping, tax and items. as below ('item' parameter is just test) But my GA4 doesn't r

Flutter WebView only gets content the first time

I have a WebView where I parse the Site-content after the user presses a Button. If loading the site for the first time (initUrl), I get all the correct data. H

ER diagram to Postgres SQL

n real, ProductID integer , PRIMARY KEY () )