Category "variables"

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

why does postgres set_config's is_local = true not persist the variable for the whole transaction?

I have a function that uses set_config with is_local = true to set a variable. Now I expected that a select statement using the variable with current_settings w

How to create variables based on column names in dataframe?

I wanted to create variables in python based on the column names of my dataframe. Not sure if this is possible as I am quite new to Python. Lets say my df looks

How to create variables based on column names in dataframe?

I wanted to create variables in python based on the column names of my dataframe. Not sure if this is possible as I am quite new to Python. Lets say my df looks

Why won't Variable update?

I'm currently editing our new employee script for AD and I am running into an issue, I added 2 radio buttons for the home folder, one radio button will update t

What is the difference between var and val in Kotlin?

What is the difference between var and val in Kotlin? I have gone through this link: KotlinLang: Properties and Fields As stated on this link: The full syntax

How to use Grafana dashboard variable in another variables regex?

I created a Grafana dashboard variable and tried to filter the values via the regex field. This works for static regex definition. I would now like to use anot

How to do double-indirection with jq variables?

How to construct a name of a variable from data and access that variable? For example it should somehow give the content of the alpha-file: jq '$.var"-file"' --

Why do MySQL 8 IF and IFNULL return a BLOB result when testing a variable with value NULL?

Note: I have moved the essence of this question to here having learned some of what is happening but still wanting to understand. (In essence, ISNULL and COALES

reads variable from a text file and set it to current PowerShell session env variable

let's say that I have a text file that defines some variables something like this file : .env USER=user DB_NAME=userDB DB_HOST=localhost DB_PORT=5432 and I wa

Mysql) when i using user-defined variable , SQL explain use type "ALL"

When i using user-defined variable , i want to use 'index' like 'ref..'; for example, SET @company_code = "A002"; select * from product_in_out where company_

Unbound variable error when variable is already defined (Python)

I have a strange issue with this code. What this code does is create a GUI where I input a numeric value, then select what I want to convert it using the Spin e

PyCharm warns local variable might be referenced

Why does PyCharm highlight the boolean variable nearby the return with Local variable "boolean" might be referenced before assignment? This code checks whethe

Unable to overwrite a Dart/Flutter value - setting today's date correctly on pressing button

apologies for a simple question but I just started my Dart/Flutter hobby and ran into the following issue: I wanted a simple App that has a defined end date ("d

PHP variable added to page not populated - getting undefined in Javascript function call

I am having a bit of trouble, and i think my syntax and structure is correct but for some reason the function is failing. products.php page i have this function

get attribute from class not working php 7

I have $this->table as a global variable and an object inside of it, where foo is a table field name. example. $this->table = t_module::__set_state(arra

Github Action - use Variable in the script [duplicate]

With Github Actions how to do a backup of a file? I need to create a new folder named with the date/time of today. name: Backup Database on:

How to save multiple variables in a apipeline for another job

So I am looking through the gitlab ci documentation for passing variables to other jobs. However, how would I pass more than one? And how would I access more th

best way to store error messages in Laravel (session or variable)

I'm trying to find out what is the best way to store error messages (due to wrong parameters for e.g). Assuming I'm declaring the accepted parameters in the Co