130 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
72
views
Create controllers automatically from model
I work with ASP.NET Core and have written an API controller as follows:
public class AcademicController : GenericController<Academic>
{
public AcademicController(IRepository<Academic> ...
0
votes
0
answers
43
views
Generalizing the Subset Sum Problem to Finding Matching Subsets from Two Arrays
How can the subset sum problem, where the sum of n specific values equals a given number, be generalized to include arrays containing multiple elements?
Specifically, the subset sum problem involves ...
-1
votes
1
answer
103
views
How to find an equation to calculate commissions
I need to quickly calculate prices based on the commission I will be getting. Each sale pays commission based on 2 values: First, the commission on the base price is 8%. Anything over the base price ...
2
votes
1
answer
131
views
Modelling relation between two similar classes in UML
I am modeling my project, which I will subsequently implement in Java, using UML. My project involves managing a gym. More specifically, I am currently modeling a class diagram that allows me to ...
1
vote
1
answer
127
views
Is it possible to do something similar to "typeclass" behaviour in Fortran?
I am aware one can use an interface to create a single name for multiple functions. In fact, I've done so in a small code for something like that:
interface assert_equal
procedure assert_equal_int
...
2
votes
1
answer
676
views
Can Have Parent Actor more than One Child Actors In Use Case Diagram
In my Usecase Diagram :
Bidder and Seller both inherit from Guest. Is this Correct? or is there another way to do it?
0
votes
1
answer
28
views
How to control monitor signal input via code?
I can control input signal(HDMI or VGA) from physical buttons on monitor.
Is there any way to control it by code?
1
vote
0
answers
38
views
Python Generalisation/Polymorphism - invoking superclass method having subclass object in print()
It is academic problem that I present here. The case is to invoke __str__() method of superclass having object of subclass. The case is presented in last two lines (marked with comment hashes. In line ...
1
vote
1
answer
199
views
mapping generalization constraints to sql (STI approcach)
I'm trying to model the following relationships between entities, mainly consisting of a partial, disjoint generalization.
original EERD
'mapped' to relational
Since I didn't need the subclasses to ...
0
votes
0
answers
69
views
generalise the brightness of images to a set of images
Hello I'm using opencv on python and I was wondering if there was a way to generalise the value of the parameter gamma on a set on images that have diffrents luminance( dark , bright and normal images)...
0
votes
0
answers
22
views
Represent interface generalization with lollipop notation in UML [duplicate]
I'm not able to find any reference online on how to represent interface extension with lollipop notation in UML 2.0
I suppose is done like this:
But can anyone please confirm this?
2
votes
1
answer
921
views
create a reusable component in vue.js
How do I make my vue.js component more general and reusable and can pass only the neccessary data?
this is what I want to build:
Structure:
the component has a header
the component has different ...
0
votes
3
answers
360
views
how to generalize the given code for all strings in python?
What my aim is that writing a function takes a string as an argument such as "Nisa" and returns "N1I2S3A". But the code that I have written is only works for strings that have only ...
0
votes
0
answers
77
views
How to implement generalization of a formula and call values from dictionaries in Python
I have the following formula:
y = a1cos(θ1) +a2cos(θ1+θ2) +...+ancos(θ1+...+θn)
The goal is to implement it in Python so it works with any number of a-value/theta angles combination.
So far I have ...
-1
votes
2
answers
106
views
Generalisation of function in Java
How can I generalize pendulumManagement() to take as arguments the names of the functions to fire and the boolean to decide on? I'm using java and processing library.
void pendulumManagement()
{
if (...