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
-1
votes
1 answer

Reduce duplication of code in switch with select?

I have this switch with select switch (sorting) { case "newest": { var userId = User.Identity.GetUserId(); var model = db.Posts.Include(p => p.Vote) …
Xtreme
  • 1,601
  • 7
  • 27
  • 59
-1
votes
1 answer

Redundancy in Arraylist while entering Objects of Class

let's say in a package using Java we are using 4 files. First one say StudentModel.java ,second one say studentView.java,the third studentController.java and fourth studentMain.java. Now the structure of studentMain.java is : package…
Aneek Roy
  • 11
  • 3
-1
votes
1 answer

How I can simplify this javascript code? too many switch()

I have the code below. It looks long and complicated and now I have to add some more conditions. Is there any way I can simplify this code.Does javascript offer any other way to do the same thing as a switch? Sorry for the long code listing but I…
pedro luis
  • 1,545
  • 2
  • 10
  • 8
-1
votes
1 answer

Windows 2012 Server configure network to 2 ISP

I would appreciate any help with configuration of MS Windows Server 2012 R2. I have tried more solutions, but any of them were not so appropriate. The idea is on the attached schema belove. Server has AD. Server has 2 NICs. Both are configured on…
Sauron
  • 136
  • 3
-1
votes
3 answers

getting rid of redundant code between html pages

So I'm working on producing my own version of a web/db project my friend was given in school. This is my first project in either area and I'm still learning. Part of the project description mentions all of the pages the client wants. I'm solving…
-1
votes
2 answers

Equivalence of PHP includes in Iphone dev?

I just noticed I get a lot of redondant code from one class to another in my project (like menus or buttons) ;) Is there any way to optimize it ? Thank you ! Gotye.
gotye
  • 958
  • 2
  • 14
  • 33
-1
votes
1 answer

how to setup multi master nodes in hadoop(2 masters and 4 slaves)?

I am trying setup a hadoop cluster in which i had already setup 1 master and 4 slave.Now I am trying to make redundant master and redundant slaves. How do i make 2 master (redundant master) and redundant slaves in my cluster? please help..
yogendrask
  • 21
  • 1
  • 6
-1
votes
1 answer

Excel consolidate duplicate rows by summing the values

I have an excel spreadsheet with two columns. CON ITE TAT 5 T 6 TAG 7 GAT 3 T 8 GAT 2 TAG 6 TAT 3 I would like to remove the duplicates in first column (CON) by summing the values in the second column…
user3415874
  • 315
  • 1
  • 3
  • 6
-1
votes
2 answers

Rename duplicate record with PHP

I know you can select duplicate rows in MYSQL with the following query: SELECT ID, bedrijfsnaam, plaats, COUNT( * ) FROM profiles GROUP BY bedrijfsnaam, plaats HAVING COUNT( * ) >1 I want to able to select the duplicates and rename them with PHP.…
user2704687
  • 185
  • 3
  • 11
-1
votes
1 answer

C program to calculate CRC

Goodnight everyone, I´ve been working on this code based on the logic that to obtain a CRC you need to do 2 XOR operations, the first one: result = data ^ generator, then it moves >> bit by bit over the 16 bits and does the XOR over and over again…
Eos
  • 23
  • 1
  • 5
-1
votes
1 answer

Check for items visited in text file

I have a code that reads items in a text file. It reads them line-by-line. When an item is read it will be added to a list that prevents it from revisited again. When the list is full (max size), it will be cleared. However, there is a need to check…
-1
votes
1 answer

NSDictionary stores copy of redundant objects - how to prevent?

I've build some code that makes an auxiliary dictionary to store the keys of the main dictionary. So I can get a key for a value. To make them unique, in case of two or more identical values, I store the IDs of the dictionary objects as keys and…
awado
  • 207
  • 3
  • 10
-1
votes
1 answer

Collision generators or Datasets for hash collisions (like MD5, SHA-1 ...)

I'd like to test 3rd party (including "closed source") tools (like synchronization, de-duplication...) behaves in presence of files with same size and digest checksum (popular ones CRC32, MD5,SHA-1 ... etc). Some of those hashing methods have known…
-1
votes
1 answer

MySQL database structure for game: Which approach do you think would be the best to use?

I have a game, and when an action is completed, I need to give the user an item. Items will each have a unique id. Each action is also stored and described in their own table. Each action will have its own reward, but I want an action to be able to…
-2
votes
1 answer

Find redundant stored procedures which have the same body

I have a database and there are some stored procedures with different names but the same body. How can I identify them dynamically using a T-SQL statement? I cannot use definition column of information_schema.routines tables because it has create…
1 2 3
30
31