Tuesday, January 25, 2011

Working with DOM , nodes and Objects (part 2) : Deleting Nodes

Posted by on Tuesday, January 25, 2011
As my last post of DOM was on Adding nodes here is a post that will help you in deleting the last entered node. ie DELETING Nodes.


Wednesday, January 19, 2011

HTML Tag Reader : Flash Application

Posted by on Wednesday, January 19, 2011
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.

Monday, January 17, 2011

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

Posted by on Monday, January 17, 2011
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.

Friday, January 14, 2011

Signal Program using parent-child in UNIX

Posted by on Friday, January 14, 2011
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

Posted by on Friday, January 14, 2011
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).

Thursday, January 13, 2011

Computer graphics : Hidden Surface Elimination

Posted by on Thursday, January 13, 2011
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.
Concave Polyhedra

Tuesday, January 11, 2011

UML : Interaction Diagrams with Example

Posted by on Tuesday, January 11, 2011
  • An interaction diagram is a graphical representation of how objects interact with one another in a scenario.
  • They capture the behavior of a single use case, showing the pattern of interaction among objects.
  • Objects communicate in an interaction diagram by sending messages.
  • Sending a message typically corresponds to invoking a method or function, where the message name is the name of the method.
  • A message may carry data as parameters being passed.

Monday, January 10, 2011

UML : StateChart Diagram with Example

Posted by on Monday, January 10, 2011
This is a concept in Object Oriented Software Engineering, which is used to describe the behavior of the system.


State diagrams require that the system described is composed of a finite number of states; sometimes.


The below is an state chart diagram of  An Airline reservation system. I hope this helps people to solve their doubt about State Chart Diagram. For Interaction Diagram

© 2010 Code 2 Learn