MailChimp API reference guide – Part I of III
Hello Folks, In this introductory article I will walk you through the steps on how to Add your contacts to MailChimp I am not going to elaborate / explain about MailChimp here. I am assuming you have basic knowledge about MailChimp (What it does, Why you need it etc.) and you would like to explore…
Connect to Box Explorer Component using Ruby on Rails
Hello Everyone, The target audience of this post is limited. In this article of mine, I will write down the steps of how you can connect with Box Explorer Component to allow users to upload file into your Box account. Requirement: We want to allow our users to upload file to somewhere in the cloud…
How to keep multiple versions of Elasticsearch on MacOS
Hello Folks, Hope you are keeping safe! This article is very short and simple. I was struggling to have multiple versions of Elasticsearch on my local Mac machine. With `homebrew` service, I wasn’t able to install multiple versions of Elasticsearch and I don’t want to move away from brew. So, I have decided to work…
[Rails 6] Using bootstrap with Asset Pipeline or Webpacker
I am working on a sample POC in Rails 6 and came across various articles that shows how can we use bootstrap with Webpacker and host all the js, css and images under /app/javascript folder (Whether we are using app like JS or not). I am not using this Rails 6 PoC for any JS…
Requests that take more than 60s to complete fails – ElasticBeanstalk
This short post specifically targets: – RoR as web development environment – Can be ignored as this is closely related to nginx configuration settings – Nginx as web server While working with ElasticBeanstalk environments, one of my requirement was to send a heavy job to Worker App that takes > 1 min (60 seconds) to…
Configure Delayed Job with Elastic Beanstalk
Recently, I got a chance to work with Elastic Beanstalk and trust me, it is not as friendly as Heroku and it took me a little while to get used to with Beanstalk deployments. I am using delayed_job in my project and the requirement was very simple, i.e. to automate background jobs. On heroku we…
[Ruby]: Update hash values with Array
Hi Folks, In this small tutorial, I am writing a program that updates value of each element in hash with a given array values. Given that: h = { h1: ‘value1’, h2: ‘value2’, h3: ‘value3’, h4: ‘value4’ } a = [ ‘1’, ‘2’, ‘3’, ‘4’ ] Where h is a Hash and a is an…
Learning RSPEC with Rails 4 (Alpha)
Hi Folks, Hope you all are fine and doing good! I am sure most of you, are using TDD for years now. And, once we think of TDD, the first thing comes into our mind is, RSPEC. We all agree that Rspec is a great framework of Test-Driven-Development and its integration with other libraries (like…
[Ruby] Fetching Emails from Microsoft Outlook
Hi Folks, Hope everyone is fine and doing good. In this article of mine, I am going to narrate, how you can fetch Emails from your Microsoft Outlook account. I am only going to cover ‘Inbox’ here. However, the scope of library (Gem) is very vast and you can customize this as per your need.…
Rails 4: Changeset
Hey Everyone, I know, I am very late in posting this article, as I didn’t get chance to do much hands-on in Rails 4. But now, that we all are on the same page, let me quickly set the summary here. Most of us (1) have already started with Rails4, most of them (2) are…
Kick-Off: First Rails 4 Application with HABTM Association
Hello Folks, Its been a long time since I’ve not written a post. Now, I realize that it’s time to share some useful snippet with all of you. Recently, I got a chance to get my hands cleaned with Rails 4. So much is happening around Rails community and with the rapid development of Rails…
Add duplicate rows in Excel using Ruby
Happy New Year Folks, Few days back a friend of mine came to me and said, “I am a RUBY Programmer and I am stuck in a requirement, wherein I have to read an excel-sheet (that contains multiple records and each record can have multiple entries in it.)” Think of an example like given in…
Installing mysql2 gem with Ruby 2.0
Hi Folks, In this short tutorial of mine, I am going to write down the steps of how you can install mysql2 gem with Ruby2.0 on Windows machine. Installing Mysql gem is always a big time pain for most of the developers who are working on Windows machine. But thanks to active folks over the…
Ruby Cheat-Sheet
Hi Folks, In this new tutorial, I am going to show you what most of developers/programmers already know, but not able to keep track of such things. I call it as ‘Ruby cheat-sheet’, you can call it by the name you like. This will also help those people who have just started learning ‘Ruby’. IMPORTANT…
Displaying Something from The Database
Guys in this tutorial I will explain you how to fetch values from the database and show those in a Table format. Here I assumed one thing, that the user is logged in. and that user has the rights to delete a particular record from the table. NOTE: This tutorial is very old. But will…
