Questions tagged [duplication]
180 questions
0
votes
3 answers
How can I duplicate an array to another object?
This seems fairly straightforward.
@new_email.distributions = @email.distributions.dup
After this is performed, both share identical distributions.
However, once the new object "saves". The old one loses all of its distributions.
Why is…

Trip
- 26,756
- 46
- 158
- 277
0
votes
1 answer
If the where condition is on a joined table, will I get duplicated results?
I have three tables, one is tasks which are tasks that factory workers complete by putting them into batches, which is another table, each task has a batch_id, multiple tasks can have the same batch_id. The third table is the batch_log where all…

davidahines
- 3,976
- 16
- 53
- 87
0
votes
2 answers
Primefaces dataTable is duplicated on page
Have review(for adding review or comments) component in my application.
When add review, that p:dataTable is updated with ajax.
before adding review:
after adding first review
refresh page(F5):
after adding second review:
jsf:

sergionni
- 13,290
- 42
- 132
- 189
0
votes
3 answers
Select query to check the existing record in the SQLite Database in android
I want to know the Query to check whether the particular Record in the DataBase already exists or not for my application.
I have made one function for these, but it is not working properly.
public boolean ifExisting(String name) {
Cursor c =…

David Brown
- 4,783
- 17
- 50
- 75
0
votes
1 answer
WSAEINVAL error from WSASocket on socket duplication
I'm trying to transfer socket from the one process to the another process constantly. I'm using WSADuplicateSocket on the master process which always works fine. Then I'm calling WSASocket on the child process. However, I do get WSAEINVAL error from…

HcTeP
- 1
- 1
0
votes
0 answers
Copy contents of a directory to lots of other subdirectories
I have a some template files organised like this in a directory:
index.php
preferences.xml
user.xml
I have also have subdirectory of this directory that contains a large number of folders (the exact number of folders can change a lot) which have…

Cat Overlord
- 163
- 1
- 4
- 12
0
votes
2 answers
PHP mail form problems?
sorry if this seems like a silly question but I'm really stuck.
I'm using a form with php to allow users to send mail from my website and everything works fine except when you want to add more than one 'item', 'amount' and 'boxeach' to the form.
The…
0
votes
1 answer
MySQL duplication
Using SQLyog, I was testing whether the correct value was set into table.
And I tried
SELECT type_service FROM service WHERE email='test@gmail.com'
So, only one result was output.
type_service
0
To continue to test, I tried to set value, 1 by…

bonnie. Byun
- 19
- 2
0
votes
3 answers
Flash, ActionScript 3: using get/set properties to get values from other classes creates much duplicate code can it different?`
i am using get and setters in my as3 code to edit values of an other class (because those variables are shared) i dont like to put stage.sharedVar.isScrabble in my code every time to change a variable so i used get/set functions
see below
private…

matthy
- 8,144
- 10
- 38
- 47
0
votes
3 answers
prevent repetition of the numbers by not use of Collection Shuffle [Java]
I used random function in my code however i dont know how could i prevent repetition.Also i read another questions about this subject but i dont want to use "Shuffle".
Thanks for all help and clues.

limonik
- 499
- 1
- 6
- 28
0
votes
1 answer
R duplicate ID variables with different values
I have a data frame that looks like this;
head(x)
user_id location
1 New York
1 Chicago
2 Atlanta
3 San Antonio
I would like to remove the duplicate rows (ie. user_id 1) without regard to their location. So I…

chattrat423
- 603
- 2
- 11
- 24
0
votes
1 answer
Wordpress- prevent duplication of custom field value
I want to check values of meta-key called cf_isbn already in database in table wp-postmeta. If value is repeated, prevent insert content.
I have piece of code, that works correctly if I put xxxxxxx value to my ISBN field in frontend post-input, but…

Kamil Pilawka
- 3
- 2
0
votes
1 answer
Random arrays with no repetition
I have to create 15 question where only 10 will be display randomly.(10 array over 15 array). I need to make sure that there is no duplication of array during the random process.
public static void main(String() args){
String question_1 =…

Yogesh M
- 43
- 2
- 9
0
votes
6 answers
How to Duplicate an array list in Java?
I have an array list that stores objects called Movie. The objects contain variables such as name , date released ,genre etc.. Is there a way to duplicate the array so I can sort it one by one keep the original data unchanged. I will be displaying…

Dzyuv001
- 318
- 1
- 6
- 18
0
votes
1 answer
Is it possible to use conditions within an AJAX call to avoid duplicate code?
For example, I'm currently implementing client side javascript that will use a POST if the additional parameters exceed IE's safety limit of 2048ish charachers for GET HTTP requests, and instead attach the parameters to the body in JSON format. My…

James
- 223
- 1
- 6
- 15