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 »

Active Link To Helper

I’m often looking for a flexible solution for determining if I’m on the current route. I say flexible because sometimes a link is bound to a single controller, or sometimes multiple controllers, or multiple controllers with specific actions. Rails Helper Matcher Class Usage Spec Rails Helper # app/helpers/active_link_helper.rb # frozen_string_literal: true require_relative "../../lib/active_link_path" module ActiveLinkHelper...

Continue reading »

Who Knows Who or What?

A few years ago I had the opportunity to help build a social media platform designed to connect professionals with various connections. The idea being to index users based on companies or individuals they had previously mentioned having a connection to. While this is a problem I still don’t fully understand it was especially difficult...

Continue reading »

Embeddings in Machine Learning

I’ve recently been tasked with applying machine learning and neural networks to classify documents at my day job. Everyday while working to solve this problem I have new realizations about this field which was completely foreign to me only a few months ago. I took what is called a top-down approach, which basically means diving...

Continue reading »