move

custom allocator using move for vector of thread

I'm currently learning about concurrency in C++ and came across using a vector of threads, which I believe will be possible in C++0x. However, my current compiler doesn't appear to have an implementation of move-aware containers and so I get errors generated because std::thread::thread(const std::thread&) is deleted, ie I can only use th...

Java renameTo on folder with contents

Just trying to use Java to rename the root of a folder tree. Using File.renameTo() works in Windows only is the folder has no contents at all. I can't seem to find if this is expected behaviour or not. It doesn't seem to be mentioned in the docs. I am current having to use a recursive file\folder copy process then delete the original, ...

Creating a new directory structure and moving files using APS.NET and C#

Can someone tell me what is going to happen in this code when an error is encountered? Ideally it should continue the foreach statement until it gets to the last record, but I suspect it's stopping in the middle of the operation because when I check the number of files moved it's off by 225. If it is in fact stopping because of an error,...

How to move and resize the browser's window in Opera and Chrome?

I was looking for a way to resize and move the browser's window and I've found it: self.resizeTo(w, h) and self.moveTo(x, y) - this seems to work perfectly, but only in Firefox and IE (tested with IE8, don't know how does it work in the previous versions). How can I force the same behavior (resizing and moving) in Opera and Chrome? In th...

Is there a way to move many files quickly in Python?

I have a little script that moves files around in my photo collection, but it runs a bit slow. I think it's because I'm doing one file move at a time. I'm guessing I can speed this up if I do all file moves from one dir to another at the same time. Is there a way to do that? If that's not the reason for my slowness, how else can I spee...

Flex 4 animate resize and move on group and children of group

Hello! I have a Spark Group with an image inside and a label control. <s:Group><mx:Image source="..."/><s:Label text="Hello!"/></s:Group> The image is that of a speech bubble. I want to make the effect of it growing from bottom-right to full size. How can I do this and make it that resizing the Group will also resize the children? Th...

php - Diferences between copy, rename and move_uploaded_file

Are there diferences when I use that functions? Why should I use one instead of the other one... Thank you. ...

EXTJS - Move component in FormPanel

Hey, I am nearly stopped in one things. Need some help of genius's mind. . I have form-panel and in it many 'fieldset' are created. Now I want to move fieldset inside the form. Critical things(!!) but I need to do this. ...

How do I make Selenium RC to not move the browser window?

hi, Is there a way to specify where Selenium RC spawn the browser window? When I run my test script, Selenium RC opens 2 windows in the browser, the Selenium RC window and the AUT, and the Selenium RC window takes up most of my screen space. Ideally, I want to control where their location and size separately, but if not, it would be nic...

Need help making HTML's

Hi to all the gurus out there. Anybody whos ever worked in an office enviroment will vouch that the boss somtimes expects the imposible. todays one such day for me. The story starts with an idea to automatically attach unlimited amounts of PDF's to an emial, ussing the Acrobat program. Quickly you begin to understand that Adobe can o...

Moving files from watched folder in C#

Hi, I am using a FileSystemWatcher which uses the Created event to listen for when I copy files into this directory. this method is below: private void fileSystemWatcher1_Created(object sender, System.IO.FileSystemEventArgs e) { System.IO.Directory.Move(fileSystemWatcher1.Path+@"\"+e.Name, fileSystemWatcher1.Path + @"\Processing\"+e....

winforms draw border and move when FormBorderStyle set to None

Hi, I display a winform as a dialog (with ShowDialog over a main window). So, I set the FormBorderStyle to None because I wanted neither the control boxes nor the title bar. Though, I would like a border drawn (for example a blue border like normal windows) and keep the ability to move the form. I don't need the ability to resize it. I t...