Latest Questions

How do I load an item from API to a fragment inside an Activity?

I need to load elements from my API to a fragment inside an activity, but once I initialize the element inside of the Activity Class present in the fragment lik

Generating same numbers in array of Objects

Ive got problem with generating same numbers in my code im not using any seed and evry, the object is created in the loop it has same numbers inside array. clas

Compare two Lists and get the difference [duplicate]

I have two Lists which I get - one from xlsx file, the second one - by select from database @Component public class ReadExcelDemo implements C

Project currently contains references to more than one version

I am getting the following error. I tried to add references but I was unable to find a System.Web.Http in it. Please advice how to resolve this issue? The proj

Microsoft Visual Studio stuck in debugging mode

Whenever I run my code I am given an error messaging (error msg below) saying It is stuck in debug mode, and the console does not give me a string message for t

Understanding shadow maps in OpenGL

I'm trying to implement omni-directional shadow mapping by following this tutorial from learnOpenGL, its idea is very simple: in the shadow pass, we're going to

Profile Pic not displaying on Card View in Andorid Studio Kotlin

I am trying to get a users profile pic to be displayed beside their booking on a card in my recyclerview. The profile pic is displaying in my nav drawer, a defa

How to open url from altair chart in a new tab (href)

I've made an altair scattered chart with links. It works perfectly from my Jupyter Notebook. Problems start when altair is in Streamlit environment. As I invest

How to use nn.TransTransformerEncoder from pytorch

I am trying to use PyTorch's '''nn.TransformerEncoder''' module for a classification task. I have data points of varying lengths i.e I have sequences of differe

Why result.Succeeded return failed in ASP Identity

When trying to add the ability to add a name during registration, an error occurred when logging into the account. When I register, the login is successful, but

Repo forall reading to file

I am trying to get out some input into my files. I am doing this repo forall -c 'base=$(pwd);basename $base>names.txt' repo forall -c 'git rev-parse --abb

RXJS data manipulation

I am trying to find the reactive way of manipulating data in an array of objects. In the array below, I want to determine the low score in groups of four and a

Setting/Defining Extension Configuration (if one does not want to use VSCode's default settings/configuration) using package.json

Is it possible to set the configurations or settings of any extension using package.json file without having to go to Preferences->Settings->Extensions an

Flutter Firestore: FirestoreBuilder with initial data

I'm making my first Flutter app and I encounter a problem and doesn't found any solution for it. I have a view where I render a Firestore document, and there is

Why is it appearing for a split second? javascript

I'm new to coding and am trying to make a game for school, when i submit my name into a text box it is supposed to proceed to the next page but it only flashes

How to create a dictionary, where the key is the key of a dictionary of lists and the value is the longest list

I have this dictionary of lists of dictionaries: dict_countries ={'uk': [{'datetime': '1955-10-10 17:00:00', 'city': 'chester'},{'datetime': '1956-09-10 13:00:0

How to access shared google drive from remote server's jupyter notebook?

I have a big dataset on my shared google drive. I want to access/read the dataset from a remote server's jupyter notebook to train my deep learning model. I can

firebase onAuthStateChanged infinite loop node js

I'm using firebase to sign in my users on my node js app. I would like to see if the user is authentificated or not and after it redirect to the page I want (lo

how to show back press button in a fragment

yes there are a lot of results about it i tried but i couldn't find the right answer. I have a navigation graph team. I have an activity and Four Fragments. I w

OData integration run time failed for Workplace analytics setup(Viva Insights)

I'm trying to create an OData integration runtime for the Workplace Analytics platform. I tried all the authentication types but I'm getting errors only. Here i

Why am I getting "Type instantiation is excessively deep and possibly infinite"?

Playground link I have these general definitions: type Module<P extends Payloads, C extends Children> = { payloads: P; children: C; }; type Child

EmguCV C# ApplyColorMap Conversions

how do I correctly convert BitmapSource to Mat (to use it as input for the "ApplyColorMap" function)? I currently use this code: private static Mat ToMat(Bitma

Regular expression not working Sybase ASE 16.0

I am trying to retrieve IDs from a table in Sybase ASE 16.0 The query has to return IDs starting with AB or BC. Example AB0001 AB0002 BC0001 BC0002 The regular

can we execute sql query in serverless pool from pipeline azure synapse?

Can we execute SQL query in the serverless pool from the pipeline in Azure Synapse? We are trying to run the SQL query in the Synapse pipeline, we are not able

Unable to start program, Access is denied C# net6.0

I have this issue where some of the projects I created for.Net6 throws the error shown in the image attached In this instance the project was running fine, sud

Google Calendar Integration - Unable to authenticate with API: 401, message='Unauthorized' Home Assistant

Not sure what is going on, but after following some instructions here to integrate my google calendar into Home Assistant, it works for like an hour, then it do

Mocking Bull queues in NestJS

I am trying to test that after sending a request to one of my controllers, the queue pushes a job. Implementation itself works as expected. This is my app.modul

How can I replace my webRequest blocking with declarativeNetRequest?

I'm try to migrate my chrome extension to Manifest V3, and having some troubles with webRequest. I don't know how to replace the below source code to declarativ

Swift Playgrounds iPad - parse from json Financial Modelling Prep API

G’day I’m trying to pull financial data from the FMP API. import SwiftUI import PlaygroundSupport import Foundation let url = URL(string: "https://

Groupby hours +/- some integer of additional hours

I have a data frame consisting of some columns, where the index is datetime, i.e. it looks something like: df = col1 col2