copy

How can I modify the Book Copy module in Drupal 6 to forward the user to a different starting tab once a copy is made?

Example call to copy a book using the Book Copy module in Drupal 6 (assuming a node exists with book id of 142): www.examplesite.com/book_copy/copy/142 When the above site is called and node 142 is copied it then notifies the user that the book was copied, but starts the user out on the Outline tab for the book copy. I think it would b...

How can I copy an entire directory in Perl?

I need to copy entire directory to some location. What is the best way to do so ? File::Copy copies only file by file as I saw it. By the way I work under Windows. Thanks for help. ...

Copying a table from one SQL server and DB to another using SQL Server management studio

I have a website I have developed using a databse and I have created some security on the site. This ceates another DB called ASPNETDB.MDF. The main site database is on a server at the website host. At this time the aspnetdb is in the APP_DATA folder of my website. I want to copy the tables and their data from the aspnetdb to the main ...

Flash - Making a deep copy of a sound

Hallo, I have my own sound class that is derived from the Flash Sound class. I would very much like to add a Copy function to my extended class. I had it working for a while by using the following code: var newSoundClass : Class = Class(getDeninitionByName(soundName)); var newInstance = new newSoundClass(); I have tried registering t...

Remote linux server to remote linux server large sparse files copy - How To?

I have two twins CentOS 5.4 servers with VMware Server installed on each. What is the most reliable and fast method for copying virtual machines files from one server to the other, assuming that I always use sparse file for my vmware virtual machines? The vm's files are a pain to copy since they are very large (50 GB) but since they ...

Copying files in Xcode

I've created some files in Xcode. Now I want to copy some of them. How should I do that? Currently, I copy them in Finder & copy those back into Xcode in order to work on them. There must be a better way. ...

Selecting text in mobile Safari on iPhone

I'm trying to make it easy for an iphone user to copy some text to the clipboard in mobile safari. As in the usual "touch-hold-copy". There is a specific bit of text I want to a user to copy. I have full choice of the html markup in which to wrap the text. How can I make it easy, rather than abitrary? For instance: Is there a way to "s...

"git merge -s theirs" needed -- but I know it doesn't exist

I have a number of remote repositories that I want to merge together. Some of the subtrees in those repositories are unique to the remote (they contain data that is host-specific), other subtrees contain data that is (supposed to be) common across all remotes. What I want to do, essentially, is run "git pull " for each remote. This wi...

NSIS: Problem to copy 1 file to another excluding a line

I want to replace the file 1.txt with its original contents except the line in R1, for which I wrote the following code: FileOpen $0 "1.txt" "r" GetTempFileName $R0 FileOpen $1 $R0 "w" loop: FileRead $0 $2 IfErrors done ...

How can I copy data records between two instances of an SQLServer database

I need to programmatically (ADO.Net) copy records from a table in one database to a table in another database on a different server. This is very similar to "How can I copy data records between two instances of an SQLServer database" except that I am not allowed to create a link to the destination server so the accepted answer to that qu...

How to easily copy one type of list into another type?

Say I want to copy all elements of list A into list B. But the elements in list A are of type ExampleClass and elements in list B are String. ExampleClass { String a; } Since ExampleClass has an attribute a which is a String, when converting from ExampleClass to String I want the value of a to be returned as the String that repres...

Copy from search mode to ex mode

While in the "/" mode to search, what should I do if need to copy it to the ex mode. E.g. I searched for /ab.*xy, now I need it as %s/ab.*xy/.../g. My intention is to test my search and then use that for a search replace ...

copying dictionary doesn't give me expected result

I have to copy one dictionary, work with that copy and return to the original one. What seems to happen is that the orignal dictionary is modified when I do some work on the copied one. Here is my code : dmodified_profile = new SortedDictionary<int,SortedDictionary<string,List<string>>>(d_profile); I don't know why d_profile which ...

Writing a deep copy - copying pointer value

In writing a copy constructor for a class that holds a pointer to dynamically allocated memory, I have a question. How can I specify that I want the value of the pointer of the copied from object to be copied to the pointer of the copied to object. Obviously something like this doesn't work... *foo = *bar.foo; because, the bar object...

x-code copying project to another computer problem

Hi there Im having problems copying a project over from one mac to another. The project compiles and runs fine after being copied, however xcode seems to have some duplicate of the same classes which seem to be invisible on the project browser on the left. For example if I jump to definition on a variable I get 2 suggestions pop up. Th...

How to copy textarea to clipboard for Firefox (see the http://j.mp copy button) ?

I wonder how the http:j.mp can use the auto copy function. Please help me! ...

Copy/Paste in JavaScript?

I know this question was asked like a million times by now, but I couldn't really find a good up-to-date solution. I've implemented my own menu to provide the user the ability to Cut, Copy and Paste into my WebApp. But I'm not sure how to actually work with the clipboard on Firefox, IE, Safari/Chrome. Thank you for your help. ...

Does std::copy handle overlapping ranges?

When copying data from one range to another, you have to be careful if there's partial overlap between the source and destination ranges. If the beginning of the destination range overlaps the tail of the source range, a plain sequential copy will garble the data. The C run-time library has memmove in addition to memcopy to handle such...

iPhone Dev: triggering Copy function UIResponderStandardEditActions for selection on UIWebView

Greetings! Please kindly give me some advice on the following requirement: To select a text from a page loaded on a UIWebView To trigger the Copy function using another button instead of the standard Copy from the UIMenuController What I would like achieve is basically the storing of the highlighted/selected text into a persistence....

executing copy command in a batch file

hi I'm using a windows copy command to perform auto file backup of Microsoft outlook files for a domain users. the problem exists after 6 month of using this batch file is that the .pst file size for each user is growing and the copy operation is getting too long to complete. i want to know are there any way to copy only the changed bi...