Explore the World's Most Nutritious Foods with Shiny


A recent study by food scientists titled “Uncovering the Nutritional Landscape of Food” ranked the world’s healthiest foods, focusing on options which will help fulfill, but not exceed, your daily nutritional requirements. In this context, foods which are nutritionally well-rounded and adaptable to a variety of diets rate out highly, while more “one sided” foods slip down the rankings. Luckily for us, the researchers also published the data they used for the study, allowing us to view and manipulate the information.

Read More

Hosting your Own RStudio and Shiny Servers in the Cloud


I’ve been mucking around in R quite a bit lately and have grown tired of all the annoying configuration changes that are required to take your data/analysis from one machine to another. Even with my code in a Git repository, I was still dealing with package inconsistencies across R environments, differing file paths, and more - needless issues that took me away from the analysis at hand. Combined with a desire to have an always-on machine available to host Shiny apps, I decided to provision my own cheap, always-up cloud server to run RStudio and Shiny Server.

Read More

Visualizing Historical NBA All Star Game Scoring with Tableau


This year’s All Star Game pitting Team LeBron vs Team Steph was an unexpected delight - seemingly the first time in years that any actual defense was played (thanks Joel Embiid!) and the players truly cared about the outcome. Accordingly, the total points scored dropped from last year’s all time high of 374 to a more “normal” 293. That’s still a ton of points though - certainly a lot more than any old regular season basketball game… which got me thinking - was the All Star Game always like this?

Read More

The Cavs Blow It Up: 2018 Trade Deadline Edition


Overview Last time I posted about the Cavs, they were on the mend and in the midst of a 13-game winning streak. Since? Not great. The Cavs have been one of the worst teams in the league since, posting the NBA’s 5th worst Net Rating of -4.5, ahead of only the Magic, Nets, Kings, and Suns. Poor company for a team that fancied itself a perennial contender and Eastern Conference hegemon.

Read More

NBA Hot Takes: Trades and Injuries Edition


Trading Blake makes the Clippers Better There’s already a general consensus amongst NBA talking heads that the Blake trade was a smart move for the Clippers - getting off the nearly $140 million remaining on his contract will dramatically increase their flexibility in building for the future. What makes this deal especially interesting, though, is that I also think it makes this Clippers better, this season. It’s common wisdom in the NBA that the team getting the best player usually wins the trade… not so here.

Read More

Using the AWS IoT Button and Lambda to Receive On-Demand Daily Briefings


Backstory A little while ago, I impulse purchased one of Amazon’s $20 “AWS IoT Buttons”. These devices, which are really just souped-up and customizable versions of Amazon’s extremely popular Dash Buttons, allow developers to connect to and trigger actions within Amazon Web Services (AWS). As you might imagine - people much smarter than myself have found about a million things to do with these little guys: everything from ordering pizza and Sweetgreen to triggering IFTTT (If This Then That) actions.

Read More

Defense, Rest, and No D-Rose: The Cavs' Remarkable Turnaround


Down in the Dumps On November 9th, the Cleveland Cavaliers lost to the Houston Rockets 113-117, pushing their already-disappointing record down to 5-7 on the year. After kicking off the season with an impressive win over the (admittedly Hayward-less) Celtics, the Cavs went 4-7 against a slate of mostly weak Eastern Conference teams. Perhaps even more concerning for the Cavs’ outlook, lineup and rotation changes threatened to disrupt their veteran chemistry.

Read More

Automating Deployment of your Hugo Site to S3 using AWS CodePipeline


Recap A few days ago, I wrote a post outlining how I use Hugo and Amazon S3 to create a severless blog hosting platform. While this solution works awesome for hosting the site, publishing is still a bit of a pain. After a few too many rounds of drag-and-drop uploading, I set out to find a better publishing workflow. Intermediate Solution My first breakthrough was a quick terminal command using the AWS CLI to automatically upload the public directory that Hugo generates.

Read More

Deploying a Static Website to S3 using Hugo


After deciding to launch this blog a few months ago, I was faced with the choice of how to best host and run a small website. Luckily for me, I found a whole host of options using a bunch of different technologies. Ultimately, I decided to use Hugo - a popular static site generator. What’s awesome about Hugo is that it can be used as part of a severless architecture that keeps everything cheap and super fast - let’s take a look at how to set it up!

Read More

Analyzing the DC Housing Market - October, 2017


Following our examination of DC housing market in August and September, I wanted to update our numbers and graphs for the month of October. Thanks again to POPville and Kevin Wood for the data! Sales Data by ZIP Code During October, DC’s hottest ZIP shifted upwards into Takoma Park and Shepherd Park (20012). In those neighborhoods, homes sold for an average of $12,000 over closing (compare that to the city-wide average of $1,500 under closing).

Read More