Latest Questions

SwiftUI animation not continuous after view change

Here is the testing code: import SwiftUI struct ContentView: View { @State private var pad: Bool = false @State private var showDot: Bool = true var body:

FieldRenderProps with React Native TextInput

I created custom TextInput for final-form in React-Native. And I need to specify type for FieldRenderProps. And I have an error: TS2769: No overload matches thi

view limit minimum 0.0 is less than 1 with matplotlib

I know there are similar questions to mine below, but mine is minimal and does not have anything to do with pandas and also solution pd.to_datetime did not work

How do I un-install a specific open jdk 1.8.0_322 which I suspect was installed using homebrew. All my trials have failed

I need to un install my JDK 1.8 version from my Mac 12.2.1 Montere. However much I try I could not get rid of it. When I run $ java -version, I get openjdk vers

Error when open Jupyter Notebook from putty

I'am trying to open Jupyter Notebook from Putty. I have a server where is installed Python and Jupyter. I followed all the steps from this post Remote access Ju

How to detect checkboxes by removing noise using Python OpenCV?

I am trying to identify the checkboxes in the image The top 4 are identified but the bottom 2 are not. At the same time I would like to be able to get rid of th

How do I access different font weights in NextJS?

I am stumped as to what I'm doing wrong. I have this code in my head: <link href="https://fonts.googleapis.com/css2family=Montserrat:wght@300;400;200&dis

Snakemake MissingInputException

We have always run our Snakemake pipelines through Amazon S3. snakemake --default-remote-provider S3 --default-remote-prefix '$s3' --use-conda However, we need

Make Custom SwiftLint action regex ignore comments

I have a custom SwiftLint action to flag up print() statements: custom_rules: disable_print: included: ".*\\.swift" name: "print usage" re

Adding a custom Swing component in a JFrame

I've created a simple JTextField (this will have a mask after and I'll use this in multiple projects) and I'm trying to add in a simple JFrame, however, when I

Python multiplication table school exercise

I have a school exercise, but im struggling to understand how to do the multiplication table. Could someone please help me? So depending on the number and colu

How to solve Numpy installing error in windows 10, (Python 64 bit)?

I was installing numpy in python latest version 3.10.4 (64bit) after installation of python I did this below in cmd window. C:\Users\Administrator>mkdir pyve

Proof by contradiction in Coq

I am trying to understand the apparent paradox of the logical framework of theorem provers like Coq not including LEM yet also being able to construct proofs by

Length of array in function argument

This is well known code to compute array length in C: sizeof(array)/sizeof(type) But I can't seem to find out the length of the array passed as an argument t

Why my lambda is not applicable for comparator?

At first, I write the following code, but it can't build. Arrays.sort(n, (o1 ,o2) -> o1 % 2 == 0 ? 1 : -1); enter image description here And then , I write a

"Module not Found Error : No module named albumentations"

I'm writing a code with albumentations function and it will give me this error ModuleNotFoundError: No module named 'albumentations' I also installed this pack

Checking user info with multiple parameters

I have to print information about the user with the name given as a parameter. For example let's say ./script1.sh John should give me John Doe (username) -last

TypeError: undefined is not an object (evaluating 'state.favoriteBooks.findIndex')

Every time I press the favorites button it gives me an error. TypeError: undefined is not an object (evaluating 'state.favoriteBooks.findIndex') This error oc

How to raise exceptions for when file is not specified and when the specified file does not exists?pyth

I a script I have: if __name__ == '__main__': try: file = sys.argv[1] with open (file, 'rb') as img_file: I run the script in terminal as: python3 s

Reverse order of bar chart colours while keeping legend order and colours

I am working on ggplot2 in R, and have used automatic colouring for the plot. It plots stacked bar charts and then converts them to the pie chart. Here is the c

Is it possible to change patch color for a range of patches?

Is it possible to change a range of patches color in the code tab? Instead of setting each individual coordinate. This would be done as part of initial model se

How to make a button move?

I'm going to make 8 buttons move down to the bottom of screen one by one but I have a problem here is my code : var i = 0; var j = 0; while(i < 7){ i++;

How to plot and display data from a microcontroller in Bluefruit Connect?

I am using Adafruit ltsyBitsy nRF52840 to collect data by connecting some analog circuits with one of the pins. I plan to display and plot the data instantly us

How can i make for loop a recursive method

How can I make this code a recursive method? for (int i = 3; i < arr.length; i++) { writer.write(arr[i] + "\n"); strout += arr[i] + "\n"; }

Problems with logistic regression in Titanic dataset

I'm an aspiring data scientist. I stumbled across the titanic dataset. I tried to use logistic regression for the problem. However, I got stuck. Since I have tw

NameError: name ' ' is not defined, python

I have to create a class with two methods. This is the exercise: This is my attempted code: class Cats(): def __init__(self, name, breed, size):

Im trying to generate a CSR from our SharePoint page to a vendors website to pull information from them. Where am i supposed to generate the CSR from?

Is it supposed to be done in Azure since its SharePoint or is it in a different server. I have looked into Azure Key Vault but before proceeding need confirmati

Android specific frequency AudioTrack infinity dutaion

i made specific frequency sound, used AutioTrack private static final int duration = 10; // seconds private static final int sampleRate = 8000; private static f

Finding peak in a large data set with python

I want to know if there is a way to eliminate points that are not close to the peak. For example if I have a data set with 10 million points and the peak is aro

GetColumnName() in EF Core 6 returns property name not mapped column name

I'm using EF Core 6 (6.0.2) with SQL Server 2019 with the following entity: public partial class MyEntity { [Column("External_ExternalId")] publ