March 2019

Flappy Phoenix - Flappy Bird clone using Phoenix LiveView

I wanted to try out the new early release of Phoenix LiveView which allows you to perform real-time rendering updates from the server without writing any JavaScript. The result is Flappy Phoenix - you can play it now on Heroku. Although real-time games aren’t really the goal of the project, it is so performant you can get pretty good results, so why not. The source code is available on GitHub. It has some issues 😊.

January 2019

TIL Test a branch using dep with golang

I just needed to test out a branch fix for a go package and discovered it’s pretty easy to do if you’re using dep for dependency management by specifying a new source for the package.

May 2018

TIL Determine which HTTP port is being used by a Phoenix app

I was recently starting a Phoenix server with port 0 which tells the OS to find a free local port but wanted to know what port it had chosen. It turns out you can query the ranch config by the module name of your Phoenix Endpoint to get this information:

September 2017

TIL Tweet URLs at the end

I’m probably very late to the party but I discovered today that if you’re tweeting a link, twitter will display it differently if you put it at the end rather than the beginning or middle of the tweet. Here’s an example where I posted it at the beginning And here’s one at the end

TIL Docker can override UFW rules

If you’re using Ubuntu’s Uncomplicated Firewall (UFW) on your host and running services with Docker mapped ports, these services can bypass your UFW configuration.