Questions tagged [generalization]

131 questions
0
votes
1 answer

Can't use enter when editing comments

I am trying to edit my comments and separate my responses to make them more clear by pressing enter to give space and make it more understandable, but every time I hit enter it ends the comment and won't allow me to do it. I have to use the space…
Crusader158
  • 21
  • 1
  • 1
  • 4
0
votes
2 answers

R: arrays - reducing length (generalization)

I need to reduce length (generalize) an array in R. For example, I have hi-resolution data like this... my_array=array(c(sample(0:9,32, replace=TRUE)), dim=c(4,4,2)) > my_array , , 1 [,1] [,2] [,3] [,4] [1,] 2 1 8 2 [2,] 3 5 …
0
votes
0 answers

A name for "binary-style" true/false toggle values

I have a table with my user's information, including their address, city, country, phone number, website, social network links, etc... And they have the option to select which of those information they want displayed on their public page. So…
0
votes
2 answers

Reduce code for arduino, general code

I made following code for my arduino. It's communicating very well with MQTT. Unfortanally my memory load of the arduino is almost full. I want to reduce my code because I'm checking now each room by room. I think it's possible to create a more…
Jonas
  • 67
  • 1
  • 9
0
votes
1 answer

UML definition - Generalization, aggregation and abstract classes

I'm a bit confused regarding Generalization, Aggregation and abstract classes in UML. By Generalization, I can understand that it's a "is a"-relationship. A student is a Person - and a teacher is a Person. So Person would be the superclass, whereas…
Adem Ökmen
  • 326
  • 3
  • 4
  • 15
0
votes
1 answer

Have different Source Image in Unity 4.6 UI Image prefab depending on script bool property state

I'd like to have one prefab of an image. The image and its features would be exactly the same, but come in two colors - specifically I'll need to set the Source Image to one of two images depending on the actual value of the bool in the script…
Jonny
  • 15,955
  • 18
  • 111
  • 232
0
votes
1 answer

Generalizing SQL insert string

I have to do a lot of SQL inserts without using stored procedures. For big classes, the insert strings get huge so I was thinking of building a generalized insert function to handle it when passing in an object. What I've written below works but…
user3769327
  • 93
  • 10
0
votes
2 answers

Generalizing my Function

I wrote this function that resize an element by a selected corner function RelativeCornerResizer(Elements , StartSize , EndSize , Unit , Left , Top) { //var I = StartSize ; var SSpx = "" , LeftPx="" , TopPx=""; LeftPx = (Left)+Unit;…
Hammond95
  • 556
  • 7
  • 20
0
votes
0 answers

General bulk update for admin panel?

I'm using my own admin panel for my website and would like to introduce some bulk actions using http://railscasts.com/episodes/52-update-through-checkboxes. First of all, is this still best practice to do bulk actions? Secondly, how can I generalize…
Cojones
  • 2,930
  • 4
  • 29
  • 41
0
votes
3 answers

How to use templated class in base class of two different objects

I have problem with storing templates class in the base of two objects. Say I have generalized class named ObjectManager Defined as: template class ObjectManager {} And I have a base class like: class MediaSample { public: …
Benyamin Jane
  • 407
  • 2
  • 5
  • 16
0
votes
1 answer

Conceptualization: generalization or not?

I'm modeling an app which will let users look for real estate properties. So it's going to be a website where users will be able to look for rentals and sales on houses, flats, castles, grounds, shops, parkings, offices. According to that, I'm…
Hubert Solecki
  • 2,611
  • 5
  • 31
  • 63
0
votes
2 answers

CLIPS - looking for match between random slots in multislot fields

Consider such situation. I have such templates: (deftemplate MAIN::simplecause (multislot coraxinfo (type INTEGER) (default undefined)) (multislot changeinfo (type SYMBOL) (default undefined))) (deftemplate MAIN::finalcause (multislot…
Maksim Khaitovich
  • 4,742
  • 7
  • 39
  • 70
-1
votes
0 answers

Can we write a general back-end app in ASP.NET Core API for many objects management

I built a small back-end app in ASP.NET Core API. It has three objects (Book, Reader, BorrowingHistory - the many-to-many relationship between Book and Reader) with their own properties. For each object, I have a corresponding table in the database…
-1
votes
2 answers

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 (pendul) { singlePendulumManagement(); }…
Raflow
  • 11
  • 7
-1
votes
3 answers

function generalization in C

im fairly new to C. i've written the following code. and all the following functions are nearly identical. i just want to know is there is a way to reduce the following functions into a generic one struct tensor add(struct tensor t1, struct tensor…
hammi
  • 804
  • 5
  • 14
1 2 3
8
9