Python Register Classes


python --- 05/10/2020

Python Register Classes


Continue reading

Python Abstract Classes


Python OOP --- 12/17/2019

Python Abstract Classes


Continue reading

Boston Housing Price


Python Data Science --- 12/08/2019

Boston Housing Price, course final project


Continue reading

Lab 13 Rule Based Machine Learning


Python Data Science --- 12/08/2019

Lab 13 Rule Based Machine Learning


Continue reading

Lab 12 Distance Based Machine Learning


Python Data Science --- 12/07/2019

Lab 12 Distance Based Machine Learning


Continue reading

Lab 11 Model Evaluation


Python Data Science --- 12/06/2019

Lab 11 Model Evaluation


Continue reading

Lab 10 Linear Models


Python Data Science --- 12/05/2019

Lab 10 Linear Models


Continue reading

Lab 9 Linear Models


Python Data Science --- 12/04/2019

Lab 9 Linear Models


Continue reading

Lab 7 Inference


Python Data Science --- 12/03/2019

Lab 7 Inference


Continue reading

Lab 6 Mathematical Distributions


Python Data Science --- 12/02/2019

Lab 6 Mathematical Distributions


Continue reading

Lab 5 - Exploratory Data Analysis


Python Data Science --- 12/01/2019

Exploratory Data Analysis


Continue reading

Jupyter virtualenv setup


Python --- 10/07/2019

Setup

  1. Install Anaconda for Python 3.7 for your operating system: Anaconda
  2. Create a directory/folder for data science and move into it.
  3. Download environment.yml
  4. Execute conda env create -f environment.yml
  5. You now have all the libraries listed in environment.yml
  6. Set up Jupyter notebook to use this …

Continue reading

Closure and Decorators


Python --- 10/06/2019

Study note from pluralsight


Continue reading

Data Visualization Bad vs Good


Python Data Science --- 09/26/2019

how to turn bad visualization to good


Continue reading

Python Foundation


Python --- 09/08/2019

What is Bytes? immutable sequences of bytes
b'data'
to convert between string and bytes, we must know the encoding of the byte sequence used to represent Unicode string Example:
data = "ABCD"
encodedData = data.encode('utf-8')
decodedData = encodedData.decode('utf-8')
Files, network resources, and HTTP responses are transmitted as **byte …

Continue reading

Pelican S3 Domain Set up


Pelican --- 09/03/2019

https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html


Continue reading

Pelican Reference Links


Pelican --- 08/26/2019

TimeLine:
https://codepen.io/mathiesjanssen/pen/ggeBKm

Pygments Style:
http://pygments.org/demo/6870868/?style=borland

Boostrap:
https://getbootstrap.com/docs/4.3/components/card/

Jupyter Integration: (pelican 3.6.3)
https://janakiev.com/blog/pelican-jupyter/

Deal with Extra:
https://stackoverflow.com/questions/31270373/how-to-add-a-favicon-to-a-pelican-blog


Continue reading

Ansible


IAC --- 08/21/2019

create virtual environment:

python -m venv introansible
source introansible/bin/activate

install ansible:

pip install ansible
ansible localhost -a "echo 'hi'"

generate keys, and visit them, put public key on the

ssh-keygen -t rsa -b 4096 -o -C xiangxu1105@gmail.com
/User/shawn/.ssh/introAnsible
ls ~/.ssh/ | grep introAnsible

Core …


Continue reading

Pelican Theme Set up


Pelican --- 08/21/2019

  1. go into Pelican project
  2. git clone --recursive https://github.com/getpelican/pelican-themes ~/pelican-themes
  3. pelican content -s pelicanconf.py -t ~/pelican-themes/Flex
  4. pelican --listen

Continue reading

Pelican to S3


Pelican --- 08/11/2019

  1. set up pelican
  2. create a aws user from IAM, grant it admin
  3. pip install awscli
  4. aws configure
  5. login with user's access key
  6. create s3 bucket, set it public
  7. aws s3 cp output/ s3://shawnxuportfolio/ --recursive

Step by Step Details: http://anendeavour.com/hosting_a_static_blog_on_s3.html


Continue reading