Skip to content
No description, website, or topics provided.
Jupyter Notebook CSS JavaScript Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ipynb_checkpoints
PeabodyFrontend
util
.gitignore
.test6.csv.swp
AlexFirstAttempt.ipynb
List of names_Catalog Card Project.csv
README.md
april15_sc.csv
bk_tree.py
corrupt_entries.csv
entries_with_colname_removed.csv
extract_corrupt_entries.ipynb
may_7_sc_partial.csv
name_list.dat
name_list_processor.py
name_list_raw.csv
requirements.txt
test.csv
test2.csv
test3.csv
test4.csv
test5.csv
test6.csv.save

README.md

Peabody Notecards Instruction Document

Currently our main code is stored in one app. By the Django documentation, one should keep things in a single app as long as they follow the same purpose, and currently all do.

The main app is dashboard. In future, as other supplementary apps are added, this document will be updated.

Make sure db settings is using password.

Make sure to create a virtual environment and install pip packages using "pip install -r requirements.txt". If you add new requirements, add it using "pip freeze > requirements.txt"

BASH SCRIPTS
* Ffempg convert .pdf to .pdf.png: for i in *; do for i2 in $i/*; do convert -density 300 -quality 100 $i2 $i2.png; done; done
* https://askubuntu.com/questions/50170/how-to-convert-pdf-to-image/50180
* Rename: for i in *; do mv "$i" "$(echo $i | cut -f3 -d' ')"; done;
* Delete PDF: find . -name "*.pdf" -delete
* find . -name ".DS_Store" -delete
* Python manage.py shell, then csv script
* scp -r /Users/ksun/downloads/Peabody-Notecards/peabody_files/ peabody@student.andover.edu:/home/peabody/Peabody-Notecards/peabody_files
 
SERVER
* service nginx restart
* Screen -r, do the git pull, then detach, make sure venv is running
* Make sure screen is running with ini
* uwsgi --ini uwsgi.ini
* Crl+ad to exit screen (detach)
You can’t perform that action at this time.