Latest Questions

How to draw curved line chart using Canvas Jetpack Compose

Does anyone know how to drawLine with curved every corner using canvas in Jetpack Compose? I have achieved this using Canvas.drawPoints(): but I want to make e

Visual Studio 2022 (or earlier) disable autocomplete after typing a dot (.)

How can I disable, that after typing a dot (.) Visual Studio will automatically print FileStyleUriParser? Don't get me wrong, I want the suggestions, but I don

How to convert blob / object to video React

I am building a project that has a video player that is read from FastAPI. How can I convert the blob / object into a video format. Please advise This is what I

What is the disadvantage of using a ForkJoinPool when it is not needed?

Imagine a scenario where a task can be divided into sub-tasks, each of which does some long running process. Assuming that this heavy task occurs only in 5/100

How to pass data from one component to another component in React.js?

I need help regarding the react code. I am displaying the tree view. Clicking on the tree nodes will open the component in the right. I am successfully able to

What is the right memory allocations that can be given to multiple spark streaming jobs if it is being processed in a single EMR cluster (m5.xlarge)?

I have 12 spark streaming jobs and it receives a small size data at any time. These scripts has spark transformations and joins. What is the right memory alloca

Vue-apollo subscriptions not working as expected

I am working on vue-apollo and was able to use mutations and queries, but am facing issue using subscriptions. The apollo-express server with subscriptions is w

In PSO, do you change r1,r2 for each particle during the iteration, or keep them the same during the iteration?

I have seen both versions. I was just wondering if there is a great difference between them. I always thought that r1,r2 are each a random uniform in (0,1) that

How to generate safe RSA keys deterministically using a seed?

How do we use a mnemonic list of words as a seed (like we have been become accustomed using cryptocurrency wallets) to be able to recover a private key in case

How to fix an error with connecting an IP camera using opencv in java?

I downloaded the app to the IP camera phone and I want to get the video via opencv,but it gives an error public class Main { static {System.loadLibrary(Core

Which one should I choose between collecting Flow from ViewModel or collecting Flow in Compose directly

The code A collect Flow in ViewModel, and convert a Flow as hot Flow using MutableStateFlow, then use collectAsState() in Compose. The code B collect Flow in Co

How can I convert a return statement into a printable statement? [closed]

I am making a GFC (Greatest Common Factor) calculator with GUI, but my current code only works with a return statement, and tkinter doesn't ac

I've been trying to scrape profile pictures in Instagram using this code but i keep getting TypeError: 'NoneType' object is not subscriptable

import requests from bs4 import BeautifulSoup as bs User = input("input the username of the user "); url = 'https://instagram.com/' + User +'/' r = requests.get

Using aws_kms_key forces instance replacement

I have a strange problem, I created "aws_kms_keys" which is fine and working okay, then I assign that created keys to my ebs_block with the following code : #

how to get facebook app un-restricted when it's missing from the appeal page?

really weird issue with app id 871708929528215, a restricted app that has been dormant for years, i have fixed the crashing problem they complained about, and f

Unity-Android checking Export Project in android build settings causes Addressables issues

Im currently using Unity 2020.3.5f1, addressable ver 1.19.17 This is how im setting up my projects : building my addressables in Project A, and downloading and

By click of the button the same form is added under that form but how can i get the value of the number of times it getting printed &store it in table

by click of the button the same form is added under that form but how can i get the value of the number of times it getting printed &store it in table. How

service.beta.kubernetes.io/aws-load-balancer-private-ipv4-addresses nlb for ingress controller on eks not creating

I have deployed nginx ingress controller with helm whit this annotation annotations: service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp service.

Serverless deploy from M1 MacBook Pro causes invalid ELF header error

I have a serverless REST api connecting to MongoDB atlas. When making changes and running sls deploy everything deploys as normal. But when I query the DB from

How can I kill an app that I have started earlier in Android?

My app executes other apps depending on different events. For example, if the Bluetooth gets connected to "my loudspeaker" then my app launches Spotify. This wo

I'd like to change the Keras to a pytorch, but I don't know how to build a neural network

The HAR dataset should be analyzed using LSTM and 1D CNN. I need to check the graph of the change in loss and check the confusion matrix. I don't know how to ma

How to make Chain multiple RxJS observables subscribe angular 8?

I work on angular 8 i have multiple subscribe i need to make Chain multiple RxJS for getactivesession and after that subscribe PostUpload . What I have tried:

Cypress - Status: 401 - Unauthorized in token authentication to other API call

I would like to ask for your help regarding the authentication token to be used in other API calls. Below are the scripts of the command and test case: //comman

How can I display an html text as a function in the blade?

I want to display the text in the blade as html. To do this, I used this code in the controller section: ‌ class MessageController{ public function cus

AUR problems with installations

i've a problem in my arch linux distribution, i've added the black arch repo to this one. When i try to install the impacket suit or crackmapexec using sudo pac

can I use a façade design pattern with a factory design pattern?

I have an animal interface and subclasses like birds, cats..etc that extends from the Animal class and I have a factory class.. my question is can I use facade

Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope'

i am trying to import scripts from importScripts("https://www.gstatic.com/firebasejs/9.1.0/firebase-app.js"); importScripts("https://www.gstatic.com/firebasejs/

ReactJs - Ant design Tabs Card does not render content

My components used ReactJs Framework that built with Ant Design UI. My stucking is the rendering on tabs content. I try to nest the LoginForm component to TabsC

Iterate over a YAML complex map in helm

I am using Helm v3 and trying to iterate over a complex object/map in a YAML definition file for Kubernetes network policy with the following content:values.ya

windows kernel driver and undocumented API

I try to use an undocumented API while developing a windows kernel driver. Please don't tell me this is not the best thing to do ;) Anyway, the undocumented API