Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
41 views

I am trying to mock a repository that inherits from the BaseRepository class in the Ardalis.Specification.EntityFrameworkCore library. This base class exposes the ListAsync method which takes in a ...
Martin's user avatar
  • 2,326
3 votes
0 answers
184 views

I'm writing a function whose inner logic needs to know which optional keyword arguments the function was called with. I also need to be able to specify default values for keyword arguments. If an ...
Tom Grundy's user avatar
-3 votes
1 answer
101 views

Here's my current preferred method that I normally put at the top of functions: #!/usr/bin/env bash unset opts args for arg; do [[ ${arg:0:1} == "-" ]] && opts+=("$arg") || ...
mrkbutty's user avatar
  • 609
2 votes
1 answer
226 views

I need to submit a new Apache Flink Job from the Web GUI instanced in a docker container in Session Mode and i need to pass some arguments to the main function of my job written in Java. I'm trying to ...
Peppe3009's user avatar
2 votes
1 answer
196 views

When I do something like ARGS="$@", the shell just concatenates the arguments stored in "$@". Is there a way to store "$@" into a variable in pure POSIX shell to be able ...
Adel M.'s user avatar
  • 500
-3 votes
1 answer
122 views

It is more question than a problem. I make my header file with a function declaration like this: void fw_iteracja_wsk_rows_a(float (*tab)[COLUMNS], int ROWS); How can I adjust/change the COLUMNS ...
Patryk M's user avatar
2 votes
1 answer
122 views

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 ...
altchist's user avatar
0 votes
1 answer
91 views

I have a project in laravel 11 and there are some issues with my config. The site should support optional locale param to differentiate between default and custom language: DE: https://example.com/...
Bajlo's user avatar
  • 1,437
1 vote
2 answers
88 views

I have an R script that takes arguments that I want to be able to execute without having to type the entire path to the script location. For examples sake, lets say this is the script: # arguments ...
Tom Chiodo's user avatar
1 vote
1 answer
71 views

I am working with curried functions in TypeScript, and I want to figure out a way to automatically detect if a function is curried and, if it is, decurry it into a non-curried function. Problem: A ...
Sinan Ismail's user avatar
2 votes
1 answer
90 views

Here is a rudent prototype that I want to implement: void save_keys(const string& savepth, const vector<string>& keys) { size_t n_samples = keys.size(); stringstream ss; for ...
Zeyu Zhang CN's user avatar
1 vote
1 answer
54 views

I am trying to create a function in R that creates a geometric sequence based on the inputs of 'start' (the starting value), 'by' (the common ratio) and two arguments that depending on which one is ...
Avi Grant's user avatar
1 vote
1 answer
85 views

All examples tested using Python 3.13.2 on Windows 10. When calling range(), I must use positional arguments, or otherwise I get an exception. >>> range(2, 5) range(2, 5) >>> range(...
Qba23's user avatar
  • 11
0 votes
1 answer
51 views

I am trying to iteratively generate project sheets row by row in an excel. Some columns have long descriptions so wrote an additional sub function to handle the long text strings. I believe an error ...
olivia bergmann's user avatar
0 votes
1 answer
172 views

I am trying to use Prophet to forecast Lululemon's stock prices. However, I am encountering the following error when fitting the model: TypeError Traceback (most recent ...
Lorena Schafer's user avatar
0 votes
0 answers
21 views

I'm writing my own lib on top of some Spring functionalities. Sadly NamedParameterUtils.parseSqlStatement and related classes do not expose anything useful (almost everything is declared private, and ...
Vento's user avatar
  • 91
0 votes
1 answer
59 views

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 ...
codev's user avatar
  • 43
0 votes
1 answer
110 views

I have a function which takes a list of arguments that I want to pass to a function in a target. Only when I try to use that multivalueargs, it places the second and further arguments on the following ...
Alexis Wilke's user avatar
  • 21.2k
0 votes
1 answer
315 views

i have a master table as EMP_NAME with few values in it and column name as EMPNAME. I want to pass these values as argument to a snowflake procedure which will create tables with employee name in ...
NITIN MALIK's user avatar
0 votes
4 answers
85 views

This code explains my problem best: <html> <head> <script> function showDiv (divId, dat){ document.getElementById(divId).innerHTML = dat ; document.getElementById(...
toom's user avatar
  • 11
0 votes
2 answers
60 views

I want to pass variable number of references to objects to a C++ function. Say, I have class ParameterBase and instances of classes derived from this base class. I want a function, which checks that ...
one_two_three's user avatar
2 votes
0 answers
85 views

#include <stdio.h> #include <getopt.h> #include <stdlib.h> #define PORT 12344 int main(int argc, char** argv) { int opt; int server_fd, client_fd, epoll_fd; int ...
Udeshya D.'s user avatar
1 vote
1 answer
61 views

In Haskell I have the following data structure data Circ = IN String | NOT Circ | AND Circ Circ | OR Circ Circ | XOR Circ Circ I can pattern match functions on this like so: size :: ...
spykyvenator's user avatar
0 votes
0 answers
46 views

Suppose I have a python class with arguments in the __init__ method with types specified. class A: def __init__(self, arg_1:int, ..., arg_n:int): pass Suppose I inherit from it as such: ...
Leonhard Euler's user avatar
1 vote
1 answer
114 views

Show bash and getopt version in my OS: bash --version |grep [r]elease GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu) getopt --version getopt from util-linux 2.38.1 In the getopt's manual(...
showkey's user avatar
  • 375

1
2 3 4 5
242