Anujgakhar - anujgakhar.com - Anuj Gakhar
General Information:
Latest News:
A simple TicTacToe game with AngularJs 17 Jun 2013 | 03:15 am
This weekend, I decided to do a little practice project with AngularJS. I made a TicTacToe Game. Here are some notes about the game :- It’s a two player game, human vs computer. It uses NegaMax Search...
Duplicates in a repeater are not allowed in AngularJS 15 Jun 2013 | 05:55 pm
AngularJS does not allow duplicates in a ng-repeat directive. This means if you are trying to do the following, you will get an error. However, changing the above code slightly as below will get it wo...
Rounding numbers with decimal places in Javascript 6 Jun 2013 | 04:15 pm
By default, Javascript’s Math.round does not support decimal places. If the fractional portion of number is .5 or greater, the argument is rounded to the next higher integer. If the fractional portion...
Cross Browser Event Handling in JavaScript 22 May 2013 | 08:45 pm
If you are using jQuery, you can easily use .bind() and .unbind(), or .on() and .off() to attach/detach event handlers on DOM elements. But there are times when jQuery is not available/desirable in th...
Using HTML5′s ClassList API 21 May 2013 | 06:51 pm
ClassList is a native and convenient alternative to accessing an element’s list of classes as a space-delimited string via element.className. It makes it easier to accomplish common tasks such as addi...
Writing a Simple Grunt Task using GruntJS 28 Feb 2013 | 05:49 pm
In this post, I will be demonstrating how to write a simple Grunt Task that would concatenate and minify your Javascript and CSS source files. GruntJS is a Javascript Task Runner that automates certai...
Setting Railo 4.x service to start on boot on Amazon Linux AMI 25 Feb 2013 | 04:34 pm
I recently installed Railo 4.0 on a standard Amazon Linux AMI using the Railo 4.0 64-bit installer and everything went fine except that on startup, Railo won’t automatically startup. Even after a re-i...
Mobile Safari CSS :hover selector and Back button 14 Feb 2013 | 10:44 pm
Mobile Safari (iOS) has no concept of hover, in general. Obviously, with touch devices, you can’t have this feature. The screen needs to be touched for it to detect any user interaction. That makes se...
Book Review : Twitter BootStrap Web Development How-To 6 Jan 2013 | 10:13 pm
I’ve got a review copy of Twitter BootStrap Web Development How-to By Packt Publishing and I’ve just managed to go through the book. The book is authored by David Cochran and because I’ve been using b...
AngularJS Directive for Google FastButton 27 Dec 2012 | 10:33 pm
In my latest project, I’ve been working on a HTML5 Mobile App for iPad and one of the things we wanted to get rid of was the 300ms click delay that Mobile Safari has. There is a reason for the delay t...