Neo4j - Importing a Database of fraud detection - database

Hello i'm trying to deploy the Fraud Detection Use case that was shared in NEO4j use cases
Following this link: https://neo4j.com/graphgist/credit-card-fraud-detection
To get deeper in the data I want to work with the database that was shared in the link
https://www.dropbox.com/s/4uij4gs2iyva5bd/credit%20card%20fraud.zip
I don't know how to load it since there is no .csv file just .db with the same structure of system and neo4j Databases,
I have tried to create a Database and connect it to the path of the fraud detection file,
Anyone can help me please to work with this database

If you are using Neo4j Desktop:
Go to the management tab of your graph
Click "Open terminal"
Locate the folder data/databases/
Copy the content of the folder you downloaded from Dropbox into data/databases/fraud.db
Back to the management tab, go to the settings tab and identify the line:
#dbms.active_database=graph.db
Change this line to:
dbms.active_database=fraud.db
Restart your database
In case of error, go back to the settings and uncomment:
#dbms.allow_upgrade=true

Related

SSMS cannot open a folder

I have an MVC app with a database that is saved in C:/Users/USERNAME. I want to open it in SSMS via attach. When I browse in that folder location it appears empty because SSMS can't read it.
How can I give SSMS permission to see that folder or how can I make my MVC app read the database from another folder? I know questions about this have been asked before but they are all from 2012 and vaguely explained so I can't make much use of them.
Or, if it's easier is there another way to open a database that works on my MVC app in SSMS?

how to delete a file in pg admin 4 web query tool

I'm working in pgAdmin 4 webtool.
When using the query tool, I can save and open files, but I can't delete them.
I'm saving the files using the following method:
But then there is no way to delete saved queries that I don't need anymore.
Here is the file manager:
Did I overlook it somehow?
If not through File Manager, then how? There must be some way to do some cleaning up.
As pgAdmin4 can be used as web application & hosted on web servers that functionality is not provided in File manager.

Key steps to uploading a Drupal website from Local to live using a hosting firm

I'm a newbie to pushing Drupal websites from local to live via a CP panel with a hosting company and wondered if there are any key steps I need to follow? I usually end up with Internal Server 500 errors or no themes showing so not a good start!
The steps I follow are:
Export the database from my local PHPMyAdmin
Log into my hosting CP Panel and create the database on there
Create a user for the database (with password)
Change the settings.php to match the database settings
Load all Drupal files via FTP
Create a 'tmp' folder in the 'sites > default> files' directory
What am I doing wrong?! Is it something to do with the .htaccess file as to why I either get the error or my theme never shows?
Any help would be much appreciated! So stressful and frsutrating as a newbie! Once I've done 1 I'm hoping it'll be plain sailing!!
Thanks!
C
You have the basic steps right. Check the php error logs on the server (probably accessible via the control panel if you dont have ssh access), they should give you more information as to what actually caused the 500 errors.
Doubt it is an htaccess issue unless you are doing something crazy in there.
Can you see he drupal admin at all? If so, clear cache, check watchdog for clues also.
It's easier to download and install Drupal again on the live server rather than to copy everything via FTP. The settings.php file is where your MySQL information is stored so this file should not be copied. Follow Drupal's documentation on how to install Drupal at https://drupal.org/documentation/install/download
To transfer your database, install and enable the Backup and Migrate module on your local server from https://drupal.org/project/backup_migrate and back up your database locally.
After Drupal is installed on the live server, go ahead and copy your modules, themes, and files from /sites/all and /sites/default/files (or any non-Drupal core files that you may have created). Enable and use the Backup and Migrate module to restore your database to your live server. You may need to configure the php.ini file if the database is over 8MB.

add data to a *.sdf file

I have create an application for windows, where i am using phone's sqlite as DB to store data. While testing the app in Emulator after the first time(i.e reinstallion of the app), the data of the DB gets erased every time.
So can any one please tell me How to:
Save the existing data of the DB before reinstalling the app.
Modify the .sdf file Manually (with out using the app)
To save the data in some other way, which will not be affected by the reinstallation of the app.
More Information regarding ways to add data to .sdf file are appreciated ...
Edit: Is it possible to browse and edit the .sdf file in phone when application gets installed
If you run the app via the Emulator, every time you close the emulator the app along with its components gets uninstalled. To prevent this , don't close the emulator everytime you run the app. Keep the emulator open, and run the program.
In the phone once the app is installed, the data is not deleted from the database and it is persisted.
The SDF can be modified using the Server Explorer in Visual Studio, add a database connection to SQL CE 3.5 and point to your sdf. You can modify the data from there.
You can also use the Isolated Storage explorer to open the SDF. http://wp7explorer.codeplex.com/

Include database data when exporting an Android application

I export my application to .apk file, sign it and then install it. But when I run my app, it displays an error because there's no data in my database.
The database was created as a new one when I installed the application, so all the data were lost!
How can I include database data when exporting an Android application?
Option #1: Package the database as a raw resource or asset, and use streams to copy that database to its proper position when the app is first run.
Option #2: Package SQL statements to populate the database as a raw resource, and execute those statements in your SQLiteOpenHelper's onCreate() method.
Option #3: Put the smarts straight in your Java code to populate your database in your SQLiteOpenHelper's onCreate() method.
Option #4: Download the database on first run and copy it to its proper position.
And so on.

Resources