variables Questions
7
Solved
I have searched but I dont know if I am using the correct verbiage to search for. I am writing a program in C# for my class but I am having trouble with the message box.
I am trying to have the m...
Albers asked 20/8, 2011 at 22:16
5
I am using Terraform to deploy code into my Azure infrastructure.
I have an Azure Firewall with some Network Rules which has a bunch of free text IP addresses as Source/Destination. An example belo...
Kenyakenyatta asked 16/2, 2022 at 14:37
8
Solved
In programming (and math) there are variables and constants. Is there a name to describe both of them?
I was thinking value, but that's not it. A value is what variables/constants contain, not what...
7
Solved
In Delphi, consider
var
i: integer;
begin
for i := 0 to N do
begin
{ Code }
end;
One might think that i = N after the for loop, but does the Delphi compiler guarantee this? Can one make t...
5
Solved
#include <algorithm>
using namespace std;
int count = 0, cache[50];
int f(int n)
{
if(n == 2) count++;
if(n == 0 || n==1) return n;
else if (cache[n] !=- 1) return cache[n];
else cache...
10
Solved
I wonder if it is good or bad (or does not matter) if I reuse the variable names as much as possible? for example
int main(void){
//...
int x=0;
//..
x = atoi(char_var);
//..
for (x...
6
I just installed Homebrew and now I'm trying to insert the homebrew directory at the top of my path environment variable by typing in two commands inside my terminal. My questions are these:
What i...
Tasteless asked 28/2, 2016 at 0:1
7
Solved
I'm looking for a quick way (in C#) to determine if a string is a valid variable name. My first intuition is to whip up some regex to do it, but I'm wondering if there's a better way to do it. Like...
12
Solved
There are a lot of questions explaining how to echo a singular or plural variable, but none answer my question as to how one sets a variable to contain said singular or plural value.
I would have ...
2
Solved
Today, I stumbled over something in Perl I was not aware of: it "localizes" the variable that the elements of the list iterated over is assigned to.
This, of course, is documented in the Perl docu...
Ahrendt asked 15/2, 2017 at 7:51
8
Solved
I would like to be able to prompt for my super secure password variable if it is not already in the environment variables. (I'm thinking that I might not want to put the definition into .bash_profi...
5
Solved
Here is:
declare
v_str1 varchar2(80);
begin
v_str1 := 'test';
print :v_str1;
end
When I run it using SQLDeveloper just in a sql worksheet I get this:
Bind Variable "v_str1" is NOT DECLARED
a...
5
Solved
I want to implement a bash function which test is the 1st argument is actually a variable, defined somewhere.
For instance, in my .bashrc :
customPrompt='yes';
syntaxOn='no';
[...]
function my_fu...
Lobeline asked 24/7, 2014 at 9:15
10
Solved
How do I restrict a class member variable to be a specific type in Python?
Longer version:
I have a class that has several member variables which are set externally to the class. Due to the way...
6
Solved
When I checked if these two were equal, they apparently weren't. Can someone explain why?
var string = "Hello";
var array = ['H', 'e', 'l', 'l', 'o'];
Why is (string === array) is false ?
EDIT...
Maturation asked 16/2, 2014 at 7:55
2
My team has some old bamboo pipelines, where secret and password are configured in bamboo variables and bamboo masks these values with ***** nobody knows the passwords now and it has not been docum...
Tomboy asked 6/1, 2020 at 6:34
5
Is there a way to set multiple attributes of the same object on a single line, similarly to the way one assigns values to multiple variables?
If I can write
a,b,c=1,2,3
I would like to have som...
Dressage asked 13/5, 2015 at 10:37
8
Solved
I want to mask my javascript variable value.Basically i am getting phone number fields value in variable and after getting it i want to mask it in some other format.
I have tried the jquery Mask p...
Equipoise asked 15/7, 2013 at 8:51
4
Solved
If we execute such two lines in any function, we will get an error, and this is logical because the variable b is defined after the initialization a=b:
int a=b;
int b=0;
But when we insert these t...
Thereinto asked 8/6, 2023 at 7:41
1
I'm creating an iframe dynamically like this:
let code = "<html><head><title> hello world <\/title><\/head><body><h1> hello world <\/h1><scri...
Nunuance asked 24/6, 2020 at 1:26
8
Solved
I have gone through these questions,
Python assigning multiple variables to same value? list behavior
concerned with tuples, I want just variables may be a string, integer or dictionary
More eleg...
Capitoline asked 25/10, 2015 at 15:58
8
I have created a basic HTML editor using a textarea and an iframe to preview HTML, CSS, and JavaScript changes. Here's the setup:
textarea,
iframe {
width: 300px;
height: 200px;
}
<textarea&g...
Drupe asked 19/7, 2023 at 20:23
5
Solved
Recently I came across flag variables, but I have no idea what they do.
I am little unsure about when to use a flag variable and how to go about it.
I Googled it but there weren't any specific ex...
Desmonddesmoulins asked 1/7, 2013 at 10:20
4
s3.tf
terraform {
backend "s3" {
bucket = "some-bucket"
key = "path/to/key"
region = "some-aws-region"
}}
How to pass the bucket and region values to this ...
7
Solved
Simple question, hopefully a simple answer:
I'd like to do the following:
private DateTime m_internalDateTime;
public var DateTimeProperty
{
get { return m_internalDateTime.ToString(); } // Retu...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.