Latest Questions

npm err! code 1 in the vscode during installation for Angular

I'm trying to execute a code I have downloaded from the github in my machine. I have set the ambient for angular in the vscode and the issue npm ERR! code 1 is

Adding new column with first non Nan for each row closest to a chosen column from a dataset Python

Hello I want to create a new column from a given dataset (that I call here "df") with the first non-Nan for each row and closest from a given column For example

Increment index without show its value on xtend

I'm trying to generate some code with a xtend function , that function uses foor loop that with variable that its increemented , the problem is that that the va

Melt a frequency table in order to use ggplot2

I have a "frequency table" similar to this one # Create a matrix df<- matrix(sample(0:10,35,replace=T),nrow=5, ncol=7) # Rename columns and rows colnames

React Native iOS build failed at AppCenter

Our React Native iOS project has been working well with AppCenter build. But when we pushed certain changes, although it still works well locally, the build at

How do I access response information from COINGECKO API for coins with more than one word id?

I have 6 crypto coins I'm getting current price from CoinGecko's API I have spans inside of divs set up on my html page, where the price span html updates after

Random "Error Establishing a Database Connection" occuring once every 1 - 2 weeks

I am running WordPress 5.9.3 on Ubuntu 20.04 using Apache and once every 1 - 2 weeks my website goes into a state of "Error Establishing a Database Connection".

Google Colab: pip install and imports from a custom script

In MyDrive/colab a I have these files: 00-imports.py with content... !pip install boto3 classes.py with content... class Test def __init__(self): print(

GridFS Large File Download Crashes the Node.js Server. MongoServerError: Sort exceeded memory limit of bytes

So I'm running a Node.js server with mongoose and I've been trying to download a large file using the GridFS node package but I've been getting the following er

String Pattern Matching in C

I was trying this pattern matching method in C but whenever I give all the input, the vscode terminal waits for a while and just stops the program without any w

Intra-cluster for custom k-means

I'm stuck trying to implement and plot in python the intra-cluster of each cluster in k-means to get best number of k. Which is represented using this formula

Rust - return a future in a closure

I am trying to add a return type of a future in a closure. But the compiler is telling me that `impl Trait` only allowed in function and inherent method return

Best QWidget or item to use to display a variable in a box

I would like to ask which QWidget or which Qt GUI item would be best to use to display a variable that will change during the lifecycle of the program, in a box

Future Call return API key invalid error UNAUTHORIZED

I'm trying to access an api endpoint using a Future and it constantly returns {"code":"UNAUTHORIZED","message":"Invalid API Key","timestamp":"2022-03-19T16:57:

How to permit child pages from root only

I have a Spring Boot Vaadin web app with Spring Security and keycloak-spring-security-adapter. This works fine on the root page. From the root page I can access

Still can't use a function defined in a separate .cpp file

I've been searching through questions on this for hours, and it just isn't working for some reason, so sorry if there's already an answer and I just didn't unde

How to detect state of ModalBottomSheetState while swiping bottom sheet in compose

simple question, How to detect state of ModalBottomSheetState while swiping bottom sheet in compose? I mean, I want to know how can I find out where state of M

How to size css cards in the right way

so this is my 1st project. and i could appreciate help with this. I tried everything but i dont know what i am doing wrong, i will be so thankful if someone kno

I created a TF-IDF code to analyze an annual report, I want to know the importance of specific keywords

import pandas as pd from sklearn.feature_extraction.text import TfidfTransformer from sklearn.feature_extraction.text import TfidfVectorizer import path import

How pgpool-II getting node information?

I want to know where from pgpool getting those node information. I am getting node information using below command but unable to find from where it is getting t

Why am I not getting an output?

I'm trying to filter (comments) which is survey response from CSV file so all text. I did classify[“sentiment”,comments] And Counts[classify[&ldquo

Exception ignored in: <function BaseMySQLSocket.__del__ at 0x000002B15E76E5E0>

I have this strange error in my code, it started to show just like that - no changes in the code. The same code is working with no problems when I run it from p

Execute an embeded exe with createprocess c++

I am trying to execute an exe file which is embedded in a buffer. I try to execute this exe file with createProcess (i think that this is possible) but i get th

Cdktf Optional block

How to make block optional if the value for the below block not provided? const BackupType=new TerraformVariable(this,"BackupType",{ description:"(Require

How to use optimizationObjective using AWS Personalized Python SDK?

for optimizationObjective I am using following code in solutionConfig: "optimizationObjective": { "itemAttribute": "ITEM_WEIGHT", "objec

Flutter Expanding List Optimisation, Performance and Best Practices

What is the best practice for displaying a list of Widgets in flutter, where the list can be extended or reduced in length via State. Let's say we have a Provid

Cannot use search view to filter list view displaying data pulled from SQL server

I am very new to app development and i'm trying to create an app connect to an sql server. The app pulls data from the server and displays it in a list view. I

Will NER improve Text Categorization?

I was wondering - if I'm doing text categorization (with SpaCy, using their textcat-multi component for example), will those results improve if an NER component

make a query in sql as to get all list of rows with where condition

i have following table and need to get the all rows and the condition end_dt IS NULL OR end_dt >=CURRENT DATE has to apply only for the rows where PLAN_ID i

.htaccess 301 redirect with exclusion does not work

I try to use a simple 301 redirect from domain1.com/folder/ to domain2.com/ but excluding domain1.com/folder/subfolder I use the following code in .htaccess: Re