Dynamic weight tracking form and dashboard

February 26, 2018

This is a quick post, but if you want a quick way to track body weight, or any metric you choose, and have an automatically updating dashboard, this is it. I used Google Forms to easy record the information and then this information is read by a Google Apps Script that generates a chart with Chart.js.

Read More

Dynamically updating Matplotlib figures in Jupyter notebooks

February 24, 2018

Updating matplotlib figures dynamically seems to be a bit of a hassle, but the code below seems to do the trick. This is an example that outputs a figure with multiple subplots, each with multiple plots. Oddly enough, at the time of writing the image will be smaller than the figure until the Jupyter cells stops running, but this can be fixed but generating the figure in one cell, and then updating the image in a subsequent cell 1.

Read More

Setting up a new Python virtual environment for Jupyter notebooks

February 23, 2018

A lot of my lab work and course work involved the use of Jupyter notebooks, though the Python dependencies needed conflict with other areas. I’ve been using virtualenvwrapper to isolate these, and other project, environments from each other. This post goes through the process of installing everything needed to get up and running with a clean Python environment for Jupyter notebooks with separate kernels for each environment, including the installation of jupyter_contrib_nbextensions which adds community developed features.

Read More

Installing Arch Linux on a Microsoft Surface 3

January 26, 2018

A few years ago, I was given a Microsoft Surface 3 tablet that has since fallen into disuse. I was appreciative of the gift, though to be honest the Intel Atom CPU it came with is fairly underpowered when it comes to running Windows 10, so I decided to install a light Linux distro on it to get the tablet back into running order. I came across the blog post Running Arch Linux on a Surface 3 by Chad Voegele, which was fairly useful in getting started, and I wanted to write a post of my own to share some addition details and places where I diverged from Chad’s post along the way.

Read More

El Cuarto Misionero por el Élder Lawrence Corbridge

October 12, 2017

This post is not about technology, computer science, or programming. Instead it’s a call back to my time as an LDS missionary in Paraguay. During my time there, I came across a talk given by an Elder Lawrence Corbridge that I really enjoyed. Some friends of mine were asking about it, and I wanted to make a copy in English and Spanish easily accessible. Please find the links to copies below.

Read More

Send a fax from the command line with Python and Phaxio

August 30, 2017

If you want to send a simple fax quickly, cheaply, and painlessly, Phaxio and Python make a nice combo. Below is a litte script that I wrote, based on this Ruby script by Pete Keen that is slightly out of date. There are Phaxios Python libraries, but I ran into a couple issues, and this seems to be the most brain-dead simple solution. Pros: No external dependencies. Cons: It uses the shell=True parameter for subprocess.call, but that shouldn’t be an issue since you’re only using this to send a quick fax at 2 AM and you don’t want to pay UPS/FedEx/whomever too much money for that privilege tomorrow, right?

Read More

Review of the International version of the 4th edition of Probability and Statistics by DeGroot and Schervish

May 27, 2017

As a computer science graduate student at Brigham Young University, I am taking CS 677: Bayesian Methods in Computer Science, which covers some aspects of using probability within computer science, as you probably guessed from its title. The required textbook for the course is Morris DeGroot’s 4th edition of Probability and Statistics, which at the time of writing this post is selling for about $170 new, $112 used on Amazon.com. Between being a graduate student and having a family of my own, I am not exactly swimming in funds for expensive textbooks, and my classmates had already checked out all of the available copies at the excellent Harold B. Lee Library already, so I looked for some alternatives.

Read More

Filtering domain names on Domcomp.com with regex

February 20, 2017

Lately, I’ve been looking around for another domain name that’s a little shorter and more flexible than seanlane.net. My purposes for that can be explained another time, but I have been trying to search domain names that have top-level domains (the .com part of google.com, for example) that are shorter in length, alongside some other attributes. There are a number of good tools to use for searching for available domain names, but I have not found any that allow for searching by the length of top-level domain.

Read More

Claude Shannon Presentation

October 15, 2016

This is a presentation that I gave as part of CS 611, which is a theoretical computer science course required of PhD Computer Science students at BYU. The subject of the presentation is the life of Claude Shannon and the personal factors surrounding his contributions to computer science. He is a fascinating individual, and I highly recommend learning about him (which can be done in part through this presentation ;).
Read More