1/24/11

1/18/11

HTML Tag Reader : Flash Application

Here is an flash application which reads some of the html tag and then gives the desired result.

I have used Action Script 3 for this application.

In the application you will get to know the usage of action listener (event listener), then Use of URLRequest etc. The rest I have defined below.

1/17/11

Working with DOM , nodes and Objects (part 1) : Adding Nodes

JavaScript is an Object Oriented Programming (OOP) language.

An OOP language allows you to define your own objects and make your own variable types.

Note that an object is just a special kind of data. An object has properties and methods.

The HTML DOM is a W3C standard and it is an abbreviation for the Document Object Model for HTML.


The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate HTML documents.


1/14/11

Signal Program using parent-child in UNIX

Let us now write a program that communicates between child and parent processes using kill() and signal().

fork() creates the child process from the parent. The pid can be checked to decide whether it is the child(==0) or the parent (pid = child process id).

The parent can then send messages to child using the pid and kill().

The child picks up these signals with signal() and calls appropriate functions. 


Two processes comunicating via shared memory in UNIX

We develop two programs here that illustrate the passing of a simple piece of memery (a string) between the processes if running simulatenously:
server.c
-- simply creates the string and shared memory portion.
client.c
-- attaches itself to the created shared memory portion and uses the string (printf).


1/13/11

Computer graphics : Hidden Surface Elimination

BACKFACE DETECTION: 
In a solid object, there are surfaces which are facing the viewer (front faces) and there are surfaces which are opposite to the viewer (back faces).

These back faces contribute to approximately half of the total number of surfaces. Since we cannot see these surfaces anyway, to save processing time, we can remove them before the clipping process with a simple test.