Python

Advent of Code 2017 - Day 1

It's once again time for Advent of Code. That one a day programming competition that's been running now for three years. Here are some thoughts on day 1. The core of the problem is that you have a large string of digits and you have to calculate a checksum. This is done by adding the sum of a subset of the digits. Only the ones that are identical to the digit to their right.
# COMMENTS

Inverted Index Project

I haven't spoken much about the class I've been teaching this semester. It's an intro CS course - a programming heavy intro. I decided to use Python with a transition at the end to C++. The transition is to mirror Hunter's normal first CS course that ends with a C++ intro to prepare the students for next semester's CS course which is a more intense OOP class using C++ - the language we use in our core courses.
# COMMENTS

Flask - deploying to DigitalOcean

This post points to the next three videos in the Flask series. The first covers setting up a droplet (virtual server) on DigitalOcean. The second, deploying a flask application using Green Unicorn, and the third, using sshfs to remotely mount your files from your DO box to your local machine and how to set up DNS using FreeDNS. To help you on your way with DigitalOcean, here are links to a few of their tutorials
# COMMENTS

Installing Flask in a virtualenv

Second video in the Flask series. This one goes over installing Flask in a virtualenv and running a simple Flask application. Nothing much to say about this other then check out the video:
# COMMENTS

Setting up Linux for Flask Web Development

Those laptops that my Hunter students were supposed to get have finally arrived. We're distributing them on Monday. Each student will have a Dell laptop running Ubuntu 16.04 for as long as they're in the program. This means we can finally start using the web as a way of displaying and sharing our projects. For this type of web development, I'm a big fan of using Flask. Flask is a Python microframework.
# COMMENTS