copy

Subversion: Can multiple copy operations be done in a single revision?

From what I understand about transactions in Subversion this should be possible in principle, but I don't know any tool that supports it. The background is that we are discussing a migration from PVCS Dimensions to Subversion, and the main feature cited as missing in Subversion is "Design Parts". A design part is an arbitrary collection...

copy one file content to another using "sed" editor

I am using shell script. How to copy one file content to another file using "sed". I have to use only sed to complete this copy. can anyone help me? Thanks in advance Sudha ...

How to undo an 'svn copy'

I've accidentally overwritten an old branch by copying trunk over it using 'svn copy'. More specifically, for every release, trunk is branched and kept as a tag, using: svn copy svn://machine/REPOS/trunk svn://machine/REPOS/tags/$RELEASENR But this time the value of 'RELEASENR' was that of an old existing branch instead of a new one. ...

Dynamically creating a menu in Tkinter. (lambda expressions?)

I have a menubutton, which when clicked should display a menu containing a specific sequence of strings. Exactly what strings are in that sequence, we do not know until runtime, so the menu that pops up must be generated at that moment. Here's what I have: class para_frame(Frame): def __init__(self, para=None, *args, **kwargs): ...

Python script - SCP on windows

Hi, How is it possible to do secure copy using python (windows native install - ActivePython). Unfortunately pexpect module is for unix only and we don't want cygwin locally. I wrote a script that based on pscp.exe win tool - but always stops at first execution becuse of fingerprint host id. and haven't found option to switch this off. ...

"display:none" content copied to clipboard, visible when pasted

Hi all, I'm having a problem with non-displayed HTML elements being copied to the clipboard, and then displayed when the content is pasted into MS Word, Outlook, etc. For example: <p>Hello</p> <p style="display: none;">I'm Hidden</p> <p>World</p> If I view that HTML in a browser, copy the text to my clipboard, then paste into Outloo...

Copy constructors - c++

Can I write a copy constructor by just passing in a pointer instead of the const reference? (Would it be ok if I make sure that I am not going to change any values though?) Like so: SampleClass::SampleClass(SampleClass* p) { //do the necessary copy functionality } instead of: SampleClass::SampleClass(const SampleClass& copyObj) {...

MSBuild Recursive Copy with %(ConfigurationToBuild.PlatformToBuild)

Hi I have the following task, which because of the combination of DestinationFiles and DestionationFolder does not work, but it grabs the concept of what I want to do: <CreateItem Include="$(Destination)\**\*.Generated.*.*"> <Output TaskParameter="Include" ItemName="GeneratedFiles" /> </CreateItem> <Copy Condition=" '%(Configuration...

Unable to pbcopy at Vim's ED editor

I have tried unsuccessfully to copy the pwd to pbcopy as follows pwd | !pbcopy How can you copy your path in Vim's ED editor (: -mode)? ...

Copy file to remote computer using remote admin credentials

I am using C#... I need the ability to copy a set of files to about 500 unique computers. I have successfully been able to use the LogonUser() method to impersonate a domain account that has the required permissions to copy the files. The destination path for the files is something like: \\RemoteComputer\C$\SomeFolder My questions i...

MySQL database replication

Hello; This is the scenario: I have a MySQL server with a database, let's call it consolidateddb. This database a consolidation of several tables from various databases I have another MySQL server, with the original databases, these databases are production databases and are updates daily. The company wants to copy each update/insert/...

Move top 1000 lines from text file to a new file using Unix shell commands

I wish to copy the top 1000 lines in a text file containing more than 50 million entries, to another new file, and also delete these lines from the original file. Is there some way to do the same with a single shell command in Unix? ...

XSLT : transform only the specified elements

Hi everyone, I am trying to develop an XSLT stylesheet which will transform an xml into another by keeping in view: By default the stylesheet should display nothing for each element (not even the text). If there is an explicit template match for an element, then copy that element, it's attributes and all its sub-elements (and their at...

using Visual Studio to copy files?

Hello everyone, I want to create a Visual Studio (I am using VSTS 2008) project which simply does file copy work, in more details, I will add some files to this project and this project copy files (included in this project) to some destination location when I build the project. Any ideas how to do this in VSTS? BTW: I heard using proj...

How to handle Copy for multiple controls when adding a ShortcutKey to menu item?

If I do not create an "Edit->Copy" menu item and assign it the shortcut keys "CTRL+C", then I can select a control (RichTextBox, DataGridView, etc..) and hit "CTRL+C" and the control itself will handle the copy. I can copy text out, and paste it into notepad, etc.. Now throughout my whole form, I have a lot of controls. But I have a cus...

How do I copy PART of an input field to another field?

I know how to copy an input field to something else. No prob. How do I copy part (ie. the month of a date field) to another field. I want to take a field that is a date range (ie. 7-13-09 to 7-15-09) and copy it to two input fields (ie. the start date and end date) ...

How to read path from a txt file and copy those file to a new directory?

from shutil import copy f = open(r'C:\temp.txt', 'r') for i in f.readlines(): print i copy(i,r"C:\opencascade") f.close() I am reading path from temp.txt file which has 500 lines each line is a path for specific file to be copied to location "C:\opencascade" How to convert 'i' in above code to be raw string to make the ...

How do I copy an object in Java?

Consider the below code: DummyBean dum = new DummyBean(); dum.setDummy("foo"); System.out.println(dum.getDummy()); // prints 'foo' DummyBean dumtwo = dum; System.out.println(dumtwo.getDummy()); // prints 'foo' dum.setDummy("bar"); System.out.println(dumtwo.getDummy()); // prints 'bar' but it should print 'foo' So, I want to copy the...

Copy binary data from URL to file in Java without intermediate copy

I'm updating some old code to grab some binary data from a URL instead of from a database (the data is about to be moved out of the database and will be accessible by HTTP instead). The database API seemed to provide the data as a raw byte array directly, and the code in question wrote this array to a file using a BufferedOutputStream. ...

copying nodes in java dom api

I'm having trouble with copying nodes from one document to another one. I've used both the adoptNode and importNode methods from Node but they don't work. I've also tried appendChild but that throws an exception. I'm using Xerces. Is this not implemented there? Is there another way to do this? List<Node> nodesToCopy = ...; Document newD...