61 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
41
views
Gitlab predefined variable using dynamic value
I am a newbie to IT. I am working on a work project where a pipeline already exists. There is a trigger rule in the GitLab YAML file. It reads something like:
'$CI_COMMIT_REF_NAME =~ /^[Ff].*$/ &&...
4
votes
2
answers
73
views
Optimize with pre-defined variables
I am studying how to solve one problem with pre-defined variables.
For example, variable "x" must be one of the values below.
[2, 5, 6, 13]
But, I don't know how to modify my codes.
The ...
0
votes
1
answer
366
views
Is it possible to get the runbook name within the runbook environments?
I want to get the Azure runbook name within the environment sandbox of the runbook.
Is it possible to do that? Like, are there any predefined variables that we can get as in the case of Azure ...
0
votes
1
answer
43
views
Is there a way to get the predefined constants as name, not its value?
I am writing a code to generate dynamic prepared queries in PDO.
I have created an array that represents any table:
$tableUser=array(
"name"=>"user",
"columns"=...
0
votes
1
answer
364
views
How could I set C and gamma value for SVM in Matlab
I trt to train a pre-designed SVM with RBF kernel. I want to fix the C and gamma value before train. I use
Mdl = fitcsvm(Xapp,Yapp,'KernelFunction','rbf','KernelScale', 1,'BoxConstraint', 1,...);
But ...
0
votes
2
answers
57
views
Python - not exactly predefined 2D Array overwrites just all elements [duplicate]
Hey I want to create a 2d-Array with no predefined length and then replace the elements. without using numpy.
Here a simplified version with my Problem:
>>> test = 2*[2*[0]]
>>> test[...
0
votes
1
answer
55
views
Where are the predefined functions in Lua's files?
I'm looking to create my own scripting language, highly based off of lua (im planning on it being lua but easier to understand for me) so I need to know where the predetermined functions / variables ...
1
vote
1
answer
287
views
How to define variables in a callback without parameters
In Puppeteer's evaluate function, I can access variables that seem to be predefined, but only in the scope of the function:
// Excerpt
page.evaluate(() => {
alert("Hello world!!");
});
...
-1
votes
1
answer
166
views
python - decode an array of data into predefine value
I am new to python. I would like to ask how to decode an array of data in python, for example
[ 1 2 3 4 5 6 7 8 9 10 4 3 2 4 11 12 13 14 3 2 1 3]
and I wanted the output to be like:
if data = 1, ...
1
vote
1
answer
55
views
Why type-casting don't properly work with $. in Ruby?
I have a Ruby code as shown below, Try it online!
loop{p$.+=1r}
and another one, in which I just divide the 1r by 2 as shown below, Try it online!
loop{p$.+=1r/2}
As far as I can guess, the type-...
-3
votes
1
answer
232
views
How to check and extract words from url
Documentation for Go's built-in regex pkg is here: https://golang.org/pkg/regexp/
Regex tester in Go here: https://regoio.herokuapp.com
I have a list of predefined words:
christmas, santa, tree ( -&...
0
votes
1
answer
375
views
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
...
0
votes
0
answers
384
views
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 ...
0
votes
2
answers
1k
views
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\...
-1
votes
1
answer
644
views
C++ Access violation reading location 0xFFFFFFFFFFFFFFFF when using __func__ identifier [closed]
I am using Visual Studio 2017 and I set the project to use ISO C++14 Standard under C/C++->Languages
The debugger cannot recognize __func__ predefined identifier and it crashes if I try to use it as ...