Monday, June 30, 2014

Custom Sorting in a Dojo Grid using ItemFileRead/Write store

First understand the below example to see how to plug a grid to a store. 

Then to sort alphabetically, based on locale use the code below 

              queryGrid.setStore(new dojo.data.ItemFileReadStore(response[responseResult]));  
              setCustomSort(queryGrid.store); 
 
Define the sort function as below :       
 
              function setCustomSort(store){
                               if(!store.comparatorMap){
                                       store.comparatorMap = {};
                              }
                              store.comparatorMap["name"] = function (a, b) { 
                              return a.localeCompare(b);
                     }  

Friday, June 27, 2014

Google Gesture!

Watch this Video on Google Gesture!
Connecting people !!

Thursday, June 26, 2014

Piecing Together Blue-Mix

Download CF CLI (Cloud Foundry Command Line Interface) from here!

https://github.com/cloudfoundry/cli/releases

 Installing the CF CLI.. Checking if you've set it up successfully
http://docs.cloudfoundry.org/devguide/installcf/install-go-cli.html

Logging into BlueMix through CF CLI

Super easy ! Just follow the steps mentioned  here :
https://www.stage1.ng.bluemix.net/docs/#starters/BuildingWeb.html#login_bluemix





On successful completion :



Understanding the Blue Mix UI : Watch this video to quickly understand what Blue Mix is capable of!

http://www.youtube.com/watch?v=i_-exOUGmyw&ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us 

Saturday, June 21, 2014

Youtube Player Parameters!

This is an awesome google developer link if you want to tweak the Youtube Player!
Check it out here :
https://developers.google.com/youtube/player_parameters#end

Adding captions by default to a Youtube video
https://support.google.com/youtube/answer/171780?hl=en