Tuesday, July 03, 2012

Modern Web Architecture- Javascript driven?

Todays web has become a central point of all applications. HTML,CSS and JavaScript technologies have evolved quickly - The entire Web architecture is moving quickly towards real-time.In addition, doing all data processing in client side and making less load on server achieves two important things:1)Web experience is like Desktop application[faster] since ongoing client/server communication is only about data exchange and not rendering logic. 2] development of client side and server side can go in different cycle. It leads to think that server development can be implemented in any technology or can be hybrid technology until it gives data in common format like JSON or XML. Client side technology will consume these data and act as per application needs.There should be no or very less binding or dependencies with server side implementation technology. So most of data processing or presenting logic resides on client side.This again gives to think a structured way or framework based client side development as we did for server side. In Java world, Spring,Struts,play framework,Tapestry,Grails,Rails are few among name. They mostly follows MVC pattern to make the code for better maintainability,testability.  Nowadays Javascript is one of the major technology used for client side development. Using Javascript framework not only helps to organize the code but  helps to develop code easily. There are lot MVC based Javascript[see this] are out nowadays.Each framework has pros and cons. A nice comparison has been done [here]. Among then backbone.js and ember.js are quite popular. We also need to consider a good Javascript template system for better client side development. Click here for a good comparison by linkedIn.
Choosing right framework is also very tough as it totally depends on which application you are making. Still one should try to follow these features while choosing framework.

1.Testability
2.Good UI bindings
3.Composed Views
4.Web presentation Layer
5.Play nicely with other
6.HTML5 compliant

Try out this link and and see the Todo Application written in various JavaScript based MVC framework.http://addyosmani.github.com/todomvc/

recently Angular.js comes in light for its clear MVC pattern design ,solid UI binding,HTML5 compliance, good unit testing framework and very easy to write code. Try out http://docs.angularjs.org/tutorial/ and http://avalanche123.com/blog/2012/02/29/angularjs-superheroic-javascript-mvc-framework/.

I am very much impressed with AngularJs. their design philosophy and clear architecture is really good.I am learning this framework and will post more about it and other Javascript framework time to time. Given some good link
Stay tuned for more update.

Installing GIT client Windows 7

Git is now most popular code repository now a days. you may go to https://github.com/ to get a web based repository.Git is written by Linux torvalds , creator of GNU Linux Kernel.

To install Git client for Windows 7
1. download msysgit from here.
2. follow the screen shot while installing this.
3. Generate SSH keypair. Please follow this documentation here.


The Future of Deployment by Nic Williams

I copied this content from youtube---

"When you type "cap deploy", "ey deploy", or "git push heroku master" your intent is to deploy your local application source to your running system on the Internet. That seems to be the point - you changed your code, and you want to Just Ship It. But what is your actual objective? Is it really to just "deploy app code changes"? Is this "app-centric" view and user experience satisfactory?
Code deployment is your intent on some occasions. On others you want to change your production environments for applications, or change scale attributes of your system, or change how applications and services within a system communicate with each other, or with remote services (such as facebook).
Is "app-centric deployment" the best mental model and toolchain for shipping changes to productions systems? Or is "environment-centric" or "node-centric", enabled with frameworks like Chef or Puppet, the most powerful & effective model of the system to allow you to deploy and manage change?
Or perhaps we should describe the entire system - all the apps, all the system dependencies, all the interconnections, all the scale attributes - and command it to come into existence? To command the system to go from nothing to v1 to v2 to v3, where each version includes changes in attributes of the system.
Where should configuration/manifests/attributes go? Source code files in the config folder? PaaS configuration or environment variables? Or should components of a system dynamically discover information about itself and configure itself?
Perhaps we need the benefits of a "system-centric" build toolchain, with an "app-centric" user/developer experience to trigger deploys, with a "node-centric" experience for sysadmins.
In this talk, we will reflect on the current state of deploying production systems, including build/deploy toolchains, and continuous deployment. We'll look at the attributes of a complete system, how we explicitly or implicitly describe them and their relationships, and how to orchestrate changes in the system - from app-centric, node-centric and system-centric views.
Let's discuss the difference between deployment in month 1 and living with your system for the next 59 months."
BioDr. Nic is a developer's developer.
He writes blog posts for developers; creates tools, libraries and text editor extensions for developers; and speaks to developers at conferences.
He's the VP of Developer Evangelism at Engine Yard, the leading Platform as a Service.

http://www.youtube.com/watch?v=I0n2wiYvFNw


Sunday, February 20, 2011

Learning Grails

