Questions tagged [clone]

A clone is a copy of an object with all of the same attributes, data, and methods as the original object. Or a software system that is designed to mimic another system.

A clone is a copy of an object with all of the same attributes, data, and methods as the original.

In practice, an object is cloned when you want to duplicate the original exactly and then change it in some way, such as changing a due date on a recurring task or linking it to a different object in a database hierarchy.

In computing, a clone is a hardware or software system that is designed to mimic another system.

See Also:

4519 questions
2
votes
1 answer

Canvas (Kinetic.JS) - cloned group doesn't appear?

I'm playing with Kinetic and can't seem to figure out why a group I'm cloning won't appear. Fiddle: http://jsfiddle.net/DgwLd/3/ I can clone shapes no problem - it's just groups that don't appear. The documentation confirms that groups can be…
Mitya
  • 33,629
  • 9
  • 60
  • 107
2
votes
2 answers

Clone object is not droppable

I'm trying to clone a droppable object using Jquery but the cloned object is not…
SteD
  • 13,909
  • 12
  • 65
  • 76
2
votes
2 answers

Change in clone for ActiveRecord objects in ruby-1.9.2.p290 or ruby-1.9.3

When I clone a simple object in ruby-1.9.2-p290, everything looks OK class Klass attr_accessor :str end s1 = Klass.new #=> # s1.str = "Hello" #=> "Hello" s2 = s1.clone #=> #
user1593409
  • 159
  • 1
  • 1
  • 3
2
votes
5 answers

Why clone method is allowed on Array?

clone() method is not visible by default in Object class so how does it does not give error for Array types? Does this means that there is a type called int[] of which implementation is written in java and if yes where to find it ? and if it is…
Amit Deshpande
  • 19,001
  • 4
  • 46
  • 72
2
votes
1 answer

How to get URL in outSequence?

I use clone to send a request to different servers, and use aggregate in outSequence. It can receive all response. Some may success, and some may response error. But I don't know which server response error. I think I need get URL for any response…
ayan117
  • 171
  • 1
  • 9
2
votes
1 answer

Clone product model/object in Magento

Is it possible to clone a product model/object instance in Magento? Basically I'm hooking in to the save event of a product and wish to automatically create a child product based of the main product. The information will be largely the same, except…
Lewis
  • 3,375
  • 3
  • 29
  • 26
2
votes
1 answer

git clone. How to clone local repo by hardlinks?

I have a local git repository. I want to clone it on the local machine by hardlinked files to save disk space. How can I do it?
Nikita
  • 837
  • 1
  • 12
  • 23
2
votes
4 answers

jquery clone form element and insert it in the form

Hy, my problem is this http://jsfiddle.net/VZ2MK/1/ (function(){ var input = $('.test').clone(); $('a.add_input').on('click', function(e){ $(this).before(input); e.preventDefault(); }); })(); I need to add…
Mr. Sam
  • 790
  • 2
  • 9
  • 31
2
votes
2 answers

JQuery .on() - Cloning Dynamic Content

I am working on a project where a user is able to perform some live search functions. When the results of the live search are displayed, via JQuery Ajax, I need the user to have the ability to click on one of the displayed results and create a…
Yuschick
  • 2,642
  • 7
  • 32
  • 45
2
votes
0 answers

TortoiseHg aborts unknown format when cloning

I am using windows explorer to clone a repository from a folder in a mapped drive into my local working folder. I have never encountered this problem before with any of my previous repositories, but I keep getting an error while the directory is…
Sebbo
  • 405
  • 2
  • 9
  • 15
2
votes
5 answers

Jquery Clone a selector and modify option id

How could I clone #one, make its…
Norse
  • 5,674
  • 16
  • 50
  • 86
2
votes
0 answers

repo snc error fatal: Could not read bundle

I am trying to sync a list of android repo's after doing git clone and repo init. I ran the repo sync command and enabled traces. The traces show the following error: fatal: Could not read bundle The repo sync doesn't work or return, despite…
Amabele
  • 51
  • 2
2
votes
1 answer

Copying An Object With Sharing References To Member Data

I have an Java webapp, that pulls up an employee's record and stores it in a home made data holder object, called, oddly enough "EmployeeRecordDataHolder". I want to make a copy of EmployeeRecordDataHolder at the beginning of an update process, so…
Steve
  • 3,127
  • 14
  • 56
  • 96
2
votes
2 answers

Java - Avoiding cast using an array of superclass-objects

I have many sub-classes implementing the superclass Animal (Dog, Cat, Mouse, etc) So I do: Animal[] arrayOfAnimals = new Animal[100]; I put in it Dog,Cat etc objects. When I get something from it I do If(arrayOfAnimals[1] instanceof Dog) { …
2
votes
1 answer

Subversion to Git: Clone creating branches?

I am converting a large (>6500 commits) Subversion repository to a Git repo and have been running into some problems I am hoping someone can help with. Here is where I'm at: I created a local Subversion repository backup of the remote repository. I…
jmastic
  • 109
  • 1
  • 10