Secure API with JWT (JSON Web Token)

I have recently come across JSON Web Token (JWT) which is pronounced as ‘jot’. So what is JWT? Here is the definition that I read from https://self-issued.info/docs/draft-ietf-oauth-json-web-token.html JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred

Read More
kaboompics.com_Smart phone in girl's hands

My Experiments on SIP SoftPhone for Android

I wanted to build a simple SPI Softphone for Android and started digging out the possibilities. As you know Session Initiation Protocol (SIP) is a communications protocol for signalling and controlling multimedia communication sessions .Largely used in linked Firms to

Read More

Fix for Nodejs – Cannot allocate memory and Process out of memory issues

When you face the error Uncaught Error: ExecJS::RuntimeError: FATAL ERROR: Evacuation Allocation failed – process out of memory and rails assets pipeline Cannot allocate memory – nodejs while deploying and running a Ruby on Rails, you can fix it by

Read More

Three Ways to Manage Assets in Rails

These days almost all web applications uses loads of JavaScripts (like jQuery, AngularJS and so on) and its becoming challenging to maintain the its versions and dependencies. Lets see how we can manage such external JavaScripts assets within a Rails

Read More

Handle ActiveRecord::RecordNotFound More Beautifully

Most of us usually handle the Active Record Not Found error in ApplicationController and then redirect it to a generic view page. I found a different and more efficient way to handle it.

Read More

Tips: Reduce First Page Loading Time After git-deploy

Add the curl -v -sS http://example.com 2>&1 >/dev/null | grep ‘>’ | cut -c1-2 –complement to deploy/restart. It will hit the server just after deployment so that your page all set to serve the first visitor after deployment without waiting

Read More

git-deploy – Perl: warning: Setting locale failed.

If you get the error perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:, you can fix it by adding the lines export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 to the file deploy/after_push

Read More

git-deploy – Fix for /usr/bin/env: ruby: No such file or directory

If you use git-deploy with rvm and if you face the error /usr/bin/env: ruby: No such file or directory then here is the quick fix that you can try.

Read More

What I learned from Ryan Dahl’s intro to node

From last two weeks i have been trying to learn node js when i came across this old video by Ryan Dahl where he introduce what is node and what makes it different from others . Till then i was

Read More

Test Performance Of Your Web App Online

As a peer , we look for a site to load very fast even our internet is dead slow. Everyone rate the website basically with the performance “How fast the site is getting loaded” . We have lots and lots

Read More