While studying IR technique, I was searching a fast,quick web development framework based on Java. After long research and trying with couple with web framework , I settled down with Grails.
I got impression and started building small application based on this framework. Grails is based on groovy dynamic languages. Groovy, you can say a superset of JAVA language. It runs under same JVM what you use for JAVA. So JAVA and groovy programs can run together. Here i am giving couple of link for tutorial. Grails framework is supported by springSource, creator of Spring framework and it supports well. It also supports all modern Object relational Mapping tool like hibernate. A based way to learn to watch screen-cast videos available in grails website and try along with that.

1. grails website
2. groovy website
3. git installation
4. screen-cast tutorial


Thursday, February 03, 2011

Information Retrieval study

Well, It's time to learn . Currently I am reading Information Retrieval Book from this Link.
I feel better while reading this book ,well written.This time my blog post will be quite less as I am more on reading book.Update soon.Meanwhile you can check out some great link about IR.
Resource:
Web Site:


Thursday, January 27, 2011

Started Again..

After three years!! Oops so many things have been changed. Technology,Me,You.....
After long gap, I realized more to have a blogging. I changed my interests too. I am still interest in Open Source but the fields got change. Currently my interests includes Information retrieval,social data mining and search technology.
I love open source and would always like to work on open source software(Use+Contribute).Hope I would continue from now onwards.

Saturday, August 09, 2008

I am back....

Since November,2006 i didn't write any single post in this blog. I am really sorry to me.
Several things has been changed during this two year.I moved chennai to kolkata,got married,changed my employer.Currently i am in Tata Consultancy Services,Convergence and Multimedia Innovation Lab,Kolkata.I have finished two projects - Rule Engine for RFID based Vehicle Management System and Remote upgrade for Intaractive Set Top Box.Now i am working with real time video streaming in J2ME. I hope i will be posting more and more tech stuff on this blog.

Tuesday, November 14, 2006

[off-topic] Something about MINIX

Nearly 4 months back, i came to know to MINIX 3 has been released as a free software. I downloaded this ran also with help of QEMU simulator.The latest relase has been made on 29th May 2006. I think you all people know about this teaching OS. It has been made by Vrije Universiteit, Amsterdam,headed by professor Andrew S. Tanenbaum. Most of the function is written by him. But that time i didn't look much inside of this OS or kernel part. But two days back, one girl from Haldia Institute of Technology , told me that she wants to build a OS like MINIX..then i though let's again visit MINIX. After reading some document , i got realy some good things in my mind realy i am realy getting love with MINIX achitecture. As all of you know MINIX kernel is based on Microkernel architecture. "A microkernel is a minimal computer operating system kernel providing only basic operating system services (system calls), while other services (commonly provided by kernels) are provided by user-space programs called servers. Commonly, microkernels provide services such as address space management, thread management, and inter-process communication, but not networking or display for example."(taken from wikipedia).
Now i am quite familar with Linux kernel and it's architecture is based on monolithic(See wikipedia for more information) kernel architecture. Though it has some good facility for modular programming.
The question which i want to figure out is, most of the device driver has been implemented inside the linux kernel though the biggest device driver (graphics driver ) is in user space. I couls see size of the driver code in linux kernel is 112 MB whereas the Whole kernel itself has 269MB. So nearly more than 50% code in kernel is driver code!!!!.And most of the developers want to make driver in user space and effort is user space device driver.The majority of bugs linux kernel are in device drivers. if you can move out these driver form kernel space to user space i think we can minimise the bugs. I think it would be applicable for Networking also. But their would be some issue like performance and latency. Still i love to see device driver in user space. Why should i take care about kernel when i am making one driver for device? . Let kernel to do that. Thecommunication between driver and kernel should be designed very carefully so that time required for communication would be minimized over a period of time.That's all..That's why i fall love in MINIX. It has fare architecture to do that.I would like to invest some time on that architure and also would like if someone can come with idea like a "conceptual Architecture of MINIX kernel"...Well this post is going to be big. So i decided to stop here, journey with MINIX kernel and hope to post another article in "User space device driver". Those who are realy interested in MINIX kernel please contact me.. And more ever there are very easy chances to be a main developer!!!!or you may say kernel haker!!! in MINIX world.
visit www.minix3.org

Friday, November 10, 2006

How to enable 3D Desktop

To enable 3D accelaration in your Destop, You should have some supported graphices card. If it is semi supported then it's also O.K... Now you should have some necessary packages , These are compiz, xgl, xgl-hardware-list, gnome-session and libwnck packages. Just install these packages. Next run gnome-xgl-setting from the command line and enable 3D Desktop option. After than just logout and login again. You will get 3D enabled Desktop. Remind one thing it's for GNOME Desktop not for KDE. To enable 3D Desktop in KDE you have to do configuration. Please follow this link
Link