Category "variables"

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

I cannot figure out Uncompilable source code - variable might not have been initialized

I'm new to learning Java and am writing a BMI Calculator program. I've fixed so many errors in my program but just cannot figure this one out! Hopefully, you ca

"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

How to process pathnames with ! within an for /F loop?

In a complex batch file I want to read in files with paths, among other things, to read them into a variable one after the other separated by spaces. This works

Power Automate Desktop - Pass User Input as Variable into SQL Query

What is the correct way to take user input in Power Automate Desktop and pass that input as a parameter/variable in an SQL query. For example, if user enters a

Elegant way to check if a nested key exists in a dict?

Is there are more readable way to check if a key buried in a dict exists without checking each level independently? Lets say I need to get this value in a obje

How to declare a var in bash without it replacing a var in a different file

I have 2 files file1 and file2. Inside file1 I declare a var, x=1. In file2 I make a var x=2. If I run file one then file two, and then in the shell echo x, I g

Postman - dynamic variable for a value from array

How could I add an automatic environmental variable in Postman based on a value which is appearing in the endpoint response in the array? In the example below,

Increment variable value by 1 (shell programming)

I can't seem to be able to increase the variable value by 1. I have looked at tutorialspoint's Unix / Linux Shell Programming tutorial but it only shows how to

Declare variable set = select

How do I declare a variable for used in a PostgreSQL 9.3 query? CREATE or replace FUNCTION public.test() returns int4 AS $BODY$ DECLARE cod_process bi

Assignment of subroutine references in Perl script

I'm learning Perl from Intermediate Perl by Randal Schwartz. Can somebody explain the assignment of the variables $callback and $getter in the following code?