Questions tagged [dynamic]
Dynamic is a widely used term that, in general, describes a decision made by the program at run-time rather than at compile time.
27,256
questions
1
vote
1
answer
23
views
How can I use dynamically defined enums in FastAPI/Pydantic models run on Uvicorn?
I have a FastAPI application that has some Pydantic models defined. Some of the fields in these models should only allow values that are defined by enums that are loaded from a database and created at ...
1
vote
0
answers
18
views
In TypeScript, can you type dynamic keys based on enum that are optional? [duplicate]
I'd like to be able to do this so that I have some code completion for the positions like theHistory.CEO but it keeps complaining that theHistory:LeadershipHistory doesn't have ALL the enum keys: CEO, ...
-3
votes
0
answers
19
views
tkinter: label not added or not responding? [closed]
SORRY FOR BAD LAYOUT: stackoverflow says "too much code" and "use ctrl + k", however:
Essentially, I use a class(Gui_) and the called method is self.test_image()
code
However, when ...
0
votes
0
answers
18
views
Limiting choices in django dynamically (call-back function?)
I am relatively new to Django and this is my first question on Stackoverflow. So pleas bear with me if not ideally formulated.
My Problem:
I have a Model Animal with two fields that are ForeignKey ...
0
votes
0
answers
13
views
How to write a repeating index function with a dynamically changing row and column for each repetition?
I have a multiple possible arrays of values that will always be 1x1, 2x2, 3x3,...etc and I would like to get all the diagonal values of that array, such as:
1x1 array would be return the only value.
...
-2
votes
0
answers
13
views
What are some cost-effective hosting options recommended for Next.js applications? [closed]
I am a beginner and I have developed a Nextjs Web App that has dynamic blog pages. I want the dynamic blog pages to have titles and meta tags on the server side for better SEO optimization so I've ...
0
votes
1
answer
23
views
Dynamic rendering of N shiny tabs
I try to develop an R shiny app that renders n tabs. n should be hard coded in the server function and not be modified by the user. From these n rendered tabs, initially only the first tab should be ...
0
votes
0
answers
28
views
how to write an fscanf argument that properly stores values and works with varying matrix sizes?
i have a 15 x 5 grid of ones and zeros in a file. how do i store them in a t[15][5] block?
the first line of the file is the dimensions of the matrix, then starting from the next one its the grid. ive ...
-2
votes
0
answers
24
views
How can I loop over a set of array values dynamically? [duplicate]
I have 7 arrays :
const R0=[3,14,18,25,30],
R1=[1,2,4,7,23],
R2=[5,8,12,15,16,28,29],
R3=[18,19,20,22,25,30],
R4=[13,21],
R5=[9,11,17,21,24,...
0
votes
1
answer
22
views
Create a dynamic table row and submit data to database with Prepared Statement
I have a modal with dynamic table row. Sending data to the database using the normal query works fine. I need to send the data using prepared statement. The following are the codes I have used that is ...
0
votes
3
answers
62
views
How to use React Native code, which is available as a string, in my application?
I have some react native code available in a string variable:
let customCode='<View><Text style={{fontSize:20}}>Hello World!</Text></View>'
How can I use this in my react ...
0
votes
0
answers
39
views
Angular Kendo Tabstrip Selecting Tab After its added
Having a problem to select a tab programmatically after creating it. It might be because of the timing, maybe it doesn't exist yet when i use the selectTab functionality. It might be because of where ...
0
votes
0
answers
18
views
Grid traveller: Find maximum score while satisfying a constraint using dynamic programming
Assume we have a 9 x 9 grid with integer values at each cell. A traveler begins at any column of his preference in the first row. Each turn, he goes either down, down-left, or down-right. This is, if (...
1
vote
2
answers
55
views
Type hinting in Pycharm for dynamically generated classes
I'm trying to get Pycharm's linter to stop complaining when I use a dynamically created class via the Python type( ) function. A simplified version of the actual code looks like the following.
Yes, ...
0
votes
0
answers
21
views
Dynamically show images into a Microstrategy dossier based on a metric, an attribute or a text field
I have a Microstrategy dossier and I want to show an image when the dossier is executed if an attribute has a date different than yesterday.
If this attribute has the date of yesterday, the image does ...
1
vote
2
answers
209
views
How can I "augment" a JS class with methods from another class, without extending it?
I'm writing an app that manages playlists.
Basically, my actual logic looks like
//define playlist props
class Playlist{
public tracks = [];
}
class ApiPlaylist extends Playlist{
//fill ...
-4
votes
0
answers
20
views
How to change the dynamic menu to a dynamic side menu in elementor
I want to make the dynamic menu on my post page to the side (vertcal) instead of a horizontal menu. I have elementor pro and using unlimited elements and Royal Addons as extention to Elementor.
I ...
0
votes
1
answer
22
views
Jenkins dynamic parameter not visible in stages
I'm using dynamic parameters for my Jenkins build. I have several dynamic parameters and they're all working fine except for one, which I've boiled down to the following example.
properties([...
1
vote
1
answer
25
views
handle validation on child component for the the form in the parent component the react-hook-form and usefieldarray
I'm new to react and i'm stuck in a situation. The application i'm currently working on has multiple sections say section 1 ,section 2, ... Each of these section have form which has different fields. ...
0
votes
0
answers
30
views
One formula for summing a fixed number of rows in a single column but formula to expand dynamically for all varying columns
I have a table whose number of rows remain fixed but its number of columns are varying (expand or contract) rightways.
I want to sum an array of 13 rows in each column with the result at the bottom of ...
1
vote
0
answers
53
views
Dynamic text and dropdown value in taipy
i am using the below folder structure for my project
folder structure for pages
in overview.md i have a text where its mentioned "total number of projects:"
similarly i have a create project ...
1
vote
1
answer
67
views
Dynamically spilling a function in Excel - matching value on array outside the lambda [duplicate]
I know how to create formulas in Excel that select values on a join key (example in image below).
However, I would like to be able to create one formula that replicates this function for the whole ...
0
votes
0
answers
55
views
Webpack: Dynamically create <img> from images in a directory
My simplified filesystem:
|webpack.config.js
|package.json
|dist
|-index.html
|src
|-index.js
|card
|-card.js
|images
|-imageImporter.js
|-coffee.jpg
|-chocolate....
0
votes
0
answers
14
views
Angular CDK context menu - populate menus based on selected row
I have an Angular CDK context menu for my application
But i need to populate the menus based on the selected row item.
After user selects a row item based on it data need to populate respective menus ...
-2
votes
0
answers
55
views
How to call an asynchronous function from a dynamic library
I use dlopen2 to load a dynamic library into a Rust app.
It seems it doesn't support async fn. So I have to do
#[no_mangle]
pub fn run() {
let rt = tokio::runtime::Runtime::new().unwrap();
...
0
votes
0
answers
36
views
Unexpected error when assiging COM object to a C# 'dynamic' variable
I am interested in the possibilities offered by the C# dynamic keyword, but I am facing unexpected issues.
If I create a default .NET 4.8 template in Visual Studio 2022...
This works:
dynamic obj = ...
0
votes
0
answers
19
views
Dynamic dataframe Name
Background of code: For my project I have quite massive datasets in size and numbers I need to process and calculate a single value for each. My code works in such way that I only have to fill out a ...
0
votes
0
answers
33
views
Oracle Apex IG Query to compare columns between tables across databases
I have an IG Grid query:
select db_name, db_position, db_enabled, db_access from db_all where db_name = decode(:P1_DATABASE_NAME, 'All',database_name, :P1_DATABASE_NAME);--decode part because of the ...
0
votes
2
answers
48
views
Dynamic Range used Excel
I have a series of number of my column A,, from A1 to A100 going from 1 to 9
Now I want to count the number of times the number 1 appears, it is easy:
=COUNTIF(A1:A100;1)
Second step I want to count ...
0
votes
1
answer
52
views
How do you write a dynamic MS-Access VBA function call across multiple modules?
I have a scenario where I have multiple modules that contain a "CreateMember" function. I have a single Sub that makes a decision which module to call out to, however the dynamic call ...
-3
votes
0
answers
72
views
Excel formula to dynamically FILTER a range from vertical and horizontal spill range
I have two dynamic arrays; one for the first column of data and a second for a header row which together make up a grid.
I need a formula that will spill dynamically when there are changes to either ...
0
votes
1
answer
37
views
Need to use rvest to scrap dynamic content
I have to scrap data from a auctions website called Unicorn Auctions.
When I try to do it using rvest everything that I can get is the auction title and URL, but I also need it's start and end dates. ...
0
votes
0
answers
34
views
Issue with child comp javascript when dynamically loading nested component
I'm new in forum and new in Laravel development. I have the following problem. I try to load dynamically nested Livewire components from the parent Livewire componen like:
<div>
@if ($...
0
votes
0
answers
13
views
Zapier: Prepend to a value if value exist
I’d like to prepend to a value only if value exist.
Current issue:
Partial questionnaire submitted. Action includes prepended text but no value.
Example (Q being the prepended text & a being the ...
-1
votes
0
answers
54
views
Python3 - 3ph 2l inverter simulation with SPWM
here below a code for a simple model of three phase two level inverter with constant DC voltage source and three phase RL load.
import numpy as np
from datetime import datetime
from scipy.integrate ...
0
votes
0
answers
20
views
Assigning value from dataframe to tkinter button and printing text [duplicate]
Basically I want to assign text from a dataframe to dynamically created buttons and this code below works but, when I press the button only the the last value of the dataframe is printed. I have ...
1
vote
1
answer
55
views
Creating a Multi-Step FILTER Dynamic Array Function in Excel
I have a spreadsheet with five January entries and five February entries.
Column A: Date
Column B: Sales Person's Name
Column C: Sales Person's Sales Amount for the month
Date
Sales Person's Name
...
0
votes
0
answers
16
views
Dynamically adding annotations are not rendering in iOS
Strange that the Mapbox SDK for ios makes the updating of annotations at runtime straight-forward, but the new annotations aren't rendering for me when running in xcode. Any thoughts what the issue ...
0
votes
1
answer
37
views
Using dynamic SQL to Create Table with today’s date as the table name
I am attempting to create a table where the name of the table is todays date and the time of day in the format 2023-11-06-12-10.
My code looked like this and errored with the message "Incorrect ...
-1
votes
0
answers
13
views
Dynamically change root theme in ionic
I am new to ionic, expecting some help from here.
I have ionic app which has standard colour theme defined under theme/variables.css file.
How can we change/override the color values using ts code we ...
0
votes
1
answer
49
views
Create a Table with name Based on Current Date on Azure Databricks (preferably SQL, but could do Python)
I need to create a table using the current date in Azure Databricks. Specifically I need the table name to look like this:
workbench.example_2003-11-5 (if the table were created today)
workbench....
1
vote
0
answers
20
views
Angular Material: How to pass a predefined Components inside mat-stepper?
I would like to pass pre defined (but the selector not used in template) components into mat stepper.
How can I do that?
Thank you
0
votes
0
answers
35
views
Is possible to parse a string as function and reference runtime variables?
I'm trying ExpandoObjects to accomplish custom calculations on some customer data.
For example, there exists some class as (short version):
public class Seller
{
public Guid Id { get; set; }
...
0
votes
0
answers
14
views
Angular Material mat-stepper, how to pass programmatically created componentRefs to mat-step correctly?
I have a question please,
I created programmatically some components which only was declared, so those selectors not used in any template at all. I used ViewContainerRef.createComponent to create the ...
1
vote
1
answer
29
views
Angular create component with ViewContainerRef when the component class name in variable
I have a question please.
Is there a component name array:
private componentArray: string[] = ['PageOneComponent', 'PageTwoComponent', 'PageThreeComponent', 'PageFourComponent'];
How can I pass the ...
0
votes
0
answers
25
views
Firebase Dynamic Links with ReactJS
Can I write Firebase Dynamic Links code in React?
I tried the following but it's not working
const dynamicLinkParams = {
link: link,
domainUriPrefix: "https://adanima.page.link",
...
-1
votes
0
answers
43
views
Change icons remotely iOS [duplicate]
I want to change the icon of my application remotely, through a call in the application. I understand that this type of application cannot be accepted by the store. However, I have an example of an ...
0
votes
1
answer
23
views
dynamically arrange array for chartjs
I'm trying to prepare data from json dynamically for chartjs.
The data is received form a sql database.
Now I'm trying to display the data in CHARTJS for different ORDERS.
For different PROJECTS there ...
0
votes
1
answer
44
views
Name and create variables dynamically in for loop (VBA)
Can variables be named and assigned dynamically in VBA any other way?
Sub variables()
Dim lastCol As Long
lastCol = Sheet1.Cells.Find(What:="*", SearchOrder:=xlByColumns, ...
0
votes
1
answer
9
views
Oracle APEX v19.1 mailto link based on selections in form that are results of query
Objective: Create a link (button or html) that will use values updated in form, based on the selection of list box.
Issue: I have built the page and form that creates a "mailto:" URL ...