Questions tagged [duplication]

180 questions
0
votes
2 answers

Inserting duplicate records based on a value without using cursor

I had a problem in database. I have to insert duplicate records of a particular record on a another table based on a value. First i used cursor to fetch each records and get the number of duplication i wants and after that used another cursor for…
Vijaychandar
  • 716
  • 5
  • 21
0
votes
2 answers

Android SAXParser Leftovers

I have an Android app that parses XML using SAXParser. Everything goes ok, excepting some texts that get duplicated and trimmed. For example: "Just do it, even if you do not know how!" becomes " not know how!" This is the DefaultHandler code.…
gabi906
  • 374
  • 1
  • 4
  • 15
0
votes
2 answers

Duplicate error message when validating a model

How is it possible that the model validation errors messages are getting duplicated in ruby on rails application?
Bogdan Gusiev
  • 8,027
  • 16
  • 61
  • 81
0
votes
2 answers

INSERT with ignore on duplicate but no Key

I have field that it's not a key (it's text) and I want to insert row into table but only if there is no such field. Is the way to do this on one query without need to call select first to check if there is row with this filed in table?
jcubic
  • 61,973
  • 54
  • 229
  • 402
0
votes
5 answers

How to avoid code duplication here?

I have two flavours of a method in a class, one with an extra parameter first one: public override void CalcV(IV iv) { initializations otherOperations for (int i=0; i < NUM; ++i) { SomeOtherOperations double v…
jambodev
  • 351
  • 2
  • 3
  • 9
-1
votes
2 answers

How to solve duplicate content for search engines?

I have 2 websites: Site1.com and Site2.com. Site1.com has 2 pages: a.htm and b.htm. Site2.com has 3 pages: a.htm, b.htm and c.htm. Pages a.htm and b.htm are duplication at the 2 sites. I want search engines to index a.htm and b.htm from Site1 and…
user776676
  • 4,265
  • 13
  • 58
  • 77
-1
votes
2 answers

Avoiding duplication of IDs in php

I have a php browser based application that is for a hospital management system. The situation is that there are 3 departments from which payments are made ie. reception, lab and pharmacy. The worker at each location above is different and so is…
Shakir
  • 273
  • 1
  • 5
  • 14
-1
votes
1 answer

wordpress create duplicate post on save / update

I know this might seem strange to some, but i would like to duplicate a post on creation. When a post is created, i would like to duplicate it appending new data to the title, as well as updating meta fields and changing the taxonomy it is in. Here…
danyo
  • 5,686
  • 20
  • 59
  • 119
-1
votes
1 answer

How to set up this duplication function in javascript?

This is what I need to make work in JavaScript:  [1,2,3,4,5].duplicate(); // [1,2,3,4,5,1,2,3,4,5] Best practices? Ideas?
j_d
  • 2,818
  • 9
  • 50
  • 91
-1
votes
4 answers

Check for duplications in listbox with more than 1 item

I have to make a playlist where I can add a song title, the artist and the duration. I may not add the same song twice ( title, artist, and duration the same) and when i try to add a song with the same title and artist, but with a different…
Sam
  • 1
  • 2
-1
votes
2 answers

If I have created a ViewController with a picker and second one with details based on the picker selection can I duplicate it?

I have an 2 ViewControllers that I have created to work together in a project. You press a Button on a Page and the First ViewController opens. On the first ViewController you select an Error Code thru a PickerView based on a supplied Plist then you…
drm1963
  • 11
  • 5
-1
votes
1 answer

Duplicating JPanel Task

In java i have a panel and two buttons in it named b1 and b2. when i copy the panel and past it in the same frame, the button names become b3 and b4 but the code i wrote in the b1 doesn't shift to b3 ? how do i do this i.e. when creating a copy of…
-2
votes
2 answers

how to avoid duplication in mysql database

when i insert in mysql data base, i would like to avoid the duplication. what should i add in the "if" expression. the insert function is : private void Inscrire_Click(object sender, EventArgs e) { //bouton insert cmd = new…
asma
  • 1
  • 4
-2
votes
3 answers

Removing duplicate rows from a SQL query

I have a problem writing a SQL query. I have 2 tables: question and candidat_test_answer, formatted as follows. question: (id_question) (id_catgorie) | 1 |1 | 2 |1 | 4 |1 candidat_test_answer: id_question…
-5
votes
4 answers

Remove duplicate string values

let s say i have a string String link = "www.abc.com" now i have another string String actualLink = "www.abc.com//www.abc.com/content/detail.html" now I need a method to check actualLink string and remove the dulpicate part with string link for…
sefirosu
  • 2,558
  • 7
  • 44
  • 69
1 2 3
11
12