Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
75 views

I need to integrate with a third-party system. I need to authenticate there and obtain a sessionId. So, my application will have a URL, login, and password to obtain a sessionId. But to avoid having ...
Aliaksei's user avatar
  • 1,449
1 vote
0 answers
25 views

Since @import will be deprecated in Dart SASS, I've tried to find a solution for the following problem. I want to use the same partials for different clients which have different, colors, fonts, font ...
GuidoP's user avatar
  • 11
1 vote
1 answer
158 views

I'd like to share some constants between CPU and GPU in order to allow for execution of the same code (wrapped in between) on either. That includes some compile-time parameters which are most ...
niemc's user avatar
  • 113
-1 votes
1 answer
117 views

i define the function "player" and inside, assign the variable "health". def player(): health = 100 player() print(health) but when i try to run the program, i recieve this ...
tpmam's user avatar
  • 52
0 votes
0 answers
42 views

I am new to Google Apps Script platform. So I am having difficulty about defining variables in the most suitible place. I have many sheets and script files in a spreadsheet. I am using ss variable ...
UncleJoe's user avatar
1 vote
1 answer
90 views

I have a short example python script that I'm calling glbltest.py: a = [] def fun(): global a a = [20,30,40] print("before ",a) fun() print("after ",a) If I run it from ...
bob.sacamento's user avatar
0 votes
0 answers
55 views

My setup: I am using C/C++ for Visual Studio Code (version 1.25.3) and OpenOCD (0.12.0) and JLink for debugging and am enabling the debugging using launch configs and setup commands. My configs: ...
Priyadharshini N's user avatar
0 votes
0 answers
52 views

This question may have a simple answer. I have a near-trivial module0.py: a = 1 b = a + 3 I import this module into a script and redefine module0's global constant a: import module0 as m0 m0.a = 2 ...
SapereAude's user avatar
1 vote
4 answers
148 views

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 ...
Abdulrahman Ismael's user avatar
0 votes
2 answers
98 views

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 ...
Michael K Madison's user avatar
-4 votes
1 answer
163 views

I have been trying to understand two code blocks. The first code block: string status = "Healthy"; Console.WriteLine($"Start: {status}"); SetHealth(status, false); Console....
bibashmanjusubedi's user avatar
0 votes
1 answer
327 views

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 ...
zkanoca's user avatar
  • 10k
0 votes
0 answers
51 views

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 ...
Angela Hill's user avatar
-1 votes
1 answer
320 views

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 ...
Ravshan S.K.'s user avatar
-1 votes
3 answers
104 views

HTML File(firstHTML.html) <!DOCTYPE html> <html> <body> <h2>My First Web Page</h2> <p id="demo">First Paragraph</p> <p id="demo2">...
Yahya Hassan's user avatar
1 vote
4 answers
88 views

Is it possible to make contents of constant array be visible across multiple other source files so that compiler can optimize access to the array. I have an array const int myTable[10]; and in ...
user1806687's user avatar
0 votes
1 answer
29 views

point_to_managedDB = None def _get_correct_DB_flag(): if ENV == "dev": global point_to_managedDB point_to_managedDB = os.environ.get("OIA_POINT_TO_MANAGED_DB_DEV&...
PAMPA ROY's user avatar
4 votes
2 answers
272 views

Given main.c: #include <stdio.h> void (*fn_ptr)(void); void foo(void); void bar(void) { printf("bar\n"); } int main(void) { fn_ptr = bar; foo(); } and foo.s: extern ...
MyNameIsTrez's user avatar
1 vote
1 answer
120 views

I have a problem with a shared library's global object getting destroyed before it is used. I do not know all details nor do I have control over an application that uses the library but my assumption ...
user77777777's user avatar
2 votes
1 answer
160 views

I keep getting the error There is already a global variable called “DOTTED-LINE-VISIBLE” but when I change the name it gives me the same error but with the new name. How to fix it? The global variable ...
user27912404's user avatar
0 votes
0 answers
25 views

This question is not about the difference between class and instance variables. I want to design my program in such a way that my main class provides global resources to modules for them to use but ...
iamthebull's user avatar
-4 votes
1 answer
98 views

I'm working on a small program that open an image and lets the user click on points to draw lines. import datetime import cv2 import numpy clicked = False path = "files/file1.png" ...
Larrea's user avatar
  • 21
1 vote
1 answer
131 views

I am programming a Raspberry Pi Pico in C. I have this MWE: #include "pico/stdlib.h" #include "pico/cyw43_arch.h" #include "hardware/uart.h" #define UART_ID uart0 #...
user171780's user avatar
  • 3,245
-2 votes
1 answer
98 views

I have a function inside a class. I want to declare about 10 global variables of different types: vector, queue, int, 2d-vector etc., How do I do this? Also I just cant declare the variables outside ...
Harsith R's user avatar
0 votes
1 answer
321 views

I'm working on a FreeRTOS project in C/C++ that has about 10 tasks for gpios, displays, wifi, and so on. These tasks are only triggered by events. For example, the user chooses an option on the menu &...
JuanGomez's user avatar

1
2 3 4 5
178