Variables Questions
Ad
Can I pass environment variables from Gitlab .gitlab-ci.yml to a React app?
I'm trying to set environment variables dynamically using the gitlab ci pipeline. what i am trying to achieve is to inject the right api keys and
Changing global c variable inside a struct array
I have a case where i have defined a global struct array in a seperate header file that i want to be able to change from function in another file
Is there a conflict with keyword "extern" for a variable which is also defined in the same C file?
If i define a global variable in file1.c and also declare it using 'extern' in the same file, is that an error, or is it acceptable?
Declaring more than one variable in a single line
I am new to coding, and my team mates mentioned that i should not declare more than one variable in a single line. i code in c, and i noticed alot
How is possible to have variable with the same name but different type in c?
Having this header and .c files: foo.h extern void * foo; struct foo { unsigned val; };
Saving multiple constant values used in multiple files
I am creating a large application with a large amount of constant values that are used during the entire run of the application but that sometimes
Compiler contribution in assigning garbage values in c
Can we say that when garbage values are assigned to variables in c, they are related to the programs that are executed on the compiler previously
How to access CSS variables inside props function of styled components?
I have a react app. it is using styled components. in the main.css file, i have defined a variable like - :root { primarycolor:
How To Invoke Variables To Specify Format Of printf In C Programming
I want to use variables to specify format of printf in c programming. i am quite a c programming newbie, having practiced bash
Unexpected output regarding local variable
I have created a local variable b in the function foo(). this function returns the address of the variable
Ad
Variables shadowing in C - why compiler got confused?
I have this code to parse json. the structure has a key, val and pointer to next structure. due to nesting, the val pointer points sometimes to
How can I divide prod and dev version in create-react-app
I have an application on the react, when the build i want insert another path, how can this be done? i have two files with paths that need
Gatsby, Environment variables not accessible in browser
I want to use environment variables. i created .env.development file and i put some variables. then i include the dotenv
React - Hiding Environment Variables in Production file
I have a requirement which necessitates me hiding environment variables and not committing them to a git repository. in asp.net core for
How to split a string into consecutive substrings of length at most 3 in all possible ways?
I am trying to take a string, between length 1 and 10, and output all possible ways of breaking up the string into consecutive substrings that are
What does the @ in this code sample mean?
Html.textbox("parentpassword", "", new { @class = "required" }) what the gosh darned heck is the @ for the @class.
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
Env-cmd environment variables in React
I seem to have tried every which way variation of the env-cmd command but cannot work out why i can't access the variables i originally
When do function-level static variables get allocated/initialized?
I'm quite confident that globally declared variables get allocated (and initialized, if applicable) at program start time. int
How to make a global variable or be able to access it in other files
So i have a nodejs project where i have a dynamic form which expands if the user clicks "add question". this functionality is done by my
Order form with jQuery Calculation plugin using variable pricing
Greetings, i am trying to code a solution for an order form pricing calculator using the excellent
Ad
I cannot get my variables I passed to a myFunction statement to work in the copy command
I am passing variables from a button into a myfunction. i can create an alert box showing the correct information but when i use these variables
Is it possible to pass variables like myfunction($var1="hi") in php?
Is it possible, in php, to pass variables to functions like this: function myfunction($var1="bar", $var2="foo"){ echo $var1 .
Is it better in C++ to pass by value or pass by constant reference?
Is it better in c++ to pass by value or pass by constant reference? i am wondering which is better practice. i realize that pass by
Why is use of an array defined in File1 working in File2 (only declared there),even without "extern"?
Here i have two files externdemo1.c and externdemo2.c.in the first file,i have declared and initialized a character
How to add an variable in .env file which contain #?
I want to define key=qwerty#1234 in .env file in create-react-app but it ignores everything after #. i have tried key="qwerty#1234" but it did not
C# - Get all environment variables in sorted order
I'm trying to get a sorted list of all environment variables for logging purpose using system.environment.getenvironmentvariables() which returns
Why readings from .env file are wrong?
I've a problem. i'm new to nodejs so probably it's really easy to fix it. in the main directory, i've a .env file. in the main.js
Error generating variable with 44 characters in Jmeter
Hello! i have the following problem in jmeter: i want to add a code to my beanshell tester that generates a 44-character barcode.
Pass variable to child widget FLUTTER
I've got container with listview builder with child widget placed in separated file. itemcount: articles.length, itembuilder:
A value type of 'List<Object?> can't be assigned to a variable of type 'List<Looking Gender>
So, what i'm trying to do is use multi_select_dropdown to allow the users of a dating app to select multiple things such as genders and
Static class variable initializing to 100 by itself
This is my first question on here, so excuse me if i've formatted everything in a wrong way. so, to get to the problem - this is s
Ad
How can i access evironment variables in present NodeJS from ReactJS
I want to use my .env variable presend in my nodejs root folder in reactjs. i tried using process.env.test but i always
PLSQL : ORA-00904 invalid identifier in Cursor Select
I have external table created as below. create table external_table ( "col1" date ,
My bash script suddenly stopped variable expansion in one line of code
I have read a lot about variable expansion in bash scripts this morning but i have still not been able to identify what has caused the script to
PHP: printing undefined variables without warning
I'm just wondering if there is a quick way to echo undefined variables without getting a warning? (i can change error reporting level but i don't
Joomla 3.0 and modules.php: static variable(2d) and caching - output error
I have the following problem: i use joomla 3.0.1 and my own developed template(with bootstrap). when i turn the normal joomla caching to
Calling function from file(1). Try to use variable from 'Entry' input of file(2). end up still got file(1) variable
Sorry for the title. i'm not sure how to make it proper for this. i am scraping website. most parts are done and now i try to create input
Passing string for variable name Python
I am writing a program that can take in three numbers and three letters on seperate lines. the program will then seperate the numbers into items
How environment variables are used when deployed on aws
I am building a web application that utilises environment variables locally, and i want to put this on production (online). i am trying to find
Importing variables in Python, new topic as the old one does not work for me
I have read all of the answers of the following link :
Cannot invoke npm in PowerShell, even though it is in the system's path
This is my path: ps> $env:path c:\python27\;c:\python27\scripts;c:\program files (x86)\common
JavaScript prevent changing exported object
Is there any way to prevent exported object to be changed later when it's imported ? i have my config.js helper that manages my config, and i
Ad
React Firebase database
I'm trying to configure firebase config file like this: import firebase from 'firebase/app'; import rebase from 're-base'; var
Automatically loading environment variables in a Flask app?
I have a small flask application which uses the python-dotenv lib
Using .split with tkinter
Quite a beginner here. i have a command line script that works fine for what i do and i'm looking to move it into a gui.
Variable wont update on API link ReactJS
I have a problem with updating a variable on my api link. so this should work that at the start coords on this api link should be 0,0 (or at the
Problem of environment files with inter-apis calls laravel
Good morning, everyone, as part of the development of demonstration apis, i realized two apis : helloworld
Laravel syntax error in trying to load simple view: unexpected '=>' (T_DOUBLE_ARROW), expecting ']'
Just starting out with laravel. i am simply trying to pass a variable into a data array and load the view, but come up with the following syntax
I have following javascript code which is not working
I am new to javascript and learning it. i use brackets as an editor. i have the following code, but it is not showing any result:
Hiding .env file as OpenShift Secret
I have a laravel project that is hosted in openshift. i need to hide my .env from
How to implement global variables in extends different from 'Application' and 'Activity'?
I'm trying to implement global variables in and android studio application that uses ble gatt services. i need to save a number received from ble
Python variable manipulated indirectly without being mentioned in function
I'm a coding beginner that's putting a project together for a game. to update the game board, i use this function: board =
How to pass var values from .js file to the variables in the bash file
I have a variables.js file that includes several variables with values like: var var_1 = 1; var var_2 = 'sometext';
Ad
How do I calculate the value of a string variable in JS
If i have a variable with the value "1+2+3", how can i convert this to a number? (in this case it would be 6) this is my full
Exec can't access variables in it's parent environment
My friend asked me to build a function that can execute code in a for loop so, i was doing that and i was using exec in the same file i was
How to run node app from sub-directory with .env variables of that sub-directory?
I have a node.js app called app.js and its stored in the directory b. to run this script correctly it needs enviroment variables. these
How to make variable be still defined after EventListener in reactJS?
I have problem with variable "icons" in my code. its initialized and defined in eventlistener scope but it is not defined after that scope so i
Storing # as password in .env file
My current server password is [email protected]#asd but in .env file # is used to comment out something. so characters after # in
Python modifies the original variable after the function call
I am wondering if someone can explain why python modifies the original variable after assigning it to another variable and then passing the second
Node.JS - For Loop combined with .split() function does not console.log() new variable
I read on different sources about the for loop and i still have kind of trouble to get it. so i thought i ask here to get it explained by somebody
How to use process.env variables in browser running by Cypress
In the source code of my application (react based on create-react-app) i'm using env variables like so: process.env.react_app_api_url
"Load" function not setting variable
I have two functions that save variables to localstorage. the first one saves a variable, "money", but the second doesn't. the global
JavaScript: Global variable seems to be overwritten
I'm currently working on the following code which should only save the first position. anything detected afterwards should be ignored:
Can an .env value start with the "=" symbol?
I have a password that looks something like this: =nh7g&gsd!d-d in laravel's .env, is it legal to set this value like
Ad
How is this swap type expression working?
I have been experimenting with python. i found the swapping method for variables: var1, var2 = var2, var3 i
Best way to store secrets in application
Which one would be a better way to store secret api keys in node js applications.
Javascript how to store Fetch data to a global variable
I'm making a currency convert app that is using an api. when i fetch to the api the data variable has the json that i need. but when
nodejs How to read txt documents to create objects
Hell stackoverflow. i am wondering how to process some data from a text document. let us just say i have a document that stores information about
How to use multiple variables in "subprocess.run" function?
I hava a small python3 code. i want to use multiple variables in subprocess.run import subprocess scripts_home='/usr/local/bin'
can i set node environment variable in Object format in Azure
In my nodejs project during development i'm using .env file for using environment variables and one of the variables is set
Laravel 6: redirect with variables AND message - not working
i am trying to redirect using a function in my main controller with both variables and a message. the message code is fine and is usually
Using environment variable as a python argument fails in Makefile
I have a makefile with this target: my_dir:=${curdir}/my/dir my_proj: cd $(my_dir); echo $(my_env_var); python
Javascript Funciton Inner/Outer/Variable Scope
I've read the mdn:scope document and other resources but feel genuinely stuck. var funkyfunction = function() { return
HASKELL --- Is there any function to remove an element in a list?
My problem is i have a list and want to remove some strings in it. but when i remove the first time it's ok. but the second time, it removes the
Passing NODE_ENV into the npm script for Windows 10
I am using webpack in a typescript project. i am following a
Ad
How to pass a GlobalKey through Stateless Widget Children
I'm trying to create a custom menu bar in my app. right now, the biggest issue i'm having is passing a state for when it's expanded to it's
How to save and manage the Session ID and a User ID in PHP and MySql
I need clarification on the doubts i have about php
How to break loop if variable changes
I am running a for loop, in which the iterator loops through list of time based values. for example this is what my list looks like
How to set an environment variable to be used during "npm install"?
Our coorporate network is very closed down, so a normal method of: npm install [email protected] doesnt work since
laravel5 controller issue. Undefined variable: filename
I want to upload a blogger's profile image but i get an error: undefined variable: file_name. i
How to set env variables for react & go in aws ec2
I've made react & go product in local. and i'm going to deploy it to aws ec2. to work in aws ec2, i need to set environment variables
I want to use few variables in other dart files. In short I want them to be globally accessed
Here there are two bool variables i want them to be used in other dart files. how can i achieve that. class employeeregistrationscreen extends
How to use a variable created in class1, in another class?
I’m trying to create a password programme that lets the user create an account and then be able to change username, password and access the
Extend @types/node with custom project environment variable type decelerations
I have a project that uses dotenv for
Can't access global variable from other files in Node JS
I'm trying to access my config.js file in all modules of my project but i can't even though the config file is defined as global. here's
process.env.NODE_ENV is set but still undefined
I need to pass a variable when calling gulp, so i one can manage different builds. i am on win7 and tried to set node_env like set
Ad
Configure Enviroment Variables For Production Node.JS
I am trying to deploy my test express.js app on heroku using github for resources and mlab for my database. in development th app doesn't have
How do you create a new line in f-strings?
I'm trying to create new lines using python for the variable "profile" using the 'new_line' variable, but i haven't been successful.
flutter can't access static variable
I want to access a static variable in a stateful widget in a flutter. but it does not work. and someone said that is a private widget and i can't
I want to save the updated value of global variable in notepad file and when i restart the server it should again start from the updated value
I have started the counter from 1. when i run the server the value of global variable increases as per while loop upto 9999. when i shut down the
Flutter variable is look like it has two datas
I want to use a variable, which i want to fill with firebase data. in the firebase section it fills it up with the correct data and print it
using same variable that is created in function into another function
I want to use 'number' variable that was created out of the function and use it in couple functions and also give it an initial value 0, but it
Difference between Special Variable and Global Variable
In gnu clisp 2.49.92, the following code: (defvar i 1) (defun g () (format t "g0:~d~%" i) (setf i 2) (format t
Passing Controller specific array to view
Requirement iam creating number of forms with laravel. so for my easy i am trying to implement a something like below
How to create Tkinter widgets with loop and assign custom functions to each of them?
This is my first python app and i'm aware of many of it's flaws so i'll try to learn on my mistakes. i would like to understand how to
Why we have to define variable dp = [0] * (n+1) just to set its variable equal to 0( In Dynamic Programming)
I have some questions about someone define: dp = [0] * (n + 1) just to set the variable equal to 0, what does it suppose to do?
Why is process.env returning an empty object, while process.env.prop returns the prop value?
So i have the simplest example on a node machine running with a react-redux app with webpack (though i don't think any of this matters for the
Ad
User variables of a function, in another function
I have a laravel app, which the following php code: public function handle() {
.js + sql variables cant get the sum
It just gives the two variables put together instead of the sum of the two ex. 1 + 2 = 12 instead of 1 + 2 = 3 or args[1] + money =
Ad
Blog Categories
Ad