Friday, January 12, 2024

Published January 12, 2024 by with 0 comment

Visualizing the 3n+1 Problem

You might have heard of the 3n+1 problem at some point. It is pretty cool to visualize.
Read More
      edit

Saturday, March 4, 2023

Published March 04, 2023 by with 1 comment

What Were the Most Dominant Dynasties in College Football?

It's hard to get a sense of how much Nick Saban's Alabama teams are dominating compared with Bobby Bowden's FSU ones.
Read More
      edit

Friday, July 1, 2022

Published July 01, 2022 by with 3 comments

Mario Party's 'Hide and Sneak' is not Balanced

Are you consistently losing to a 6 year old and looking for an excuse. If so, you've come to the right place.
Read More
      edit

Monday, May 30, 2022

Published May 30, 2022 by with 0 comment

A Simple Dice Game

My son asked about a seemingly simple dice game and I didn't know how to answer immediately. The question is:

Player 1 rolls a 6-sided die. Player 2 rolls a 6-sided die. If player 2 rolls the same as player 1, he rolls again. If he again rolls the same, he loses. How often will each player win? 

Read More
      edit

Wednesday, November 10, 2021

Published November 10, 2021 by with 2 comments

Simple Tutorial for Hosting a CRUD Node App on AWS Elastic Beanstalk

I had trouble finding (working) simple tutorials for running Node.js CRUD apps on AWS using Elastic Beanstalk so I wrote one from scratch and documented it.
Read More
      edit

Sunday, October 24, 2021

Published October 24, 2021 by with 0 comment

How Do You Subtract Binary Numbers?

What is the value of something like 101001 - 1101?
Read More
      edit

Thursday, October 14, 2021

Published October 14, 2021 by with 0 comment

How Do I Determine My Raise Given Inflation?

If you get a 10% raise, and inflation is 6%, did you actually get a raise?
Read More
      edit

Saturday, October 2, 2021

Published October 02, 2021 by with 1 comment

Can You Confirm Performance Improvements With Noisy Software Benchmarks?

Say you run 20 tests before and after a code change meant to speed up the code, but there's a lot of noise in your benchmarks. Some simple statistical tests can help you determine if you actually have an improvement in that noise.
Read More
      edit

Monday, September 13, 2021

Published September 13, 2021 by with 0 comment

Why Do We Multiply the Way We Do?

We could just repeatedly add the numbers but we don't. Is the algorithm we use actually faster?
Read More
      edit

Tuesday, August 31, 2021

Published August 31, 2021 by with 0 comment

Exploring Senior Software Engineer Salary Data in levels.fyi

levels.fyi is a great resource for software salary info and it's easily mineable. I was curious how salaries in what are sometimes considered medium cost-of-living cities compare.
Read More

      edit

Sunday, August 1, 2021

Published August 01, 2021 by with 1 comment

How to Add a Vertical Scrollbar to Plotly

Plotly doesn't have the built-in ability to scroll vertically with a fixed x axis unfortunately, but you can mimic that fairly easily...
Read More
      edit

Wednesday, June 30, 2021

Published June 30, 2021 by with 1 comment

If 10 Vaccinated and 10 Unvaccinated People Die, Can We Still Say Vaccines Work?

You will almost certainly be seeing headlines about vaccinated people dying and  might even see that more vaccinated than unvaccinated die. Here's one from the week that I wrote this post. Why do we still say vaccines work if this is happening?
Read More
      edit

Sunday, June 13, 2021

Published June 13, 2021 by with 6 comments

Wheel Options Strategy Simulations

The 'Wheel' is an options strategy that combines cash-secured puts with covered calls. I sometimes have trouble really grasping options strategies in my head, so simulating some scenarios gives me a better feel.
Read More
      edit