THE BLOG
Exploration of Thought
Thoughts on autonomy, self direction, digital business and life.

Disable Attachments in the Trix Editor
Use this stimulus controller to quickly disable attachments in the Trix Editor. When you need to disable attachments in the Trix editor you'll need to make sure you do three things: You can do this with the following stimulus controller: Save this as disable_uploads_controller.rb Once included in your /app/javascript/controllers/ folder, you would apply it like…Donn Felker - July 5, 2023

Opportunity Cost and Letting Go: How to Profit from Your Stalled Projects
You want your time back so you can focus on other things. How do you do it though? Learn how in this articleDonn Felker - June 21, 2023

The 15-Minute Meeting: Change Your Workday, Change Your Life
If you approach meetings with the end in mind, you can do almost any meeting in 15 minutes. I changed the default meeting length in Google calendar to 15 minutes (here's now). This has given me much more time back in my life. In other words, most meeting’s don’t need to be 1 hour long,…Donn Felker - May 9, 2023

How to Migrate to Rails Encrypted Attributes
This post will show you how to migrate an existing attribute to a Rails 7 encrypted attribute. Rails 7 has shipped with encrypted attributes, so its no longer necessary to use something like attr_encrypted to encrypt a field. Once set up, using it is easy: This works great if you have never happened to have…Donn Felker - April 26, 2023

Status Updates Should Be 60-90 Seconds
Daily and weekly standup status updates should only be 60-90 seconds long per team member. Anything longer than necessary is likely to waste everyone else's time. If people are interested in learning more or discussing a related topic to your status update, they should stay after the meeting to do so. This is so that…Donn Felker - April 10, 2023

Building a Stronger Mind and Body: Reflections on 1000 Days of Working Out
I worked out for 1000 days straight, this is what I learned about myself mentally, physically and more ...Donn Felker - March 28, 2023

HowTo: Setup Tailwind CSS 3 with Middleman
This post explains how I created the Tailwind CSS 3 + Middleman integration that is available on GitHub. Download the source or fork the repository here. Middleman is a Ruby static site generator that makes it easy to create custom static sites with the Ruby language (as well as ERB, etc). The reason why I'm…Donn Felker - August 2, 2022

MultiTenant PgSearch: A How To
In my previous post I showed you how to set up pg_search to search against ActionText::RichText fields for multisearch. This post takes it a step further and add's the ability to scope your PgSearch multisearch calls to a tenant in a multitenant based Rails application. Problem You're using PgSearch for search on your Rails application,…Donn Felker - March 28, 2022

PgSearch multisearch with ActionText::RichText
If your Rails model has an ActionText rich text field, and you want to make it searchable with PgSearch (pg_search) you'll need a way to index those records. This post will show you how to do that. Since ActionText::RichText objects are stored in the database you can access them via the rails console quite easily…Donn Felker - March 27, 2022

How to Fix – NameError: uninitialized constant Vips on Heroku
Stoa is a Rails 7 application that currently runs on Heroku. During a recent deployment of my upgrade to Rails 7 Sidekiq started failing numerous background jobs around some image processing I had. The error message in Sidekiq was: NameError: uninitialized constant Vips Here's how I fixed it ... In my Rails app I needed…Donn Felker - February 10, 2022

Master the Essentials of Git in Under 2 Hours
Learn the 20% of Git that will give you over 80% the benefit of Git. All in under two hours. This is the ONLY Git course you need to get started with Git. After watching this course you’ll have everything you need to use Git to do your day to day job as a developer,…Donn Felker - November 20, 2021

How Often You Should Visit Your Clients
In freelancing, it's pretty rare that you'll go visit your client. However, there are times in your career when visiting your client is the sensible thing to do. There are three parts to this: Why you want to visit your client What clients you should visit How often should you visit Let's talk about…Donn Felker - August 28, 2021











