Questions tagged [duplication]

181 questions
136
votes
17 answers

Xcode duplicate line

There is a Duplicate command in the Edit Menu (with a default shortcut of ⌘D), but it is (as Halley pointed out) meant for duplication in the Interface Builder part of Xcode. So, how do you (easily) duplicate a line in Xcode 4? Related question…
Blaz
  • 3,218
  • 4
  • 23
  • 40
44
votes
8 answers

Is there some industry standard for unacceptable webapp response time?

There's a cots (commercial off-the-shelf) application that I work on customizing, where a couple of pages take an extremely long time to load for certain distributions of data. (I'm talking approximately 3 minutes for a page to load in this…
Alex Argo
  • 8,620
  • 12
  • 40
  • 45
35
votes
5 answers

When duplicating a target in Xcode, is there any way to set the name that the target will have before or as it is created?

Duplicating a target in Xcode is a great way to create multiple app or framework/library products that have somewhat different features using the same codebase as a result of conditional code controlled by environmental variables set within the…
Halle
  • 3,557
  • 1
  • 33
  • 53
20
votes
2 answers

How to avoid duplication in GROUP_CONCAT?

I have query which concatenate strings if they belong to one group. SELECT e.id, ke.value, re.value AS re_value, GROUP_CONCAT(g.value,', ') FROM entry e INNER JOIN k_ele ke ON e.id = ke.fk …
Joe Rakhimov
  • 3,734
  • 7
  • 36
  • 91
18
votes
3 answers

PMD/CPD: Ignore bits of code using comments

Is there a way to tell PMD to ignore checking parts of code for duplication? For example, can I do something like this: // CPD-Ignore-On ... // CPD-Ignore-Off Currently I have PMD set up like this using Maven, but don't see any arguments that would…
digiarnie
  • 20,378
  • 29
  • 75
  • 124
15
votes
4 answers

Making a duplicate of a form in Visual Studio 2008 (C#)

I have a form in my existing project. My current task is to make a duplicate of an existing form and change few things on the new form. Making a copy of the form cs files would not do since the existing contents themselves refer to file…
Shamim Hafiz
  • 19,616
  • 36
  • 104
  • 164
14
votes
1 answer

nodejs modules and duplication? If an app uses two modules that require a common module, does node optimize to prevent loading the same code twice?

Apologies if this is a dumb question, but if I create 2 modules that both require('http') and my main application that requires both modules, or requires modules that in turn require both modules, while also requiring 'http' for its own purposes, do…
user823611
  • 143
  • 1
  • 4
10
votes
4 answers

How iOS handle URL scheme duplication?

If 2 other app register same url scheme, how iOS handle this?
eonil
  • 75,400
  • 74
  • 294
  • 482
10
votes
2 answers

Duplicate AndroidManifest.xml in bin directory?

I just upgraded to a latest ADT and seems a quite a bit has changed (for the better). Just created a new project and looked into the bin directory of my project and I see a AndroidManifest.xml file that seems to be an exact duplicate as the one in…
Jay Sidri
  • 5,877
  • 3
  • 36
  • 53
9
votes
2 answers

Dealing with boilerplate in Haskell

This is kind of a soft question, but in the following code, there's a lot of duplication in the section marked "caesar ciphers." What's the "Haskell" way to deal with this? Should I make a higher order function? I thought about that, but I don't…
hraesvelgr
  • 3,961
  • 2
  • 32
  • 58
8
votes
4 answers

Is SHA sufficient for checking file duplication? (sha1_file in PHP)

Suppose you wanted to make a file hosting site for people to upload their files and send a link to their friends to retrieve it later and you want to insure files are duplicated where we store them, is PHP's sha1_file good enough for the task? Is…
wag2639
  • 2,204
  • 5
  • 24
  • 29
8
votes
2 answers

Packet Loss and Packet duplication

I am trying to find out what the difference between packet loss and packet duplication problems is. Does anyone know what 'packet duplication' is all about? Is it the same as re-transmitting packets when a loss is detected in TCP?
source.rar
  • 7,632
  • 9
  • 45
  • 79
7
votes
3 answers

How can I copy clone/duplicate a folder on S3?

I want to make a copy of the folders and images on my s3 bucket for my development server. How can I do that?
Trip
  • 25,831
  • 41
  • 146
  • 260
7
votes
4 answers

How to duplicate a PHP-based website?

Background: I'm new to PHP, but I've been asked to make some code changes to support an application hosted on our Intranet. The actual code changes don't look too bad. However, there is currently no development environment, so I have undertaken to…
Steve T
  • 150
  • 1
  • 10
6
votes
2 answers

Algorithm for bit expansion/duplication?

Is there an efficient (fast) algorithm that will perform bit expansion/duplication? For example, expand each bit in an 8bit value by 3 (creating a 24bit value): 1101 0101 => 11111100 01110001 11000111 The brute force method that has been proposed…
jivany
  • 71
  • 6
1
2 3
12 13