Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Error with Random Intercept Model Using nlme and Custom Function

I am working with a custom logistic function: logistic.fcn <- function (x, y0, y100B, dy100.F, a, x0B, dx0.F, isF_num) { y0 + ((y100B + isF_num*dy100.F)-y0)/(1 + exp (-a * (x - (x0B + isF_num*...
olowman's user avatar
-4 votes
0 answers
36 views

Message: syntax error, unexpected identifier "cek_login", expecting variable [closed]

An uncaught Exception was encountered Type: ParseError Message: syntax error, unexpected identifier "cek_login", expecting variable. class login_model extends CI_Model { public funtion ...
Celvin gilank's user avatar
Advice
0 votes
2 replies
45 views

Make these all apply to one function so that one plays but stops the one before it

How do i make these all apply to one function so that one plays but stops the one before it ##### def rex_audio(self): RexAud = SoundLoader.load('Rex.wav') RexAud.play() ...
Michael James's user avatar
0 votes
1 answer
49 views

Function Filter - How to not apply filter on a specific cell value?

In Google Sheets, I have a database on which I want to apply a filter depending on 10 criteria from 10 columns, using values from 10 specific cells. I can do this, but I would like that the filter ...
Fabien GALOPIN's user avatar
-1 votes
0 answers
22 views

Function app to sync key vaults across regions [closed]

I need a function app that will syncronize a key vault in west us 3 to a key vault in eastus. Im willing to pay. I'm deploying aks in westus3, east us will be our passive environment for aks, I know I ...
Just a guy's user avatar
-3 votes
0 answers
75 views

This Codewars exercise is driving me up the wall [closed]

Okay, so I'm supposed to send Marty McFly back to the future, right? But it has to be on certain dates, using this function: function backToTheFuture(str) Here's my code: function backToTheFuture(str) ...
AirenMarie's user avatar
0 votes
0 answers
35 views

How to keep an add on Python debugger function to stay in scope

After trying Lavi Kumar's example it seems the package import pdbext.debug in ~/.pdbrc goes out of scope when another source file is called. ~/.pdbrc: !import pdbext.debug alias pl !pdbext.debug....
CharlieB's user avatar
1 vote
0 answers
78 views

Type '(x: string) => void' is not assignable to type '(x: unknown) => void' [duplicate]

unknown is so annoying to work with when using strict Typescript. I understand not being allowed to assign a type unknown to a known type, but you are able to assign known types to unknown. So why ...
Dao Seeker's user avatar
Advice
0 votes
4 replies
73 views

Calculating resistance and resilience of a soil microbial community

I want to calculate resistance and resilience of the soil microbial community in my experiment. I have an experimental design with 4 treatments: ambient (control), drought, warmed, and warmed & ...
Moriah's user avatar
  • 27
0 votes
1 answer
123 views

How to modify a Python function to handle one, several, or all parameters in a dictionary

I want to setup an environment in a Jupyter notebook where parameters are stored in a dictionary parValue and where you can change values of one or several parameters with a function par(), while ...
janpeter's user avatar
  • 1,166
3 votes
2 answers
53 views

Why does this collapsible need 2 clicks to open, then 2 more clicks to close?

Description I'm having an issue with a collapsible requiring 2 clicks of a button to open, then another 2 clicks to close. The Show/Hide text inside the button gets mixed up as well. I think it might ...
strawberrymilkrats's user avatar
0 votes
3 answers
139 views

Array Functions

I am currently learning the new array functions in Excel. I've been learning them for a bit, but still learning. I am trying to create a dynamic YTD type report off some dummy data however I can't ...
Nathan_Sav's user avatar
  • 8,576
0 votes
3 answers
209 views

Realloc in function that deletes a row in a matrix

I have just encountered a case in this C program: void row_del(int**& a, int& row, int col, int k) { for (int j = 0; j < col; j++) { for (int i = k; i < row - 1; i++) { ...
hacklo's user avatar
  • 17
0 votes
1 answer
63 views

Store the result of a function in a reactive and reuse it in a other function Rshiny

Motivation : I would like to have the app.R file as svelt as possible so I use function to do the larger part of computations that doesn't need to be made in a reactive environnement. Still, I need ...
osc07's user avatar
  • 1
3 votes
2 answers
85 views

How to use the type of a referenced column as a VARIADIC argument type in a (Postgres) SQL function or procedure definition?

The PostgreSQL documentation for argtype in function and procedure definitions states: The type of a column is referenced by writing table_name.column_name%TYPE. This works fine for IN mode ...
qrpnxz's user avatar
  • 45
2 votes
1 answer
199 views

Void function doesn't print elements of matrix C++

I'm trying to print elements of matrix (example will be below). Here is the following code written in Dev-C++: #include <iostream> using namespace std; class Matrix { private: int **...
Michael's user avatar
  • 11
0 votes
1 answer
69 views

Variable isn't being set to result of Get-Content command

i'm trying to automate a few basic tasks for a helpdesk team and I cannot seem to understand why I cannot get the desired result from this code: I did try to explicityl define $Tile as a [string] but ...
user3023421's user avatar
2 votes
1 answer
87 views

Why is my parameter seen as a NoneType when I set it as an integer?

I followed the Panda3D tutorial and got everything working so tried adding my own custom arguments using argparse. The first one I made was --no-rotate where it would stop the camera rotating which ...
Sam's user avatar
  • 23
0 votes
1 answer
40 views

How can I determine the file extension when it can be two-level?

I am writing a function to generate a file name to avoid repetitions with a suffix similar to "(1)", which are automatically substituted by most browsers and other programs when downloading ...
QWerProg's user avatar
-2 votes
2 answers
80 views

If I want a string of text to print if a variable is less than a number how can I do this? [closed]

I'm trying to understand how functions work, I defined my function with length and area parameters. Here is the problem: I want to write if area is less than a # then print a string of text. def ...
mt.297's user avatar
  • 9
0 votes
1 answer
49 views

Issues with tbl_custom_summary from gtsummary package

I want to create a table summary but want to use a custom value as the denominator in my percentage calculations. I wrote the following to divide by 25 instead of the total (17), which was working ...
Jenna V's user avatar
1 vote
1 answer
58 views

Can't deploy python code with VS code in Azure

I'm a beginner with Azure App Function. I want my python code to run every day automatically in a specific hour (1AM) and App function with the tool 'timer trigger' could allow it. I created my app ...
Jean-Marc's user avatar
0 votes
2 answers
50 views

Python matplotlib showing jagged graphs for constant value functions

I was trying to plot a function with absolute values and it's piecewise counterpart, but matplotlib was ploting the function with jagged corners. Here is my full code: import matplotlib.pyplot as plt ...
Steve03's user avatar
2 votes
2 answers
170 views

How to check whether a name is a locally accessible function?

How to check whether a name is a locally accessible function and only locally accessible? For example, with function out = top_level_function(name) % ??? function helper2 end end function ...
Argyll's user avatar
  • 10.1k
-1 votes
1 answer
66 views

Bad: telegram bot does not work (aiogram)

I have no idea how to fix it I try this: @Router.message(F.text == "/start") async def send_welcome(message: types.Message, state: FSMContext): await state.set_state(UserState....
Balsam _'s user avatar
2 votes
1 answer
119 views

Why is my code for generating a curve fit of a cosine to a sum of gaussians working so poorly?

I have this code in which I'm trying to use scipy.optimize.curve_fit() to take a cos^2(x) function and approximate it as a sum of gaussian peaks. However, it is generating a very poor fit and I can't ...
Cody Payne's user avatar
-2 votes
1 answer
83 views

Could I use a dynamic function to match values to another sheet in Google Sheets? [closed]

I'm making a quiz-type thing with Google Sheets- one as the user-end (where the quiztaker would input answers) and one as the answersheet. What I want to do is have a function in conditional ...
bunnie's user avatar
  • 3
0 votes
1 answer
64 views

Impossible to deploy to Function APP with ContainerClient

I want to deploy a easy function to Azure. When i deploy with this code it's ok : import azure.functions as func @app = func.FunctionApp() @app.function_name(name="echo") @app.route(route=&...
Corentin Gerbout's user avatar
1 vote
1 answer
115 views

Functional bean can't be recognized by Spring Function

I have two configuration classes with functional beans: @Configuration public class PositionReporter { @Bean public Supplier<Aircraft> reportPositions() { return () -> new ...
tibotka's user avatar
  • 214
-3 votes
1 answer
85 views

Why does translate replace symbols with symbols codes?

Why does translate replace symbols with word codes In this example, I get numeric symbol codes in the translation table, not the symbols themselves. Why? And how can I make a translation table with ...
Will Ronson's user avatar
2 votes
3 answers
125 views

How to pass object to a function in PowerShell

I am trying to save some date to a PSCustomObject in one function and pass that object to another function so I can access the objects properties and values. I am doing something incorrect as I can ...
RookieMistake's user avatar
2 votes
4 answers
188 views

How to work with data passed to a function, but without an explicit name in its parameters in C?

There is a declaration of a function in C language. int foo(int, int) { // код функции. } How do I access a parameter inside a function, only the parameter type is specified (no name). A program ...
Volkov Sergey's user avatar
2 votes
0 answers
187 views

Why implement a template function as free instead of member?

Is there any good reason why some STL functions are implemented as free functions instead of members? I understand the benefit when you need to provide explicit template parameters, like std::get<N&...
Dominik Kaszewski's user avatar
1 vote
1 answer
106 views

R How can I generate dynamic ggplot axis tick labels which contain subscripts?

For a ggplot graph, I am trying to include sample sizes in the axis tick labels based on the incoming data. The plot has 4 split violins displaying, for each category, male and female. I would like to ...
sofia's user avatar
  • 21
0 votes
0 answers
47 views

MATLAB Simulink error when trying to pass variables through function

I have three function blocks in my simulink model; A, B, C. I am feeding block A with data 'waypoints', which is an 11x2 array. I want block A to create a 'passthrough' for 'waypoints', such that ...
Tom W's user avatar
  • 1
1 vote
2 answers
106 views

Replicate rows in data.table using passed column names in user defined function environment

I'm passing a data table to a function I've defined where I want the function to replicate rows that meet a certain condition and the return the updated data table. I'm having trouble constructing it ...
BLP92's user avatar
  • 345
0 votes
2 answers
83 views

Terminal does not return output, instead restarts code

I'm new to Python and I am building a simple interactive calculator as a project. When I run the code in the terminal, it takes all the inputs but does not return the final output. The code restarts ...
new_coder's user avatar
0 votes
1 answer
61 views

AutoHotkey syntax is malfunctioning regarding usage of curly brackets { & } within functions

I can't get anything inside of a function to ever work? This is regarding flow control statements IF, FOR, etc, NOT with expression syntax as the object literal operator, that works fine but it won't ...
energyzed80's user avatar
1 vote
1 answer
96 views

Is there a tsconfig flag or eslint rule to disallow unrelated types as function parameter?

Is there a tsconfig flag or eslint rule to disallow this ? interface Order { title?: string; orderName?: string; } interface Product { title?: string; productId?: string; } var product: ...
TSR's user avatar
  • 21.5k
1 vote
1 answer
38 views

In sympy, I am getting an unexpected result for the type of the symbolic Function expression

from sympy import Function, Symbol x = Symbol('x') r = Function('R')(x) print(type(r))` # output: r When I run this code, I expect the screen output to be : '<class 'sympy.core.function....
gwinship's user avatar
1 vote
1 answer
86 views

Why doesn’t new Function have access to local variables in JavaScript? [duplicate]

I was experimenting with closures in JavaScript and ran into something confusing. function outer() { let x = 10; return new Function("return x;"); } const fn = outer(); console.log(fn()); I ...
Prince verma's user avatar
0 votes
1 answer
95 views

Powershell function returning not just what was after the return call [duplicate]

The below code is annoyingly not just returning the contents of the $t variable, of even if the contents of $t are instead returned like return "!! Quitting...": function AddADUser { .... ...
user66001's user avatar
  • 950
2 votes
2 answers
139 views

Testing that a function receives a string

I would like to build a function such as: test <- function( fct = "default" ) { # here test that fct is a string # ... } in which it is tested that fct is a string of length one. ...
Denis Cousineau's user avatar
0 votes
0 answers
21 views

ZKTime 5.0 Reporting Issue

I have a time clock system with a report. The system is ZKTime 5.0. The report layout is as follows: I want to exclude the first three from the report: To do this, in the file column, I use the ...
Franqo Balsamo's user avatar
0 votes
1 answer
47 views

How should a Function App (Container) authenticate to GitHub via the GH CLI?

I've setup a custom container in Azure that will run a Function App, with the intention of connecting to my organisations GitHub (GHE) instance and using GH CLI pull a list of repos. I have a PAT ...
JT 19's user avatar
  • 3
2 votes
1 answer
104 views

Syntax error creating function in Snowflake

I am unable to fix a syntax error that I keep getting when trying to create a function in Snowflake. This works fine when I create a procedure, but whenever I try to create a function with a variable ...
Thomas_'s user avatar
  • 131
0 votes
0 answers
78 views

How do I fix "Uncaught TypeError: display is not a function"?

I am using Typescript with Webpack for a static browser application. Here are the relevant code snippets: [spell.ts] export class Spell { // Various properties and functions, Nothing relevant. ...
Prof Susan Satsumas's user avatar
2 votes
1 answer
226 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 ...
Thanos's user avatar
  • 33
1 vote
1 answer
68 views

How to type class method arguments based on function arguments passed to class constructor

I have class example: export class Test{ private func: (...args: any[]) => void; constructor(func: (...args: any[]) => void) { this.func = func; } method(...args: any[]) {...
Алексей Смирнов's user avatar
0 votes
1 answer
43 views

Azure Functions on Linux Flex Consumption: Logging works from browser but not from Python client

I have an Azure Functions app running on a Linux Flex Consumption plan, and I’m struggling to get logging to work properly. When I trigger the function by calling its URL with the function code ...
Jasper's user avatar
  • 175

1
2 3 4 5
2230