sales priorities

Since I have not heard from you on this, I have to assume your priorities have changed. Read more

28 Oct 2025


Having Fun with React Apps in Rails with Bun and Importmap

Why this pattern This guide documents a simple, repeatable way to add small, focused React apps to a Rails project—bundled... Read more

10 Sep 2025


Rails RenderAsync On Click Example

In this example, we will demonstrate how to use the render_async gem to load content dynamically when a button is... Read more

23 Jul 2025


Cloudflare Naked Domain Redirect

Redirecting Naked Domain to www To redirect a naked domain (example.com) to a www subdomain (www.example.com) using Cloudflare, follow these... Read more

15 Apr 2025


Migrating Your Production Application and Database from Heroku to Hatchbox

Migrating production systems requires careful planning. This guide outlines the steps to move your Heroku-hosted application and PostgreSQL database to... Read more

08 Apr 2025


Convert Claude Artifact TSX file into Normal React App - using Bun

So you created a cool react thing on claude.ai and want to get some more control. First thing to do... Read more

09 Mar 2025


Async ChartKick / How to lazily fetch chart data

I love gem 'chartkick' for building quick and simple charting. An optimization I found is to render charts when they... Read more

14 Jul 2024


How To: ChartKick & Chart.js with Multi Axis Data

In your view file <%= column_chart(async_traffic_forecast_path(resource, params[:id]), library: { legend: { position: 'top' }, scales: { 'y' => { "type"... Read more

10 Jul 2024


use-on-screen

Your content goes here Read more

10 Jul 2024


Rails Render Async in Viewport with Lazy Observer

I love the gem render_async because it’s a simple tool to make your controller action thinner. I was recently considering... Read more

15 Mar 2024


Simple Streaming OpenAI to your Rails App (without turbo/websockets)

I’ve been playing around with OpenAI’s GPT-4 API and I wanted to share a quick summary and code sample. Why... Read more

28 Sep 2023


Rails Simple Form Tooltip (Bootstrap Popover)

SimpleForm utilizes i18n files to manage labels, hints, and defaults. The following code customizes the simple_form builder object to examine... Read more

23 Jul 2023


Creating a Zip File / Folder from ActiveStorage Image Variants with Rails

Amazon 360-images require a specific naming convention for their 360-images. Every item as a global identifier called an ASIN (Amazon... Read more

29 May 2023


Authorization with amz_sp_api Ruby Gem

Authorization with the amz_sp_api rubygem. First you have to handle oauth (user visits with code, you convert into tokens). After... Read more

26 Jan 2023


Creating a date flag with simple_form

The idea of a date flag is to allow the user to interact with a checkbox, but the data persisted... Read more

20 Apr 2022


Bootstrap Radio Card Template

I love a unique radio situation from time to time. I utilized this once and wanted to save for later.... Read more

08 Mar 2022


Copy FTP files to Rails Active Storage

This is 2 step solution, download locally then upload to ActiveStorage. (I couldn’t figure out how to directly write from... Read more

03 Feb 2022


Chrome Shortcut Icon on Mac Dock

This took me far longer to figure out that it should have, because google sucks. My parents were pissed off... Read more

25 Jan 2022


Netlify Function Proxy/Fetch Import Error

Update your NETLIFY function build # inside netlify.toml / in your project root [functions] node_bundler = "esbuild" Add node-fetch@2 instead... Read more

21 Jan 2022


Ruby Array of Hashes to CSV

file = CSV.generate do |writer| array_of_hashes.each_with_index do |row, index| writer << row.keys if index == 0 writer << row.values end... Read more

11 Jan 2022


Active::Storage Attaching Attachments Code Snippets

For all examples, assume the class has fancy_report and amazing_images # business.rb class Business < ApplicationRecord has_one_attached :fancy_report has_many_attached :amazing_images... Read more

09 Jan 2022


Bootstrap Remove Column Gutter Padding (Version 5)

Bootstrap4 Bootstrap3 Bootstrap5: Zero gutter is g-0 Boostrap5 comes with gutter utilities Catch all dimensions & viewports g-0 .. g-5... Read more

04 Jan 2022


Code Block Highlighter Copy/Paste (Jekyll)

Jekyll uses div.highlighter-rouge as the wrapper around any codeblock sections. For each block, we create a button with an event.... Read more

03 Jan 2022


Rails MIN / MAX with ActiveRecord

A smart way to get data from AR is utilizing pluck() to extract the raw data. For example, a range... Read more

02 Jan 2022


How I use React in Jekyll (with Create React App) [Updated 2021]

This post assumes you have an understanding of Jekyll and React and have deployed both of them before. The goal... Read more

21 Dec 2021


Heroku Run Rails Code in Console

Different ways of running ruby code in the heroku console $ heroku run rails runner 'PurchaseOrderJob.new("1234565").perform' $ heroku run "rails... Read more

01 Dec 2021


Create HTML Switch Without CSS

Seriously though… Why doesn’t this exist already? I was really annoyed when recently when I realized how common it is... Read more

25 Oct 2020


Comcast Voicemail: How to Bulk Delete Your Voicemail Box

Seriously though… What is your Time Worth? I was really annoyed when someone called me and told me my voicemailbox... Read more

25 Aug 2020


Lazy Loading Images with plain old Javascript

Code First! Convert your Images: <!-- from this: --> <img src="big-ol-image.png" alt="Huge Image"/> <!-- to this: --> <img data-src="big-ol-image.png" src="/loading-placeholder.png"... Read more

19 Aug 2020


Bootstrap SCSS File Download Script (Keep folder in Sync)

Package Managers are really cool, but sometimes you need to download files for yourself. Bootstrap for example lets you customize... Read more

20 Apr 2020


Zero-Dependency Sitemap Generator using Netlify Functions (for Create-React-App)

Generating sitemaps for react apps is much more complex that it should be. If your app is basic with a... Read more

08 Apr 2020


Bootstrap Remove Column Gutter Padding (Version 4)

Bootstrap5 Bootstrap3 Bootstrap4: Comes with .no-gutters out of the box. source: https://github.com/twbs/bootstrap/pull/21211/files <div class="container"> <div class="row no-gutters"> <div class="col-6"> <div... Read more

04 Jan 2020


migrating away from paperclip - finding all models

the best migration script is right here: models_with_files = ActiveRecord::Base.descendants.reject(&:abstract_class?).inject({}) do |reducer, model| columns = model.column_names.map { |c| $1 if... Read more

15 Feb 2019


Rails - Touch Without Callbacks

My Task model has commit callbacks that send notifications. But the task model ALSO gets touched by a bunch of... Read more

14 Jan 2019


Ruby Union and Intersection operators

Ruby Union and Intersection operators Pipe | (Union) / Ampersand & (Intersection) &: intersection OR overlap The ampersand is an... Read more

01 Jan 2019


Bootstrap Remove Column Gutter Padding (Version 3)

Bootstrap5 Bootstrap4 Bootstrap3: Requires custom CSS. Stylesheet: .row.no-gutters { margin-right: 0; margin-left: 0; & > [class^="col-"], & > [class*=" col-"]... Read more

04 Jan 2018


Rails Seed Data from YAML with Rake Task

This is inspired by http://sixarm.com/about/rails-seed-data.html which i noticed had some errors. Seed Data in YAML files We use the Rails... Read more

10 Oct 2014