w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
C Environment Init Bare Metal ARM GCC
Sorry to trouble everyone, figured out the issue. The stack pointer was bad. The top of the stack should have been set to 0x20040000, it was actually set to 0x02040000. I'm just surprised the code made it as far as it did without a fault. Thanks again.

Categories : C++

CPU usage measurment on arm bare metal system
Implementing an OS to measure idle time of a CPU seems a bit overengineered for me. From my knowledge the Cortex-M4 includes a Debug unit (DWT) that allows you to snapshot a cycle counter. But the easiest thing would be to hook a pin to an oscilloscope and toggle it on enter and on exit of your algorithm.

Categories : C++

Virtualbox has a different byte code for backspace than an actual bare metal OS
You have just encountered the classic DEL vs. BKSP dilemma. There is no perfect solution, you have to acknowledge that some terminals are configured to output a BKSP (0x08) ASCII character when the user presses backspace, while others output DEL (0x7f). Most terminal emulators have an option for this sort of thing, I have not seen a lot of application software that actually works around this issue. It is usually left up to the terminal program, and the user decides whether to press DEL or BKSP or re-configure their terminal in order to ensure proper program operation.

Categories : C

Windows Azure Active Directory Backup/Restore
You could consider using some of the Windows Azure Active Directory PowerShell Cmdlets to save your configuration. The various Get- Cmdlets (see http://technet.microsoft.com/en-us/library/jj151815.aspx) should allow you to save all your configuration settings, users, roles, etc.

Categories : Azure

SQL Azure automated backup fails on a DB which has been deleted - cannot remove backup task
Response from SQL Azure team: Hello, We have investigated the issue and should have a fix soon. In the meantime I would recommend creating a filter for these emails. Once the fix is rolled out you can remove the filter (I will respond back to this thread once it is). If you do not want to receive any failure emails you can opt-out permanently via the Unsubscribe link at the bottom of the email. Note, however, that this is permanent and will apply to all export failure emails: once you have opted out there is no way to opt back in later. Apologies for the inconvenience, -Stephen

Categories : SQL

How to restore svn repository after installation of windows & SVN tool
as @zerkms noted, SVN repository is just a bunch of files holding the versionning data! just place your backed up files (from D:svn-reposcode...) anywhere you like (maybe at the same spot) and you can just point your WC to the new location or check-out a new Working-Copy.

Categories : Svn

Automated backup of sql server using batch files
Have a look at this article: sqlcmd utility You can use the sqlcmd utility in a batch file to execute your procedure.

Categories : Sql Server

How to backup and restore gradle
If the build uses libraries from Maven or Ivy repositories, you'll have to let Gradle download them again. (There isn't currently a reliable way to transfer the Gradle dependency cache between computers.) Assuming the build doesn't reference any files outside the project directory (which hopefully is the case), what's left to transfer is the project directory (best via source control) and any personal gradle.properties or init.gradle that you might have in ~/.gradle. If you happen to work with a manual Gradle installation, you'll also have to transfer the Gradle installation directory and any changes you made to your environment (e.g. you might have put the gradle startup script on your PATH). Instead I recommend to switch to the Gradle Wrapper.

Categories : Gradle

Can't restore database from backup file
The database is left in a recovering state because you specified: NoRecovery = true If you want the database to be recovered after the restore, change this line to: NoRecovery = false More info in the Comparison of RECOVERY and NORECOVERY section here.

Categories : C#

How to backup/restore Rails db with Postgres?
Does the register_development database exist before you run the psql command? Because that form will not create it for you. See http://www.postgresql.org/docs/8.1/static/backup.html#BACKUP-DUMP-RESTORE for more information.

Categories : Ruby On Rails

Restore Wordpress Database Without Backup
I'm not a programmer or a sql expert, but do have a lot of hosting experience and I can tell you this for sure - if all you have are the Wordpress files (the files in your hosting account) but you don't have a copy of the actual database (usually a .sql file or gzip of it) then you cannot simply restore your Wordpress site content. The files in your hosting account - the Wordpress files such as index.php and so forth - are not where your posts and page content are stored. They are just files that tell Wordpress how to function. All of your references to the actual content of your posts and pages are stored in the database of your Wordpress. So, you need the database backup in order to restore your Wordpress to what it was before your mishap. If you're on typical shared hosting (such as

