Monthly Archives: May 2011

using redis

This is a complete Redis client for node.js. It supports all Redis commands, including MULTI, WATCH, and PUBLISH/SUBSCRIBE. For portability, a pure JavaScript reply parser is used by default. Pieter Noordhuis has provided a binding to the official hiredis C … Continue reading

Posted in Node.js | Leave a comment

making slidshare presentation with socke.io

Ref : the git code . https://github.com/slideshare/SlideshareAPIExamples/tree/master/playerAPI http://www.slideshare.net/developers/playerapi removig control bar http://groups.google.com/group/slideshare-developers/browse_thread/thread/92b25e625e0098a4/718bda2a85cd414c?show_docid=718bda2a85cd414c socket.io code http://labs.learnboost.com/socket.io/    http://www.slideshare.net/developers/playerapi

Posted in Project Management | Leave a comment

online indentation

online html code indentation indentation http://infohound.net/tidy/ online javascript code indentation indentation http://dracoblue.net/tidy/pawn/

Posted in Project Management | Leave a comment

how to check visibility of a div in jquery

if ($(‘#element_id:visible’).length > 0) console.log(‘the element is visible’); else console.log(‘the element is not visible’);   Ref : http://www.stoimen.com/blog/2009/07/08/jquery-check-for-element-visibility/

Posted in UI Js | Leave a comment

Making singleton class and sending event to the class in javascript

e.g. I want to send login event that other class will execute when he recieve that event so . For that I will send and on property with the send data like this :           request.on = {                 login: … Continue reading

Posted in OOP, UI Js | Leave a comment

To change particular model data in collection in backbone.js

Collection Defination Contents = Backbone.Collection.extend({     model : Content,   initialize: function(models, args) {         console.log(‘in contents’+this.length);     },   content: function(objectid) {     return this.filter(function(content){ return content.get(‘objectid’)==objectid; });   } }); To change the model data  var … Continue reading

Posted in UI Js | Leave a comment

How to make big application in Backbone.js

To add the data to collection and we can see the list in firebug . App.Contents = new App.Backbone.Contents(data); Ref : making the global  variable like this. http://www.alexrothenberg.com/2011/02/11/backbone.js-makes-building-javascript-applications-fun.html Add the collection variable in the app initialize to add in the … Continue reading

Posted in UI Js | Leave a comment

production vs development

THE DEVELOPMENT GOAL: GETTING IT DONE THE PRODUCTION GOAL: KEEPING IT RUNNING Ref : http://garronselliken.com/2009/02/15/production-vs-development/ http://www.pragmaticmarketing.com/publications/topics/05/0508jm2

Posted in Project Management | Leave a comment

html5 sending message from one frame to another of cross domain

Ref : http://ajaxian.com/archives/using-html-5-postmessage

Posted in HTML | Leave a comment

Pass value from iframe to parent

Ref : http://www.roseindia.net/java/pass-value-example/pass-value-from-iframe-parent.shtml

Posted in HTML, UI Js | Leave a comment