Skip to main content

C'est la Z

Tag: 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.

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.

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 Server Setup (Ubuntu) Connecting to your droplet with ssh Setting up ssh keys Getting started with Linux (series) In general, there are lots of great tutorials and guides at the Digital Ocean Community.

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.