8,943 questions
2
votes
3
answers
151
views
Calling exe with Start-Process is not getting arguments correctly
I have a tool for editing the VersionInfo portion of our executables so that we can tie all of the different components to one installer part number. The tool I am using is resourcehacker (https://www....
3
votes
1
answer
128
views
Sequence association vs. modern Fortran interfaces
Consider the following (traditional) Fortran code, which performs matrix-vector multiplication z = X y, but instead of the full matrix, we exclude the top two rows:
subroutine matrix_vector_product(m, ...
2
votes
0
answers
59
views
Rust lambda parameter passing [duplicate]
I just learned that in rust if you want to pass a reference in lambda:
let player_scores = [
("Jack", 20), ("Jane", 23), ("Jill", 18), ("John", 19),
...
2
votes
1
answer
231
views
How can I make a function that accepts unlimited parameters of type "std::string", but only one parameter that is a pointer?
I have a program in C++, in which I need to make a function that accepts unlimited parameters of type std::string, but only accepts one pointer, which ideally I want to be the last parameter when the ...
4
votes
3
answers
84
views
How can I make the child component detect changes to properties inside an object passed via @Input()?
I'm working on an Angular project (v16), and I have a parent component passing data to a child component via an @Input() property. However, when the parent updates the value, the child component doesn'...
0
votes
0
answers
90
views
HTTP Error 500 Response Header Too Long Error In Netsuite suitescript 2.1
I hope you are doing well! I have created custom suitelet page to show saved search results in a suitelet sublist with checkboxes to select items and customers. Also developed client script to pass ...
2
votes
1
answer
145
views
8051: Problem to pass function parameters from C-call to Assembler function
I'm using the Raisonance C-compiler (V6.12) and the assembler for a 8051 microcontroller.
To improve performance I have to use some assembler functions (not inline). That works nice as long as the ...
2
votes
1
answer
230
views
Can I have my cake and eat it w.r.t sequences of polymorphic value types?
I am designing a certain part of a library and considering whether or not to use polymorphic value types of some kind . If you don't know what those are and what the motivation for them might be, see ...
1
vote
0
answers
44
views
1-D flow model in lsode in r
I want to create a very simple stream model in R for demonstration purposes, and I want to use the deSolve package to keep things fast. What I would like to do is have a vector of each concentration ...
1
vote
2
answers
112
views
The passing of 2-dimensional arrays to functions in C by only stating the size of the second dimension
When passing a 2-dimensional array to a function in C, I normally just pass it by using a single pointer.
Example : void process_array(int* arr, int rows, int cols)
I see 2-dimensional arrays also ...
0
votes
0
answers
43
views
Passing string variables with Start-Process powershell.exe [duplicate]
Good evening everyone,
Im trying to remove some stuff and it must be in a separate powershell window. The problem is than i cannot pass the path variable to that powershell Window, it should be ...
2
votes
1
answer
122
views
Is it ok to send a value to the lvalue argument using std::move?
I have a function of the form void foo(std::string str);
I want to use it in two scenarios:
send a copy of the original value to it:
std::string myString = "any data that I want to keep in its ...
1
vote
1
answer
105
views
Dynamic parameter substitution not working in HTTP connector URL with Marketo API
I'm working on a Boomi integration with the Marketo Bulk Export API and encountering an issue with dynamic parameter substitution in HTTP connector URLs.
The Process Flow
My Boomi process has these ...
0
votes
0
answers
93
views
Passing any number of parameters as a parameter [duplicate]
I have a problem passing parameters from one function to another.
I have a function ifOkay(), it takes any number of parameters. I want to pass all these parameters to the ConvertFmtToCString() ...
1
vote
1
answer
106
views
Mocking a C# method with an out parameter to return different values with Moq [duplicate]
I have a C# method with an out parameter:
public bool TryGetNext(out Bestellung? bestellung);
When setting up a mock for this method using Moq, how do I:
Correctly handle the out parameter in the ...
2
votes
1
answer
104
views
How *actually* does this type-conversion argument-passing happen in this function call in C++
I'm trying to figure out how C++ actually breaks down the argument-passing when the formal argument is a reference and the actual argument is of a type that requires type-conversion.
Here's an ...
0
votes
1
answer
1k
views
Passing --args to cloud run jobs
I'm trying to pass argument to cloud run jobs in this way:
gcloud run jobs execute aa-hello-world --args="--test1","hello","--test2","world"
(In local works as ...
-1
votes
1
answer
129
views
How do I use the printf command with a format string beginning with "-"? [duplicate]
I have some items:
items=(one two three)
And I want to print them with leading -, to give this output:
- one
- two
- three
The obvious format string fails:
printf '- %s\n' "${items[@]}"
...
0
votes
0
answers
27
views
I am trying to pass a BigQuery stored procedure (has one input date parameter) to PowerBI. and also I want that parameter to bind to a slicer
Structure of BigQuery stored procedure:
with cte
(
select ....
)
select cols
from table1
join cte
where col = dateparam
union all
select cols
from table2
join cte
where col = dateparam**
...
0
votes
2
answers
101
views
HTML: image name as url parameter does not work?
I have a HTML page which that using an image name as URL parameter. Why doesn't show the image, what do i wrong?
<!DOCTYPE html>
<html lang="nl">
<head>
<script src=...
0
votes
1
answer
84
views
Material parameters being reset after setting via script
var node = currently_selected_MeshInstance3D
var materials = []
for i in range(node.get_surface_override_material_count()):
var mat_or = node.get_surface_override_material(i)
if mat_or and ...
0
votes
1
answer
87
views
Python Tkinter Buttons: Passing arguments via lambda is not working
I am trying to get the input text from an entry and based upon the length of the text, perform some other things. My code looks like this:
entry = tk.Entry(root)
entry.grid(row=8, column=7, rowspan=2)
...
1
vote
2
answers
87
views
how do I turn on a param switch from an env variable?
How do I turn -one on with the environment? "-one" Ends up in the opts string if I don't specify one, or it's ignored.
function test-run {
Param (
[switch]$one = $false,
[switch]$...
2
votes
4
answers
117
views
Iterating over an Array
I tried this block of code and it yields two different results
public class PassArrayToFunction {
public static void increase1(int[] arr){
for(int a: arr)
a += 1;
}
...
0
votes
1
answer
172
views
typer.Option in python
I have a typer cli command like this:
@app.command(
no_args_is_help=True,
help="Test command help text"
)
def test(name:str = typer.Option(
None,
"--test",
...
1
vote
0
answers
48
views
Powershell special treatment of @args [duplicate]
I am experiencing very odd behavior. It seems the $args/@args variable in powershell is getting special treatment and I don't understand why.
If you construct an object with the same exact types and ...
0
votes
0
answers
54
views
How to dynamically Access `c:set` defined values in JSF Facelets (Primefaces Datatable)?
The value defined by c:set refers to a var (name of the iterator variable used to refer each data), but the column values are not displayed.
How should it be defined to be displayed correctly?
<c:...
1
vote
4
answers
77
views
How to create user-defined function that takes variable names as input (VAR) and returns 1 or 0 depending on whether RSE_VAR < 0.3 or unwt_denom > 50
I have a dataset, input_ds_wt that contains values for RSE_VAR and wt.mean_VAR for many variables, VAR.
input_ds_wt = structure(list(id = c(1, 2, 3, 4, 5, 6), wt.mean_v1 = c(1, 1,
1.3, 2.3, 1, 0), wt....
-1
votes
1
answer
40
views
Shell parameter not being received [duplicate]
I am trying to create a shell script that updates my public ip to the DynU service.
this command works fine in the terminal
wget -O - v4.ident.me 2>/dev/null && echo
The issue comes when I ...
0
votes
2
answers
99
views
Hydra does not allow any command line script in Azure ML
I am trying to pass data from one component to the next in Azure ML pipeline.
I am able to do it in a simple code.
I have 2 components and I am defining them as below:
components_dir = "."
...
0
votes
1
answer
51
views
Expressions in azure devops templates not working when variables used as parameters
I am building a generic template to format variables int he way my pipeline needs them.
format_vars.yml:
parameters:
- name: var
type: string
variables:
var_formatted: ${{ lower(parameters....
0
votes
2
answers
110
views
How to mutate across multiple columns when dataframe is input parameter within function [closed]
I have many dataframes that all have the same variables and structure. I would like to go from individual level data in each input dataframe, and using functions, summarize the input dataframe across ...
0
votes
0
answers
41
views
Implementation of += for Python lists as related to argument passing [duplicate]
I am reviewing a Python workbook for an author who claims the following:
Immutable parameters like integers, strings, or tuples are passed by value
and any changes to these parameters within the ...
0
votes
0
answers
49
views
passing parameter to Function inside of swal after $.ajax call
I am new to Javascript and jQuery. I am running into an issue passing data to my function, ProcessFileFromGrid() in the onClick event in JS. It all tests out fine, but then I wanted to do something ...
1
vote
2
answers
69
views
C# Pass criteria of input validation as parameter
I have simple function of input validation:
private static int GetInt()
{
int tryInt;
while (true)
{
if (int.TryParse(Console.ReadLine(), out tryInt))
return tryInt;
...
0
votes
1
answer
59
views
How to get a function call argument string name, inside the same function. Using that as "extra parameter", avoiding adding an extra parameter [duplicate]
Having any Python function as:
def function1(param1, param2):
#...
return 0
How would be possible to get a param string name (variable name) used in the function call? ideally getting this ...
2
votes
1
answer
62
views
C++: Template specialization of class member function, differing from another member function only in accepting parameters by reference, not by value
Within template class Bank<T>, my goal is to create an overload for type Account to member function void Bank<T>::makeTransfer(T, T, const double), of signature void Bank<Account>::...
0
votes
0
answers
58
views
Passing a variable to msiexec in argumentlist doesn't work
So I've got this super simple script that uses msiexec to install a MSI, but it doesn't take the one of the flags. This is the the format that installs correctly:
msiexec /qn /i "C:\temp\...
2
votes
2
answers
104
views
How can I define a vararg with three types in Java?
Since I need a Java method to receive any number of objects of three specific classes I decided to use a vararg ... to implement it. However, I have the restriction that these three classes are:
java....
1
vote
1
answer
113
views
Passing a large object to async task in C++
I have program that receives callback calls from a library when messages are received. The callbacks' signature is void on_message(const MyLargeObject &my_large_object);
My code for reacting to ...
1
vote
0
answers
160
views
How to get detailed information about passed parameter in Delphi?
I want to implement a function that accepts a general parameter and provides detailed information about the parameter, such as its type, value, and if it's an object, its properties.
For example, I ...
1
vote
1
answer
128
views
Passing parameter using String interpolation to test case name
I have a test to be run on a set of pages. I am trying to run it as Parameterized test.
2 test cases cannot have same name so string interpolations used to give them a unique name as can be seen in ...
0
votes
1
answer
329
views
How to Configure CDC in Azure Data Flow with Parameterized Datasets for Daily Partition Processing?
I am fairly new to Azure Data Factory (ADF) but have been learning and experimenting with some of its advanced features. I'm currently working on a use case involving Change Data Capture (CDC) and ...
3
votes
2
answers
68
views
Is there a way to make the output from one bash command go to a user selected location?
I'm writing a bash script that amongst other things, starts a user specified command, sending the output to either file, file and stdout, or just stdout as required.
I don't like the duplication of ...
-1
votes
1
answer
23
views
How to ensure persistence when passing data beween pages?
I had to create an Appointment page using react native and another page that displays all the appointments a "client` has made.
However, I'm unsure how to pass data/parameters from the ...
0
votes
2
answers
92
views
How to pass parameter pack by reference and pointer?
How to pass parameters to a function by reference and through a pointer?
I have an example in which I try to call one of two write functions of the CFoo class. The example compiles if I specify two &...
0
votes
1
answer
78
views
Passing Data Class Properties as Parameters in Function without Redundancy in Kotlin
I have a data class representing user settings:
@Serializable
data class UpdateSettingsRequest(
val isNotificationsOn: Boolean?,
val isDarkMode: Boolean?,
val language: String?,
val ...
0
votes
1
answer
143
views
Setting Query Parameters for External Call activity in Azure Data Factory
I'm trying to query the open source Yahoo Finance API using Azure Data Factory.
I have a dataset, which is set up like this:
I am calling this API in a data flow. The second line of the data flow ...
0
votes
1
answer
98
views
Why the structure pointer "p" in the following code is not updating with the "temp" value assigned to it? [duplicate]
#include <stdio.h>
#include <stdlib.h>
struct node {
int data;
struct node *link;
};
int main(int argc, char *argv[]) {
struct node *p;
p = NULL;
Append(&...
1
vote
0
answers
63
views
Passing Parameters to a .c executed with execl in C
In C, if I use the execl command to execute another .c file, is there a way to pass parameters to this file that it can use during execution?
In my problem, I have C code that uses execl to execute an ...