Optimize activeadmin (ruby gem) dropdown resulting in slow page loads

Hi all, Welcome to another mystery solving. This post will help you optimize your page loads in activeadmin. If you don't already know what activeadmin gem is, then refer here. Problem: While using activeadmin, I was facing performance issue on page loads. It was extremely slow. It was also resulting in memory overshooting. If you … Continue reading Optimize activeadmin (ruby gem) dropdown resulting in slow page loads

Fix text encoding issue when exporting to CSV (comma separated values) – Ruby on Rails

Hi all!! In this post, I will be sharing a problem that I came across while dealing with exporting a CSV in Ruby on Rails. ( The rails version used was 4.2.10 and ruby version was 2.4.5). Problem: When writing into a file encoded with utf-8 encoding, some special characters weren't getting parsed in Excel. … Continue reading Fix text encoding issue when exporting to CSV (comma separated values) – Ruby on Rails

Mysql error : Cannot allocate memory for the buffer pool AWS EC2

Hello Techies!! PROBLEM : ┬áCannot allocate memory for buffer pool SHORT DESCRIPTION : Processor ran out of memory to allocate to the service. It needs more RAM in order to process properly. PRE-REQUISITE : AWS EC2, Linux instance While working on AWS EC2 free tier, I came across this problem. This problem occurs when the … Continue reading Mysql error : Cannot allocate memory for the buffer pool AWS EC2

Dictionaries – Python

Hello Techies!! We have learned about lists and tuples till now which were ordered collections and allowed duplicate values. Now, lets learn more about different type of collections in python. Today, we will look into dictionaries. As we all know our traditional dictionaries. right? They are collection of data where we can look for words … Continue reading Dictionaries – Python

Setting up an AWS EC2 t2.micro instance

Hello Techies!! Today we will learn to setup a aws ec2 t2.micro instance which is a 1-year free instance from AWS for every new account. EC2 - Elastic compute cloud Prerequisite : Basic knowledge about cloud and linux Let's get started. What will we be doing? We will be creating an AWS EC2 instance to … Continue reading Setting up an AWS EC2 t2.micro instance

Tuples – Python

Hello Techies!!! Hope you guys are doing great. Waking up everyday to learn and apply something new is so exciting. In last tutorial, we learned about a way to store data using a collection called as List. Today, we will look into something called a tuple. Tuple is similar to list storage. It is a … Continue reading Tuples – Python