Latest Questions

Angular not passing object to html page

I am having issues with learning angular, I didn't use to have these problems before, but now when I do these demos things work great until I switch from using

how to install channels redis in django using pip without errors

I am trying to install channels redis module using pip but so far am still getting errors. I installed Microsoft c++ build tools as the error suggested but so f

Hypothesis library: strategy for the complement of some other strategy

I'm using the Hypothesis library for unit testing. With this library you don't hand-pick inputs, but you define the complete set of inputs for which you want to

Deploy, host and sideload Excel Office Addin - Error loading add-ins

I've been trying to develop and deploy an Excel Office Addin and I've run into a few issues. I've created an office addin by following the tutorials posted on y

How to test the purpose string of NSPhotoLibraryUsageDescription in iOS using Expo?

I've been struggling to verify if the purpose string for photo library access really is working as expected. It started with the application got rejected becaus

stdin to an emscripten, about how to continue input?

related to Providing stdin to an emscripten HTML program? function stdin() { if (i < input.length) { var code = input.charCodeAt(i); +

Create program that read the xml and create Java Objects from it. (something like Spring application context)

Hi there as I mentioned in title I want create program which read xml and create beans(Objects) from it. <beans> <bean id="person3" class="Person"

Failed to Build Wheel For Opencv

I upgraded wheel, pip, and setuptools all to the latest version, with the following command. pip3.9 install --upgrade pip setuptools wheel When I try to install

How to append python dictionary to text file

I tried the following the code import json final_key = ["letters", "words", "score"] final_list = [] letters_1=['U', 'I', 'J', 'T', 'D', 'F', 'S', 'H', 'J'] fin

Angular - Async pipe in ngIf and text binding will not display first emitted value

I have very simple component template: <button (click)="emitNextValue()">Next Value</button> <p *ngIf="text$ | async"> {{ text$ | async }}

error of function replay in DolphinDB: inputTables must be one or a tuple of non segmented tables|DataSources

error message: inputTables must be one or a tuple of non segmented tables|DataSources Usage: replay(inputTables, outputTables, [dateColumn], [timeColumn], [repl

Finding a file name from selected partial text

I grabbed someone else's code and tried multiple different functions to make it fit my needs. I use a Word document for PLC reports. I'm trying to take selected

Custom table name for a model in laminas

I've started learning laminas by reading it's documentation (Album model and table). I have a product model and I want to fetch the records but the problem is

How can I parse YAML with TAGs?

I have a YAML document like this: steps: - !<!entry> id: Entry-1 actions: [] - !<!replybuttons> id: ReplyButtons-langcheck foot

How to fix the plot using iteration through the subplots?

import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv("population.csv") fig, axs = plt.subplots(nrows=2, ncols=2) for col, ax in zip(df.column

How implement differential privacy in federated learning

I'm beginner in federated learning. I try to add gaussian noise to gradient in client_updata. If anyone attempt to do , please teach me how to do. Thank you in

Trying to import vue2-google-maps in blade.php file

I'm was trying to import vue2-google-maps in my blade.php file but failed. Is there any possibility to to import vue2-google-maps in blade.php file. Following i

React-Typescript: Module '"react-router-dom"' has no exported member 'RouteComponentProps'

I have a project and with this project I have a login page and I want to use "RouteComponentProps", but I got this error: Module '"react-router-dom"' has no exp

Put each statement in if-clause on new line in Eclipse

In Eclipse formatter for Java how can I format if-statements like if (x != null && x.getSomething() != null && x.getSomething().getSomet

Creating a purrr map equivalent

I have a list of files like so: dput(files) list(ped_cv_outcomes_in_hospital_code_v20.csv = structure(list( icd_10_cm_code = c("I2101", "I2102", "I2109", "I

How to solve java error on Geoserver GSR extension

I have set up a Geoserver instance. Now I need the GSR extension to have an ArcGIS compatible REST API. I installed the extension as described but on Geoserver

sequelize migration throws ERROR: function uuid_generate_v4() does not exist

I enabled uuid extension with CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; Then ran same query generated by sequelize for migration and it worked, create table i

merging two excel files and then removing duplicates that it creates

I've just started using python so could do with some help. I've merged data in two excel files using the following code: # Import pandas library import pandas a

Use --enable-stdcall-fixup to disable these warnings

I am trying to build a dll in C++ in which I use a C dll with prototypes like : int __stdcall foo();. When linking, the compiler outputs: Warning: resolving _fo

How to return all types except a certain type in MongoDB?

Let's say that there is a column called colours and it can have values red, blue, and green. I want to retrieve all rows except the ones where the colour is gre

R Plotly how to link text to bubbles in order to remove it when click on legend

With plotly on R, I have a bubble scatter plot and I want to add black text on each bubble. I also have my bubbles colored following a column of my data frame (

conditional binary operator expected with Do and ssh connection

This is part of my code that I working to find a word in a remote server connecting via ssh to that server filename=test.repo word=fail exists=$(grep -c $word $

Singly-linked set computational complexity

If you optimally implemented a Set using a singly-linked list structure, what would the computational complexity (big-O) be for the intersection operation?

SwiftUI: Get sidebar isCollapsed state on macOS

I'm using a NavigationView to create a sidebar on macOS. I can toggle the sidebar using this code: Button { NSApp.keyWindow?.firstResponder?.tryToPerform(

How to write a TypeScript NPM package with JSX property suggestion/autocompletion for intellisense

I created a mini UI library and published it to NPM registry. My library is written with strongly typed styled-components (TypeScript) and can be imported in Re