Questions tagged [duplication]
180 questions
1
vote
1 answer
PostgreSQL: on-the-fly duplication of the database on the same server
We are using the same PostgreSQL 9.3 Server both for production and development.
So we would like to get the copy of the existing production database for the development purposes. To be precise, all the INSERT/UPDATE/DELETE events that come to…

Vitaly Isaev
- 5,392
- 6
- 45
- 64
1
vote
1 answer
Neo4J: Avoid repeating nodes
I have a model with students and the courses that they assisted. All students have a groupNumber.
So when I want to get all the students that assisted to same course but are from a different groupNumber I do this:
MATCH…

Matías Hernán García
- 231
- 3
- 12
1
vote
2 answers
Int vs Float: Counter
Code:
#include
#include
#include
#include
int main()
{
FILE *fp1, *fp2;
int ch1, ch2;
clock_t elapsed;
char fname1[40], fname2[40];
printf("Enter name of first file:");
fgets(fname1,…

humblebeast
- 303
- 3
- 16
1
vote
1 answer
Template specialization containers
I will open the question with a code sample:
template class Container>
class Schedule {
public:
Schedule& print( std::ostream& os);
private:
Container > …

user11001
- 372
- 3
- 14
1
vote
3 answers
Conditionally duplicate rows in R while changing values in a single column
I have a dataframe, df, in which some of the values in the second column, alt, are separated by commas:
ref alt
ACTGG A,AATGG
GGC G,GG
GC G
AAT A,AA,AAA
Is there a way in R for me to duplicate each row that has comma-separated…

soosus
- 1,211
- 4
- 18
- 27
1
vote
5 answers
Need assistance reducing duplicate code
I'm a beginner and the lecturer told me to reduce the duplicate code in these two functions. This is a library. I guess I need one more method for checking through the array. All I need is some advice/principle I need to use. I'll write the method…

user2879175
- 49
- 7
1
vote
0 answers
Message box not working the way it should and Looping duplicates data
Is there a shorter way to do this?
Like in one click and the data goes to where I want it to be?
Or maybe a shorter code for this?
Because the worksheet may vary but the details are all the same.. Please see the difference in transfersheet2 and…

Helpless
- 11
- 3
1
vote
1 answer
jQuery cloned element and it's child button click event fires multiple times
I have some code to clone a table row:
// Clone existing row and make it a template row
var clone = $('table tbody tr:last').clone();
clone.insertBefore('table tbody tr:first');
clone.find('.edit').click();
As you see I want to fire the click event…

Leniel Maccaferri
- 100,159
- 46
- 371
- 480
1
vote
2 answers
Duplicating an imported graphic in Flash
I'm loading a graphic via the Loader Class. Now I need to use it both as the original image and a thumbnail of that image. Alas, there is no "duplicateMovieClip" or anything like that in AS3
If I addChild it to the normal view and then to the…

Sorcy
- 2,587
- 5
- 26
- 34
1
vote
2 answers
Reducing the recordset where a particular field has similar data. (MySQL)
I have two tables, 'discussion' and 'discussion_responses'. A unique ID from 'discussion' is used in 'discussion_responses' to identify the response to the original post in a forum. I created the following query to extract the posts that have NEW…

Richard
- 11
- 1
1
vote
1 answer
Default synchronization of Request.Cookies and Response.Cookies
Would it be possible for anybody to clarify the behaviour I am experiencing in a .NET 4.0 web app, when trying to manipulate the cookie collections in Response.Cookies and/or Request.Cookies. Despite my efforts to find documentation or forum…

ergolargo
- 53
- 6
1
vote
1 answer
Git is duplicating code
We just switched from Subversion to Git.
The problem that came up this morning was that we cherry-picked a commit from a branch into master so maser would have a bug fix. Then we merged master back to the branch.
When we tried to compile, all of…

James Baker
- 67
- 1
- 8
1
vote
2 answers
Infragistics UltraGrid (9.2) Band duplication after re-creating the datasource
I'm working my brain off trying to figure out a strange behavior of the UltraGrid Bands mechanism. The below code contains everything you need to re-create the problem.
I'm creating a DataSet and filling it with two DataTables. Then I assign the…

Nyuno
- 463
- 4
- 16
1
vote
0 answers
Duplicating files by timestamp in Python
I'm using a program that takes a picture every hour along with 3 other metadata files.
All of these are stored in a folder.
Through Terminal I made the program run ever 10 minutes. However I still want to keep the old structure of 1 picture (4…

Hauk1
- 85
- 4
1
vote
0 answers
Testing CSV values using SQL for validity
I am trying to wrap my head around how to test Key values in a CSV file against its parent database.
I have a table with address values, each record with a numeric key. This table has many duplicates, each with a unique key.
I have a program that…

Joey Davis
- 11
- 1