Questions tagged [parameters]

Parameters are a type of variable used in a subroutine to refer to the data provided as input to the subroutine.

0
votes
0answers
8 views

Mixture Model with 6-Class Classification Problem

If I have a 6-class classification problem where the dataset contains 9 input features. If I decide to build a classifier using a "mixture of mixture". i.e. using a Gaussian mixture model for each ...
0
votes
1answer
29 views

Code isn't passing a security check, how do I make my parameter binding better?

My code has to pass a security check but it didn't because of a sql injection risk. They have requested that I use parameters which I thought I already used, so now I wonder how to make my code better?...
0
votes
0answers
10 views

Warning: key() expects parameter 1 to be array, null given in C:\xampp\htdocs\mom\functions.php on line 165

I have a problem with key() and current(). I want to make a fuzzy logic application. When I change the variable it works but errors happen in the rules. function to_string(){ global $HIMPUNAN, $...
0
votes
1answer
13 views

Get parameters from generic functions' declaration - TypeScript 3.3

I don't know how to get type of parameters of functions which are declared in interface. I need to have proper type checking of them.. Probably I need to use: Parameters class from TypeScript version: ...
0
votes
0answers
7 views

How can I pass HQL parameter in Oozie workflow using Hue?

http://gethue.com/drag-drop-saved-hive-queries-into-your-workflows/#comment-78368 Did it not working at currrent version? ex, Hue4.3 etc.. Parameter Name is 'zip' when submit workflow. It's not '...
0
votes
1answer
33 views

URL parameters ending with '#'

What is the purpose of using # at the end of a URL with parameters ? i.e. https://www.example.com/mypage?name=George&profession=Engineer# I have noticed that in my browser if my URL is like this:...
-1
votes
3answers
46 views

Passing a Struct definition in C#

I have an issue with passing a struct definition to a function. Not an instance of a struct, but the definition. We are open to alternative methods of doing what we want, but for right now, this is ...
0
votes
0answers
14 views

Passing a selected table value through mutiple scenes JavaFX

I want to pass a selected team name from a first scene, through to an info page on the team, and then to a page for results specific to that team. I've attempted to make an example very simple. @FXML ...
0
votes
1answer
30 views

What is the efficient way to write code where argument with same value is passed to a function that is called multiple times ? (python)

def filtered_imagesIds(imageParam,serverId) ###code to get subset of data provided using serverId def oldest_image(filteredImageParam) ### code to find oldest image mainfunc() ...
2
votes
5answers
39 views

python: how to change the value of function's input parameter?

I tried to modify the value of a string inside a function, like below: >>> def appendFlag(target, value): ... target += value ... target +=" " ... >>> appendFlag <...
0
votes
2answers
49 views

Passing a Func<int, int> to Task.Run() in C# without using lambda expressions

I try to get my head around the Task/Func/Action/await functionality of C# but still need your help: I have a button click event handler in my gui thread that, when called, does the following: Func&...
0
votes
2answers
48 views

Generic function with proper signature

I don't know how to declare second parameter of function boom to have proper type checking, I mean if somebody is sending to function boom first parameter as "foo1" then the second parameter should be ...
-2
votes
0answers
62 views

Ruby - Do each_key with split to and get parameter value

Currently I'm scanning a string for parameters and replace them by giving values (as the code below) string ='Im {a} & {b} is foo' parameters = { '{a}' => 'okei', '{b}' => 'life' }...
0
votes
2answers
17 views

SqlDataAdapter.Fill never ends when I use parameters

I have a issue when I use parameters in a select query. sqlCommand cmd = new SqlCommand(con); cmd.commandText ="SELECT TOP 1 * FROM tbl WHERE SN=@SN" cmd.Parameters.Add(new SqlParamter("@SN", "...
0
votes
1answer
15 views

Error Variable Undefined when I Add a parameter in my action form

I'm trying to pass the parameter that I have in my route file, into my form. And when I do it, the error of Undefined Variable appears <form action="{{route('capitulos_destroy_multiple',$curso)}}" ...
1
vote
2answers
51 views

Passing a parameter with an onclick event

I'm working on a project with API calls. Basically, I need to be able to pass a parameter to a function with jQuery when a certain button is clicked. I am working on a project that calls an API to ...
0
votes
0answers
19 views

Add Unrelated Parameter to Query or Form

I have a form based on a query. In the query, for the first field (species), I add this to the criteria: [what species?] This way, people can search by the species they want. No worries. The query ...
0
votes
2answers
28 views

Struggling to understand how the value of certain function parameters are determined

I often do not understand how the value of certain function parameters is determined. Take the following code snippet for example: function gotItAll(res) { $('#actionscreen').modal('hide') if (res....
1
vote
2answers
46 views

Volley parrams, how to send the value 95 so the server won't receive “95” but it will receive 95

Ok so the problem is that I tested in Postman { "country": "Australia", "windProbability": "90" } wont give me results but { "country": "Australia", "windProbability": 90 } works ...
0
votes
1answer
20 views

How can function accommodate calls passing different objects as parameters?

I have more than one call to the same function and each call passes a different options object. For example: function masterStart() { A(optionsA); A(optionsC); } I don't know how the ...
1
vote
3answers
56 views

How to pass a dynamic 2d array of strings as a parameter in C++

I am trying to implement a binary tree as a 2d array. I want the user to enter the required height of the tree and the program should give an appropriate size array. Then, I want to print the array, ...
0
votes
0answers
32 views

Post parameter removed but reappear after Ajax call

I am building a quiz. On button click for each answer, an ajax function is called and return a Json Response that reload the current route in order to display the next question or the results of the ...
0
votes
2answers
39 views

Nested resources / pundit - param is missing or the value is empty:

I've been on a big trouble for 2 days and need you help !! I have 2 models : garden and booking (with nested resources and using pundit). From the "show" of garden, I want to click on a button that "...
0
votes
3answers
33 views

How to filter request parameters based on user role in Laravel?

I have an app that has admin, manager and employee roles. A manager can edit fields A, B, C of all employees. An admin can edit fields A, B, D, E of all users. Question: How should I filter the ...
0
votes
1answer
22 views

Parameter 'directory' is not a directory error coming in Android Studio

This error coming when I am building a Android project in Android Studio.Please tell me How to solve? Parameter 'directory' is not a directory
2
votes
0answers
33 views

Posting to a server multiple parameters at once - React Native

I have a project where I am fetching from an API some data and I am rendering those data in React Native. After rendering, I am displaying a list of documents and when I click in one of them I pass ...
1
vote
1answer
17 views

Retrieve valid values for parameter PaperSize of Set-PrintConfiguration

We're trying to verify valid input for the parameter PaperSize of Set-PrintConfiguration. We're trying to create an array with all possible accepted values for the argument: $testCommand = Get-...
0
votes
0answers
30 views

False parameter estimates with NLS in R - why is this the case?

I am trying to fit two sales diffusion models on sales data of two consecutive product generations. Ultimately, I need to fit the models to determine the optimal launch timing of the second product ...
0
votes
1answer
12 views

Embedding parameterised plotly object in r-markdown

I am generating reports using r-markdown, knitr, ggplot and plotly. My plot objects are passed in as parameters. I can generate ggplot output thus: ```{r echo = FALSE} plot(params$plot_id__0_1) ``` ...
0
votes
0answers
8 views

unable to set parameter.php file to run it on local host xamp which is on drive c

i want to run it on localhost there is a read me file which says Edit library/parameters.php file to match your working environment.below is the source code kindly guide me how can i edit this i am ...
2
votes
2answers
58 views

Why does PowerShell not recognize quoted parameters?

Why does PowerShell treat quoted parameters differently when you invoke the script directly (in a PowerShell console or ISE) or when you invoke it via another PowerShell instance? Here is the script (...
3
votes
2answers
42 views

Ref parameters not changing value? c#

I'm currently writing a simple program for college work, and using a function to detect characters in a string and remove them, the function is supposed to output a bool and the new string is supposed ...
0
votes
1answer
32 views

Implementing references to objects of many classes in the constructor of a new class with parameters

How to correctly implement a class constructor: class NewClass { public: NewClass(Class1 &Name1, Class2 &Name2 ) ... }; if the number of different classes Class1 and Class2 is ...
1
vote
1answer
32 views

How to Save a number from Access database using Parameter?

I want to update the number of goals that a player scored so if he scored a goal I want to do an update for his number of goals. I need for it to get the number of goals that the player has from the ...
-1
votes
1answer
28 views

How can I save int from database to a parameter in C# for updating and sum to database [closed]

I want to update a number of goals that a player scored so if he scored a goal I want to do an update for his number of goals. I need for it to save the num of goals that the player got from the ...
0
votes
0answers
26 views

How to add single quotes in sys.argv in python

I'm trying to send a sql query as parameter for a python script in a pipeline of jenkins (jdp) but the result is an error because is not passing the single quotes query ="DELETE FROM TABLE WHERE ...
0
votes
1answer
21 views

Stored Procedure Parameter Like Check

I have a stored procedure that when ran shows a list of all the filenames in a table. I want it to be optional to pick the file name that you are looking for. Here's my code : CREATE PROCEDURE [...
1
vote
2answers
64 views

ValueError: Could not process parameters in Python/MySQL

i am a newbie I want to prevent the duplicate usernames every time people do registration. Here is my snipped code: def submit(self): username_info = username.get() username_password = ...
2
votes
1answer
29 views

Passing Project parameter to dtexec

My SSIS package has a project parameter called SMTPServer. I pass that parameter like below when executing dtexec: "E:\Program Files\Microsoft SQL Server\110\DTS\binn\dtexec" /Server {myDBServer} /...
2
votes
1answer
46 views

DialogFlow - Modified 'Bike Shop' Sample Won't Work

I'm having some serious difficulties getting a modified version (or the original version, for that matter) of this Bike Shop example to work. I'm attempting to duplicate the basic functionality, but ...
1
vote
1answer
35 views

Case or if statement in SSIS expression

I have a project parameter in SSIS that I want to use to be able to change our data source connections. I'm trying to write an expression in the connection properties but I'm coming up short. I want ...
0
votes
1answer
53 views

syntax error at or near $1 value pg-promise node.js

i have this code this.createtablePy = function(){ db.none("CREATE TABLE IF NOT EXISTS $1 ( $2 serial NOT NULL, data jsonb", ["pyTable", "id_py"]) .then(()=> { console.log("done pyme table ...
2
votes
2answers
30 views

SQL Scalar-Valued Function

I am looking to retrieve a value of the profit (FilmBoxOfficeDollar - FilmBudgetDollars) based on the Studio given as a parameter to the function. USE Movies; GO CREATE FUNCTION fnmovieProfits(@...
1
vote
0answers
15 views

Sending Params To Child Scene in React Native Router Flux

My problem is sending param to Child Scene in React Native Router Flux. This is my Router.js : <Router> <Stack key="root" hideNavBar> <Scene key='anotherScreen' ...
-1
votes
2answers
49 views

Is their a way I can make a workable chess pawn move set using parameters?

I tried asking this question before but didn't word it all that well so i'am try again. What I want: Have a function that takes two parameters, side (dark or white) and number (1-9). In the ...
7
votes
1answer
65 views

Could adding variadic parameters to a function break existing code?

Is adding a variadic parameter to an existing Go function a breaking change? For example: // Old function func Foo(a int) // Updated to: func Foo(a int, params ...string) Callers of the API can ...
0
votes
0answers
32 views

How to pass params in hash params in after_create callback in rails?

I am trying to pass params to after_create callback but it is giving error as: NoMethodError - undefined method `ca_authorizations' for :user:Symbol: components/patches/customer_account.rb:in `...
2
votes
4answers
41 views

Can I call props.navigation in Flatlist data?

I have a const declared which has parameters passed from another page. const obj = this.props.navigation.state.params.item; const itemArray = Object.values(obj.name) Now, i am calling itemArray in ...
-2
votes
0answers
30 views

Java How to hand over parameters in this scenario?

First of all, hello and I have absolutely no idea to put my problem into a short question. Now to the Problem: public class NetworkElementPanel extends JPanel { NetworkElementContentPanel ...
0
votes
0answers
16 views

Why is this parameterless constructor not being called? [duplicate]

main.cpp: int main() { std::cout << "main()" << std::endl; Game gameState(); std::cout << "main() 2" << std::endl; return 0; } game.cpp: Game::Game() { ...

http://mssss.yulina-kosm.ru