Latest Questions

How to close parent dialog depending on selected answer in confirm child dialog in Angular?

I'm trying to close a parent mat-dialog depending on the answer to a child confirm mat-dialog in Angular. The child confirm dialog says "You have unsaved chang

Angular 12 FormGroup dynamically Array checkboxes custom validator does not work

I am creating an Angular 12 app, with Material. I have a form with an checkbox array loaded dynamically from database. I need to validate that at least one chec

From an academic point of view, are there modern kernels for operating systems?

I have some questions are there currently 2021 or 2022 from an academic point of view already new kernel concepts for the operating systems or apps and games of

Django can't save userprofile instance during saving forms

I am getting this error Cannot assign "<QuerySet [<UserProfile: UserProfile object (131)>]>": "BlogComment.userprofile" must be a "UserProfile" ins

window.open() in button inside a web view app not working only on ios

I have created a web view app in swift. There I came up with one issue that following click event is not working. <button onclick=" window.open('https://www.

Angular 7 email validation using regex on reactive form

On Angular, I am trying to validate email using following regex - ^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.

Converting the values of the dictionary in to a file in Python

I have a dictionary say : my_map_dict which looks something like below: {2: [['1', '2', '4', '4', '0', '2', '0', '0.67'], ['5', '6', '3', '8', '0', '2', '1', '0

How to go through all Pydantic validators even if one fails, and then raise multiple ValueErrors in a FastAPI response?

Is it possible to call all validators to get back a full list of errors? @validator('password', always=True) def validate_password1(cls, value): password =

ESLint not configuring on save in VSCode

I have a React project, and am having an issue with saving automatically in VSCode. It works for Typescript files, but I am getting the following error: "Extens

JavaFX ImageIO.write() doesn't save modified BufferedImage

I'm trying to create an application that lets users modify pictures and then save them. I'm having trouble with the saving part. This is the method that rotates

Cannot install Python 3.7 on osx-arm64

I am trying to create a new environment with Python 3.7 using Conda like: conda create -n qnn python=3.7 I got following errors: Collecting package metadata (

How to make the connection between the broker and an external network?

I’m new in this field and I’m trying to create a device using arduino WiFi Rev 2 and the broker mqtt Mosquitto on an external network. I’ve al

Random/SplittableRandom error while building quarkus native image with optaplanner

I encounter this "Random/SplittableRandom" error while building my quarkus optaplanner application in a native image: docker run --env LANG=C --rm -v /Users/use

Trying multiprocessing but the program dies before it even starts

I have this code: from multiprocessing import Process, cpu_count def readplayerinfo(): y=0 Gameon = True while Gameon: y+=1 print('

Can someone assist me with this problem, i am getting this error when i load gtsummary after installing the package

[loading error][1] i am getting this error when i load gtsummary after installing the package [1]: https://i.stack.imgur.com/WhH03.png

Cant Jump and run at the same time (Unity)

wont let me run and jump at the same time, movement works fine but when i sprint jump isnt registered i tried a few things but nothing was successful the charac

Plugin [id: 'org.jetbrains.kotlin.android', version: '1.6.21', apply: false] was not found in any of the following sources:

I started learning Kotlin in Android studio a few days ago and I still haven't figured it all out, so having this problem is a big question mark for me, I know

How to link an old version of node in mac using homebrew

I am trying to link to an older version of node using homebrew in my mac (because netlify doesn't work with v17 - which is my default). When I search which vers

How can enable HotSpot on android device by delphi code

By this delphi code I can enable wifi on android device. var WiFIServiceNative: JWifiManager; begin WiFIServiceNative := JWifiManag

Test Typescript Service : Multiple Subscription on one Observable

I am having a problem performing a test on a typescript service. I have a function that returns an observable. I use .subscribe() to look at the result and veri

How to have the input value appear?

Hello I am new to coding and I have to do this an assignment for school, I am just a little bit stuck on this part of the assignment. I need to be able to make

Error while creating project on ruby on rails

I am new to ruby on rails hence when i am trying to create new project by following command: rails new abc I am getting following error rails aborted! Psych::Ba

How to create a GraphQL typed SDK from a Typescript schema object?

I have a code-first GraphQL API in which the GraphQLSchema is created like so: import { GraphQLSchema } from 'graphql'; import { mutationType } from './mutation

React Card Example issue - Card is replaced instead of being appended to a list of cards in another column

I have been persistently working on this problem where the goal is to drag a card form 'Column 1' and copy that into another column say 'Column 2'. Now when my

Cosine similarity between rows of two large dataframes in R

I've two dataframes DF1 and DF2. One of them is a very large DF. I've created examples DF1 and 2 like this: library(tidyverse) A<-rep(c('Mavs', 'Spurs', 'La

Rails 7 - picking up assets automatically in dev doesn't work

For some unknown reason Rails 7 (development environment) doesn't pick up changes in application.js automatically when I hit F5 in the browser. The location app

checking array of objects

I wanted to check if each length of array of objects of inspectionScheduleUnitContactArtifactDto , if there is one inspectionScheduleUnitContactArtifactDto whic

How to get the top 1% of soloists calculated by the total number of concerts performed

I'm working on this sql challenge, but I don't know if the way to get the top 1% of soloists calculated by the total number of concerts performed. is correct. P

Not able to run Junit test with H2 database SpringBoot

I have a strange problem with my unit test.. My goal is to run test on a H2 database and not on my Mysql database.. Actually the strange thing is that when i cl

Pass Date from Datepicker to Spinner selected item and load API Response in Fragment

I have a working app where user select an option from Spinner the datepicker auto open user select the date and view data. However, I am trying to include an Im