GeistHaus
log in · sign up

t27duck.com posts

Part of t27duck.com

Posts from my personal blog

stories primary
Using UUIDv7 with Rails without PostgreSQL 18
UUIDv7 was added to PostgreSQL 18 to support time-based UUIDs, but you don't have to upgrade to take advantage of them now.
https://t27duck.com/posts/31-using-uuidv7-with-rails-without-postgresql-18
Migrating Away from Devise Part 2: Sign-in
Part 2 of a multi-part series for moving away from devise to Rails' authentication generator
https://t27duck.com/posts/25-migrating-away-from-devise-part-2-sign-in
A Bluesky AT Proto API Example in Ruby
Bluesky has blown up a bit recently as an X alternative. It provides a free API to post to an account's timeline.
https://t27duck.com/posts/17-a-bluesky-at-proto-api-example-in-ruby
Migrating From Nginx to Caddy
Caddy offers a simplified and easier to manage configuration than nginx. I wanted to give it a try.
https://t27duck.com/posts/16-migrating-from-nginx-to-caddy
Quick and dirty cron for Rails
Want some code to run every few minutes but don't want to load up a scheduling library or background job processor?
https://t27duck.com/posts/12-quick-and-dirty-cron-for-rails
Integrating Google One Tap in a Rails Application
Google One Tap provides an easy and frictionless method of allowing a user to authenticate with your application.
https://t27duck.com/posts/10-integrating-google-one-tap-in-a-rails-application
Adding an index to a partitioned table and its children in PostgreSQL and Rails
Postgres 10+ made partitioning tables much easier, however adding an index to a table with many partitions and data in them already is not straightforward if you want to avoid long table locking.
https://t27duck.com/posts/9-adding-an-index-to-a-partitioned-table-and-its-children-in-postgresql-and-rails
How I Upgrade Ruby on Rails
Another year, another major Rails release. Rails 6.1 looks to be a solid one. Though, despite all the new features and fixes a new Rails version brings, there is always one looming problem for developers - the upgrade.
https://t27duck.com/posts/8-how-i-upgrade-ruby-on-rails
Programmatically Defer Sidekiq Jobs
Sidekiq will happily chug along and process any and all jobs that are in the queue. But, what if you want it to take a break for a bit?
https://t27duck.com/posts/7-programmatically-defer-sidekiq-jobs
Building, installing, and configuring your own Ruby RPM for CentOS
If you're running your Ruby apps on your own server, you obviously need Ruby installed. The problem is the version of Ruby provided by the OS is commonly not what you want.
https://t27duck.com/posts/3-building-installing-and-configuring-your-own-ruby-rpm-for-centos
Migrating from unicorn to puma with no downtime
I decided want to migrate a Rails 4.2 side project from unicorn to puma. The app has relatively high traffic throughout the day, so I want to avoid any visible downtime.
https://t27duck.com/posts/1-migrating-from-unicorn-to-puma-with-no-downtime