Categories : Database

How can I backup and restore MongoDB by using pymongo?
Let me answer this question in two parts Does pymongo provide an API to enable a backup or export of collections and rows? As of now, No. It does not provide a binding method for backup/mongodump Can one use pymongo to enable a backup or export of collections and rows? Yes. lets assume we have a collection col with the following documents in it { 'price':25, 'name':'pen' }, { 'price':20, 'name':'pencil' }, { 'price':10, 'name':'paper' }, { 'price':25000, 'name':'gold' } Our aim is to backup all documents which satisfy the condition that their price is less than 100. Using pymongo's find function. this can be done by db.col.find({'price':{'$lt': 100}}) The above code returns a cursor object. All the documents that we need for the backup is in that cur

Categories : Python

Mysql how to backup and restore after version 5.5
I would copy the *.MYD and *.frm files into the target database directory, and then run a REPAIR TABLE on each table (so as to rebuild the indexes). The "target database directory" is datadir/dbname where datadir is a server parameter, and dbname is your target database name. datadir is found with the SQL command SHOW VARIABLES LIKE 'datadir';.

Categories : Mysql

Backup/Restore to sdcard in Android
I do it like this: export: InputStream myInput; String dbpath = "/data/"+pckgname+"/databases/refuel_db"; String sdpath = Environment.getExternalStorageDirectory().getPath(); try { myInput = new FileInputStream(Environment.getDataDirectory() + dbpath); // Set the output folder on the Scard File directory = new File(sdpath + "/Refuel"); // Create the folder if it doesn't exist: if (!directory.exists()) { directory.mkdirs(); } // Set the output file stream up: OutputStream myOutput = new FileOutputStream(directory.getPath() + "/refuel_db");

Categories : Android

Automated Installation of Configuration Profile
There are four ways to deploy configuration profiles: By physically connecting the device In an email message On a webpage Using over-the air configuration More on this Document.

Categories : Iphone

hsqldb no change after backup restore until restart
You should not attempt to restore the database from a backup while the server is running. First SHUTDOWN the database, then restore, follow by restart. You can run the server with remote_open, which allows you to shutdown the database without shuting down the server. After restoring the backup, you simply connect to the database again.

Categories : Java

How to restore Mysql Backup from dump file?
If it's a dump file that you created using mysqldump, then you can build a new database from the dump file using the source command. Just login to MySQL using mysql -p, enter the root mysql password, then type: source /path/to/mysqldumpfile

Categories : Misc

Unable to restore a MYSQL backup to a new Database
This is probably caused by coding systems. My dump file is generated using redirection (">") in powershell and I encountered the same problem. The output redirection generated a file with UTF-16 Little endian. However, this can be solved by converting the dumpfile into utf-8. This can be done in emacs as: M-x set-buffer-file-coding-system Then save the file and import again. The coding system of a file can be detected using GNU "file" utility, and it also available in windows and can be found here: http://gnuwin32.sourceforge.net/packages/file.htm For future use, a better dump command is like: mysqldump <dbname> -r <filename>

Categories : Mysql

MongoDB replica set to stand alone backup and restore
No matter how many nodes you have in a replica set, each of them holds the same data. So getting the data is easy - just use mongodump (preferably against the secondary, for performance reasons) and then mongorestore into a new mongod for your development stand-alone system. mongodump does not pick up any replication related collections (they live in database called local). If you end up taking a file system snapshot of a replica node rather than using mongodump, be sure to drop the local database when you restore the snapshot into your production stand-alone server and then restart mongod so that it will properly detect that it is not part of a replica set.

Categories : Mongodb

How to restore large size backup in sql server 2012?
If you are using SQL Servere 2008 R2 Express edition the maximum size of one DB is 10 GB Maximum database size database as follows in express editions, SQL Server 2012 10GB SQL Server 2008 R2 10GB SQL Server Express 2008 4GB

Categories : SQL

Backup and Restore database MDF C# WinForm didnt work
You can try to use public void BackupDatabase(String databaseName, String userName, String password, String serverName, String destinationPath) { Backup sqlBackup = new Backup(); sqlBackup.Action = BackupActionType.Database; sqlBackup.BackupSetDescription = "ArchiveDataBase:" + DateTime.Now.ToShortDateString(); sqlBackup.BackupSetName = "Archive"; sqlBackup.Database = databaseName; BackupDeviceItem deviceItem = new BackupDeviceItem(destinationPath, DeviceType.File); ServerConnection connection = new ServerConnection(serverName, userName, password); Server sqlServer = new Server(connection); Database db = sqlServer.Databases[databaseName]; sqlBackup.Initialize = true; sqlBackup.Checksum = true; sqlBackup.ContinueAfterError = true; sqlB

Categories : C#

How to backup and restore python current working environment?
You should take a look on pickle documentation. You also have an example that can help you to do what you're thinking on.

Categories : Python

Backup and restore sqlite from disk to memory in Java
It looks like you are missing two things: 1) The quotes around the file name, and 2) stat.close. Try the following: this._conn = DriverManager.getConnection("jdbc:sqlite:"); Statement stat = this._conn.createStatement(); File dbFile = new File(this._config.GetDataBaseFile()); if (dbFile.exists()) { this._logger.AddInfo("File exists."); stat.executeUpdate("restore from '" + dbFile.getAbsolutePath() + "'"); stat.close(); } That was the only way I could get it to work with Xerial SQLite JDBC version 3.7.15-M1. I do not think that the version matters much in this case.

