Top "Clone" questions

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

Ruby dup/clone recursively

I have a hash like: h = {'name' => 'sayuj', 'age' => 22, 'project' => {'project_name' => 'abc', 'duration' => 'prq'}} …

ruby hash clone hash-of-hashes dup
Creating a shallow copy of structures in C#

I tried to search for my answer and found them in regards to C and not C# so thought of …

c# .net clone deep-copy shallow-copy
How to clone Image?

I have an Image. I need to make a exactly copy of it and save it to BufferedImage, but there …

java performance image clone copying
How to prevent NFC tag cloning?

I am making an app using NFC tags and I have to prevent the NFC tag from cloning. I have …

android security clone nfc contactless-smartcard
deep copying a graph structure

I have a graph class with Node's, where each Node can connect to others: public class Node { List<Node&…

java data-structures clone deep-copy
SQLAlchemy: Modification of detached object

I want to duplicate a model instance (row) in SQLAlchemy using the orm. My first thought was to do this: …

python sqlalchemy duplicates clone instance
How to create multiple copies of ImageView object programmatically?

I have an ImageView object, R.id.tile, defined in my XML layout, and what I'm trying to do is …

android imageview clone inflate
How can I remove the working copy from a Mercurial clone?

When cloning a repository with mercurial you can pass the -U/--noupdate flag to create a clone with no working …

mercurial repository clone working-copy bare
How to avoid unchecked cast warning when cloning a HashSet?

I'm trying to make a shallow copy of a HashSet of Points called myHash. As of now, I have the …

java clone hashset
How to clone an Azure VM

Is there a simple method of cloning an Azure VM? So far I have found that you can "Deprovision" a …

azure virtual-machine clone cloning