To install Nokogiri on Apple M1, assuming you are using x86 Ruby this command would do the trick (no need to open the terminal in Rosetta mode)


After a lot of time-wasting in fighting the compilation errors of various ruby versions, I found out that this command consistently installs Ruby versions using rbenv (should work for RVM as well)

You might encounter errors like these

Downloading ruby-2.5.3.tar.bz2...
->…


Photo by Lysander Yuen on Unsplash

In an earlier article, I demonstrated how to use patch using MagicMock to stub a method. In that example though, there was one inherent problem. Once you patch that method using the string representation, future patches will become ineffective/not work at all. Let me demonstrate this with an example.

Assume…


Writing tests is essential in any programming language irrespective of the framework in use. In one of the recent projects in Python/Django which is relatively new to me, I had to write a substantial amount of tests. Some of these tests execute code which talks to the internet. …


Connecting to Salesforce’s REST endpoint is fairly straightforward from a Ruby on Rails application. However, there are few steps you have to take. Before starting, ensure that you have full administrator privileges in Salesforce.

1. Create a Connected App

First thing we need to do is to create a Connected App. Its more like a…


Photo by Lukasz Szmigiel on Unsplash

When we started using Clickhouse, the concepts of MergeTree and SummingMergeTree was very confusing. …


Materialized Views are not something very new if you are familiar with Database views and have worked with Time series/Analytical database. However, when used in Clickhouse, they are blazing fast. So fast, that not many databases in the similar domain can even come closer to it.

Why is Clickhouse very…


Photo by Clark Young on Unsplash

GCP is right up there in the top three race to cloud infrastructure only behind Amazon Web Services and Microsoft Azure. It has almost everything you need from classical VM instances, Serverless, Hosted Kubernetes, Docker container registries, ML, Vision - almost everything!

In this article, I am going to focus…


Photo by Kelly Sikkema on Unsplash

With the development community leaning a lot towards front-end, and framework like Rails mostly moving to mostly serve back-end, it is important to keep this separation clean and straightforward in a Production environment as well.

To make this work via nginx is not straightforward, yet doable. But why should one…


Photo by Erik Eastman on Unsplash

In one of the projects I worked on, I had written close to thousands (sic) of Regex as they help in having a strong foundation in Natural Language Processing besides the existing libraries available.

However, one of the most important piece in Regex is that it could get complicated so…

Bragadeesh Jegannathan

Founder & CEO, Francium Tech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store