Validate and Fix Ruby on Rails ActiveRecord PostgreSQL Data IntegrityMost Ruby developers work with Rails and Active Record for PostgreSQL database interactions. It provides a ton of magic and is simple to start with. Data integrity problems start creeping up once the code base and database structure gets older. In this blog post, I will describe a couple of techniques for ensuring data integrity and validation in Ruby on Rails web apps.
Active Admin Gem Tips and Performance Optimizations for Rails AppsActive Admin gem is a popular tool for building admin interfaces in Ruby on Rails apps. In this blog post, I will describe a couple of less obvious tips and performance optimization techniques.
Optimize Dokku Deployment Speed for Ruby on Rails with DockerfileDokku lets you setup Rails hosting infrastructure on a simple VPS without much dev ops experience. Although it is easy to get started, a default config might result in very slow and unreliable deployments. In this blog post, I will describe how I've improved my Dokku based Ruby on Rails (NodeJS with Yarn and Webpack) application deployment speed by over 400% using a Docker image Dockerfile.
Screencast - Showcase of Focus Board, Visual Web Scraper PrototypeIn this screencast, I present a prototype of my new side project. It is a simple tool that allows you to visually scrape interesting parts of different websites to create your personal internet dashboard. I want to probe the interest before releasing a public MVP version.
Remove AMP and don’t Affect SEO Rating, Organic Traffic, PerformanceI've used to recommend supporting Google AMP pages as a reliable way to increase site SEO rating and organic traffic visitors. Recently I've removed AMP from my website. In this blog post, I will describe how it affected my blog and a couple of more advanced web performance optimization techniques I am using instead of a proprietary standard like Accelerated Mobile Pages.
Setup ELK for NGINX logs with Elasticsearch, Logstash, and KibanaELK Elastic stack is a popular open-source solution for analyzing weblogs. In this blog post, I describe how to setup Elasticsearch, Logstash and Kibana on a barebones VPS to analyze NGINX access logs. I don't dwell on details but instead focus on things you need to get up and running with ELK-powered log analysis quickly.
Screencast - How to Write and Promote a Programming Blog PostIn this screencast, I explain how to write, release and promote a programming blog post on various social platforms even if you don't have an audience yet. I present my typical routine and tools I use when submitting a new post.
Hosting Static Site on Dokku with Free Cloudflare CDN and SSLDokku is dev ops for dummies and a simple way to deploy websites on a barebones VPS. In this blog post I will describe how to use it to host a static site, and setup global assets caching with free Cloudflare CDN and SSL certificate.