All blog articles by Ravikiran Kadam
Ravikiran Kadam

This article will help you solving browser compatibility issue. To make detection more robust, here included browser-specific characteristics which is different according to browser.

Opera 8.0+

var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;

Firefox 1.0+

var isFirefox = typeof InstallTrigger !== 'undefined';

Safari 9.1.3+

var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return...

Read complete blog post

Ravikiran Kadam

Table Print on Rails Console

TablePrint shows objects in nicely formatted columns for easy reading. It even lets you nest other tables of related objects, contextualizing data across tables. It's incredibly flexible, yet simple, making it easy to see exactly the data you care about.


Install as a standalone gem

$ gem install table_print

Or install within rails In your Gemfile:

gem "table_print"

$ bundle install


Outside rails $ irb

> require...

Read complete blog post

Ravikiran Kadam

autolink-js is a small (about half a kilobyte), simple, and tested JavaScript tool that takes a string of text, finds URLs within it, and hyperlinks them.

autolink-js adds an autoLink() method to JavaScript's String prototype, so you can use it on any JavaScript string. Take a look at the tests, but essentially, after including either autolink.js or autolink-min.js to your page, it works like this:

Input :

"This is a link to Google".autoLink()

Output :

"This is a...

Read complete blog post