How to backup automatically SciNote deployed in local server

Posted · Add Comment

Install drivesync in ubuntu. (https://github.com/MStadlmeier/drivesync) Make Sync.sh Script as below.#! /usr/bin/env bash Cd /home/$username/Scinote docker exec scinote_db_production pg_dump -h localhost -p 5432 -U postgres -d scinote_production -c -b -f /home/db.bak docker cp scinote_db_production:/home/db.bak /home/$username/Documents/drive/Backup/SciNote/Files/ docker cp scinote_web_production:/usr/src/app/public/system /home/$username/Documents/drive/Backup/SciNote/Files/cd /home/$username/Downloads/drivesync ruby drivesync.rb chmod +x Sync.sh Automate using Crontab.     Data recovery If you are restoringContinue Reading

Tensorflow 1.12 in MacOS High Sierra with Cuda from Source

Posted · Add Comment

After numerous trial-and-error, Tensorflow 1.12 with Cuda is successfully compiled in MacOS High Sierra (in Mac Pro 2012). Prerequisites Cuda toolkit 10.1, cuDNN 7.5 Python 3.6 XCode 8.3.2 0. Install bazel (for unknown reason 0.18.1 causes pip installer problem). Download bazel-0.18.0-installer-darwin-x86_64.sh from https://github.com/bazelbuild/bazel/releases. chmod +x bazel-0.18.0-installer-darwin-x86_64.sh sudo ./bazel-0.18.0-installer-darwin-x86_64.sh 1. Make a working folder and clone Tensorflow code.Continue Reading

Merging anatomical regions

Posted · Add Comment

Preparation 1. Download the program for extract annotation table to LUT file. GWFSAnnotToLUT 2. Extract the annotation file and save it as editable format. WFSAnnotToLUT annot_file_path output_file_path For example, GWFSAnnotToLUT /iPsych/freesurfer/subjects/001/label/lh.aparc.annot  /iPsych/freesurfer/subjects/001/label/lh.annot.txt *replace the subject directory and subject numberings. Create new lookup table 1. Follow the guides below.