---
title: "Blogs by Neeraj Singh"
description: "Read BigBinary blog posts by Neeraj Singh."
canonical_url: "https://www.bigbinary.com/blog/authors/neerajsingh0101"
markdown_url: "https://www.bigbinary.com/blog/authors/neerajsingh0101.md"
---

# Blogs by Neeraj Singh

Read BigBinary blog posts by Neeraj Singh.

## Posts

### How SPF protects domain reputation and helps in email deliverability

[How SPF protects domain reputation and helps in email deliverability](https://www.bigbinary.com/blog/how-spf-protects-domain-reputation)

- Author: Neeraj Singh
- Published: April 26, 2023
- Categories: Misc

How SPF protects domain reputation and helps in email deliverability

### Redirecting URL using cloudflare redirect rules

[Redirecting URL using cloudflare redirect rules](https://www.bigbinary.com/blog/redirecting-url-using-cloudflare)

- Author: Neeraj Singh
- Published: March 14, 2023
- Categories: Misc

Redirecting url using cloudflar redirect rules

### Setting up Heroku DNS using cloudflare

[Setting up Heroku DNS using cloudflare](https://www.bigbinary.com/blog/setting-up-heroku-dns-using-clouflare)

- Author: Neeraj Singh
- Published: September 26, 2022
- Categories: Misc

Setting up Heroku DNS using cloudlfare

### Setting up wild card SSL on heroku

[Setting up wild card SSL on heroku](https://www.bigbinary.com/blog/wild-card-ssl-on-heroku)

- Author: Neeraj Singh
- Published: December 1, 2020
- Categories: Misc

Seeting up wild card SSL on heroku

### Marketing strategy at BigBinary

[Marketing strategy at BigBinary](https://www.bigbinary.com/blog/marketing-strategy-at-bigbinary)

- Author: Neeraj Singh
- Published: March 18, 2019
- Categories: Misc

Marketing strategy at BigBinary

### APISnapshot built on Elm & Rails is open source

[APISnapshot built on Elm & Rails is open source](https://www.bigbinary.com/blog/apisnapshot-built-using-elm-and-ruby-on-rails-is-open-source)

- Author: Neeraj Singh
- Published: May 25, 2018
- Categories: Misc

APISnapshot built using Elm and Ruby on Rails is open source

### Optimize JavaScript code for composability with Ramda.js

[Optimize JavaScript code for composability with Ramda.js](https://www.bigbinary.com/blog/optimize-javascript-code-for-composability-with-ramdajs)

- Author: Neeraj Singh
- Published: October 6, 2017
- Categories: JavaScript

Optimize JavaScript code for composability with Ramda.js

### Difference between type and type alias in Elm

[Difference between type and type alias in Elm](https://www.bigbinary.com/blog/difference-between-type-and-type-alias-in-elm)

- Author: Neeraj Singh
- Published: July 12, 2017
- Categories: Misc

type alias vs type in Elm

### Rails 5.1 dropped jQuery dependency in default stack

[Rails 5.1 dropped jQuery dependency in default stack](https://www.bigbinary.com/blog/rails-5-1-has-dropped-dependency-on-jquery-from-the-default-stack)

- Author: Neeraj Singh
- Published: June 20, 2017
- Categories: Rails 5.1, Rails

jQuery dropped as a dependency from Rails 5.1 onwards and replaced by a vanilla
rails-ujs driver for the unobtrusive JavaScript helpers

### Prettier & rubocop in Rails to format JS, CSS & Ruby

[Prettier & rubocop in Rails to format JS, CSS & Ruby](https://www.bigbinary.com/blog/using-prettier-and-rubocop-in-ruby-on-rails-to-format-javascript-css-ruby-files)

- Author: Neeraj Singh
- Published: June 12, 2017
- Categories: JavaScript

Using prettier and rubocop in Ruby on Rails application to format JavaScript,
CSS and Ruby files

### Rails 5.1 adds delegate_missing_to

[Rails 5.1 adds delegate_missing_to](https://www.bigbinary.com/blog/rails-5-1-adds-delegate-missing-to)

- Author: Neeraj Singh
- Published: May 30, 2017
- Categories: Rails 5.1, Rails

Rails 5.1 has introduced \`Module#delegate_missing_to\` to keep decorators more
clearer

### Rails 5 blogs and the art of story telling

[Rails 5 blogs and the art of story telling](https://www.bigbinary.com/blog/rails-5-blogs-and-the-art-of-story-telling)

- Author: Neeraj Singh
- Published: September 19, 2016
- Categories: Misc, Rails

Rails 5 blogs and the art of story telling

### Rails 5 deprecates alias_method_chain

[Rails 5 deprecates alias_method_chain](https://www.bigbinary.com/blog/rails-5-deprecates-alias-method-chain)

- Author: Neeraj Singh
- Published: August 21, 2016
- Categories: Rails 5, Rails

Rails 5 deprecates alias_method_chain in favor of Ruby's builtin method.

### User agent or custom header in React Native WebView

[User agent or custom header in React Native WebView](https://www.bigbinary.com/blog/passing-user-agent-or-custom-header-in-react-native-webview)

- Author: Neeraj Singh
- Published: July 10, 2016
- Categories: React Native

Change header or footer in React Native webview app using custom user agent

### Configure PostgreSQL to allow remote connection

[Configure PostgreSQL to allow remote connection](https://www.bigbinary.com/blog/configure-postgresql-to-allow-remote-connection)

- Author: Neeraj Singh
- Published: January 23, 2016
- Categories: Misc

Sometimes we need PostgreSQL to allow remote connection. This blog describes how
to get that done.

### Explicitly ssh into vagrant machine

[Explicitly ssh into vagrant machine](https://www.bigbinary.com/blog/explicitly-ssh-into-vagrant-machine)

- Author: Neeraj Singh
- Published: December 27, 2015
- Categories: Misc

Sometimes one need to explicitly ssh into vagrant machines. This blog discusses
how to get that done.

### Author information in jekyll blog

[Author information in jekyll blog](https://www.bigbinary.com/blog/author-information-in-jekyll-blog)

- Author: Neeraj Singh
- Published: January 9, 2015
- Categories: Ruby

Author information in jekyll blog

### How to deploy jekyll site to heroku

[How to deploy jekyll site to heroku](https://www.bigbinary.com/blog/deploy-jekyll-to-heroku)

- Author: Neeraj Singh
- Published: April 27, 2014
- Categories: Ruby

This blog discusses how to deploy jekyll site to heroku

### How to add additional directories to test

[How to add additional directories to test](https://www.bigbinary.com/blog/adding-directory-to-rake-test)

- Author: Neeraj Singh
- Published: April 26, 2014
- Categories: Rails

This blog discusses how to add additional directories to test

### Displaying non repeating random records

[Displaying non repeating random records](https://www.bigbinary.com/blog/non-repeating-random-records)

- Author: Neeraj Singh
- Published: November 13, 2013
- Categories: Rails

Displaying random records is easy. But sometimes it can show duplicate records.
This blog discusses how to show random records without showing duplicate
records.

### Active Record is still magical

[Active Record is still magical](https://www.bigbinary.com/blog/active-record-is-still-magical)

- Author: Neeraj Singh
- Published: October 30, 2013
- Categories: Rails

Slides and video of my presentation at Wicked Good Ruby Conferenece.

### Getting arguments passed to command

[Getting arguments passed to command](https://www.bigbinary.com/blog/getting-arguments-passed-to-command)

- Author: Neeraj Singh
- Published: September 22, 2013
- Categories: Ruby

Investigative work of finding what argeuments where passed to the command after
the fact.

### What is ppid

[What is ppid](https://www.bigbinary.com/blog/what-is-ppid)

- Author: Neeraj Singh
- Published: September 21, 2013
- Categories: Ruby

A look at how process ids are linked up and maintain the hierarchy.

### Do not allow force push to master

[Do not allow force push to master](https://www.bigbinary.com/blog/do-not-allow-force-push-to-master)

- Author: Neeraj Singh
- Published: September 19, 2013
- Categories: Misc

Force push is dangerous. But it is needed sometimes. And sometimes one can force
push to master by mistake. A look at how to avoid that.

### How to keep your fork up-to-date

[How to keep your fork up-to-date](https://www.bigbinary.com/blog/how-to-keep-your-fork-uptodate)

- Author: Neeraj Singh
- Published: September 13, 2013
- Categories: Misc

Keeping the fork up-to-date is no easy task. This blog can help.

### How to setup Pinch to Zoom for an image in RubyMotion

[How to setup Pinch to Zoom for an image in RubyMotion](https://www.bigbinary.com/blog/pinch-to-zoom-for-an-image-in-rubymotion)

- Author: Neeraj Singh
- Published: August 27, 2013
- Categories: Ruby

Pinching and then zooming is a common user interaction in ios apps. This blog
details how to build that feature.

### Fix image orientation issue in RubyMotion

[Fix image orientation issue in RubyMotion](https://www.bigbinary.com/blog/rubymotion-image-orientation)

- Author: Neeraj Singh
- Published: August 4, 2013
- Categories: Ruby

Sometimes images appear in different orientation. This blog discusses how to fix
that issue in RubyMotion apps.

### Visitor pattern and double dispatch in ruby

[Visitor pattern and double dispatch in ruby](https://www.bigbinary.com/blog/visitor-pattern-and-double-dispatch)

- Author: Neeraj Singh
- Published: July 7, 2013
- Categories: Rails

Visitor pattern is a common pattern to traverse a tree. This blog discusses what
visitor pattern is and how to write code for that in ruby.

### Preload, Eagerload, Includes and Joins

[Preload, Eagerload, Includes and Joins](https://www.bigbinary.com/blog/preload-vs-eager-load-vs-joins-vs-includes)

- Author: Neeraj Singh
- Published: July 1, 2013
- Categories: Rails

ActiveRecord does a lot of magical stuff. This blog discusses how it pulls of
Preload, Eagerload, Includes and Joins.

### Background/header for Formotion forms in RubyMotion

[Background/header for Formotion forms in RubyMotion](https://www.bigbinary.com/blog/set-formotion-background-and-header)

- Author: Neeraj Singh
- Published: June 8, 2013
- Categories: Ruby

See this blog to understand how to set background and header in a form developed
using Formotion in a RubyMotion application

### Cookies on Rails

[Cookies on Rails](https://www.bigbinary.com/blog/cookies-on-rails)

- Author: Neeraj Singh
- Published: March 19, 2013
- Categories: Rails

A deep dive into how Rails handles cookies. How Rails keeps cookies encrypted
and how to protect your data.

### Understanding instance exec in ruby

[Understanding instance exec in ruby](https://www.bigbinary.com/blog/understanding-instance-exec-in-ruby)

- Author: Neeraj Singh
- Published: March 12, 2013
- Categories: Rails

instance_exec is a usefull tool in Ruby. But the usage of it could be a bit
confusing. See this blog to gain better understanding.

### Rex, Rexical and Rails routing

[Rex, Rexical and Rails routing](https://www.bigbinary.com/blog/rex-rexical-and-rails-routing)

- Author: Neeraj Singh
- Published: February 1, 2013
- Categories: Rails

Rails routing uses its own grammar. To better understand how grammar works we
will look at Rex and Rexical.

### Rails Routing -- a comprehensive look at routing

[Rails Routing -- a comprehensive look at routing](https://www.bigbinary.com/blog/journey-into-rails-routing)

- Author: Neeraj Singh
- Published: January 29, 2013
- Categories: Rails

A deep dive into how Rails handles routing.

### Life of save in ActiveRecord

[Life of save in ActiveRecord](https://www.bigbinary.com/blog/live-of-save-in-activerecord)

- Author: Neeraj Singh
- Published: January 15, 2013
- Categories: Rails

ActiveRecord saves record by going through saving process in layers. This blog
takes a deep dive into how ActiveRecord saves a record.

### Handling money in ruby

[Handling money in ruby](https://www.bigbinary.com/blog/handling-money-in-ruby)

- Author: Neeraj Singh
- Published: January 14, 2013
- Categories: Ruby

Float in ruby is not good for calculations. That makes it difficult to use float
for money in a ruby based application. See this blog for a solution.

### Executing shell commands in ruby

[Executing shell commands in ruby](https://www.bigbinary.com/blog/backtick-system-exec-in-ruby)

- Author: Neeraj Singh
- Published: October 18, 2012
- Categories: Ruby

Ruby allows many different ways to execute a command or a sub-process. In this
article we are going to see backtick, system, exec, sh, popen3, popen2e and
spawn.

### Redirect to www for heroku with SSL

[Redirect to www for heroku with SSL](https://www.bigbinary.com/blog/redirect-to-www-heroku-ssl)

- Author: Neeraj Singh
- Published: October 12, 2012
- Categories: Rails

How to redirect to https version of the url.

### Solr, Sunspot, Websolr and Delayed job

[Solr, Sunspot, Websolr and Delayed job](https://www.bigbinary.com/blog/solr-sunspot-websolr-delayed-job)

- Author: Neeraj Singh
- Published: October 11, 2012
- Categories: Rails

Handling Solr with Delayed job has a few gotchas which we are going to look into
in this blog.

### Data-behavior is for JavaScript developers

[Data-behavior is for JavaScript developers](https://www.bigbinary.com/blog/data-behavior)

- Author: Neeraj Singh
- Published: October 10, 2012
- Categories: Rails

JavaScript operations should not be based on class of the element. A better
solution would be to use data-behavior.

### Test factories first

[Test factories first](https://www.bigbinary.com/blog/test-factories-first)

- Author: Neeraj Singh
- Published: October 10, 2012
- Categories: Rails

Before running any tests make sure that all factories are running ok.

### emberjs mixin

[emberjs mixin](https://www.bigbinary.com/blog/emberjs-mixin)

- Author: Neeraj Singh
- Published: August 27, 2012
- Categories: JavaScript

How to properly use EmberJS mixin.

### extend self in ruby

[extend self in ruby](https://www.bigbinary.com/blog/extend-self-in-ruby)

- Author: Neeraj Singh
- Published: June 28, 2012
- Categories: Ruby

It is not very clear what happens when a module extends itself. This blog takes
a look a that in detail.

### to_str in ruby

[to_str in ruby](https://www.bigbinary.com/blog/to_str-in-ruby)

- Author: Neeraj Singh
- Published: June 26, 2012
- Categories: Ruby

to_str has a special meaning in ruby. This blog discusses that in detail and
contrats it with to_s.

### jquery-ujs and jquery trigger

[jquery-ujs and jquery trigger](https://www.bigbinary.com/blog/jquery-ujs-and-jquery-trigger)

- Author: Neeraj Singh
- Published: May 11, 2012
- Categories: jQuery

This blog discusses how to make AJAX calls using jquery-ujs. Also discusses why
event object is needed which is often the cause of error with lot of code.

### CSRF and Rails

[CSRF and Rails](https://www.bigbinary.com/blog/csrf-and-rails)

- Author: Neeraj Singh
- Published: May 10, 2012
- Categories: Rails

Cross site request forgery attacks are common. Rails has mechanisms to protect
applications from such attacks. This blog discusses how Rails provides those
mechansisms.

### XSS and Rails

[XSS and Rails](https://www.bigbinary.com/blog/xss-and-rails)

- Author: Neeraj Singh
- Published: May 10, 2012
- Categories: Rails

Cross site scripting attacks are common. Rails has mechanisms to protect
applications from such attacks. This blog discusses how Rails provides those
mechansisms.

### tsort in ruby and rails initializers

[tsort in ruby and rails initializers](https://www.bigbinary.com/blog/tsort-in-ruby)

- Author: Neeraj Singh
- Published: March 16, 2012
- Categories: Rails

This blog discusses what tsort is and how Rails initializers uses it.

### alias vs alias_method

[alias vs alias_method](https://www.bigbinary.com/blog/alias-vs-alias-method)

- Author: Neeraj Singh
- Published: January 8, 2012
- Categories: Ruby

This blog discusses the differences between alias and alias_method in ruby.

### Understanding bind and bindAll in Backbone.js

[Understanding bind and bindAll in Backbone.js](https://www.bigbinary.com/blog/understanding-bind-and-bindall-in-backbone)

- Author: Neeraj Singh
- Published: August 18, 2011
- Categories: JavaScript

Backbone.js makes extensive use of bind and bindAll. Internally these methods
use some clever techniques. This blog deep dives into those methods to see how
they work.

### Ruby pack unpack

[Ruby pack unpack](https://www.bigbinary.com/blog/ruby-pack-unpack)

- Author: Neeraj Singh
- Published: July 20, 2011
- Categories: Ruby

Ruby allows to manipulate bits and bytes using pack and unpack methods. This
blog deep dives into it to see how pack and unpack methods can be used.

### Infinite hash and default_proc

[Infinite hash and default_proc](https://www.bigbinary.com/blog/default_proc_in_infinite_hash)

- Author: Neeraj Singh
- Published: December 31, 2010
- Categories: Ruby

This blog discusses how we can build infinite nested hash in ruby using
deafult_proc feature.

### Mime type resolution in Rails

[Mime type resolution in Rails](https://www.bigbinary.com/blog/mime-type-resolution-in-rails)

- Author: Neeraj Singh
- Published: November 23, 2010
- Categories: Rails

Resolving mime types is complicated. Different vendors have mad the situation
worse by not properly adhering to the standard. This blog take a closer look at
how mime type resolution works in Rails.

### Variable declaration at the top is not just pretty thing

[Variable declaration at the top is not just pretty thing](https://www.bigbinary.com/blog/variable-hoisting-is-not-just-pretty-thing)

- Author: Neeraj Singh
- Published: November 22, 2010
- Categories: JavaScript

In JavaScript code we declare variables at the top. It is not just to make the
code look better. This blog discusses why it is done.

### An inline confirmation utility powered by jQuery

[An inline confirmation utility powered by jQuery](https://www.bigbinary.com/blog/iconfirm-an-inline-confirmation-jquery-plugin)

- Author: Neeraj Singh
- Published: November 2, 2010
- Categories: jQuery

This blog discusses an inline confirmation utility developed using jQuery.

### Return false has changed in jquery 1.4.3

[Return false has changed in jquery 1.4.3](https://www.bigbinary.com/blog/return-false-in-jquery-1.4.3)

- Author: Neeraj Singh
- Published: October 25, 2010
- Categories: jQuery

The behavior of return false has changed in jQuery 1.4.3. This blog discusses
what changed.

### instance_exec, changing self and params

[instance_exec, changing self and params](https://www.bigbinary.com/blog/instance-exec-changing-self-and-parameters-to-proc)

- Author: Neeraj Singh
- Published: May 28, 2010
- Categories: Ruby

instance_exec could be confusing. It can be used to change self. This blog
discusses how to use instance_exec.

### $LOADED_FEATURES and require, load, require_dependency

[$LOADED_FEATURES and require, load, require_dependency](https://www.bigbinary.com/blog/require-load-loaded_features)

- Author: Neeraj Singh
- Published: May 12, 2010
- Categories: Ruby

This blog discusses LOADED_FEATURES, require, load and require_dependency in
ruby.

### I am not seeing hoptoad messages. Now I know why.

[I am not seeing hoptoad messages. Now I know why.](https://www.bigbinary.com/blog/I-am-not-seeing-hoptoad-messages)

- Author: Neeraj Singh
- Published: April 23, 2010
- Categories: Rails

consider_all_request_local determnies if exception should be sent to the hoptoad
server or not. See this blog to understand more about it.

### List of only the elements that contains

[List of only the elements that contains](https://www.bigbinary.com/blog/list-of-only-the-elements)

- Author: Neeraj Singh
- Published: April 12, 2010
- Categories: jQuery

How to effectively search for a string in DOM elements. This blog discusses
jQuery technique.

### Singleton function in JavaScript

[Singleton function in JavaScript](https://www.bigbinary.com/blog/singleton-function-in-javascript)

- Author: Neeraj Singh
- Published: April 11, 2010
- Categories: JavaScript

Creating a singleton function in JavaScript could be tricky. This blog discusses
how to do it and when it should be done.

### Regular expression in JavaScript

[Regular expression in JavaScript](https://www.bigbinary.com/blog/regular-expressions-in-JavaScript)

- Author: Neeraj Singh
- Published: March 31, 2010
- Categories: JavaScript

Regular expression in JavaScript could be confusing. This blog discusses a few
basic techniqutes.

### Get started with nodejs in steps

[Get started with nodejs in steps](https://www.bigbinary.com/blog/getting-started-with-nodejs-in-steps)

- Author: Neeraj Singh
- Published: March 25, 2010
- Categories: JavaScript

Sometimes the hardest thing is getting started with something. This blog will
help you get started with nodejs.

### Lessons learned from JavaScript quizzes

[Lessons learned from JavaScript quizzes](https://www.bigbinary.com/blog/lessons-learned-from-javascript-quizzes)

- Author: Neeraj Singh
- Published: March 15, 2010
- Categories: JavaScript

Recently I tried to answer some JavaScript quizzes and in the process learned a
bit. This blog discusses things that I learned.

### Two ways of declaring functions

[Two ways of declaring functions](https://www.bigbinary.com/blog/two-ways-of-declaring-functions)

- Author: Neeraj Singh
- Published: March 15, 2010
- Categories: JavaScript

There are many ways of declaring a function. In this blog we will discuss two of
those techniques.

### Practical example of need for prototypal inheritance

[Practical example of need for prototypal inheritance](https://www.bigbinary.com/blog/pratical-example-of-need-for-prototypal-inheritance)

- Author: Neeraj Singh
- Published: March 12, 2010
- Categories: JavaScript

The BigBinary team's lesson on practical examples of need for Prototypal
Inheritance

### Prototypal inheritance in JavaScript

[Prototypal inheritance in JavaScript](https://www.bigbinary.com/blog/prototypal-inheritance-in-javascript)

- Author: Neeraj Singh
- Published: March 11, 2010
- Categories: JavaScript

The BigBinary team's lesson on prototypal inheritance in JavaScript

### return false considered harmful in live

[return false considered harmful in live](https://www.bigbinary.com/blog/return-false-considered-harmful-in-live-jquery)

- Author: Neeraj Singh
- Published: March 10, 2010
- Categories: jQuery

If you return false in live operation of jQuery a few unexpected things can
happen. See this blog for details.

### Simplest jQuery slideshow code explanation

[Simplest jQuery slideshow code explanation](https://www.bigbinary.com/blog/simplest-jquery-slideshow-code-explanation)

- Author: Neeraj Singh
- Published: February 18, 2010
- Categories: jQuery

Building slideshow using jQuery could take a bit of code. This is probably the
simplest jQuery slideshow code you would see in action.

### How jQuery selects elements using Sizzle

[How jQuery selects elements using Sizzle](https://www.bigbinary.com/blog/how-jquery-selects-elements-using-sizzle)

- Author: Neeraj Singh
- Published: February 15, 2010
- Categories: jQuery

jQuery uses Sizzle to selects elements. But how exactly it works. How jQuery
gets the elements I want. This blog deep dives into jQuer internals to see how
jQuery selects the elements based on provided selectors.

### jQuery edge delegate method has arrived

[jQuery edge delegate method has arrived](https://www.bigbinary.com/blog/jquery-edge-delegate-method-has-arrived)

- Author: Neeraj Singh
- Published: February 2, 2010
- Categories: jQuery

jQuery delegate method can be used instead of live. In many cases it is
desirable to use delegate over live. This blog discusses how delegate works and
why it is preferred over live.

### Understanding jQuery effects queue

[Understanding jQuery effects queue](https://www.bigbinary.com/blog/understanding-jquery-effects-queue)

- Author: Neeraj Singh
- Published: February 2, 2010
- Categories: jQuery

This blog discusses how jQuery effects queue works.

### jQuery fadeTo method fades even the hidden elements

[jQuery fadeTo method fades even the hidden elements](https://www.bigbinary.com/blog/jquery-fadeto-method-fades-even-the-hidden-elements)

- Author: Neeraj Singh
- Published: January 29, 2010
- Categories: jQuery

This blog discusses how jQuery's fadeTo method fades even the hidden elements
and the impact of it.

### jQuery show method edge case

[jQuery show method edge case](https://www.bigbinary.com/blog/jquery-show-method-edge-case)

- Author: Neeraj Singh
- Published: January 29, 2010
- Categories: jQuery

This blog discusses an edge case with jQuery's show method.

### How animate really works in jQuery

[How animate really works in jQuery](https://www.bigbinary.com/blog/how-animate-really-works-in-jquery-simple-animation-case-discussed)

- Author: Neeraj Singh
- Published: January 25, 2010
- Categories: jQuery

A deep dive into how jQuery pulls of animation tricks.

### Order of format matters in respond_to block

[Order of format matters in respond_to block](https://www.bigbinary.com/blog/order-of-format-matters-in-respond_to-block)

- Author: Neeraj Singh
- Published: January 25, 2010
- Categories: Rails

In Rails we use respond_to to respond to different types of requests. The order
in which different formats are handled matters. This blog takes a look at that
issue.

### JSON parsing natively in jQuery 1.4 and updates

[JSON parsing natively in jQuery 1.4 and updates](https://www.bigbinary.com/blog/handling-json-parsing-natively-in-jquery-1-4-and-what-changed-from-jquery-1-3)

- Author: Neeraj Singh
- Published: January 15, 2010
- Categories: jQuery

Starting with jQuery 1.4 JSON will be parsed natively. This blog looks at the
impact it will have.

### How jQuery 1.4 fixed rest of live methods

[How jQuery 1.4 fixed rest of live methods](https://www.bigbinary.com/blog/how-jquery-1-4-fixed-rest-of-live-methods)

- Author: Neeraj Singh
- Published: January 14, 2010
- Categories: jQuery

When jQuery live was introduced it did not support all elements. Support for
those elements came in jQuery 1.4. This blog looks at how jQuery 1.4 provided
support for the remaining elements.

### Calling a method on a jQuery collection

[Calling a method on a jQuery collection](https://www.bigbinary.com/blog/hidden-feature-of-jquery-calling-a-method-on-a-jquery-collection)

- Author: Neeraj Singh
- Published: January 12, 2010
- Categories: jQuery

How do you invoke a method on a jQuery collection.

### Use end more often in jQuery while building DOM elements

[Use end more often in jQuery while building DOM elements](https://www.bigbinary.com/blog/use-end-more-often-in-jquery-while-building-dom-elements)

- Author: Neeraj Singh
- Published: November 11, 2009
- Categories: jQuery

In jQuery we chain operations but we can also use end to backtrack a bit. This
allows us to chain even more.

### JavaScript Basics Quiz

[JavaScript Basics Quiz](https://www.bigbinary.com/blog/javascript-basics-quiz)

- Author: Neeraj Singh
- Published: October 29, 2009
- Categories: JavaScript

A basic quiz about JavaScript.

### livequery in jQuery

[livequery in jQuery](https://www.bigbinary.com/blog/how-live-method-works-in-jquery-why-it-does-not-work-in-some-cases-when-to-use-livequery)

- Author: Neeraj Singh
- Published: October 14, 2009
- Categories: jQuery

jQuery's live method is amazing. But how it does really work internally. This
blog looks at how jQuery pulls off this magic.

### Encapsulation in JavaScript

[Encapsulation in JavaScript](https://www.bigbinary.com/blog/encapsulation-in-javascript)

- Author: Neeraj Singh
- Published: October 12, 2009
- Categories: JavaScript

JavaScript does not allow you to define a method as public or private. This is a
limitation users need to get around to, because in real life you don't want to
expose all methods as public method.

### Integrating JavaScriptLint with mvim

[Integrating JavaScriptLint with mvim](https://www.bigbinary.com/blog/integrating-javascriptlint-with-mvim-and-getting-rid-of-annoying-warnings)

- Author: Neeraj Singh
- Published: September 8, 2009
- Categories: JavaScript

Use JavaScriptLin in mac vim.

### Wrapping functions with self invoking jQuery

[Wrapping functions with self invoking jQuery](https://www.bigbinary.com/blog/wrap-your-function-with-self-invoking-jquery-instead-of-performing-find-replace)

- Author: Neeraj Singh
- Published: September 3, 2009
- Categories: jQuery

Wrap your function with self invoking jQuery instead of performing find/replace.

### Understanding this in Javascript object literal

[Understanding this in Javascript object literal](https://www.bigbinary.com/blog/understanding-this-in-javascript-object-literal)

- Author: Neeraj Singh
- Published: August 6, 2009
- Categories: jQuery

this is an important concept in JavaScript and meaning of this could be hard to
understand in some cases. This blog take a look at what this is.

### jQuery custom events

[jQuery custom events](https://www.bigbinary.com/blog/jquery-custom-events)

- Author: Neeraj Singh
- Published: July 31, 2009
- Categories: jQuery

What are jQuery custom events. How to build them. How to use them. This blog
discusses all that and much more.

### jQuery base code to create a jQuery plugin

[jQuery base code to create a jQuery plugin](https://www.bigbinary.com/blog/jquery-base-code-to-create-a-jquery-plugin)

- Author: Neeraj Singh
- Published: July 24, 2009
- Categories: jQuery

If you are creating a jQuery plugin then this base code will get you started.

### Inspecting jQuery internals and storing information

[Inspecting jQuery internals and storing information](https://www.bigbinary.com/blog/jquery-data-for-inspecting-jquery-internals-and-for-storing-information)

- Author: Neeraj Singh
- Published: July 23, 2009
- Categories: jQuery

Use jQuery.Data for inspecting jQuery internals and for storing information.

### Event propagation and peventDefault

[Event propagation and peventDefault](https://www.bigbinary.com/blog/event-propagation-and-peventdefault)

- Author: Neeraj Singh
- Published: July 20, 2009
- Categories: jQuery

DOM propagates events and JavaScript can intercept those events and can act on
it. Concepts like preventDefault in jQuery could be confusing. This blog
discusses that.

### What is JSONP?

[What is JSONP?](https://www.bigbinary.com/blog/what-is-jsonp)

- Author: Neeraj Singh
- Published: July 16, 2009
- Categories: JavaScript

Browsers do not allow cross domain AJAX request. JSONP can be used to get around
this issue. This blog discusses what JSONP is and how to use it.

### $stdout.sync = true to flush output immediately

[$stdout.sync = true to flush output immediately](https://www.bigbinary.com/blog/stdout-sync-true-to-flush-output-immediately)

- Author: Neeraj Singh
- Published: July 4, 2009
- Categories: Ruby

Since IO operations are expensive IO results are not flushed immediately. See
the technique presented here to flush output immediately.

### Functional scope in Javascript

[Functional scope in Javascript](https://www.bigbinary.com/blog/functional-scope-in-javascript-and-how-javascript-continues-to-surprise-me)

- Author: Neeraj Singh
- Published: June 30, 2009
- Categories: jQuery

What is functional scope. This blog discusses that in the context of JavaScript.

### JS tip - Avoiding polluting the global namespace

[JS tip - Avoiding polluting the global namespace](https://www.bigbinary.com/blog/javascript-tip-do-not-pollute-global-namespace-with-utility-functions)

- Author: Neeraj Singh
- Published: March 18, 2009
- Categories: jQuery

Polluting global namespace is not good. This blog presents a better technique.

### Determining if commits are executed in a transaction

[Determining if commits are executed in a transaction](https://www.bigbinary.com/blog/how-to-find-if-my-commits-are-executed-in-a-transaction-or-not)

- Author: Neeraj Singh
- Published: March 13, 2009
- Categories: Rails

How to find if my commits are executed in a transaction or not

### jQuery Plugin Pattern & self-invoking javascript function

[jQuery Plugin Pattern & self-invoking javascript function](https://www.bigbinary.com/blog/understanding-jquery-plugin-pattern-and-self-invoking-javascript-function)

- Author: Neeraj Singh
- Published: March 13, 2009
- Categories: jQuery

I am learning jQuery and one of things I was struggling with is the plugin
pattern. In jQuery world it is very common to wrap the major functionality of
the application inside a plugin. This blog discusses how to write a good modular
plugin.

### Usage of Closure in Javascript

[Usage of Closure in Javascript](https://www.bigbinary.com/blog/usage-of-closure-in-javascript)

- Author: Neeraj Singh
- Published: March 13, 2009
- Categories: JavaScript

In this article you are going to see what you can do with the power of Closure
in Javascript. This not an article about what Closure is. This is an article
about what Closure can do. I see a lot of people asking the question what's the
big deal with Closure. They want more real world cases where Closure will make
sense.

### Restful architecture does not mean one to one mapping

[Restful architecture does not mean one to one mapping](https://www.bigbinary.com/blog/restful-architecture-does-not-mean-one-to-one-mapping-with-model)

- Author: Neeraj Singh
- Published: February 17, 2009
- Categories: Rails

REST style does not mean that we need to have a controller for every model. We
can mix and match.

### Configure local_request

[Configure local_request](https://www.bigbinary.com/blog/rescue_action_in_public-local_request-and-how-to-configure-local_request)

- Author: Neeraj Singh
- Published: February 5, 2009
- Categories: Rails

How does Rails handle exceptions? Rails exception handling depends on two
factors and we are going to discuss both of them here.

### Override automatic updated_at in ActiveRecord/Rails

[Override automatic updated_at in ActiveRecord/Rails](https://www.bigbinary.com/blog/override-automatic-timestamp-in-activerecord-rails)

- Author: Neeraj Singh
- Published: January 21, 2009
- Categories: Rails

Rails automatically updates updated_at. But it can be overcome.

### Under the hood how named_scope works

[Under the hood how named_scope works](https://www.bigbinary.com/blog/under-the-hood-how-named-scope-works)

- Author: Neeraj Singh
- Published: October 17, 2008
- Categories: Rails

named_scope is awesome. But how does it work. How does it pull off all those
tricks which seem magical. This blog takes a deep dive and looks into code to
see how named_scope really works.

### Why the id of nil is 4 in Ruby

[Why the id of nil is 4 in Ruby](https://www.bigbinary.com/blog/why-the-id-of-nil-is-4-in-ruby)

- Author: Neeraj Singh
- Published: June 23, 2008
- Categories: Ruby

Discusses why the id of nil is 4 in Ruby. Why 4. Why not 3 or 5.

## Links

- [Human page](https://www.bigbinary.com/blog/authors/neerajsingh0101)
