Thursday, January 8, 2009

Java script:

Java script is client-side scripting language that allows you to write scripts, or small non-compiled programs, that are run by browser.

What can be achieved using java script?
1. Move objects around the web page.
2. Show or hide elements.
3. Create lists that expand or contract when you select an item.
4. Dynamically alter the color and size of web content.
5. Provide the drag-drop functionality similar to that used by modern graphican operating system.

Dynamic HTML is combination o three key technologies:
1. HTML
2. Style sheets
3. Scripting

Scripting can be divided into two parts:
Client side scripting: VBScript, JavaScript, AJAX
Server side scripting: JSP, PHP, ASP, Cgi-bin

To make the whole model distributed, some other standards are used. Some of them are complementary and others are alternatives.
1. Java RMI
2. CORBA
3. SOAP
4. XML-RMC
5. WSDL/WSDD
6. UDDI

To learn about all this basic knowledge of web services, Java and XML are prerequisites.

Now we'll discuss JavaScript in somewhat more details.
It can be integrated with HTML code in following ways.
1. Include inline scripts in response to intrinsic events.
2. Put scripts in the document head or body.
3. Link to external scripts.

To let browser know about scripting language, we need to explicitly mention this in meta tag.


This ensures that the browser knows that we are using JavaScript unless told otherwise.

some random points:
For navigator DOM model
All object under DOM is stored in an array..
For example all image objects are stored in the document.images property.

In case of explorer DOM model
All objects are contained in document.all object.
Also some syntax are changed with respect to Netscape but concept is same.

Handling Events:
coding for event handling is difficult for navigator but straightforward in case of Explorer as explorer does a bubble up approach such that event first is detected by element that generated that like div or image element and moves up the document object chain until handled or cancelled.


Wednesday, January 7, 2009

Knowledge is meant for solving problem of life
not to stack up in libraries....

Tuesday, January 6, 2009

apache virtual hosting...

http://www.debuntu.org/2006/02/22/7-virtual-hosting-using-apache-2

Just refer this link whenever face problem with static site hosting...

Also look into this link.....
http://articles.slicehost.com/2008/4/25/ubuntu-hardy-installing-apache-and-php5

I was facing problem of error in processing of apache and PHP ...
encountered this link which solved my problem....
http://ubuntuforums.org/archive/index.php/t-478045.html

Saturday, January 3, 2009

Operatins system repository:: learn this

http://www.personal.kent.edu/~rmuhamma/OpSystems/os.html

When computer is turned on

The first programs that runs is usually a set of instructions written in Read only Memory (ROM). This code examines the system hardware to make sure if everything is functioning properly.
POST checks for BIOS, CPU and Memory and store results at special memory location.
Once POST is done, code written in ROM starts activating hard drive.

AS soon as Hard drive activate, it reads the first piece of OS places in master bootStrap loader (sector 0 track 0 or 1 something like that..)...

Bootstrap loader has only single function of loading the operating system into memory and allow it to begin operation.
In the most basic form, bootstrap loader sets up driver interfaces with hardware and sets up division of memory that holds operating system and applications.

Then operating system manages following six task
Process management
Memory management
User interface
Storage management
Device management
Application Interface


Read these articles whenever you get time...
http://computer.howstuffworks.com/operating-system12.htm
Threads have its own:
Program counter
register set
stack space

Shares:
Code section
Data section
OS resources like open signals and files

But cost of all this is no protection between threads...

Thursday, January 1, 2009

http://nces.ed.gov/nceskids/createAgraph/default.aspx?ID=820cf1c6c33242e791707d7e9f73a278

graphs .. kewl man