8,874 questions
0
votes
0
answers
28
views
Finding global variables in ARM disassembly
My question is related to In the ARM ABI, how are global variables accessed? but is somewhat different.
I'm trying to debug an issue and for that I went looking in the build outputs of my project. I ...
1
vote
4
answers
109
views
Why doesn't JavaScript's garbage collector clean up global variables? [closed]
I've been reading an article about memory management in JavaScript, and it says that the global scope objects don't get cleaned from the memory.
If a global variable is not being referenced anywhere ...
0
votes
0
answers
35
views
How to set global PS variable in a manifest
I am converting a script module to a manifest module.
In the script module I do the below at the end
#
# Whole module Verbose output
#
# We will output verbose "Continue"
# We will NOT ...
0
votes
2
answers
86
views
application helper understanding global
I know there are religious wars fought over part of what I'm about to ask. I'm not here for any of that. I'm just curious why in my rails application helper I cannot have a global level variable ...
2
votes
1
answer
145
views
What is the difference between alias `our` and the original global variable?
This is one question encountered while reading the answer of this QA (as ikegami's comment says, how subroutine foo works is complicated. IMHO that may be due to using one outside variable):
sub foo { ...
-4
votes
1
answer
145
views
Unexpected behavior of Global Scope Variable in C#
I have been trying to understand two code blocks.
The first code block:
string status = "Healthy";
Console.WriteLine($"Start: {status}");
SetHealth(status, false);
Console....
0
votes
1
answer
87
views
Global variable value not translating from Userform to Subroutine
In my code, I have a combobox on a userform. The user selects an option from the drop down and the userform sets the selected value to a global variable "monthYearEntered".
Then i have a sub ...
0
votes
1
answer
159
views
Laravel Livewire VOLT, I get undefined variable name error
I am trying to develop a page in which available appointments are listed. So the students will be able to choose one for foreign language talking exercise. Everything is fine. I get
Undefined ...
3
votes
2
answers
86
views
variable declaration from inside a function on another cpp file
I have an interest in cryptography and have decided to try and write an AES library. However it has been a long time since I have programmed cpp and I'm a bit rusty. I have this code in my AES.cpp ...
0
votes
0
answers
28
views
Understanding a Formula using Global Variables PowerApp created from Dataverse
I have a PowerApp that was created using a Dataverse table. many, many years ago. I did not create this app nor the dataverse and its contents. I am trying to decipher what this formula using global ...
1
vote
1
answer
64
views
Need to defer the `name` variable in a Bash script
How to defer the name variable in our Bash script so that it expands correctly within quotes in the loop, in such e.g:
name='*'
curate() {
local e=
for e in $(export HOME='/home/me'; echo /home/me/...
-1
votes
1
answer
178
views
What happens to the variables stored in the lifecycle state in FastAPI?
I have a FastAPI app with MongoDB connected via Motor. I open a MongoDB connection at the beginning of an app and close it at the end using lifespan:
from contextlib import asynccontextmanager
from ...
-1
votes
1
answer
48
views
Python- Pass a global Variable (that is constantly being updated) into a Class
I am trying to instantiate a class using a constantly updating global variable as an argument. But what is happening is the class (which runs in its own thread) won't recognise the global variable ...
-1
votes
3
answers
84
views
Can I call an anonymous function inside a <scrip> tag linked to an external js file? [duplicate]
HTML File(firstHTML.html)
<!DOCTYPE html>
<html>
<body>
<h2>My First Web Page</h2>
<p id="demo">First Paragraph</p>
<p id="demo2">...
-1
votes
1
answer
67
views
How do I read values directly into a global HashMap?
How do you create a global variable that is a HashMap and is populated with data directly? The code below has a local variable 'e' that works as intended. However, I am struggling to make it a global ...