Modeling Sales Pipeline using Monte Carlo Simulation

TL;DR - Monte Carlo Simulation can be used to model your historical sales pipeline data to account for some of the randomness and uncertainty in the sales process. In this post, Monte Carlo Simulation is introduced and then applied to the same case introduced in a previous post. What is Monte Carlo Simulation? Monte Carlo Simulation is used to simulate a process using random sampling. It is a very general technique that can be used to model all kinds of processes in fields ranging from physics and chemistry, to economics and finance.
Read more

Notes: Workaround to use Railway with Git Submodules

TL;DR - Railway doesn’t support git submodules yet. They probably will at some point - here’s the feature request. In the meantime, here’s a quick workaround to get it working / deploying. Use Github Workflow You can deploy projects to railway.app directly from github, but they do not support git submodules yet. So your repo gets cloned as usual and railway attempts to build/deploy. However, the submodules are not included, and the build will fail.
Read more

Update Github Profile Readme Dynamically using a Github Workflow

TL;DR: Update your Github Profile Readme dynamically with recent blog posts. There’s an example (profile and code). Github Profile Readme Github introduced the option to a add profile readme, which is a special repository that is used to display a readme on your profile page. I wanted to post links to my recent blog posts there, so I wrote a simple python script to check for the latest X posts, and update the readme with links to them.
Read more

Refactoring my Simple Python Chatbot Module

TL;DR: cleaned up a simple chatbot module that I wrote in Python, originally as a way to impersonate a friend in my Slack chat. How it started I wrote a chatbot in python to impersonate one of my friends on Slack. It was a fun project, but originally I set it up a pretty hacky way. Here’s an example of what it looks like integrated into slack: Ok so that’s a pretty goofy impersonation of a friend of mine (littered with inside jokes) - but it can actually be useful.
Read more

Notes: Django w/ PostGIS on GCP Cloud Run and Github Actions

TL;DR: this a short post about the configuration steps I took to get django running with the GDAL extension and postgreSQL/postGIS backend. These notes are what it took to get it deployed on GCP Cloud Run, and to use Github Actions to run automated tests on push or pull request. Pretty straight forward, but I had to iterate a few times to get it right so hopefully this helps someone else.
Read more