Skip to main content
Filter by
Sorted by
Tagged with
-7 votes
4 answers
117 views

I am trying to make a temperature converter that automatically changes value when the user changes the input and clicks elsewhere (using the onChange in my html file) in javascript, but when i type in ...
Agwaraonye vivian's user avatar
2 votes
1 answer
72 views

Summary: I want to be able to recreate my SQL code via Python such that I dont have to manually type out each join for situations when the combinations get too large to handle I have one table import ...
qwerty12's user avatar
Advice
0 votes
0 replies
19 views

I would like to deploy policy at the management group level to enable Micosoft Defender for Cloud. (I have owner role for all mgmt groups). I found some these in-built policy definition: Microsoft ...
bostongeorge's user avatar
Advice
0 votes
3 replies
41 views

I have a trigger in Postgresql 13 like this to prevent duplicate entry on one of the coloumn : This trigger is used in Arcgis Field Map apps. CREATE OR REPLACE FUNCTION xxx_check_unique() ...
padjee's user avatar
  • 265
0 votes
1 answer
116 views

I'm writing a simple maths sketch. At this point I want to check if 2 random numbers, when divided, leave a remainder. If not then pass them onto the next part of the program. If the remainder is not ...
joe lennox's user avatar
0 votes
1 answer
64 views

I am looking to remove <script data-no-optimize="1">var litespeed_docref=sessionStorage.getItem("litespeed_docref");litespeed_docref&&(Object.defineProperty(document,&...
user31225's user avatar
Advice
2 votes
7 replies
126 views

I know that it's possible to take the address of an inline function, just like with ordinary functions. But if each translation unit has its own inline definition, and I take the address of the ...
Morel's user avatar
  • 1
1 vote
0 answers
60 views

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
  • 11
Advice
0 votes
2 replies
52 views

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

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
0 votes
0 answers
43 views

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
81 views

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
76 views

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
139 views

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
64 views

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
149 views

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
219 views

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
67 views

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
89 views

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
211 views

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
-1 votes
1 answer
77 views

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
98 views

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
48 views

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
81 views

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
62 views

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
61 views

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
58 views

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
180 views

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
73 views

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
129 views

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
84 views

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
71 views

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
166 views

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 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
130 views

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
205 views

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
192 views

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
108 views

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
50 views

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
114 views

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
90 views

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
65 views

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
106 views

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
45 views

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
90 views

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
102 views

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

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
26 views

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
49 views

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
110 views

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

1
2 3 4 5
2229