Latest Questions

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

Different Schema name for SQL datasets in ADF using parameters

We have tables under different schema in same db in Azure SQL DB. eg. QA.Mytable and Prod.Mytable . so to manage this in Azure data factory for different enviro

Owl carrousel setup incorrectly

an agency installed in a wordpress website a new theme with everything new, and unfortunatelly Im not familiar enough with css coding to understand what happene

Matlab resample array based on second array

Let's say I have two datasets, both consisting of an x and y array, e.g.: x_1 = [1 2 3 4 5 6 7 8 9 10]; y_1 = [8 12 20 3 4 9 10 55 3 2]; x_2 = [2 5 6 8 9]; y_2

Select rows from table where a certain value in a joined table does not exist

I have two tables, playgrounds and maintenance, which are linked with a foreign key. Whenever there is a maintenance on a playground, it will be saved in the ta

How to manually create a cron job to run a Django script?

I have been trying to run some code as a cron job using Django. There are a number of packages that help do this, but they do not seem to support the latest Dja

How to update Rcyclerview after removing an Item from shared preferences

I have a few recyclerview in different activities and all of their items specified by sharedpreferences but after removing an item from sharedpreferences the re

I get a problem with use dotenv with react in typescript or .tsx files

I tried to use import * as dotenv from 'dotenv' and import { config } from 'dotenv' and restart the server many tames else I tried that dotenv.config({ path: __

Linking problems/ -nostdlib (FreeRTOS+CLI on RPi4)

Background: I followed the instruction from Tlmada (https://github.com/TImada/raspi4_freertos) to get FreeRTOS on RPi4. (Host: Ubuntu 18.04, Cross-Compiler: aar

Android WebView not loading the pop up dialog content

I'm trying to open an url using webView, but I'm not able to see the country list when i open via AndroidWebView but same link working when i open with chrome t