53,895 questions
0
votes
0
answers
64
views
Do Shopware 6 scss variables from the plugin config to be defined with a "sass"-Prefix?
I have some troubles with this part of the shopware 6 documentation:
https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-scss-variables.html
I did everything like explained and ...
-1
votes
1
answer
68
views
mysql select and set variable in one query
I have 2 tables:
comments_table
id int(11) unsigned NOT NULL AUTO_INCREMENT,
media_id int(11) unsigned DEFAULT NULL,
user_id int(11) unsigned DEFAULT NULL,//user who commented
title varchar(300) ...
-3
votes
1
answer
116
views
Do Google Docs variables support transformations?
Google Docs supports variables. When a variable is a used in a document, then its value will be inlined where the variable appears.
Is it possible to define transformations on variables, to be applied ...
0
votes
1
answer
79
views
Using variable from one JavaScript code in a piece of jQuery code
I have an autofade button attached to each instance of my audio tracks:
<input type="button" id="autofadebtn<?php echo $track;?>" value="Fade Out"
onclick=&...
0
votes
0
answers
80
views
How can I access variables passed with res.render EJS (from NodeJS) in my script.js File
I am trying to access my header variables sent from NodeJS in my script.js file.
I can successfully pass the variables into my EJS templates and use them there; however, I can find a way to access the ...
1
vote
2
answers
57
views
Laravel error whit undefinde variables pass to view
im new to laravel and im getting an error Undefined variable $columnCounts passed to view.
i have a index() method that call 2 other method of the same NumberController, columnCount() and rowCount() ...
0
votes
1
answer
73
views
Unable to setup a PHP variable "max_input_vars"
I'm trying to install the moodle cms on debian12 and php8.2.
I have followed the official guide.
I'm trying to set the variable max_input_vars to the value of 5000 editing the system php.ini file at ...
1
vote
0
answers
29
views
Function resolving maps that point to other maps in SASS
Learning and got stuck a bit, I'm trying to get the attributes of a map that contains keys that are the same as my maps that I create in a setup area.
Currently my "Setup" maps are like:
$...
-2
votes
1
answer
34
views
Express variable not passing to POST route [closed]
I cannot get the delete functionality to work in a to do list app because my JavaScript file is not recognizing the variable (from postgres DB) I’m passing from my Express file.
Full description
I am ...
0
votes
0
answers
10
views
Trying to use a customisable template to display a 5 sided box multiple times
I am using aframe-template-compoment with variables but just seem to get consol errors telling me the position is NaN. I am using the aframe-template-component but not sure if I am using it right with ...
5
votes
5
answers
148
views
Match pattern by passing a variable to awk as an alternative to grep -B
grep -B does not work on AIX so I am looking for an alternative with awk
I have a file with the following content
05/25/2025 M 301510sa AIX is vulnerable to information disclosure (CVE-...
1
vote
1
answer
36
views
Pass select distinct max(some field) as a variable
Is there a way to pass the results of a simple query, used to get the maximum date of column, as a variable? Currently I run the query then just copy/paste the output into the variable.
select ...
3
votes
1
answer
135
views
PHP variable as reference
I'm confused about the concept of variable in PHP.
As far as I know, a variable in PHP has a name ($p) and a value ('Carlo').
$p has an associated entry in symbol table, such an entry actually points ...
0
votes
1
answer
72
views
Is there a way to instrument python code like this to run my tracing function on it? [duplicate]
So for example if I have this python code
def adder(x,y):
return x + y
So I am tracing the values of variables for python source code and I want to run the sys.settrace using my trace function on ...
-3
votes
1
answer
105
views
Is there any way to exclude the spaces when writing the full name in python? [duplicate]
full_name = input("What is your name?")
length_of_full_name = len(full_name)
print(length_of_full_name)
Here, if the user inputs a name, then usually the len() function considers all the ...
1
vote
1
answer
112
views
Can't seem to change the values of variables in a class, keep getting the old values back
I've created a class with a couple of variables in it. I can read these variables from my functions just fine. I seem to be able to update them to new values, however when I try to get the new values ...
0
votes
1
answer
41
views
Create a new variable indicating the last observation within each participant and day (group within group) in R
First, I apologize, I'm fairly sure this is a duplicate but the closest question/answer I found was this and I wasn't sure which part of the code in that answer was needed for transforming time ...
1
vote
1
answer
33
views
Can't figure out how to use XSL variables
I'm using xmlstarlet and have spent hours reading without success. I have this in my XML:
<person pcode="sherry-smith">Sherry Smith</person>
<day>14</day>
I want the ...
0
votes
1
answer
33
views
How to use config vars on heroku when using Stack=container
When using stack container deployment (config set stack), you would need changing config vars on the dashboard at heroku. But something bad happen. Step by step:
Go to Settings
Press Reveal Config ...
0
votes
2
answers
105
views
Why is my variable not working when passed as an argument?
For the person who is missing it, I am trying to add the year of death by using the reduce method for an array of objects.
For example:
{
name: "Carly",
yearOfBirth: 2018,
},
{
name: 'Carly'...
0
votes
0
answers
20
views
Grafana Variables
I work with grafana v11.5.2, the datasource is prometheus.
I want to have a variable var1 that takes the distinct values for a criteria AND variable var2 that based on selected var1 value gives the ...
-1
votes
2
answers
186
views
Does underscore (_) have any special functionality in Python, or is it just a convention? [duplicate]
freq, bin, _ = plt.hist(income, bins = 10, range = (0, 15), rwidth = 0.95)
I understand that _ is just a variable name like any other and that using _ for ignored values is merely a convention.
...
3
votes
2
answers
165
views
The scope for `my` var in the non C-style for loop
While recently trying to get one algorithm for "Getting indices of matching parentheses". I can get what that algorithm means although with some problems with perl language.
The perl syntax ...
0
votes
1
answer
94
views
Grafana - Dashboard Variable - KQL - count not working
I am trying to get a row count in a Grafana dashboard, and was working fine when I first set it up. But now I am seeing inconsistent results in Grafana and ADX: Specifically, Grafana variable is ...
1
vote
1
answer
37
views
adding 0 zero in front of month date in Visual Studio
So I am trying to add a zero in front of the single digit months. for example my code below gets me *_22025_CCC.xlsx, I would like it the month number to always be two digits. I should look the this *...
-1
votes
1
answer
32
views
Public variables inside namespace class arent showing up in the unity inspector
im trying to access the atk, def, hp, spd, and mana variables on the inspector to add stats to a prefab, but they arent showing up on the inspector for some reason when I attach the script to the ...
3
votes
3
answers
2k
views
Expo Config | Environment variables not loading correctly
Today I tried to setup my EAS builds using multiple environments. When following these steps, the app config is not correctly setup due to undefined environment variables and I'm not sure what I'm ...
0
votes
2
answers
49
views
How can I save a randomly generated array to an object property in js?
This is what I'm working with and I have no idea what I'm doing wrong here but I'm trying to assign dna to the mockUpStrand value and have it stay the same when I run the code each time but every time ...
0
votes
0
answers
94
views
GCP dashboard can't use variables that have dash in values
In GCP dashboard I have a variable defined like this:
cluster_name="anthos-ooo"
When I run this PromQL query
sum(increase(logging_googleapis_com:user_my_metriv{monitored_resource="...
0
votes
1
answer
227
views
Why does the Rust compiler give an error about possibly uninitialized variable in my conditional logic?
I'm encountering an issue with my Rust code. The compiler is throwing an error saying that new_position is possibly uninitialized when I try to use it in the println! statement.
Here's a minimal ...
0
votes
0
answers
94
views
How to set dynamic variables in AWS Step Functions
I want to assign a variable from one of the state in AWS Step functions.
The value of this variable has to be dynamic. I tried various syntax (as suggested in AWS documentation) to achieve this. These ...
1
vote
1
answer
188
views
How to determine variable type in Rust to pass to function
I am trying to use the fuzzy-search crate to build a data structure of choices that I can efficiently query with one string at a time. I have successfully created the struct:
use fuzzy_search::{...
0
votes
0
answers
19
views
php class variable not staying set
My class connects to an external site and stores the result in the $connectArray variable. A timeout value is returned so I added the CheckTime function to check that. But $connectArray is empty on ...
1
vote
0
answers
77
views
How to pass a variable from Teamcity to Octopus deploy
I need to send a variable from Teamcity to Octopus Deploy, to use it there in a PowerShell script
I have tried to send it using "Additional command line arguments" in the step "Build ...
0
votes
0
answers
31
views
How do you search for Regex matches within variable data?
I am using the Calibre eBook Mgr (PERL) to import a large # of eBooks. When the eBooks are imported, some of the author names (or variation of author names) are also imported into the "series&...
1
vote
1
answer
105
views
Where to declare a variable "simple" when adding a UDT?
I have a library function which requires a "simple int" input. In creating a new UDT I find that the fields only produce "series int" inputs for this function.
Here is a short ...
0
votes
0
answers
35
views
Using Variables in JQuery Ajax Output [duplicate]
I am trying to output a variable (pageurl) and insert into a div which outputs on success of submitting my ajax jquery form.
pageurl= $("#pageurl").val();
$(".result").html('<p&...
1
vote
1
answer
52
views
Storing and using a variable to populate a shipping field in WooCommerce
I have tried to do this myself using information from various sources but am running into issues which makes me think that it isn't the best or more appropriate way to do it.
I have a form to ask the ...
1
vote
0
answers
86
views
Use current folder name as replace string
I will have a host directory which contains template files of various formats. This directory will be duplicated for multiple events, and renamed in line with a naming convention, e.g. 01Something25.
...
0
votes
1
answer
41
views
I can't acces variables of an instanciated scene in an other script
So I have this scene with a variable, per exemple : @export name: string
if a get 3 of these in my main scene and all change their 'name', how can I acces that variable from the script that controls ...
0
votes
0
answers
33
views
combine variable array of properties into a comma separated list powershell [duplicate]
I have a powershell command that pulls a list of devices with PRT in the name to a variable & am then trying to format the list in an easy to read output
$PrinterList = @(Get-WmiObject ...
-1
votes
1
answer
110
views
Unexpected space character inserted by variable
My time server (router) is 192.168.8.1. To update a Windows box's time:
net time \\192.168.8.1 /set /y
The goal is to implement the command with a variable in a .bat file:
set "ip="
for /f &...
2
votes
1
answer
60
views
Using jq with the value of a variable as field value
I have a JSON file which I got via curl with hourly energy prices.
I can output the price for 6 o'clock with
jq '.energy | .todayHours | .[6] | .priceIncludingVat' < "$JSON"
I get the ...
1
vote
1
answer
320
views
Use CI_COMMIT_REF_NAME or CI_MERGE_REQUEST_SOURCE_BRANCH_NAME in image_name
In GitLab CI, I'd like to use CI_COMMIT_REF_NAME or CI_MERGE_REQUEST_SOURCE_BRANCH_NAME as the image tag according to which is not empty.
I tried image: "registry/group/project:${...
0
votes
1
answer
76
views
What is it called when you assign a class method to a variable?
In the code below, I have a class Test with a method Go. I created var Go = Test.Go, and I'm able to use either Go("stuff") or Test.Go("stuff").
What do you call assigning a class ...
1
vote
4
answers
146
views
Accessing an array variable by "concatenating" root variable name + int [duplicate]
A total Java rookie here, I'm wondering if there's any way I could iterate over several arrays like:
myArray1
myArray2
myArray3
by doing some form of "concatenation" to invoke these arrays ...
0
votes
1
answer
29
views
postgresql cannot use concatenated variables in user defined function
Creating function to extract data from views, whose name prefix is passed as function parameter:
CREATE FUNCTION t (char(2)) RETURNS text AS $$
DECLARE view_name TEXT;
BEGIN
view_name := CONCAT($1, '...
-1
votes
1
answer
46
views
Ansible: Parsing JSON data to a variable
I have Ansible output from a task which is registered to task_output.
"ansible_loop_var": "item",
"changed": false,
"files": [
{
"path": &...
0
votes
2
answers
71
views
Modifying class variable before __new__
I'd like to modify the class variable bar of a class B so that the creation of the class A object will be performed with bar2 instead of bar1 (where bar1 is the default). This makes it easier for the ...
1
vote
1
answer
759
views
Azure DevOps YAML: How to convert an array into formatted string?
In my Azure DevOps YAML pipeline, I have a parameter defined as an array:
parameters:
- name: variablesToSubstitute
type: object
default:
- test1
- test2
I need to convert this ...