Authentication & Authorization
Performance analyzer
For development env
Background…
In most of the application, it requires to send email through the app itself like sending email to the user after registration, forgot password, sending feedback, etc. In most cases, we used to have a development, staging, and production server.
To test email functionality in the development server we can use letter_opener gem. And to test in the staging server we really need to send an email to the user. This could be a risk because it can send a test email to a real user. …
Latest version: Ruby 2.7.1 Mar 31, 2020
Ruby is an open-source pure object-oriented programming language developed by Yukihiro Matsumoto. The first version of the language (0.95) was released in 1995, and in 2011, version 1.9.3 was released.
Deep copy
A deep copy means that all of the values of the new variable are copied and disconnected from the original variable.
var a = 5;
var b = a; // 5
b = 6;
console.log(a); // 5
console.log(b); // 6
A shallow copy means that certain (sub-)values are still connected to the original variable.
var user = { name: 'Kishan', gender: 'M' };
var user2= user;
user2.name = 'Kishan Patel';// Since 'user2' is reference of 'user'
console.log(user); // { name: 'Kishan Patel', gender: 'M' };
console.log(user2); // { name: 'Kishan Patel', gender: 'M' };--Same applies to array
var a = [1]
var b = a…
The latest stable version is 2.6.11, released this on 14 Dec 2019.
Check out here for more information.
Simple documentation on how to clone GitHub repository into your system through ssh key.
First of all, you need to generate ssh key, check out https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent to generate ssh key.
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Navigate to the ssh folder
$ cd ~/.ssh
Check if there is already id_rsa and id_rsa.pub file is present or not.
$ ls
Take a backup of your old ssh key, if you have
$ mv id_rsa* /Document
Remove the old keys
$ rm id_rsa id_rsa.pub
Navigate to the folder path in the terminal where you have your new ssh key
Example
$ cd…
In the Dialogflow chatbot integration Part-I, you learned how to create a chatbot with provided Training phrases and output response, in this blog you will learn how to connect Dialogflow to your server, send a request to the server from Dialogflow, and receive a response from your server.
Let’s get started,
Suppose you want to find the email address of a user from your DB.
You can ask your bot in many ways, e.g.
> What is Jhon’s email? or
> Jhon’s email
and you can expect a response from your bot something like,
< Jhon’s email address is jhon@example.com
A simple Blog application using Ruby on Rails.
Before creating a Rails app lets install the following things
$ gem install railsIt will install the latest rails on your machine$ rvm install ruby-2.7.0
It will install Ruby 2.7.0 in rvm.You can see the rvm list by
$ rvm listTo see the available gemset inside the ruby type
$ rvm gemset list
$ gpg - keyserver hkp://pool.sks-keyservers.net - recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB$ source ~/.rvm/scripts/rvm
Let’s get started to our vision
$ rails new Blog…
Benefits of using Heroku
A simple blog to configure ESLint on VSCode for Vue JS developer.
To write good codes we need to remember many things, what if our code editor will highlight our bad codes and fixed those warnings automatically. Don’t worry this is possible by ESLint.
Advantages of using ESLint
About