Today's Progress: Definitions, Linear Progression, Classifications, Features, Labels, Models
Thoughts: I saw the flow from the terms and how they link to show the line of best fit with the aspect of Bias and Weight of a prediction
| mkdir python |
| wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz | |
| tar -xvzf Python-3.6.1.tgz | |
| cd Python-3.6.1 | |
| ./configure --prefix=/home/mysite/python --enable-unicode=ucs4 | |
| make | |
| make install | |
| #setTheEnviromentVariableNow | |
| export PATH=$PATH:/home/mysite/python/bin | |
| export |
| wget https://pypi.python.org/packages/2d/f7/02abdb61deaf8135e463b7081d053e952cae3672f3f09d75ca26f4c824c9/setuptools-19.2.tar.gz#md5=78353b1f80375ca5e088f4b4627ffe03 | |
| tar -xvzf setuptools-19.2.tar.gz | |
| cd setuptools-19.2 | |
| python3.6 setup.py install | |
| cd | |
| #nowForPip | |
| wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9 | |
| tar -xvzf pip-9.0.1.tar.gz | |
| cd pip-9.0.1 | |
| python3.6 setup.py install |
| <!-- This has to be first --> | |
| <script src="https://www.gstatic.com/firebasejs/4.6.1/firebase-app.js"></script> | |
| <!-- Add these now--> | |
| <script src="https://www.gstatic.com/firebasejs/4.6.1/firebase-auth.js"></script><!-- Authentication--> | |
| <script src="https://www.gstatic.com/firebasejs/4.6.1/firebase-database.js"></script><!-- Cloud Storage --> | |
| <script src="https://www.gstatic.com/firebasejs/4.6.1/firebase-firestore.js"></script> <!-- Cloud Firestore--> | |
| <script> | |
| var config = { | |
| // ... |
| import pyrebase | |
| config = { | |
| "apiKey": "my_api_key_is_here", | |
| "authDomain": "my_auth_domain_is_here", | |
| "databaseURL": "my_firebase_database_url_is_here", | |
| "projectId": "my_firebase_project_id_is_here", | |
| "storageBucket": "my_firebase_storageBucket_is_here", | |
| "serviceAccount": "my_serviceAccount.json_file_path_is_here", | |
| "messagingSenderId": "messagingSenderId_is_here" |
| from pyrebase_settings import db, auth | |
| from django.shortcuts import render | |
| #just some demo methods so you get a feel of the whole thing. | |
| def get_users(request): | |
| users = db.child("users").get() | |
| return render(request, 'users.html', {'users': users.val()}) | |
| def signup(request): |
| $ git clone https://github.com/myusername/myproject.git |
| $ mkvirtualenv --python=/usr/bin/python3.4 mysite-virtualenv | |
| (mysite-virtualenv)$ pip install django | |
| # or, if you have a requirements.txt: | |
| (mysite-virtualenv)$ pip install -r requirements.txt | |
| #add anythng else | |
| #to open a virtual environment, you do 'workon mysite' |
Today's Progress: Definitions, Linear Progression, Classifications, Features, Labels, Models
Thoughts: I saw the flow from the terms and how they link to show the line of best fit with the aspect of Bias and Weight of a prediction
| from base64 import urlsafe_b64encode, urlsafe_b64decode | |
| from Crypto.Cipher import AES | |
| from Crypto import Random | |
| BS = 16 | |
| pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) | |
| unpad = lambda s: s[:-ord(s[len(s) - 1:])] | |
| base64pad = lambda s: s + '=' * (4 - len(s) % 4) |