Category "variables"

Suddenly, NPM script variables no longer work

I use package.json variables like this in NPM scripts: // package.json { "version": "0.12.1", "scripts": { "get-version": "echo %npm_package_version%"

Resolve Azure YAML Pipeline overlapping variable names in multiple variable groups

We're working on converting our Classic Azure Pipelines to YAML Pipelines. One thing that is not clear is how to ensure that two different variable groups with

How to define a specific keras layer weight as non-trainable?

Let's suppose we have a neural nets with three layers : Inputs > Hidden > Outputs and consider that the weigths between the Hidden and Outputs layers are

I need a Variable from the MyBB-Forum

my previous attempts to declare a variable always failed. Task: In the table mybb->users there is the column verified. This column has either a "1 or a "0" (

How do I check if a file name includes a variable in javascript?

So I am trying to make a save file system thing, and it creates a file with your username, but when you log in it checks the user saves file to see if theres a

TypeError: __array__() takes 1 positional argument but 2 were given?

I am working on transfer learning for an image classification task. The training generator is as follows: train_generator = train_datagen.flow_from_directory(

What is the scope of variables in JavaScript?

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the v

Getting position based on the letter

Hello this is a little complicated question. I hope you can understand what I'm trying to ask. Let's say I have: newvar = hoavyeph8 There is an 'e' in this var

Can we actually do rspec testing on ruby if my methods don't have parameters?

I have a method but doesn't have a parameter, for example def goodbye puts "" puts "Thank you, #{name} for using our service." puts "Good luck with

Ansible how to create list of dictionary keys

I am probably missing something simple. I have the dictionary in vars.yml deploy_env: dev: schemas: year1: - main - custom ye

Global variables in Javascript and ESLint

I have got multiple javascript files and I have defined some global variable in a file which loads before the others. As a consequence all of the files loaded a

Extract a string between double quotes from the 6th line of a file in Unix and assign it to variable

Newbie to unix/shell/bash. I have a file name CellSite whose 6th line is as below: btsName = "RV74XC038", I want to extract the string from 6th line that i

Python, print string on the same line for screen output

I am lost on printing a character on the same line. For example card = "--Diamonds--" Output needed: --Diamonds-- --Diamonds-- --Diamonds-- --Diamonds-- -

Can I Set The Number Of Threads From An External FIle in Apache Jmeter?

I have many JMeter scripts that are testing different scenarios and I want to create a configuration file for some common values across my scripts, so I will no

GitLab pass variable from one pipeline to another

We have a master pipeline, which is responsible for triggering pipelines from multiple projects and performing some steps. I want to pass a file from first pipe

What does it change to declare a constant above or bellow a React functional component?

My question is what does it change to declare a constant above or bellow a React functional component (or a class component also) ? for example what is the diff

How to update a variable that depends on another variable in a function?

In the sample code below, note that the value of the variable dependent depends on the variable prereq. When the function changePrereq is called, it changes the

Can I pass a string variable to jq not the file?

I want to convert JSON string into an array in bash. The JSON string is passed to the bash script as an argument (it doesn't exist in a file). Is there a way o

Can I pass a string variable to jq not the file?

I want to convert JSON string into an array in bash. The JSON string is passed to the bash script as an argument (it doesn't exist in a file). Is there a way o

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

I'm running a PHP script and continue to receive errors like: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php on line 10 Notice: U