Posts
All the articles I've posted.
-
Centering a Fixed-Sized Element with CSS
Updated:Learn a classic CSS trick to center a fixed-width or fixed-height element using absolute positioning and negative margins.
-
Creating Python Virtual Environments
Updated:Learn how to create and use Python virtual environments with venv to isolate dependencies and manage multiple projects cleanly.
-
Fixing Homebrew & Zsh Issues After macOS Upgrades
Updated:Upgrading macOS often breaks command-line setups. Here’s how I fixed issues with Homebrew, Zsh, and oh-my-zsh during the Big Sur upgrade—steps still useful for modern macOS versions.
-
Loading CSV Data in Rails: Then vs Now
Updated:A look back at how Rails 2.x apps loaded CSV data into models, and how modern Rails apps can do it more efficiently today.
-
Formatting ActiveSupport::Duration Objects in Rails
Updated:Learn how to format ActiveSupport::Duration objects into concise, human-readable strings with locale support using the duration_in_words gem.
-
Working with HTTP Headers in Rails
Updated:Learn how to safely extract external HTTP headers in Rails while filtering out internal Rack and Rails environment variables.
-
Connecting to Multiple Databases in a Rails App
Updated:Learn how to connect a Rails app to multiple databases using establish_connection, with context on modern Rails features for handling multi-DB setups.
-
Keeping Array Elements Unique in Ruby
Updated:Explore different ways to keep arrays unique in Ruby—using `uniq`, `uniq!`, and the `|` operator.
-
Dynamic Full Page Background Images in Rails
Updated:Learn how to set and randomize full-page background images in a Rails app using CSS3 and simple view helpers.
-
Highlighting Current Link in Rails Navigation
Updated:A look back at techniques for highlighting the active link in Rails navigation, with modern alternatives using current_page? and Stimulus.