Questions tagged [parameters]
Parameters are a type of variable used in a subroutine to refer to the data provided as input to the subroutine.
22,129
questions
0
votes
2
answers
11
views
Typescript: Function with Multiple Parameters AND optional Parameter?
I'm currently trying to figure out how to pass multiple parameter inside a function with the "..." operator while also passing an optional parameter with the "?" operator.
The ...
0
votes
0
answers
9
views
Dependent parameters in Reporting Services
Goodnight.
I tell you my problem. I have a report with several parameters, among them, these two: "@paramMarca" and "@paramModelo" both of the text type.
In the "default" ...
0
votes
1
answer
22
views
How do I access a parameter's description in AWS parameter store, using boto3 in python?
I am trying to pull a description from a parameter I have created in AWS parameter store. I can write the description as seen in this code below:
import boto3
import json
from datetime ...
0
votes
2
answers
19
views
Crystal Report Input Parameter Hyphen Error
I have an input parameter field in my Crystal Report for PO numbers which often include '-'. However, when my users try to input a PO with that hyphen, they get an error saying "incorrect syntax ...
0
votes
0
answers
33
views
How end user could query my SQL database with Power BI parameters?
Hello everyone I am a beginner in Power BI.
I have queried a SQL database from Power BI in "Import" mode because I need to make changes to this dataset. I have created parameters that I ...
-1
votes
1
answer
28
views
SQL query : need help in getting this query right
I have this code
ISNULL(@param, ") = "
Can someone explain how this = ” is working?
0
votes
0
answers
26
views
JavaScript - URL parameters not populating on next page
I have a radio button with specific values that I want to include in my URL parameters for the following pages (more than one). I have the parameters set up in the JS as var params.
in my, if-...
0
votes
2
answers
46
views
Springboot date entity problem "Failed to convert value of type 'java.lang.String' to required type 'java.util.Date'
When I tried to get with these url : http://www.localhost:8080/api/employee/search?startDate=2000-10-22&salary=10000
This error message shows up : "Failed to convert value of type 'java.lang....
0
votes
1
answer
23
views
No overload matches this call and Types of parameters '__0' and 'props' are incompatible when passing custom params to library function on typescript
I am using the react-toast-notifications to build my system and I had the need to create a parameter where I could pass the title of the toast notification, because of that now I have an alert on my ...
0
votes
0
answers
55
views
Why rvalue reference variables are used in std::make_pair()? [duplicate]
I was reading about the make_pair() template function in C++, and couldn't understand why its parameters are rvalue reference variables. Why shouldn't they accept lvalues as well, like a normal ...
-1
votes
1
answer
47
views
Can i define a parameter within a method for use in a for loop?
I'm trying to think of a very clean way to do this and while I find I could have endless if statements to do it, this seems easiest, but I'm stuck as to how to make it work.
public StringBuilder ...
0
votes
0
answers
25
views
Is passing functions as arguments in JS really needed?
I'm starting to learn JS and so far I have come across functions.
I understood how to pass a variable value between functions passing it as an argument in the function call and receiving it into a ...
0
votes
1
answer
36
views
Converting dictionary to url encoded data for passing application/x-www-form-urlencoded in python
I have a dictionary like this
data = {
"name":"test name",
"file_urls":[
"/Users/tarequzzamankhan/Desktop/instagram.webp",
"/Users/...
-4
votes
0
answers
19
views
I HAVE A LOT OF ERROR IN MY CODE: Too many positional arguments: 0 expected, but 2 found
I am currently making a quizzler app in flutter. I don't know the next step to do with this error.
This is my first error
Also this
In my quiz_brain file
also this
Thank you in advance for the ...
2
votes
1
answer
45
views
Using Functions in C like Instance Methods of Classes in OOPs [duplicate]
I made Some Data Structures in C, With Some Function Pointers.
#include <stdio.h>
#include <stdlib.h>
// Defining Sort Type of An Array To Efficient Uses.
#define __Sort_Type_Unsorted__ ...
0
votes
0
answers
16
views
Problem in dealing with parameter functions
I have a text as follows:
data = "Every year we go to Florida. We like to go to the beach. My favorite beach is called Emerson Beach. It is very long, with soft sand and palm trees. It is very ...
3
votes
1
answer
35
views
Ignoring a parameter if certain valuein Azure Pipeline
First question on Stack Overflow, apologies for any etiquette faux pas.
We have an Azure Pipeline for application delivery where the engineer or developer can select the environment the app gets ...
0
votes
0
answers
20
views
Separating instance creation, attribute update, and instance combination
The Python code I am working on separates instance creation, attribute update, and instance combination (see the simplified example below). Currently, I am relying heavily on dictionaries to ...
-1
votes
1
answer
22
views
Large Nested Defaults in TypeScript?
I have code similar to the following:
export type Bar = {
baz: number
};
export type FooConstructorArguments = {
config: Bar
};
class Foo {
construction({
config: {
...
0
votes
3
answers
48
views
How C++ call parameterized ctor to create object arrays?
I know in c++11 I can use initializer to create array/vector elements one by one like:
int ar[10]={1,2,3,4,5,6};
vector<int> vi = {1,2,3,4};
This is done manually, but what if I wish to ...
0
votes
0
answers
21
views
How to get rid of java.lang.NullPointerException while calling method in method in java [duplicate]
I'm making a command line Pokémon game, in which,
Taschenmonster.java has all attributes and methods of Pokémon
Trainer.java attributes and methods of trainer. The battle method in Arena.java executes ...
0
votes
0
answers
30
views
Why parameters with default value must be on the right side of any parameter without a default value?
Now, I know this question has been asked before, but I was not convinced with the answers given. So I have to ask it again. But this time, I should first explain here what was the answer and why I was ...
-3
votes
1
answer
35
views
What's the return type and argument of putchar()
I see that return type of putchar() is int,
int putchar(int char)
but
for(i=65;i<91;i++)
putchar(i);
gives output ABC...... How?Shouldn't it return int?
Plus, it turns out that I can use ...
1
vote
0
answers
24
views
Parameterizing SQL Query with Date
I am trying to implement parameter for my SQL query which will be executed using SQL Server agent Job on a scheduled basis. This parameter which sets the cutoff period (x) in days and job should load ...
0
votes
1
answer
13
views
POST XMLHTTPRequest not passing parameters in properly
I am trying to make a Stripe POST request using XMLHTTPRequests. My body is not being sent properly. I've tried a lot of alternatives and nothing seems to work. Why won't it recognize the parameter?
...
-1
votes
1
answer
34
views
Getting parameters of an object passed as parameter to a function in python
I'm looking for a way to extract the parameters of an object passed as parameter to a function.
For example:
class Object:
def __init__(self, a, b):
pass
def func(c,d,e = None):
'do something....
0
votes
1
answer
80
views
Jenkins parameters using groovy script
UPDATE
I have a simple pipeline where I want to receive in parameters multiple choices from a file.
In my file I have
@Test1,Accounts
@Test2,Services
@Test3,Accesses
and I want to have all of "@...
0
votes
0
answers
22
views
Why my Store Procedure is accepting NULL but not empty string i.e ' '
~CREATE PROCEDURE (ARG1 INT, ARG2 INT)
BEGIN
if ARG2 IS NULL Then
#STATEMENTS
ELSE
#STATEMENTS
END IF;
END//
CALL PROCEDURE ('119', '101')
CALL ...
0
votes
0
answers
16
views
lmfit doesn´t fit one of the parameters
I'm trying to fit an exponential function using lmfit, but one of the parameters is never optimized and the algorithm keeps returning a fixed scalar.
Here's my code:
from lmfit import Model
def ...
1
vote
3
answers
26
views
How to pass specified parameters in Javascript
I would like to pass value to specified parameters and use default value by optional parameters for the rest.
A sample is made as below.
Current result is 'b23'.
But I would like to obtain the result ...
0
votes
0
answers
20
views
scipy.minimize does not find correct parameters
I am trying to maximize a function called likelihood_H1 (that is quite long) using scipy.minimize. I do this by returning for example the -log of the value or just the negative of the value. These (...
0
votes
1
answer
13
views
Why do we need Hypothesis to build a model
Why do we need a hypothesis to build a model.? (In this case Linear Regression)
Instead, why don't we use a straight line equation to find the parameters?
0
votes
0
answers
8
views
How do I change swagger parameter component values (especially the 'required' one) when I use them in Path objects?
I'm working on documentation for a website backend, and I'm using Swagger UI. However, I'm having a problem. When I specify a path object, I need to specify the input parameters. like so:
parameters:
...
0
votes
1
answer
18
views
Why Flutter complains about 2 body parameters?
In the tutorial we see two body parameters: https://docs.flutter.dev/get-started/codelab
Like that:
body: const Center(
22
- child: Text('Hello World'),
23
+ ...
0
votes
0
answers
14
views
How to pass more than 1 parameter in @select attribute in basic-select Vuejs
I want to pass 2 parameters to the javascript function: 1. index, 2. selected object
HTML code :
<div class="form-group row" v-for="(row,index) in addRowArr" style="margin-...
-2
votes
0
answers
19
views
How can I pass parameters from a GoogleForm response after the Submit of a viewer? [closed]
I wrote a GoogleForm that I send to viewer users
Some response data have to be passed to a Google WebApp which processes them in order to provide HTML output
So after submit, the user should find a ...
4
votes
0
answers
75
views
Calling a Fortran subroutine in R [duplicate]
EDITED
I am trying to integrate R and Fortran, calling a Fortran subroutine in R. I'm new to Fortran, but I'm not new to R or to programming.
I wrote a subroutine in Fortran to calculate the sinc ...
0
votes
1
answer
43
views
Error: range must have an upper and lower bound. Inf and unknown() are acceptable values. Run rlang::last_error() to see where the error occurred
I want to tune the model using bayesian optimization by tidymodels but when defining the range of parameter values there is a problem. Anyone can help me??
set.seed(123)
splitting <- ...
0
votes
0
answers
15
views
xGBoost Parameter selection interpretation
I am tuning my xGBoost classification model, however, I am not sure which parameters to select.
After doing a grid search and training on the test set, I plotted the parameters against the error ...
1
vote
1
answer
49
views
How to check if a parameter pack contain all elements of other paraments pack
Example:
I have function A with some default arguments, and I want a function that take all the arguments of that function A to check with all arguments I giving. If function A contains all that ...
0
votes
1
answer
60
views
Is there a way to get or notice the default arguments of the function?
Example I have a lots of class, each have it own constructor with defaut arguments, and each have a fake_constructor function which have same arguments as the constructor so I can take the function ...
0
votes
0
answers
18
views
Tableau: # of purchases in each product category based on first category purchase
This question seems to be narrowly answered in a lot of tableau community posts but none of them quite meet the mark and are usually beating around the bush. What I want to replicated is the response ...
0
votes
0
answers
30
views
Is there a better way to get class constructor augments? [duplicate]
So. Example that I have a lots of class, each had it own constructor. And I want a function with take the augments of the constructor and do something with it.
class AA {
public:
AA(int a, float b,...
-1
votes
0
answers
25
views
Passing char* to a constructor error (C++) [duplicate]
I am writing a very simple program, where I try to create an object of a class "Stock" using the constructor with parameters. When I use it, the compiler does not recognize it existing. I ...
0
votes
0
answers
27
views
Functions with () and without
from datetime import datetime
mydatetime1 = datetime(2022,6,30,15,32)
mydatetime2 = datetime(2020,5,30,14,32)
diff = mydatetime1-mydatetime2
print(diff.seconds)
print(diff.total_seconds())
Hi, why ...
0
votes
0
answers
24
views
How to bind a C# int array to a number array in Oracle stored procedure
I'm trying to pass an array of integers from my C# code to a stored procedure. This is what I'm using:
C#:
...
OracleParameter P_POSSIBILITIES = new OracleParameter();
P_POSSIBILITIES....
0
votes
1
answer
17
views
Can you change the integer value of a parameter at the end of a subroutine in python?
for context a part of the code I am writing in python is that when a subroutine is run, it will add an integer, starting at 1, to an array by using append with an integer parameter that is equal to 1. ...
0
votes
1
answer
20
views
animation with tree.js does not accept my torus
I am new to Three.js and cannot work out why this animation does not accept the torus as a parameter. Without setting 'torusToBeMoved' as a parameter it works just perfectly fine..
const geometry = ...
0
votes
0
answers
9
views
RandomSearchCV set_params for the second best model attribute error
I have a randomsearch cv object(rs), which returned RidgeClassifer as the champion model. but since this classifer doesn't support predict_proba and i need to use predict_proba, i decided to use ...
0
votes
0
answers
5
views
How to utilize prior information of a parameter to set a value for this in a model?
I have been working on a probabilistic model and I need to initialize a set of parameters. So far, I set an interval of values for each of these parameters and loop over each value and calculate the ...