restore

How do I minimize or restore an external app with the correct animation effect in Vista/Win7?

I'm writing an app that can minimize or restore other, external apps' windows. However, when I do this, the windows will usually just minimize or restore directly, without the zoom/collapse animation effect that you normally see. Or, in some cases, minimizing will cause the window to fade, but not collapse. I've tried posting or sendi...

NonWriteableChannelException when restoring database file

I'm trying to write a file to the Android database directory and I keep getting this exception. Here's the chunk of code that's blowing up: File database = new File(mDbPath); database.createNewFile(); File backup = new File(sdPath, mRestoreFileName); if (database.exists()) { ...

How do I restore one database from a mysqldump containing multiple databases?

I have a mysql dump with 5 databases and would like to know if there is a way to import just one of those (using mysqldump or other). Suggestions appreciated. ...

VisualSVN - merging revisions into one

Hi! We have some server with VisualSVN free service. Because we want to make some space on it, I determined to merge some old projects' revisions. They are not used anymore (the old revs.). To test this I created a local visualsvn server on Win7 machine. I created a repository project named "test", and some python tool that call the sv...

HowTo make restoreState() and saveState() work correctlly to QTableView class?

Hello, there. First of all, I wanted to say, that my problem was already discuss here, on SO, and here it is. But the answers are not the good ones... So, here is the problem: I have a QTableView class, with a simple model, connected with tableView->setModel(model); method. For example, I have 4-5 columns. I started up my project appli...

Android: Dialog etc restore after rotation changed

How to restore the dialog etc after rotating the screen? For example, pop up an alertDialog to tell user some information. then the user rotate the screen to another orientation. How to restore the alertDialog? Can any one guide me to do it? Thanks! Appended later: I looked into the android source code and find these things: Dialogs ...

Shortest way to restore SQL Server database

I have to restore various SQL server databases several times a day (for development purposes). In SSMS interface it takes forever and it is even longer to type RESTORE DATABASE command with all it's paths. Ideally I would like to double-click a BAK file right in Windows Explorer and run something to restore it. Any way to achieve this...

create and restore a mysql db using a setup project (installer) in VS.Net

What is the best practice for creating an installer for a winform application. The application is supposed to install the following without connecting to internet. .Net Framework 3.5sp1 MySQL Server My SQL Connector Restore Mysql db Update Config file with the MySQL uname/pwd. I have all the msi files for installing the above mentio...

How can I query how much time a SQL server database restore takes?

Hi Im trying to write a query that will tell me how much time a restore (full or log) has taken on SQL server 2008. I can run this query to find out how much time the backup took: select database_name, [uncompressed_size] = backup_size/1024/1024, [compressed_size] = compressed_backup_size/1024/1024, backup_s...

restore sql database

I want to restore a database using asp.net web application in C#.. Can anyone help me with this? ...

Restore svn without any backups

My windows desktop machine died the other day and i had a local svn server running. Is it possible to restore the repository just from the repo file structure alone? I know i should have been backing it up, but i didnt for what ever reason, as the code in it was mostly just playing about and experiments. If the repo cant be restored th...

Restore capability (plugin?) for NetBeans 6.9.1 after crash?

NetBeans 6.9.1 is the first version I've used that is only mostly stable (x86-64 Linux box). I find that I am missing the "restore" features found in word processors and web browsers--upon a crash, you only lose a small amount of unsaved work. Is there anything like this available for NetBeans? These are workarounds that I do not cons...

AJAX synchronous (SJAX) on session restore

I have a large web page (classic ASP) with lots of information required from the user, so lots of inputs. The user's behavior is that he will fill in the information over time, analyze it and other time consuming processes before submitting. The problem is that even though the session timeout is set to a reasonable 30 minutes, often i ge...

SVN - Restore repository from backup

We have just had a file server fail which contained our SVN repository. We're trying to recover the file system but at the moment, that looks like it isn't going to happen so we're looking at backups. The best full backup that I have available is one week old. My plan is to restore this backup to a new SVN server. Then run through eve...

WordPress - can´t login with the admin account after restoring MySQL DB

I've got a Wordpress blog hosted on Linode under Cherokee web server, but the performance has been problematic the last weeks and I'd like to give a chance to Nginx. So I've made a DB backup of the current site, setup a LEMP platform, installed wordpress, and the "new" wordpress, with no articles (yet) on it works as expected. But when...

SMO "Restore failed for Server" Restoring Backup From File

I'm using the following code to restore a backup sql database with C# and SMO. void RestoreDatabaseWithSMO(string sConnect, string dbName, string backUpPath) { using (SqlConnection cnn = new SqlConnection(sConnect)) { cnn.Open(); cnn.ChangeDatabase("master"); ServerConnection sc = new ServerConnection(cn...

How to restore state after calling another activity ?

My android app is simple : a single activity contains a webview which shows user my website,in it I have a link which when user clicks on it ,the default sms program will be called. That all works well,but when I return from the sms ,It restarts the program(call the onCreate() method ) instead of returning to the origin state , how can ...

oracle database move current server to another machine problem

Hi ALL these day i really stress because of oracle server, im quite new to oracle. i have one old windows 2003 server which installed oracle 10.2.0 version. and i want to full backup of this oracle then want to install same database to another new windows 2003 server ,this windows 2003 server is all different server, computer name...

How to rollback to commited and pushed revision in mercurial?

I made a mistake and removed a file. I'd like to go back to my previous commit! I tried with revert and backout with had no luck... Any tip? Edit: I did exactly this: hg forget file hg commit -m "Blah" hg push The revision number of this last push is 17. Now file is not tracked anymore. I'd like to get it back to revision 15 (not...