Questions tagged [redundancy]

Redundancy is the duplication of critical components or functions of a system with the intention of increasing reliability of the system, usually in the case of a backup or fail-safe.

461 questions
0
votes
2 answers

How to reduce data redundancy of text field in database

I am using a OLAP system, some of table has text field. the text length can be from some Bytes to KB, while the size of other fix size fields in one row is only about 100 Bytes. some of my tables have billions of rows and the value of text field is…
Shawn
  • 1,441
  • 4
  • 22
  • 36
0
votes
3 answers

php array manipulation to reduce redundancy

an array is loaded from the database, it looks like this: array=>( 0=>array( 'id'=>1, 'user'=>'eric', 'text'=>'hello' ), 1=>array( 'id'=>1, 'user'=>'eric', 'text'=>'how are you?' ), 2=>array( 'id'=>2, …
webberpuma
  • 691
  • 1
  • 6
  • 21
-1
votes
1 answer

Efficiently refactoring piece of Swift code to be less redundant

In the code below, A key is remapped to B key, and vice versa. The remapping is activated via a SwiftUI toggle switch. In example presented here the same block of code is used in three different functions. Additionally, the loop that iterates…
Tzar
  • 5,132
  • 4
  • 23
  • 57
-1
votes
2 answers

Remove business logic from html and avoid redundance code Angular

I wrote this code in HTML, which is very very long. I used ngSwitch for 3 cases and in the default case I have 4 different small cases. All of these cases used the same structure of icon. How could I make my HTML shorter? How could I remove the…
-1
votes
1 answer

remove redundance HTML in Angular

I use ngSwitchCase for 3 cases, which inside every case I used the same part code, which I don't want. How could I remove this redundancy? The redundancy code is inside "app-device"
-1
votes
2 answers

I would like to check physical ports redunducy check with python

would like to check physical network ports with python scripts ports information as following, Python scripts can check if ServerID has 2 or more physical network lines to differents network devices. ServerID,NetworkID,Port…
-1
votes
1 answer

Why do I have to package my IntelliJ-project twice to get it exported?

Currently I am working on a plugin for a minecraft-server. I use maven, so when I made a change and I want to test it out on my server, i double-click on 'package' on the right hand side. Then my Jar will be exported right into my pluginsfolder. BUT…
1somorph
  • 1
  • 2
-1
votes
1 answer

Pattern problem in C programming language

I have the following pattern to print in the C programming language. BBBB BAAB BAAB BBBB I have tried the following code, but it's not working. My code : #include int main() { // Write C code here int i,j; for(i=1;i<=4;i++) …
Reactoo
  • 916
  • 2
  • 12
  • 40
-1
votes
1 answer

I want to create multiple tables with the same composite primary key without data redundancy in mysql. How can I achieve this?

I am using mysql to create a database. I have one base table named GP, with its Primary Key a composite Primary Key(SAT_ID, DATE). I want to create multiple tables with the same Primary Key (SAT_ID,DATE), but would like to avoid data redundancy. Is…
-1
votes
3 answers

Getting an unsorted set when creating it from a sorted array with duplicity

I am taking a sorted array with some duplicate values and then to simply remove duplicity, I am adding each value into the set. As I am creating a set from a sorted array, why I am not getting a sorted set? Here is my code: Set set = new…
Sumit Singh
  • 487
  • 5
  • 19
-1
votes
1 answer

How can I make this a little less hideous? Python

I am creating a simple program that prints a random productive activity. Here is a 'simplified' version of the program. import random meditate = ['sitting down meditation','lying down meditation','standing meditation'] exercise = ['go for run','do…
TinIron
  • 17
-1
votes
1 answer

how to make css-purge to handle my css files in order I wrote

I want my exported file to have css lines to be in the order I wanted but it is not. How can I set css-purge to purge my css files in the order It should be and the order I put it in.
-1
votes
1 answer

Reducing redundancy in methods

I have an Enum, with an abstract method, and every case in the enum implements this method. However, in each implementation the variable declarations are always the same, and so I end up with lots of redundancy. public FSA next(Player targetPlayer,…
Hdot
  • 543
  • 1
  • 4
  • 15
-1
votes
1 answer

FPGA MOTOR CONTROL

I'm going to implement a motor control based on FPGA with a NIOS II soft processor, I need the system to meet the requirements of TUV and IEC 61508 certificates. I have read one solution to use a redundancy system, but I couldn't understand how I…
-1
votes
1 answer

Android: Redundancy in the DB or runtime computation?

I noticed that there are some related questions, but haven't found any related specifically to Android. I'm building an Android app and in developing my database schema, I'm unsure if I should store some data in the DB and update it after each…
Alex
  • 449
  • 1
  • 4
  • 16