Questions tagged [predefined-variables]

59 questions
0
votes
1 answer

Inherit Gitlab predefined variables

I have a Gitlab CI as below. My purpose: When build stage fail, notify stage will be trigger and send email to recipients build website: stage: build script: ... send email: stage: notify when: on_failure script: #send email to…
0
votes
0 answers

What's the most efficient way to simulate a car's ECU logic?

I've been thinking a lot lately when driving my car - inside the ECU there is a memory module with pre-calculated values for almost anything. For example, the ECU can calculate how much fuel to inject based on several readings such as throttle…
0
votes
2 answers

How we can use Azure DevOps server 2019's Predefined variable while using ROBOCOPY in bat script

I have created one batch script, in this script I want to use Build.SourcesDirectory variable. Here is the batch script: ROBOCOPY $(Build.SourcesDirectory)\myfoldername \\servername\destinationfolder\Copy /V Also tried this one: ROBOCOPY…
0
votes
4 answers

Style a class only inside a table

I'm using a CMS with predefined classes (cbFormFieldCell). So I can't change some class elements because they are used at some other parts of the website. If I change the format for every element of that class the website is broken. I want to…
0
votes
1 answer

PHP predefined variable storing Url

Even if they are quite different I'm going to compare to php predefined variables: $_SERVER['HTTP_REFERRER'] $_SERVER['PHP_SELF'] the first is giving me the 'previous page' including the GET parameters (Ex. mypage.php?id=1) the second one is…
luca
  • 36,606
  • 27
  • 86
  • 125
0
votes
1 answer

Class template instances limited to predefined objects

I want a class template template Shape, where the template parameter N represents the dimension of the Shape. There should be a limited number of predefined Shapes, such as Shape<2> SQUARE, Shape<3> CUBE and Shape<3> SPHERE. I might…
0
votes
1 answer

class template without public constructor as member of another class template

I have a class template Shape, which contains information about certain shapes (which can be three- or two-dimensional). I only want a few predefined shapes (cube, sphere and square) to be available. All these predefined shapes have the same…
JorenV
  • 373
  • 2
  • 10
0
votes
1 answer

Finding installtion directory of a PHP app

PHP $_SERVER['...'] variables such as for 'PHP_SELF', 'SCRIPT_NAME', 'REQUEST_URI' have me somewhat confused. I've seen (at least some) previous questions about these and can do some testing in some environments, but I've run into environments…
user3250335
  • 457
  • 2
  • 4
  • 13
0
votes
0 answers

State Pattern in C++ with undefined variables

Hello I tried to implement State pattern in C++ based on code from sourcemaking site that has been written for Java. #include #include using namespace std; class State { public: virtual void pull(class Fan* f) = 0; }; class…
0
votes
0 answers

for loop with a predefined value as counter

I'm working on my program when I tried a for loop with a predefined integer. int row = 0; [...] //row = 50 for(row = 0; row < y; row++) { [...] } For whatever reason, even if I specify that "row = 0;" before the while loop the code just doesn't…
Omricon
  • 1
  • 1
0
votes
2 answers

Pre declared dictionary size limit?

I have a big dictionary i constantly reference in my code so i have it initialized at the top: import ... myDictionary = {'a':'avalue','b':'bvalue',...} code ... But when i try to get values, some of the keys are not found. It appears as though…
makoto
  • 9
  • 1
  • 2
0
votes
1 answer

What is the predefined focus() function that is available in Chrome?

Today I run into something unexpected when writing JavaScript in Chrome (version 37). It appears Chrome has a predefined focus variable available as a global. Upon further inspection via developer tools, I've found that this variable is a…
bodacydo
  • 75,521
  • 93
  • 229
  • 319
0
votes
1 answer

Is $< enumerable

$< is used with map in the following code. Is $< enumerable? $<.map{|l|p (0..9).to_a.repeated_permutation(4).count{|m|m.inject(&:+)==l.to_i}}
shin
  • 31,901
  • 69
  • 184
  • 271
0
votes
1 answer

How to generate exe file with some settings from my application

Basically, I just wan't to know how can this be achieved. For example, suppose that I have to exe files, app1.exe and app2.exe. Now, app2.exe does a specific job basing on some settings defined on it's variables. I wan't to know how can I code the…
Trim Kadriu
  • 421
  • 3
  • 19
0
votes
1 answer

What type of data is in MessageBoxButton.Ok and MessageBoxButton.OkCancel?

If I wanted to send either MessageBoxButtons.Ok or MessageBoxButtons.OkCancel to a MessageBox and I wanted to store the correct value in a variable, to what type should I Dim it? Dim MyVariable As ______ If Then MyVariable =…
Dave C
  • 37
  • 2
  • 7