900e2017160da0d8a817e5bc36702353
About Punit Jain
Hey this is Punit Jain.I brought up in Indore, currently in Mumbai having 4.5 years of software development experience.When not messing with the code I would like to enjoy the movies or web series now a days.
All blog articles by Punit Jain
900e2017160da0d8a817e5bc36702353
Punit Jain

Note: This article requires basic knowledge of elixir. If you are not familiar with I will encourage you to check the link

Ecto is a database abstraction layer for elixir. It provides a domain specific language to interacting with your database. It is also intended for relational database much like Active record. But it share more traits with LINQ in how it generate queries. Ecto in many ways different from ORMs like Active record. Unlike Active record, which uses model as a direct interface...

Read complete blog post

900e2017160da0d8a817e5bc36702353
Punit Jain

Nginx is a web server software like apache. The purpose of a web server software to serve web page in response to a browser request. Nginx pronounced as engine-x. It is faster than apache web server for concurrent requests because it does not create a thread for request like apache. Here is a detail comparison of the two https://www.nginx.com/blog/nginx-vs-apache-our-view/ .

Installing Nginx with passenger on ubuntu

1.Install rvm and ruby

First update the packages in the system

sudo apt-get...

Read complete blog post

900e2017160da0d8a817e5bc36702353
Punit Jain

What is Lazy Enumerator

Ruby 2.0 lazy enumerator allows you to iterate over infinite values and take the values you want for your calculation.This code would result in an infinite loop.

range = 1..Float::Infinity
range.collect { |x| x*x }.first(10)

The code results in an infinite loop because the Enumerable#collect is eager.It means that first collect processes all the values from the first array and then save it in the second array.Since we have an infinite range here first...

Read complete blog post