111,435 questions
0
votes
1
answer
40
views
Azure function successfully deployed but shows 4xx error
The function is an http trigger calling an agent from agent foundry:
import azure.functions as func
import logging
import json
import os
from azure.identity import DefaultAzureCredential
from azure.ai....
-4
votes
0
answers
66
views
Azure function shows successful deployment message in vs code but not visible in Azure functions app
I have an Azure function that is working locally, but when I deploy it to an Azure function app using VS Code, it shows deployment completed, however it is not visible in the Azure Function app.
This ...
1
vote
4
answers
150
views
How to calculate total of values based on if other variables are similar?
I'm trying to create a simple macro, and the solution is eluding me.
Let's say I have a table:
Header1
Header2
AAA
100
BBB
200
BBB
150
BBB
250
CCC
300
CCC
200
I want the formula to calculate so that ...
-2
votes
1
answer
140
views
Javascript function has no return value when return statement specified for every case
I came across a problem in JavaScript where an item is to be inserted into an ordered array such that the array remains in the correct order. e.g. insertInOrder(19, [1, 2, 10, 20]) should return [1, 2,...
5
votes
1
answer
171
views
Why don't function pointers allow adding CV-qualifiers to pointer arguments?
I am work a mature codebase, one of the signs of its age is lack of consts which make the code difficult to reason about when refactoring.
I have found a function which takes an argument as a mutable ...
Best practices
0
votes
4
replies
218
views
Is it safe to use public functions in C++?
I am creating a program with C++ language that working with strong cryptography.
Does it matter if I use public or private functions where contains a secret algorithms, any sensitive structures of ...
Advice
2
votes
6
replies
152
views
Is () a standard for starting a function?
After learning Python for a while, I feel that () is a standard for starting functions. If I don't add () after the function, the function won't run even if it doesn't have parameter imports, so I ...
-7
votes
4
answers
142
views
problem in javascript temprature converter [closed]
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 ...
2
votes
1
answer
90
views
Utilizing a loop or automated approach to join all possible elements in one dataframes together based on defined criteria
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 ...
Advice
0
votes
0
replies
27
views
Enable Defender CSPM (Advanced) and CWPP via Azure Policy
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 ...
Advice
0
votes
3
replies
56
views
Trigger Function to check record uniqueness
I have a trigger in Postgresql 13 like this to prevent duplicate entry on one of the column.
This trigger is used in Arcgis Field Map apps.
CREATE OR REPLACE FUNCTION xxx_check_unique()
...
0
votes
1
answer
119
views
Remainder check and pass on to main program
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 ...
Advice
2
votes
7
replies
128
views
Do all definitions of an inline function in C share the same address?
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 ...
1
vote
0
answers
61
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*...
Advice
0
votes
2
replies
56
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?
Code
def rex_audio(self):
RexAud = SoundLoader.load('Rex.wav')
RexAud.play()
...