260 questions
1 vote
1 answer
79 views
How do I change the names of thousands of variables in SPSS?
I have two SPSS datasets (a & b) that have identical variable names (eg. date, time, etc.). I want to combine them without confusion. Therefore, I want to change the variable names to reflect the ...
2 votes
2 answers
144 views
How to send an array from a text field of HTML form and sum its values? [duplicate]
I have 24 consecutively numbered variables whose sum I need to evaluate: if($t1 + $t2 + $t3 + $t4 + $t5 + $t6 + $t7 + $t8 + $t9 + $t10 + $t11 + $t12 + $t13 + $t14 + $t15 + $t16 + $t17 + $t18 +...
0 votes
1 answer
63 views
How do I access dynamically created objects and their properties in JavaScript?
If I write a function that creates a new person and attach it to an onClick event on a button, how can I access the data that was entered without a variable name? When a user presses the button, the ...
1 vote
1 answer
66 views
SPSS: Create a variable which reports the variable name of the MAX function
I need to create a variable in SPSS, that looks at a series of variables for the maximum value for each case, but reports the variable name (rather than the actual figure). I know I can use the MAX ...
2 votes
0 answers
72 views
Assembly, gdb duplicate names
Let's assume we have defined a global non-initialized variable named f in C code. Considering that, we would make label named f in the Assembly representation and put it in the .bss section. The ...
0 votes
2 answers
56 views
How to document that a name of a variable can be different in another taxonomy?
For example, the taxonomies for community chat in Discord and Messenger are different, but they serve the same functionality: Discord Messenger Server Community Text Channel/Forum Channel Community ...
1 vote
1 answer
98 views
Is it possible to set variable as part of other variable's name [duplicate]
I have summarized data of many kinds of fruits like apple, melon, orange, pear, grape,... etc. My code below works ok, but I like to make it template if possible. <?php $fruit_name='apple' ?> &...
1 vote
1 answer
625 views
How to preserve Unicode characters in name when bundling with esbuild?
In test.ts I have: const π: number = 3.14 Running esbuild .\test.ts I get: const \u03C0 = 3.14; Is there a way to keep the variable name as π? Likewise for function names, class names, types, ...
2 votes
1 answer
95 views
Why can't $module be used as a variable name in jq?
Is this behaviour of jq, w.r.t the non-allowed use of $module as a variable name, specified anywhere? $ jq -n --arg 'module' 'X' '$module' jq: error: syntax error, unexpected module, expecting IDENT ...
0 votes
0 answers
32 views
Create a variable wita another variable in the (variable) name, and have a dynamic variable [duplicate]
naam$var='value' doesn't work Need to use it in a loop : naam$var=$(sed -n $var"p" namefile.txt) Dynamic variable names in Bash doesn't do the trick for me. Maybe i didn't understand it ...
0 votes
1 answer
119 views
Angular Validator requiredFalse
I want to add a validator to my FormControl that validates the form if a boolean is false. There is requiredTrue but I need the opposite. Is there a validator for requiredFalse? this.myForm.controls....
-1 votes
2 answers
273 views
How to get the original name of loop variables in JavaScript?
In the following example code, the function "getOriginalName" does not exist, but that is what I am looking for: for(let variable of [var1, var2, var3]) { console.log("Value: " ...
0 votes
1 answer
168 views
Naming variables which represent json
I am naming a variable JsonArray versionsJA = jsonObject.get("versions").getAsJsonArray() Is there any proper naming convention that can be done here? I mean something better than the name ...
0 votes
1 answer
42 views
Create Dictionary with name and value of list of variables
I have a list of variables in python. And I want to create a dictionary whose key will be the name of the variable and the value will be the content. a,b,c = 1,2,3 list = [a,b,c] dic = {f'{item=}'....
0 votes
0 answers
51 views
Issues with naming empty dictionaries on Python
I was attempting to make an empty dictionary and use set default to allow duplicates. For some reason, the only variable name that would work is “d1”. Is there a reason why? I had another friend with ...