Questions tagged [parameterization]

157 questions
2
votes
1 answer

MySQL Connector/NET's MySqlCommand not using Parameters

So I'm having some issues with the MySQL connector (specifically for .NET). Normally, I'd just not use parameterization -- although I realize that doing so leaves my program vulnerable to SQL injection. Unfortunately, however, I can't just do that;…
Dan Jesensky
  • 187
  • 12
2
votes
1 answer

OOP: proper class design for database connection in derived child class?

I'm coding a long-running, multi-threaded server in C++. It receives requests on a socket, does database lookups and returns responses on a socket. The server reads various run information from a configuration file, including database connectivity…
CXJ
  • 4,301
  • 3
  • 32
  • 62
2
votes
1 answer

What is a geometry image?

What are geometry images and how can I create them ? It's a little weird ... I need to create geometry images from mesh models and vice versa. Sample Geometry Image + Normal Map
Rostamiani
  • 21
  • 2
1
vote
1 answer

Mysqli parameterization with named values and specific types

I'm learning about parameterization and I see some queries use this notation :varname in the query being prepared and then binding like so: bindParam(':varname', $varvalue). Then I see some where they just use ? in the query being prepared and then…
Matthew
  • 15,282
  • 27
  • 88
  • 123
1
vote
1 answer

JMeter : How to read particular row data in csv file based on a column value?

I am new to Jmeter and doing a POC to do a load test on a web application. What I am trying to do: I have a total of 4 user logins(surgeons). Each Login is associated with 'n' number of patients. I've created 2 CSV files one with the user login and…
Tara
  • 11
  • 2
1
vote
1 answer

How to force Pytest to execute the only function in parametrize?

I have 2 tests. I want to run the only one: pipenv run pytest -s tmp_test.py::test_my_var But pytest executes both functions in @pytest.mark.parametrize (in both tests) How can I force Pytest to execute the only get_my_var() function if I run the…
Diggy
  • 115
  • 8
1
vote
0 answers

Mean vs. residual parameterization in JAGS/BUGS

I have two different versions of a state-space model in JAGS. Both yield equivalent inferences, but are wildly different in terms of run-time and convergence. The only difference between the two is the way of expressing process error. This happens a…
Matt Tyers
  • 2,125
  • 1
  • 14
  • 23
1
vote
1 answer

Declaring a constant with a parameterized width

I want to declare constants with a parameterized width. For example, in this piece of code: module mux2to1 #(parameter w = 4) (output [w-1:0] O, input [w-1:0] i0, i1, input Sel); assign O = (Sel)? i1 : i0; endmodule module M1 #(parameter n = 4)…
Lucky
  • 25
  • 4
1
vote
1 answer

What syntax references Pipeline parameters in the where clause of a SQL query of 'Import Data' modules in Microsoft Azure Machine Learning designer?

I have created a pipeline in Microsoft Azure Machine Learning designer. I have added a Pipeline parameter myNumber in the pipeline settings, with a valid default value, to accept the unique ID of the asset in our DB so that the pipeline can return…
1
vote
1 answer

Why does parameterizing a LIKE predicate result in a higher cost?

I am using SQL Server 2016 Enterprise Edition and saw some curious behavior in regards to parameterizing a LIKE predicate. Here is some sample code to demonstrate the issue. The CUSTLABEL field has an index on it. The unparameterized last query…
fthurber
  • 11
  • 1
1
vote
1 answer

Is there any way where we can calculate parameter covariance matrix instead of correlation matrix in python lmfit package

I have re-parameterize Arrhenius equation of form k = kref*exp(-E/R((1/T)-(1/Tref)) and i wanted to estimate the values of parameters E & kref which i got from lmfit package and correlations between it too. However the whole idea of…
user14466123
1
vote
1 answer

how to get a seam selection file?

I want to use CGAL::Surface-mesh-parameterization to process a sphere Triangle mesh, but I don't know how to create seam selection file. This is…
1
vote
1 answer

Remotely change parameters values from the outside (like XCP)

I am developing an application in C on an Embededd Linux platform. I would like to have a way of setting values of variables (i.e.: parameters) from the outside (calibration protocol) Example of a parameter would be the initial value of a counter…
godo
  • 195
  • 1
  • 11
1
vote
2 answers

Getting the type of parametrization of an instance of a parametrized class in scala

Im quite new in Scala. I need to get the parametrization of a class. How can I do this ? the class looks like this: class OutPort[T](name: Symbol, owner: Component) extends Port[T](name) i got many OutPorts in an LinkedList. In another class i…
lunatikz
  • 716
  • 1
  • 11
  • 27
1
vote
0 answers

Choosing the right parameterization for latent profile analyses using the TidyLPA package

I'm struggling choosing the right parameterization for the LPA i want to run (using the TidyLPA package in R). I've been reading, but I somehow stay confused about the right way to go and want to prevent going into the wrong direction. I'm…
Rose
  • 11
  • 1
1 2
3
10 11