Day 06-10 – Getting Started with Python

Day 06-10 – Getting Started with Python

Hi, you are reading a post in my #100daysofcode Python Edition blog series. I’m glad you are here and I hope you find something useful!

DigitalOcean offers one-click deployment of popular applications such as WordPress, Django, MongoDB, Docker, and even preconfigured Kubernetes Clusters. Deploy your next app in seconds. Get $100 in cloud credits from DigitalOcean

Ad Notice I will receive a small commission that helps support this blog at no cost to you.

Day 6 Tuesday, January 8th 2019

On Day 6 I added more to the Tuples and Sets Notebook but the majority of my time was spent away outside of python and Jupyter Notebooks. My blog ( was in need of some optimization.

About 2 months ago I transitioned over to a new server. This was to get on a modern version LTS version of Ubuntu as well as to get away from PHP 5.x When I moved everything over I knew that I wanted to leave Apache behind and replace it with nginx web server. That’s exactly what I did but in the process I had some issue with WordPress plugins. I ended up disabling the W3 Total Cache plugin which put a major dent in my page load time and Googe PageSpeed score.

I eventually settled on the Autoptimize plugin which does a great job of concatenating all of the css and js files in WordPress without break javascript. I eventually got everything working the way I wanted and my Google PageSpeed score hovers in the mid 90s which is outstanding. This website loads blazing fast.

Some of the other optimizations on

  • Cloudfare – serves requests and handles SSL
  • nginx Web Server
  • Autoptimize Plugin – to minify & concatenate Javascript and CSS
  • WP Super Cache Plugin – for rendered page caching

I have also decided to switch from the CloudFlare PRO tier, previously running on the FREE which works really great. I also enable Cloudflare Argo which should have serve pages faster for the international audience of the site.

Well that will wrap it up for Day 6!

Day 7 Wednesday, January 9th 2019

I blew past my 1 hour of coding working on a side project that queries the GitHub API. The project is written in python and uses the ast, pyGithub and Pygments modules. Can you guess what it does? I have not released it to GitHub yet but eventually will as a separate repository.

I completed the Tuples section of the tuples and sets notebook which is embedded below. See you tomorrow

Day 8 Thursday, January 10th 2019

Today I completed 90% of the Tuples and Sets notebook embedded above. Listened to the python.__init__ podcast episode with
@MartinRaspaud. I also learned that anyone can signup for the free tier of Google Bigtable and run sql queries against download statistics. Not that much to say today, it’s been a long one! 😳😵

Day 9 Friday, January 11th 2019

Today I created a python package using cookiecutter and the cookiecutter-pypackage template.

I’m also happy to announce that the Tuples & Lists notebook is finally complete! Python dictionaries will be my main focus tomorrow.

Day 10 Saturday, January 12th 2019

I got an early start today and began working on the Dictionaries Notebook embedded below. Today I learned that nbconvert can also export reveal.js slideshow presentations. 👍

Amazon AWS too complex and expensive? You will love the simplicity of DigitalOcean. Deploy your next app in seconds. Get $100 in cloud credits from DigitalOcean

Ad Notice I will receive a small commission that helps support this blog at no cost to you.

Thanks for following along, feel free to comment below and continue reading my 2019 #100daysofcode project posts.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.