Posts filed under 'Education'

A simple class in Javascript

//Lets try to make a Dog class

function Dog(name,age,family,address)
{
this.name=name;
this.age=age;
this.family=family;
this.address=address;
}

// Lets have a method
function details()
{
alert(this.name+’ age ‘+this.age+’ is of type ‘+(this.family)+’ + ‘lives at ‘ + address);
}

// Associate the methos to the class Dog prototype
Dog.prototype.details=details;

// Make a reference
dog1=new House(‘johnny’,4,’beagle’,'no.1, walkers street’);

// Make the method call
dog1.view();

Add comment July 18, 2008

Session on HTTP

Today morning gave a session on http and it was quite a pleasant experience for me. Had good feedback from the people who attended.

I was clear in my understanding on HTTP methods (thanks to web and books) and the way request response were handled. Though i did not have time to give demo on packet sniffer, i could explain their idea of it’s existance. We did not have any computer in the hall and that made me write on the board. Write code snippets are little painful but i remember my english lecturer in school writing almost the whole book on the board and we just copying it in the note book to get corrected again.

Memories of ethereal and college days were flowing when i was explaining packet sniffers.

I have not tried writing any serious AJAX code till now though i have managed to work on it. Now i am quite motivated to write one for my own use.

HTTP tunnelling was quite interesting and i must try it some time. I have seen people using SMB (Samba rather) being tunneled into SSH. But never tried it.

 I compiled a short note which is little difficult to decode (even for me) and uploaded. The link is given below. I did reasonaby good formatting and took the printout with me for the session.

I think Ranga will remember me asking him a month back the some useful link on http basics. The one he gave me was simple and easy to understand. Here is the link.

Lecture on HTTP

Add comment May 6, 2008

the openid in my perspective

I live the web

This is what most computer software programmers love to say.

As developers we are most likely to get help from the community which is very wide/huge in nature. It’s highly distributed. In most of the cases, the community is available to help us fix the bug. But there are few questions unanswered here and there. I would like to glide upon those points. I have just taken 3 points.

1. do i have legal power/access to visit and take help from without wasting time on registration ?

2. can i maintain my own identity across communities ?

3. can i choose my preferred/testable authentication mechanism ?

For all these questions(and much more hidden), i feel openid is a reasonably right answer. I prefer the word answer over the word solution because it’s not the only solution in the world
 but one among the very few answers.

the name says it all

It’s a methodology you choose to say who you are and how you are unique in this world

or

how you choose to present yourself accross communities

frustrated with registration

i see many web developers frustrated about the whole concept of registration. And they find hard to maintain their id’s accross forums.

What if his/her id is taken off by some other user (unknowingly ofcourse). Then he/she is forced to choose a new id which is most likely to be a <difficult to remember or not so catchy id>

time is precious
Ok. we are lucky enough to get a unique id at registration stage. what if we need to re-write (in most of the cases) our profile to get registrated to a forum which may/may not find us answers to our questions. How much time can we spend ? I see more scrollers than crawlers. Basically they are rightly impatient and  cant waste time with a long jsp page registering and waiting for the email from the admin.

More posts on OpenId coming soon. 

3 comments January 4, 2008

Rendering Jasper Reports as HTML

Attached below is a sample file on rendering Jasper Reports as HTML. This post is a follow up of my earlier post Jasper ireport.

The code can be easily altered to render report in other types too.

Click

5 comments December 5, 2007

Compete with code ajax

ajax.png

It’s dynamic, flicker with rich set of data and considerably good response time with the XML text floating around. Almost all SOA based business framework talks this Java Script fundu language. It captivates any web developer.

In my experience with scripting languages i found the every thing interesting about dynamism. But all that with a cost. The need to take care of browser differences. The AJAX engine had to adjust itself at almost every line of differences. But it’s fun right through.

The HTTP is the carrier for all asynchronous request and responses. But should this XML/HTTP communication always be asynchronous ? I strongly believe not at all times. The way by which these xml, http and client side scripts are handled, the term AJAX takes synonymously polymorphic tenses.

Recently saw a notice inviting developers to try useful applications in AJAX way. The link here.

I find http://developer.mozilla.org/en/docs/AJAX docs useful to learn hands-on AJAX.

Add comment November 23, 2007

Previous Posts


Blogroll

Category Cloud

ajax books Education free software linux Market opensource open standards OSS programming search servers services Uncategorized web

Archives