Writing a Simple Grunt Task using GruntJS

On February 28, 2013, in Javascript, by Anuj Gakhar

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 certain tasks and saves a lot of time. There are hundreds of plugins available and the community is growing quite impressively. The […]

Tagged with:  

Setting Railo 4.x service to start on boot on Amazon Linux AMI

On February 25, 2013, in Railo, by Anuj Gakhar

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-install (to make sure I had chosen to start Railo at boot during the installation), nothing changed. I still was not able to get […]

Tagged with:  

Mobile Safari CSS :hover selector and Back button

On February 14, 2013, in Browsers, iOS, Javascript, by Anuj Gakhar

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 sense. And with that in mind, it would be OK to say that we can ignore all :hover CSS rules, because […]

Tagged with:  

Book Review : Twitter BootStrap Web Development How-To

On January 6, 2013, in Books, Web Development, by Anuj Gakhar

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 bootStrap in few of my projects, I was quite interested in going through the book, which I believe is the […]

Tagged with:  

AngularJS Directive for Google FastButton

On December 27, 2012, in Javascript, by Anuj Gakhar

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 to be there in first place, i.e. the browser is waiting to see whether […]

Tagged with:  

Loading Bootstrap with RequireJS

On November 23, 2012, in Javascript, by Anuj Gakhar

After having heard lots of good things about RequireJS in the past few months, I recently started playing around with RequireJS which is a JavaScript file and module loader, which improves the speed and quality of your code. After reading about it a little bit, the biggest advantage of using RequireJS, that I can see, […]

Tagged with:  

Difference between .call() and .apply()

On November 13, 2012, in Javascript, by Anuj Gakhar

This is a very common Javascript question that confuses a lot of people (including me). You can use both function.call() and function.apply() in Javascript to execute a function but what’s the difference? Let’s look at the documentation of call() and apply() first. According to the documentation, .call() means :- Calls a function with a given […]

 

Launched my first iOS app

On October 9, 2012, in iOS, by Anuj Gakhar

At the beginning of this year, I decided to learn a new programming language. My 2 choices were Ruby/Rails and Objective-C. Ruby is something I have been trying to get into for quite a while now and I have heard lots of good things about it. However, until you do a real commercial project, you […]

Tagged with:  

Google oauth2 refresh token and invalid credentials error

On September 12, 2012, in Web Development, by Anuj Gakhar

I have been working on getting google analytics data using the Google Core Reporting API using OAuth2. After the initial oauth dance is done, I store the access token and refresh token in the database to be able to regenerate valid access token from the refresh token. This is termed as offline access. This is […]

Tagged with:  

Twitter BootStrap NavBar Color in IE8/9

On September 5, 2012, in Web Development, by Anuj Gakhar

I am a big fan of Bootstrap and recently upgraded one of my projects to v2.1.0 which was released on August 20, 2012. I have been using a custom background image for the top navbar all this while and after the upgrade, I noticed that my navbar was now white background in IE 8/9 (didn’t […]

Tagged with:  
© 2011 Anuj Gakhar