Latest Questions

Accessing specific elements in Arraylist of Objects

Really confused on how to access just the age of a specific student where all the information of students have been stored in a textfile. I am reading the textf

UnauthorizedAccessException when accessing a Windows file share from .NET Core app

I have an application written in .NET 5 ( soon to be .NET 6 ) that allows users to access files stored on a bunch of different user defined Windows network shar

How to resolve Key Error Exception when accessing dictionary key inside an if statement

I'm currently developing EV calculator using python and django. I get a key error exception when trying to access a dictionary key in an if statement inside a f

Using different instance of self as argument to method in python

I'm trying to create a method that takes self and another instance of the same method as its arguments, for example: class AClass(): def __init__(self

reactive-native cli error creating new projects "Android project not found."

When I try to run a react native project with the command react-native run-android the following exception is a displayed: "Android project not found. Are you

How can I make the menu folding/unfolding function? (double layer)

I'm making a menu folding/unfolding function. When there is one submenu, it is completed, but the problem is when there are two submenus. When you unclick a men

Timestamp Assistance (Copy Paste)

The below code works fine when I'm editing the relevant cell, however when data is pasted in the relevant cells the timestamp fails to appear... Kindly assist C

Index Usage in MySql InnoDb

I wonder that the index usage in Mysql InnoDb Engine. below is simplified example. fields a , b , c , d indexes a(pk) (a, b, d) (composite index) Query Select

RIPEMD160 - how were these contants created?

Are these constants arbitrary, or were there chose by some kind of permutation? I can't really find any source. The order of the left rotates on the left hand

How to change the size of an image in Azure's custom vision service?

I want to train model by using custom vision but when i add images in custom vision. Custom vision convert resize my image into (512,512). If there is any optio

Can a AWS Lambda Subscribe to Multiple Event Source Types

Two questions: Is it possible for a lambda to subscribe to a kinesis topic and an SNS topic? For example, your handler method is defined as: public void handleR

Iterate through pandas dataframe, select row by condition, when condition true, select a number of other rows, only containing unique values

I have a large (1M+) dataframe, something like Column A Column B Column C 0 'Aa' 'Ba' 14 1 'Ab' 'Bc' 24

how to add values from a function to a list

This is a sample database from a function can someone help me to send the output of function to list as shown in the screenshot [this function "getDistrict_Na

Go: Invalid memory address or nil pointer dereference when reading files and strings at same time

I have the following function waitForInput that listens for TCP input, after the connection has been created and that one has been assigned to the client struct

Django - query Grand Children with Autofield as Primay Key

I have this model: class AnlieferungKopf(models.Model): kopfNr = models.AutoField(primary_key=True) firma = models.ForeignKey( Firma,

How to add a class to a given element?

I have an element that already has a class: <div class="someclass"> <img ... id="image1" name="image1" /> </div> Now, I want to create a

Swift: Array of Dictionaries get nested value

I'm need help in Swift, hope someone here can help me, I'm new and I don't understand exactly how to get values out of a nested JSON. this is what I have. In th

permanova betadisper: missing observations due to 'group' removed Error in eigen(-x/2, symmetric = TRUE) : 0 x 0 matrix

I tried to adapt a code from an earlier version of R to process some data. I got most of it working again but ran into an issue.... I am trying to use vegan to

DNN model with maxout activation in tensorflow

How can I make this DNN model in tensorflow? 31 neurons in the first, 10 in the second, 5 in the third hidden layer, and 2 neurons in the output layer. The acti

How to set a multiple arrays in javascript

I run into a problem wherein I want to divide my items in by array likes this [ 1 [ 1[[1][2]] 2[[3][4][5]] ], 2[ 1[[1][2]] 2[[3][4][5]]], 3 [ 1[[1][2]]

How do I hide API key in create-react-app?

I made a weather app in create-react-app. How do I hide the API key so that I can commit to GitHub? Right now the key is in App.js: const API_KEY = "123456";

how to List all chart dependency names from Chart.yaml in NOTES.txt

I am currently trying to get all the charts I included in my Chart.yaml file where am using a common chart multiple times with different aliases so I can reuse

Responsive Tailwind css by Updating Root Font Size (thus rem) Based on @media Query?

I've been working with tailwind in my Vue project and overall its really good, but its a bit annoying to always write sm:w-10 lg:w-10 2xl:w-30 (etc) for all of

Why does wordpress replace my custom child-theme files with old versions of themselves?

It's like the system is messing with me deliberately. Twice this has happened now: I make some edit to my own custom child-theme using the theme file editor in

Suggestion on NavMesh 2D generation at runtime with infinite procedural generation [duplicate]

Let me start off by saying I began my jounrey of programming within the last year and Unity about the same time. I have come a long way since

how i render only 5 first element from map react?

I want print some elements(3-6 elements) from json. I'm using map to print element, but if i use them i print all of element from json and my div is duplicated.

How to define the difference between id's nodes of graph?

I have a graph g n = 8 m <- t(matrix(c( 0,0,0,0,0,0,0,8, 3,0,0,0,0,0,0,0, 5,0,0,5,1,0,0,0, 0,0,6,0,0,7,1,0, 0,6,2,0,0,0,0,0, 0,0,0,0,0,0,0,0, 7,4,0,0,8,0,0,3

How to scrape Trusted Shops?

I would appreciate your help on this scraping problem. I would like to scrape this site: https://www.trustedshops.de/bewertung/info_XDAD39B874C275A0751198C2510C

Passing model object as an argument with Flutter GetX

I need a model object on two screens. I have 2 questions: Is passing a model object (from one screen to another) required if we are using GetX? If yes, how do

Iterate through pandas dataframe, select row by condition, when condition true, select a number of other rows, only containing unique values

I have a large (1M+) dataframe, something like Column A Column B Column C 0 'Aa' 'Ba' 14 1 'Ab' 'Bc' 24