Latest Questions

Create several new variables using a vector of names and a vector for computation within dplyr::mutate

I'd like to create several new columns. They should take their names from one vector and they should be computed by taking one column in the data and dividing i

Programs which accept uppercase and lowercase commands as input

I'm trying to add a help/information box in my program that pops whenever someone type in a /h, /?, /help commands. I want to make sure that my program accepts

How to add environment variables to Azure Container App

I cannot find a way to add environment values to Azure Container App in the portal. How can I add within Azure Portal?

Can someone explain to me what is the details of line 5 return numberList[index] + sum(numberList, index - 1);

Can someone explain the syntax process? How line 5 will be implemented and what is the sequence for these three elements and what is the value each time in the

Sklearn error: None of [Int64Index([2, 3], dtype='int64')] are in the [columns]

Could someone explain why this code: from sklearn.model_selection import train_test_split import pandas as pd from sklearn.model_selection import StratifiedKFol

Install an Older Version of Laravel with Sail

I have a server that is still running PHP 7.4.x I, therefore, need to install laravel 8.x (the current version of laravel is 9.x) with laravel-sail. Since I don

how to create an effect just before displaying a web page

hi i tested this piece of code found on stackoverflow here without success... I manage to use 'Swup' for the transitions but not for the arrival on the page * {

What to do with "DWARF error: section .debug_info is larger than its filesize!"?

Looking for ways to see generated assembler of a specific function in my binary (an .so to be exact), just as I can see similar on Compiler Explorer, I found Ho

Kubernetes: Unable to mount a projected volume, no space on device when clearly there is

I have a local k3d cluster in stalled on Mac (Big Sur 12) that I am attempting to install calico (their default manifest https://k3d.io/v5.3.0/usage/advanced/ca

How to create new dictionaries from nested dictionary?

I have a nested dictionary. How do I access them and get the result as follows: dict_lbl = { "lbl1":{"name":"label1","item1":"Accounts", "item2":"kannagu"

$geoWithin return document located outside the polygon queried

I've recently came across this behaviour that I cannot explain. $geowithin return documents outside the polygon queried. To illustrate my problem, I've made a m

make a mean of several year dataframes, hour by hour

I have several dataframes of some value taken very hour, on several year, like this : df1 Out[6]: time P G(i) H_sun T2m WS10m Int

CORRMAP function EEGLAB not using all the datasets

I have a study consist of 54 datasets and I am using the CORRMAP function to find the common components between the three conditions that I have. The problem is

Trying to get the length of digits in c

I'm trying to understand why I am getting this error message. error: data argument not used by format string [-Werror,-Wformat-extra-args] printf("Enter car

sum and len unsupported operand type(s) for +: 'int' and 'str

`list = [] with open("ads.txt", "r", encoding="UTF-8") as ads: first= ads.readline() for i in ads: i = i.strip().split(";") list.append(

Creating a list from the class attributes - Python

I was wondering if someone could elaborate on exactly why creating a new list out of the two attributes passed in the class returns a "NoneType"? class Finance:

How to order WHEN THEN to get all combinations of desired replace fucntions

I have a fake table: CREATE TABLE #FAKEAddress ( AddressLin01 varchar(100)) INSERT INTO #FAKEAddress VALUES ('123 FAKE ROAD'), ('79 59th ROAD'), ('7890 COUNTY

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool issues even If I used using statement

I am working on dotnet core 3.1. I am working on API call. When I call the API, below function in Repository will execute first by saving the data: then anothe

It takes too long to send transaction to the smart contract which is already deployed. (Nethereum + Unity)

I'm making some dApp using Unity & Nethereum. I deployed one contract to the Ropsten Test Net using Remix. And I had abi & bytecode of that, so I made D

How to override the subject option command in Cypress

Cypress says options is only supported for use in Cypress.Commands.add() and not supported for use in Cypress.Commands.overwrite() So we can't change the subj

Apache Beam KinesisIO Java - Consume the data in a kinesis stream from where it left

First I want to say that am totally new to Beam world. I'm working on an Apache Beam focused task and my main data source is a Kinesis stream. In there, when I

ValueError: Input 0 of layer "sequential_35" is incompatible with the layer: expected shape=(None, 800, 1, 100), found shape=(None, 1, 100)

Hi Im currently working on the below program but im getting below error: ValueError: Input 0 of layer "sequential_35" is incompatible with the layer: expected s

How to automate OAuth2 implicit flow using rest assured

I've used the below code: OAuthClient client = new OAuthClient(new URLConnectionClient()); OAuthClientRequest request = OAuthClientReq

Regex to match if at least one match is found

I am writing a program for users and their different permissions. One user can have several different permissions, but the problem is that some permissions are

Go 1.17: How to log error with the stack trace

How to log the line number and file name of the error? I tried %w, zap logger's Errorw, but its not working as good as github.com/pkg/errors, which is sadly arc

Facing error with terraform code for importing multiple runbook to azure automation account

I have created the azure automation account using terraform code. I have multiple runbooks PowerShell scripts saved in my local. I am using for.each option to i

Reading from cassandra in Spark does not return all the data when using JoinWithCassandraTable

I'm querying data from Cassandra in Spark using SCC 2.5 and Spark 2.4.7 (pyspark). The table I'm reading from has a composite partition key (partition_key_1, pa

EPERM: operation not permitted, stat 'C:\$Recycle.Bin\desktop.ini'

trying to build a react app with vite(npm run build) but this appears. cleaned cashe and reinstalled npm a couple times with vs code closedbut still doesnt work

how python [0] * 3 are independent but [[0] * 3] * 3 each sub list is the same object? [duplicate]

my_list = [0] * 3 my_list[0] = 1 outputs to [1, 0, 0] my_2ndlist = [[0] * 3] * 3 my_2ndlist[1][1] = 5 outputs to [[0, 5, 0], [0, 5, 0], [0,

Oracle REGEXP_REPLACE for both space and "%" at the same time

I have following Oracle SQL code: SELECT TO_NUMBER(TRIM(REGEXP_REPLACE(per_growth, '(%)(\s)')), 'FM99999999999999999990D099999999999999999',