We're using a simple File.Copy in C# for moving our database backups to extra locations.
However on some servers, this causes the SQL server to pretty much stop working. These servers have very limited memory, so they're paging data out to the harddrive every so often.
Whilst we should buy more memory, this is not going to happen for a...
Hi, i'm using php and mysql for a webpage, and i want to reuse information which i have in three database tables, similar to a 'save as' operation.
The tables are related as a 1-many and then 1-many, a tree structure.
I have so far implemented it by flatten out the tree structure with php (similar to one giant table) and storing it in...
I have a wxPython app, and in this app, I can select and copy text from various frames, but I can't do so from dialogs. Is there a way to do this?
I understand I could probably do this by putting some kind of TextCtrl in the dialog, but I'd like to be able to do this from a standard looking dialog.
EDIT:
Sorry, I should have been mor...
Hello,
I'm trying to implement a filecopy method that can match the performance a copy done with the windows explorer.
For exemple a copy (with the windows explorer) from our nas to my computer, performs above 100mb/sec.
My current implementation does the same copy at about 55mb/sec which is already better than the System.IO.File.Copy...
Hi,
Consider the following class:
class A {
char *p;
int a, b, c, d;
public:
A(const &A);
};
In the above I have to define a copy constructor in order to do a deep copy of "p". This has two issues:
most of the fields should simply copied. Copying them one by one is ugly and error prone.
the more important problem is that whene...
I am trying to copy an entire table from one database to another in Postgres. Any suggestions?
...
Is there a more performant way to concatenate 2-d arrays than this?
static void Main(string[] args)
{
int[][] array1 = { new int[] { 1, 2, 3 }, new int[] { 4, 5, 6 }, new int[] { 7, 8, 9 } } ;
int[][] array2 = { new int[] { 1, 2, 3 }, new int[] { 4, 5, 6 }, new int[] { 7, 8, 9 } };
int[][] a...
I have a situation similar to this:
http://stackoverflow.com/questions/2698591/objective-c-how-to-use-memory-managment-properly-for-asynchronous-methods
I have an object that asynchronously downloads & parses an xml doc. It then has a delegate method that transfers the data it retrieved to the caller.
My 2 questions are:
When do I rel...
I've been looking through the Marshal class, but I can't seem to find a method that allows me to copy from an unmanaged array (IntPtr) to another unmanaged array (IntPtr).
Is this possible using .NET?
...
I need to copy a number of image files from a given location to a given directory, i need the original filename preserved.
can it be something like
url->copy(img14, ImgPath);
where img14 is the path to the file including the filename and the imgpath is the destination directory.
img14 can be : /home/obscurant1st/Downloads/aaa.jpeg
or...
Ok so i have 6.5 Million images in a folder and I need to get them moved asap. I will be moving them into their own folder structure but first I must get them moved off this server.
I tried rsync and cp and all sorts of other tools but they always end up erroring out. So i wrote a perl script to pull the information in a more direct met...
Hi, im using the following code;
if( ! file_exists( $path ) ) { die( "'" . $path . "' not vaild path"); }
copy( $path, ltrim($create_folder . ltrim($path, "./"), ".") );
echo "'" . $path. "' => '" . $create_folder . ltrim($path, "./") . "'<br />";
The first if statement returns true yet the copy function returns;
Warning: copy('./fil...
Hi !
Ok ... It might be a stupid question ... but I'm not finding the answer right now !
I need to realize the copy of an object, for which I want all the attributes to be copied, except one or two for which I want to fully control the copy.
Here is the standard copying behaviour for an object :
>>> class test(object):
... def __...
One of my clients would like a No Copy Script on there website to prevent people copying the text off the page. Is there a cross browser way you can do this? I would probably just look at a JavaScript method. I know this can be turned off by people with a bit of knowhow but will do for most cases.
...
Hi,
I am using the copy-of element in xsl to print some xml to client, but the xslt outputs the unescapes the escaped xml characters to the output e.g.
if the xml being transformed is
<one attr="http://one.com/page?param1=value1&amp;param2=value2">
<child>text</child>
</one>
and if i use the copy-of to output this node <xsl:c...
We have deployed a solution which periodically needs to copy a file from one server (Server A) to a shared folder on another server (Server B). Server A is in a domain and and Server B isn't. The copying will take place in a process running as a Windows service.
My issue is how to do this the best way with regards to the share on Server...
The situation is this: My system (Win XP Pro) is unable to copy a huge video file (around 6 gigs) from a DVD disk, which might be defective, scratched or whatever but which can be played back with mplayer with a few frames full of mosaic though. When the copying process lasted for a certain length of time, the system would abort the effo...
How can I copy an entity created from my Geo model:
class Geo(db.Model):
title = db.StringProperty()
link = db.StringProperty()
updated = db.DateTimeProperty(auto_now =True)
author = db.ReferenceProperty(MyUser)
id = db.StringProperty()
entry = db.ListProperty(db.Key)
...
So I have an ArrayList in java. And what I'm doing is creating a new list with updated values. But I want to put those new values into the original ArrayList. This is important because I'm passing the original arraylist reference to an object that I no longer have access to, but I need to keep its contents up to date. Is there any way to...
Hello,
I'm learning how to use maven for my standalone java apps but I don't understand how to do a recursive copy of all directories from /src/main/resources to /taget directory.
I tried using antrun and resources plugin, but resources are copied to /target/classes and not to /target.
What is wrong here?
<build>
<pluginManagement>...