Categories : Java

backup/restore openrdf-sesame repository in production
You can quite easily create something yourself, just by using RepositoryConnection.export. However, there are also a few ready-made (commandline) tools available, for example this simple sesame-backup tool (disclaimer: I developed that). Download, install, and stick in a cronjob to have it make regular scheduled backups.

Categories : Misc

Auto restore SQL Server database backup for test
First you should set up your database mail Then you should create a Sql Server Agent job with a query , That you can get from restore page with script as new query window. then you should create an operator in Sql Server Agent to send e-mail by your desired database mail . in your job you can specify that on job failure or job success or both , the operator send to email you. If you want to delete the restored table , you can create a table for the result of the restore, and in your restore code , you can modify a try/catch within a transaction state, if the restore was successful insert into table and commit transaction , else it delete table. You should create other job in Agent and execute a query to look for commit in that table , if true then delete restored database, else you can wr

Categories : Sql Server

Illegal characters in path during database backup and restore C#
You need to look at Path.GetInvalidPathChars Method to determine the list of invalid characters. The array returned from this method is not guaranteed to contain the complete set of characters that are invalid in file and directory names. The full set of invalid characters can vary by file system. For example, on Windows-based desktop platforms, invalid path characters might include ASCII/Unicode characters 1 through 31, as well as quote ("), less than (<), greater than (>), pipe (|), backspace (), null () and tab ( ). And if I am not mistaken I see a pipe (|) character in the file names you have provided.

Categories : Sql Server

Backup a local database and restore to remote server using single command
I would build a script that checks the connection first then if all ok, does the transfer. Once this script is tested you can call it once for each of your 43 databases. Some may fail, but your script will tell you which (if it reports errors properly). Then work out what is causing any failures. Eventually you will get all 43 going. The backup script you end up with will use the code you have posted, but it will be more general and will have checking and reporting. Why don't you post it here when you have it working? Greg Ambrose

Categories : PHP

Automate SQL Server 2008 backup and restore on shared hosting with limited permissions
In case you don’t have full access to SQL Server and the machine that is running it you can’t really initiate a restore command (maybe there are some workarounds but I’m not familiar with any). What you can do if SQL Server is on a public IP address is setup some kind of replication between two servers so they synchronize automatically. Again, not sure if this is possible w/o full access to machine but you can give it a try. Final solution would be to use one of the third party comparison and synchronization tools to synchronize databases at a given time. Just find a tool that has command line interface such as Data Diff from Apex. Another one you can use is Data Compare from Red Gate but I’m sure there must be others too. Note that these tools are not free …

Categories : Sql Server

Why is a bare Array valid Javascript syntax, but not a bare object?
This is a block: { var x = 'stuff' function doStuff(arg) { alert(arg) } doStuff(x) } It will alert stuff. Now, about your example: JavaScript thinks it's a block, like this: { 'a' : 1 } Since 'a' : 1 is not a valid statement, it fails. Note that if you do 'x' + { 'a' : 1 } It works, because there's no way a block could come after a +.

Categories : Javascript

Setup a git bare repo on a windows apache server
At least try it without the double-quotes: git clone http://ip-addr/gitproject.git And if it still hangs, check the log of your Apache server, to see if it is contacted at all.

Categories : Windows

Cannot restore Jenkins security after disabling it in config.xml
Don't forget to remove authorizationStrategy and securityRealm as per point #6: https://wiki.jenkins-ci.org/display/JENKINS/Disable+security

Categories : Jenkins

Trying to Restore Entries from Backup Table to Main Table
I found something for that on the Internet: http://forums.databasejournal.com/showthread.php?9438-Turning-IDENTITY_INSERT-ON&p=21383#post21383

Categories : PHP

Automated e-mail based on SQL results
I would write: #!/bin/bash sql=" set pagesize 0 set feedback 0 SELECT kred_lim.kunr ||','|| kust_adr.ku_email ||','|| kred_lim.kred_limit ||','|| kred_lim.kred_zu_zahlen FROM kred_lim, kust_adr WHERE kred_lim.kred_zu_zahlen > kred_lim.kred_limit AND kred_lim.kunr = kust_adr.ku_nr; " email_template="Subject: Credit limit To: %s Customer number: %s Credit limit: %s Current orders: %s " sqlplus $user/$pass@$db <<< "$sql" | while IFS=, read -r num email limit orders; do printf "$email_template" "$email" "$num" "$limit" "$orders" | /path/to/sendmail -f sender@example.com -oi -t done

Categories : SQL

Combine mkv's in Windows (automated, not using a GUI)
I can give you an example: @echo off &setlocal enabledelayedexpansion cd /d "%sourcefolder%" set "line=" for %%a in (*.mkv) do set line=!line! +"%%~a" mkvmerge -o "output.mkv" %line:~2%

Categories : Windows

Subversion Automated Path-Based Authorization
On the rights of delirium: Have mirror of repos-tree on Windows-host. Manage this mirror with VisualSVN Server - it has good Server-management applet, in which you can manage users/groups/ACLs in GUI-style. And rsync VisualSVN Server's authz file after editing with master

Categories : Svn

How to change the content of my app.config after installation of the application
this may be helpful Configuring Application/User Settings in WPF the easy way.

Categories : C#

Windows Phone: how to change the automated navigation path?
Add a event for ValueChanged. Write the event handler like this: private void TimePicker_ValueChanged(object sender, DateTimeValueChangedEventArgs e) { NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative)); }

Categories : C#

Windows, Command, Batch and Automated Folder Icon Changer
Tested with Windows XP (YMMV) and Windows Sysinternals @echo off &setlocal pskill explorer start "" explorer start "" explorer "%folder%"

Categories : Batch File

Where is cassandra backup stored on windows
find 1371534210892 folder inside cassandra/data/yourkeyspacename (equivalent to folder/var/lib/data/yourkeyspacename in LINUX) here each CF have 1371534210892 folder under snapshot directory which is latest one, This base cassandra folder is the one which you generated during installation not the one having bin and all directories

Categories : Cassandra

right-click backup option for Windows
You should start it in a new command shell. Change your command to cmd /c xcopy "%1%" "%1 Copy" /Y/S/E/H/K/I cmd starts the command shell (cmd.exe), and the /c switch tells it to run the command and then terminate. For more info on the command shell (cmd.exe) and it's parameters, open a command window (pun intended) and type cmd /? or help cmd.

Categories : Windows



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.