avida-ed-library-build/docs/Avida-ED-Error-Database.txt

68 lines
2.9 KiB
Plaintext
Executable File

Flask
SQLAlchemy - MySQL backend
http://github.com/ruppmatt/AEDeveloper
Two modes -
Local for debug (flask)
WSGI Apache Module for deployment
MySQL for AEDeveloper
u/n: aedeveloper
p/w:
leviathan.cme.msu.edu
database is in
cd ..
cd ..
cd /var/www/
cd wsgi-scripts
cd AEDeveloper
ls -l #to see files
ls -lah #to see . files
files need to be owned by Apache
so use script
cat update.sh #to see script to update from github and have apache own
cat aedeveloper.wsgi #to see this protocol that apache uses.
---------------------------------------------------------------------------
To add a user
---------------------------------------------------------------------------
To create a user from the command line use
sudo ./create_user.sh
create_user.py [-h] username password fullname email
where username and password cannot spaces
fullname can be wrapped in quotes and have spaces
need root access to add a user.
---------------------------------------------------------------------------
Matt uses flask on his machine using start_local.py
need to have mysSQL running.
Cannot have any print statements when deploy
To restart Apache
sudo apachectl restart #apache control
cat update.sh does a restart tat is slightly different
sudo service apache2 restart
I found an abstract for some of the work discussed in the article.
Immunizing Against Prejudice: Effects of Disease Protection on Attitudes Toward Out-Groups
By:Huang, JY (Huang, Julie Y.); Sedlovskaya, A (Sedlovskaya, Alexandra); Ackerman, JM (Ackerman, Joshua M.; Bargh, JA (Bargh, John A.)
PSYCHOLOGICAL SCIENCE Volume: 22 Issue: 12 Pages: 1550-1556 Dec 2011
Contemporary interpersonal biases are partially derived from psychological mechanisms that evolved to protect people against the threat of contagious disease. This behavioral immune system effectively promotes disease avoidance but also results in an overgeneralized prejudice toward people who are not legitimate carriers of disease. In three studies, we tested whether experiences with two modern forms of disease protection (vaccination and hand washing) attenuate the relationship between concerns about disease and prejudice against out-groups. Study 1 demonstrated that when threatened with disease, vaccinated participants exhibited less prejudice toward immigrants than unvaccinated participants did. In Study 2, we found that framing vaccination messages in terms of immunity eliminated the relationship between chronic germ aversion and prejudice. In Study 3, we directly manipulated participants' protection from disease by having some participants wash their hands and found that this intervention significantly influenced participants' perceptions of out-group members. Our research suggests that public-health interventions can benefit society in areas beyond immediate health-related domains by informing novel, modern remedies for prejudice.