From 5bfe4e6c590bf0ade2312536f0f8e3ce055e2c75 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Fri, 22 Feb 2013 22:18:38 +0000 Subject: Added some to notes --- wqflask/cfg/zach_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask/cfg/zach_settings.py') diff --git a/wqflask/cfg/zach_settings.py b/wqflask/cfg/zach_settings.py index 8d3bf4ab..1970bd9c 100644 --- a/wqflask/cfg/zach_settings.py +++ b/wqflask/cfg/zach_settings.py @@ -2,4 +2,4 @@ LOGFILE = """/tmp/flask_gn_log""" TRAP_BAD_REQUEST_ERRORS = True -DB_URI = """mysql://webqtl:webqtl@localhost/db_webqtl_zas1024""" \ No newline at end of file +DB_URI = """mysql://webqtl:f2ZypIflRM@gn.cazhbciu2y1i.us-east-1.rds.amazonaws.com/db_webqtl""" -- cgit v1.2.3 From cd58c17faec400968cfe6a3595ebe02099edd691 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Fri, 22 Mar 2013 21:51:07 +0000 Subject: Removed zach_settings.py from git tracking Changed mysql password as a result of it being up on git before --- misc/notes.txt | 16 ++++++- wqflask/cfg/default_settings.py | 3 ++ wqflask/cfg/zach_settings.py | 5 -- wqflask/wqflask/my_pylmm/pylmmKinship.py | 2 +- wqflask/wqflask/templates/base.html | 82 ++++++++++++++++---------------- 5 files changed, 60 insertions(+), 48 deletions(-) delete mode 100644 wqflask/cfg/zach_settings.py (limited to 'wqflask/cfg/zach_settings.py') diff --git a/misc/notes.txt b/misc/notes.txt index 976573a6..cdd353ea 100644 --- a/misc/notes.txt +++ b/misc/notes.txt @@ -11,6 +11,9 @@ git add -A Get the default path being used when a command is typed: which _______ +Change default path python looks at when importing +export PYTHONPATH="/home/zas1024/gene/wqflask" + Get the paths checked when a user types a command: echo $PATH @@ -67,7 +70,11 @@ Deactivate virtual environment: deactivate (just type deactivate) To set WQFLASK_SETTINGS environment variable: -export WQFLASK_SETTINGS=~/gene/wqflask/cfg/zach_settings.py (or wherever file is located) +export WQFLASK_SETTINGS=~/zach_settings.py (or wherever file is located) + +zach_settings.py is the local config file with the DB_URI +default_settings.py is the config file with the configuration information that would apply +to any running instance of GeneNetwork To change screen environment variable (if man not working or to get color, for example): export TERM=screen @@ -84,6 +91,13 @@ python runserver.py =========================================== +Update user password: +use mysql; +UPDATE user SET password=PASSWORD('whatever') WHERE user='webqtl'; +FLUSH PRIVILEGES; + +=========================================== + Redis things Restart redis server: diff --git a/wqflask/cfg/default_settings.py b/wqflask/cfg/default_settings.py index 1811ccfd..53b5a96e 100644 --- a/wqflask/cfg/default_settings.py +++ b/wqflask/cfg/default_settings.py @@ -3,3 +3,6 @@ LOGFILE = """/tmp/flask_gn_log""" #This is needed because Flask turns key errors into a #400 bad request response with no exception/log TRAP_BAD_REQUEST_ERRORS = True + +#SECURITY_CONFIRMABLE = True +SECURITY_TRACKABLE = True \ No newline at end of file diff --git a/wqflask/cfg/zach_settings.py b/wqflask/cfg/zach_settings.py deleted file mode 100644 index 1970bd9c..00000000 --- a/wqflask/cfg/zach_settings.py +++ /dev/null @@ -1,5 +0,0 @@ -LOGFILE = """/tmp/flask_gn_log""" - -TRAP_BAD_REQUEST_ERRORS = True - -DB_URI = """mysql://webqtl:f2ZypIflRM@gn.cazhbciu2y1i.us-east-1.rds.amazonaws.com/db_webqtl""" diff --git a/wqflask/wqflask/my_pylmm/pylmmKinship.py b/wqflask/wqflask/my_pylmm/pylmmKinship.py index 403e739d..db1449a4 100644 --- a/wqflask/wqflask/my_pylmm/pylmmKinship.py +++ b/wqflask/wqflask/my_pylmm/pylmmKinship.py @@ -122,7 +122,7 @@ np.savetxt(outFile,K) if options.saveEig: if options.verbose: sys.stderr.write("Obtaining Eigendecomposition\n") - Kva,Kve = linalg.eigh(K) + Kva, Kve = linalg.eigh(K) if options.verbose: sys.stderr.write("Saving eigendecomposition to %s.[kva | kve]\n" % outFile) np.savetxt(outFile+".kva",Kva) diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html index 590f5789..71c12941 100644 --- a/wqflask/wqflask/templates/base.html +++ b/wqflask/wqflask/templates/base.html @@ -26,49 +26,49 @@