Create a Windows 10 USB from MacOS

These are the steps I use to create a Window 10 installer on MacOS. I only do this once in a blue moon and I want to make sure I keep track of these commands before they are lost in my history. # Format the USB drive as MS-DOS and name it "WIN10" $ diskutil...

Continue reading »

Wrangle Your SQL With Arel by Eric Hayes

This is a fascinating talk that walks through the underlying APIs used to build SQL queries in ActiveRecord. Eric does a great job showing how ORMs use Abstract Syntax Trees to create SQL queries from hashes and method calls. The end result shows how they built an incredibly complex cohort query with efficiency and maintainablity...

Continue reading »

Process HEIC Images with Node on AWS Lambda

I needed to add support for HEIF/HEIC images in my application and thought it would be a fun introduction to AWS Lambda. Since I have minimal experience with AWS and this was an exercise for myself I thought it would also be fun to use Sharp. The first thing I learned is that HEIF is...

Continue reading »

Basecamp's Trix with React

I needed to add the Trix Editor to my React application and couldn’t find a simple solution. Since having an actual <input /> node in the DOM isn’t required, I opted to have the value bound directly the editor’s built in input node. Usage import React, { useState } from 'react' const Form = ()...

Continue reading »

Github Actions with Rails and Postgres

Github Actions were recently made widely available and this workflow has been awesome. It runs Postgres in a docker container and installs the libpq-dev package for the pg gem. Enjoy! It’s important to note that this configuration runs Postgres inside a docker container with the port forwarded to a random, available port within the build’s...

Continue reading »