Caleb Hearth

Caleb Hearth @calebhearth

About: Dungeon Webmaster, Open Sourcerer, and breakfast THAC0 enthusiast. https://pub.calebhearth.com/@caleb

Location:
Denver, CO
Joined:
Feb 22, 2018

Caleb Hearth
articles - 47 total

Tell GitHub to Render Markdown Pages with .gitattributes

Articles on Hearthside are written in Markdown (GitHub-flavored), but the file extension is .md.yaml...

Learn More 0 2Nov 23 '24

Oxtail, and more Cooklang Exploration

After yesterday’s post, it was time to finally try to handle a blog post and Cooklang recipe in one...

Learn More 0 0Nov 23 '24

How I Model SwiftUI Views

The approach I take to defining ViewModels for SwiftUI was heavily inspired by Paul Hudson’s post...

Learn More 0 0Nov 23 '24

Truncate Date to Calendar.Component in Swift

I’m frequently wanting to work with truncated dates in Swift apps, especially when dealing with Swift...

Learn More 0 0Nov 23 '24

Using Starship for the Same Prompt, but Faster

Starship is a highly-configurable, cross-shell prompt. I recently switched to using it and it sped up...

Learn More 0 0Nov 23 '24

Send a From Header When You Crawl

Sending a From header is part of building a polite crawler, along with respecting Robots.txt and...

Learn More 0 0Nov 23 '24

Search and Sync Your Shell History With Atuin

Atuin is a tool that runs in the background to capture commands you’ve entered. It stores these...

Learn More 0 0Nov 23 '24

Decryption/CypherError on Rails 7.1 Apps with Encrypted Columns After Upgrading from Previous Versions

When upgrading to Rails 7.1 with any models using the encrypts macro from ActiveRecord::Encryption,...

Learn More 0 0Nov 23 '24

I Use /uses

Back in 2023 I quietly published my /uses slashpage. Today I gave it a pass to update things that had...

Learn More 0 0Nov 23 '24

How to Send a Webmention h-entry

Webmentions are a useful way to notify a website that you have linked to it. Microformats like...

Learn More 0 0Nov 23 '24

Ask Git to Show a Method

If you enjoy this article on Git, also check these other Git tips: Stash only what git commit...

Learn More 0 0Nov 23 '24

Highlighting Text in Links with Text Fragments

I’ve used URL text fragments in a few posts now and often use it outside of this blog to point...

Learn More 0 0Nov 23 '24

Statistics for My Blog

When thinking about how to kick off NaBloPoMo 2024 this past weekend, instead of picking one of...

Learn More 0 0Nov 23 '24

Using WidgetKit + SwiftData

Yesterday I was setting up my first widget, scratching an itch I’ve had for a while “empty states” in...

Learn More 0 0Nov 23 '24

Write cleaner, self-documented tests by defining methods in RSpec

When we write clean Ruby code, we try to pull out methods with descriptive names that do small...

Learn More 0 0Nov 23 '24

sensoryFeedback Samples App

SensoryFeedbackSamples is an Open Source multiplatform SwiftUI app that provides a testing palette...

Learn More 0 0Mar 21 '24

Reading JSON from a Rails API in Swift

Swift’s Codable interface allows a Swift type to be converted to and from, among other things, JSON....

Learn More 0 0Mar 4 '24

Drawing a Hex Grid in SwiftUI

Last time we put together a custom Hexagon Shape in SwiftUI. Now let’s see what it would take to make...

Learn More 0 1Mar 4 '24

Avoid Services that Don't Make it Easy to Get Your Data

Like everyone, I use a lot of apps and services for various things. I’m writing this article into...

Learn More 0 0Nov 20 '23

Reduce Rails' Boot Memory by Removing Mail

Rail’s actionmailbox and Ruby’s mail (used by both actionmailbox and actionmailer) gems create a lot...

Learn More 0 0Nov 20 '23

How to Stash Everything git commit Wouldn't Commit

Sometimes I want to take some changes that I’ve made but haven’t yet committed yet and put the into...

Learn More 0 0Nov 20 '23

See the History of a Method with git log -L

Git can “trace the evolution” of a specific method when passed -L using the :<funcname>...

Learn More 0 0Nov 5 '23

Undo in assets:clobber What You Do in assets:precompile

As a best practice, when you enhance your Rails app’s assets:precompile task to build static assets...

Learn More 0 0Nov 5 '23

I Built a Linklog

In the spirit of Daring Fireball and to fill a space between a social post or boost and a full blog...

Learn More 0 0Aug 11 '23

The Decree Design Pattern

Majesties! Cease groveling before your codebase, and issue your applications Decrees! A Decree is a...

Learn More 0 0Feb 9 '23

Work with Me

I’m a developer, conference speaker and organizer, technical blogger, and mentor with over 11 years...

Learn More 0 0Feb 9 '23

This Gem is Mentionable

Mentionable is a gem that provides support for inbound Webmentions and microformats in Rails...

Learn More 0 0Feb 9 '23

Read Ruby's Enumerable Docs

I’ve often been asked by developers how they can improve. One low-hanging fruit is to get to know the...

Learn More 0 1Jan 17 '23

Painting and Proficiency With Your Tools

Painting models for board games is intricate work. It requires a strange mix of absolute focus and...

Learn More 1 0Dec 20 '22

Chesterton's Fence

These blog posts were drafted by me, ChatGPT, and edited by Caleb Hearth. The ideas and prompts for...

Learn More 0 0Dec 20 '22