Monthly Archives: July 2011

How to use backbone.js

User : To declare User model : App.Backbone.User = Backbone.Model.extend();  To declare User Collection : we assign the model.  we bind the add and remove event to collection  To declare User Collection : App.Backbone.Users = Backbone.Collection.extend({ model : App.User, initialize: … Continue reading

Posted in UI Js | Leave a comment

Documentation of javascript code

docco or jsdoc Any Thoughts ?   Ref : http://code.google.com/p/jsdoc-toolkit/wiki/CookBook http://stackoverflow.com/questions/6438800/how-to-jsdoc-annotate-backbonejs-code http://jashkenas.github.com/docco/

Posted in UI Js | Leave a comment

what is webkit (web rendering engine)

A web rendering engine, such as WebKit, takes a web page that is described structurally using HTML and a DOM and visually using CSS and transforms it into a series of painting commands and then passes these commands to the graphics … Continue reading

Posted in Project Management | Leave a comment

Using dropbox and basecamp

Drop box is very good tool to share code. Base camp is also good for tracking project.

Posted in Project Management | Leave a comment

installing nvm

  First you’ll need to make sure your system has a c++ compiler. For OSX, XCode will work, for Ubuntu, the build-essential and libssl-dev packages work. To install create a folder somewhere in your filesystem with the “nvm.sh” file inside … Continue reading

Posted in Node.js | Leave a comment

understanding file permission

This string of letters, drwxrwxrwx, represents the permissions that are set for this folder. (Note that these are often called attributes by FTP programs.) Let’s explain what each of these letters means: d r w x r w x r w x Owner … Continue reading

Posted in Ubuntu/Linux | Leave a comment

how can I install v.6.x of socket.io by NPM now?

npm ls socket.io  sudo npm install socket.io@0.6 Ref : http://foohack.com/2010/08/intro-to-npm/ http://blog.izs.me/post/1675072029/10-cool-things-you-probably-didnt-realize-npm-could-do        

Posted in Node.js | Leave a comment

Ajax file upload

First download fileuploader.js from above link  include in html.   <script type=”text/javascript” src=”js/fileuploader.js”></script> html : Write this in your html file. <div id=”content-uploader”>                 <noscript>                  <p>Please enable JavaScript to use file uploader.</p>               <!– or put a simple … Continue reading

Posted in UI Js | Leave a comment

Pair Programming

Observer<–>Coder  

Posted in Project Management | Leave a comment

firebug DOM panel

What do the different colors of the variables mean? Bold Black are objects Not so bold Black are DOM objects Get in Gray in front means “getter” Bold green are user functions Not so bold Green are DOM functions Bold … Continue reading

Posted in Project Management | Leave a comment