Sri Vishnu Totakura

Posts

Open Rubocop’s results in VIM’s quickfix

Open all Rubocop offenses in VIM’s quickfix to easily navigate through them and address them.

PRODUCTIVITY VIM

jsbundling-rails with Webpack 5 on Production

Challenges we faced when migrating to jsbundling-rails along with Webpack 5 and running it on production.

RUBY ON RAILS JSBUNDLING-RAILS WEBPACK 5

The one on let, let!, before(:all) and before(:each)

These are very common helpers in RSpec. In this article, I share some examples explaining their basic behaviour and how they can work together.

TESTING RSPEC

When to use Concerns, Helpers and Services

Summarizing some issues that I noticed in my experience or while reading about these topics and the approach I take to deciding on when to use Conerns, Helpers and Services during development or refactoring.

RUBY ON RAILS ARCHITECTURE

RSpec terminology: Examples and Example groups

I often wondered what groups and examples are in RSpec and I wanted to summarise my learning in this article

TESTING RSPEC

Resources to get familiar with Webpacker, Webpack and Rails

When I started a new Rails 6 project, as a primarily backend developer, I found it intimidating to start developing with Webpack. These are some resources that helped me through to get familiar with Webpack, Webpacker and how to develop with them.

WEBPACK WEBPACKER RAILS

Increasing fs.inotify.max_user_watches for Docker images

You can’t set those for an image during build time becasue Docker takes the sysctl configuration from the Host. So, set the config on your host machine…

DOCKER DEVOPS

Debugging sudden increase in Postgres disk usage

Postgres’ pg_xlog (Write Ahead Log) grew to take up full disk space. How did we resolve it?

POSTGRES

What are parents on a merge commit?

Understand parents on a merge commit to be able to revert or cherry-pick.

GIT

Addressing Kafka’s corrupted index files warnings after restarting brokers

We were upgrading our Kafka cluster to the newest versions following the rolling upgrade plan according to the documentation. As we restarted brokers, even without upgrading them, they take a lot of time to join the cluster…

KAFKA, DEVOPS

Avoiding extra actions on resourceful Rails controllers

Rails advises to keep controllers and its actions resourceful buy providing resourceful routes helpers to create routes with default CRUD actions…

RAILS

Javascript sourcemaps in Rails with Sprockets 3 and Uglifier.

How to generate JS Sourcemaps in Rails

RAILS, JAVASCRIPT

Trackpoint scrolling on Thinkpad T440p running Ubuntu 16.04

How to enable Middle button (plus Trackpoint) scrolling on Thinkpad T440p running Ubuntu 16.04

UBUNTU THINKPAD

How to match a pattern and return only a part of the lines from a file

How to use sed to extract matched strings from a file

BASH SED DEV TOOLS

Git: How can I ignore a file that is already committed to the repo?

How to Ignore already checked in files in Git?

GIT