HOW TO GET RID OF WRITE PROTECTION OF PEN-DRIVE

You may frequently get an error that the DISK IS WRITE PROTECTED….

This error does not allow you to copy files to your flash drive. But here is a simple way to get rid of this error.

1.You have to write regedit in the run window

2. Select HKEY_LOCAL_MACHINE.

3. Select HKEY_LOCAL_MACHINE\SYSTEM.

4. Select HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\storagedevicepolicies

4.Double click on the writeprotect label

5.Change the value data from 1 to 0.

Noe the error is resolved and you can copy the files to your flash drive

SUBDIVISIONS OF BIOLOGY

 

SUBDIVISIONS OF BIOLOGY

Biology can be divided into fields of study in a variety of ways, depending upon the questions being asked. Because ofthe breadth of knowledge in modern biology fields of specialization have developed in which an individual scientist can concentrate on his specialty and keep abreast of pertinent developments. Although most modern biologists are specialists in particular fields, many rely on other scientific disciplines such as physics, chemistry, and geology in attempting to understand certain biological phenomena. For example, detailed studies of bioluminescence—the light produced by organisms such as fireflies—require a knowledge of complex biochemical processes. Studies of the evolution of specific groups of plants or animals that are frequently found as fossils require a background in geology.

Some scientific investigators restrict their research to one or a few groups of organisms. For this reason the specialty of many biologists becomes the group of organisms that they study. Such designations can be general in nature, such as zoology (the study of animals), botany (the study of plants), or bacteriology (the study of bacteria). Or they can be more specific, as the following:

Algology: algae

Arachnology: spiders, mites, scorpions

Bryology: mosses

Entomology: insects

Herpetology: reptiles and amphibians

Ichthyology: fishes

Malacology: mollusks

Mammalogy: mammals

Mycology: fungi

Nematology: nematode worms

Ornithology: birds

Parasitology: parasites

Protozoology: protozoans (single-celled animals)

 

 

Anatomy and morphology.

         

 

Anatomists and morphologists study the structure of organisms. Some morphological research compares homologous (similar in origin) or analogous (similar in function) structures among different species to establish phylogenetic relationships. Other studies may be carried out to determine the function or mode of operation of an anatomical feature. Histology (study of tissue structure) and cytology (study of cell structure) are specialized areas of morphology. Many morphological studies are useful in human or veterinary medicine.

 

 

Physiology.

human physiology

A physiologist studies the functions of the organs and tissues of plants and animals. A cell physiologist investigates processes at the subcellular level. At the other extreme physiological research focuses on how systems (such as circulatory, digestive, and reproductive) function. Many physiological studies are intimately associated with morphology.
 

Taxonomy.

blooms-taxonomy

Naming organisms and establishing their relationships to one another have been a fundamental development of biology since people first became aware of the wealth of plant and animal types in the world. The importance of this endeavor continues today and is carried out by scientists who work with museums and many universities. Taxonomicrules can be developed for, and principles of classification can be applied to, all groups of plants or animals. Because of the large number of species, however, most classification specialists limit their efforts to particular groups of organisms.

Using the standard rules established by Linnaeus, today’s taxonomists classify species based on shared attributes and the closeness of their evolutionary relationships. Each species is given a generic name (genus), which is capitalized, and a specific name (species), which is not. Besides genus and species, several higher taxonomic levelsare internationally recognized. The higher levels indicate the phylogenetic relationships, the degree to which different species have diverged from each other during the course of evolution. Thus, closely related groups are placed in the same taxonomic category at all levels, whereas distantly related forms are placed together only at the higher taxonomic levels.

Modern classification has resulted in the discovery of taxonomic techniques that permit new interpretations of phylogenetic relationships among organisms. The biological classification scheme serves the vital function of statingwhat the phylogenetic relationships are believed to be, based on current knowledge. The taxonomic placement of particular species, genera, or groups of higher levels will be continually challenged as scientific progress is made.

Embryology and developmental biology.

embryology

Developmental biologists seek to describe and understand the processes that govern the growth and development oforganisms. Included within the field are studies of embryological development of plants or animals and the natural phenomenon of regeneration in which removed cells, tissues, or entire structures of an organism grow back. Research of this nature has direct applicability to the medical profession through the development of principles that give insights into human developmental processes.

SMALLEST MEAT EATING DINOSAURS

FOSSILS OF SMALLEST MEAT EATING DINOSAURS

090316-dino-ankle-biters-vl_widec

The last dinosaurs died about 65 million years ago, long before humans started walking around. Scientists can still learn new things about these ancient animals though, thanks to the fossils they left behind. Paleontologists are scientists who study dinosaurs, and recently these researchers have made some surprising discoveries.

Canadian scientists announced they had identified the smallest meat-eating dinosaur in North America. The fossilized remains of the tiny dino had been found originally in 1982 but were recently rediscovered in a museum drawer. The remains were unearthed near Dinosaur Provincial Park, a protected area in the Canadian province of Alberta. The park is a popular place for dinosaur fans and researchers alike — more than 30 dinosaur species have been identified there.

Weighing about 4.2 pounds, the diminutive dino, whose scientific name is Hesperonychus elizabethae, was the size of a chicken. The previous record holder for smallest meat-eating dinosaur in North America weighed more than 20 pounds, or more than five of the newly identified dino.

About 75 million years ago, this newest tiny dino roamed the southern part of Alberta, just north of Montana. The scientists say the dinosaur had sickle-shaped claws, and its diet probably included insects, lizards and birds. The fossils suggest that the dinosaur is related to other small raptors (another kind of dinosaur) found in China.

About the same time the Canadian paleontologists announced the chicken-sized dinosaur news, a Chinese paleontologist announced a surprising discovery about dinosaur feathers. Feathers cover all modern-day birds, and in previous studies paleontologists have identified a featherlike structure called “dinofuzz” on some dinosaur remains. Until now, however, dino feathers had been found only in theropods and their relatives, the saurichian dinosaurs. Theropods were carnivorous dinos that walked on two legs; saurichians are also known as “lizard-hipped” dinosaurs.

Hai-Lu You, a paleontologist at the Chinese Academy of Geological Sciences in Beijing, recently described featherlike structures on a new kind of dinosaur. The species, Tianyulong confuciusi, lived between 120 and 130 million years ago. Unlike other feathered dinosaurs, however, this species was not a theropod. It was an ornithischian, or bird-hipped, dinosaur.

a

This illustration shows a dinosaur with featherlike structures

The fact that You found featherlike fossils on a bird-hipped dinosaur was a big deal. It means that feathers may have evolved, or developed over a long period of time, from structures on an ancestor of both saurichian and ornithischian dinosaurs. This ancestral creature would have lived about 220 million years ago.

“This is a surprise,” says Lawrence Witmer, a paleontologist at Ohio University in Athens. “Finding a Chinese dinosaur with feathers is not remarkable, but finding one on the wrong side of the dinosaur family tree is.”

On the other hand, the fossil remains may show that many different species of dinosaurs developed feathers. It’s too early to tell. So far, only one fossil of the new species has been unearthed. As more remains come to light, they may show that the featherlike structures in the fossil are something other than feathers.

How to make a website using ASP(TUTORIAL-19)

ONLINE NESCAFE OF COLLEGE CAMPUS-19

(USER HOMEPAGE)

USERFRAME.ASP

The pages HEADER OF USER.ASP, LEFT FRAME FOR USER.ASP, OUTLET.ASP are now arranged into 3 frames. Our final user frame will look as follows:

 final frame of user

 

<%@Language=”VBScript”%>

<%Option Explicit%>

<!–#include virtual=”/adovbs.inc”–>

<html>

<head>

</head>

 

<frameset rows=”38%,*” >

 

<frame src=”header of user.asp” scrolling=”no” frameborder=”no”>

 

<frameset cols=”33%,67%”>

<frame src=”left frame for user.asp” frameborder=”0″ “  scrolling=”no”>

<frame src=”outlet.asp” frameborder=”no”  scrolling=”no”>

</frameset>

</frameset>

<noframes></noframes>

<body>

</body>

</html>

How to make a website using ASP(TUTORIAL-18)

ONLINE NESCAFE OF COLLEGE CAMPUS-18

(ATTRACTION IN USER HOMEPAGE)

LEFT FRAME FOR USER.ASP

This page only contains images and some information about the coffee to attract the users.

 

 ATT1

<html>

<head>

</head>

<img src=”user main page.jpg” height=”45%” width=”80%” align=”middle”>

<font face=”Arial, Helvetica, sans-serif” color=”#990000″ size=”+2″ ><div style=”text-align: justify;”>

Coffee has been nature’s gift for thousands of years. Around the globe in the equatorial region coffee is grown in some eighty countries spread across four continents<div></font>

<body>

</body>

</html>

 

(ATTRACTION IN USER HOMEPAGE)

OUTLET.ASP

 

  ATT2

This page only contains images and some information about the coffee to attract the users.

<html>

<head>

</head>

 

<body>

<CENTER>

<img src=”nescafe_outlet.jpg” align=”middle” width=”90%” height=”80%”><BR>

<font face=”Arial, Helvetica, sans-serif” color=”#990000″ size=”+2″ style=”text-align: justify;”>

Our Outlet has been serving the taste for the college for over 10 years now and we are thankful to our dearest customers, “THE STUDENTS OF SVIT”</font>

</CENTER>

</body>

</html>

How to make a website using ASP(TUTORIAL-17)

ONLINE NESCAFE OF COLLEGE CAMPUS-17

(HEADER OF USER)

HEADER OF USER.ASP

After creating the admin side, first of all you have to create all the script for all the functions to be performed by the user. For example, in my site , the user will have to perform the functions of  giving the orders, specifying where it is to be placed.

To perform the above mentioned functions, you will first create a page named MENU wher the entire MENU will be available for the user.

First of all let us create a page just to attract the users which will contain only information regarding the outlet and links to pages related to menu.

The script below is same as the one in the file head.asp so that the same design appears on every page in order to maintain uniformity.

After that, the code which follows creates the BUTTONS for functions . These buttons are created just by saving writing the text in the textbox with a background color and saving it as an image. Each button is a hyperlink to a form associated with proper actions.

 head of user

 

<%@Language=”VBScript”%>

<%Option Explicit%>

<!–#include virtual=”/adovbs.inc”–>

<Html>

<Head>

</head>

<Body>

 

<marquee BGColor=”maroon” direction=UP height=20 width=100% scrolldelay=700>

<font size=5 color=white>

<B>DID U KNOW?</B>

</FONT>

 

<font size=4 color= white>

<ul>

 

<li> The name NESCAFÉ is a combination of Nestlé and café.

 

<li>It can take up to four years for a coffee to reach mature production.

 

<li>Each cherry consists of two coffee beans.

 

<li>Arabica beans account for around 65% of total coffee production, rest by Robusta.

 

<li>The word ‘coffee‘ originates from the Arabic word ‘kaweh’, meaning strength or vigor.

 

<li>After water, coffee is the 2nd most consumed beverage worldwide.

 

<li> Coffee reached Europe early in the 17th Century. Louis XIV and Pope Clement III were early converts to the drink.

 

</font></b></marquee>

 

<img src=”header1.jpg”  width=100%>

<a href=”frame.asp” target=”_parent”><img src=”PIC2.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”about us.asp” target=”_parent”><img src=”ABOUTUS.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”about cofee.asp” target=”_parent”><img src=”ABOUT COFFEE.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”menu_frame.asp” target=”_parent”><img src=”MENU.jpg” width=10% HEIGHT=15% border=”0″></a>

 

<br>

<a href=”LOGOUT.asp” target=”_parent”><img src=”LOGOUT.jpg” width=10% HEIGHT=15% border=”0″ align=”right”></a>

 

<br>

<br>

<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”100%”>

<%

If Session(“User_Type”)=2 Then

Dim primary_key

primary_key=Session(“User_name”)

                        Response.Write “<tr><td align=’right’><font color=’black’ size=’+2′>Welcome: ” & primary_key & ” </font></td></tr>”

End If

%>

</table>

</body>

</html>

CARS RUN ON VIRUS BATTERIES

VIRUS BATTERIES

VIRUS BATTERY

Viruses have been used to help build batteries that may one day power cars and all types of electronic devices.

The speed and relatively cheap cost of manufacturing virus batteries could prove attractive to industry.

In what is claimed to be the first potential applications of synthetic biology, researchers have now shown that viruses, otherwise harmful to humans, can power cars and electronic gadgets.

A team at the Massachusetts Institute of Technology has revealed that it can genetically engineer viruses to build both the positively and negatively charged ends of a lithiumion battery, the Science journal reported.

“The new virus-produced batteries have the same energy capacity and power performance as state-of-the-art rechargeable batteries being considered to power plug-in hybrid cars, and they could also be used to power a range of electronic devices,” lead researcher Angela Belcher said.

Professor Angela Belcher, who led the research team, said: “Our material is powerful enough to be able to be used in a car battery.”

The team from MIT in the US is now working on higher power batteries.Scientists at MIT used the viruses to build both the positively and negatively charged ends of a battery, the cathode and anode, the journal Science reports.

A battery typically has four key components – the anode and cathode, an electrolyte that flows between them, and a separator to keep the anode and cathode apart.Essentially, a battery turns chemical energy into electrochemical energy when an electron flow passes from the negative end to the positive end through a conductive chemical, the electrolyte.

Researchers constructed a lithium-ion battery, similar to those used in millions of devices, but one which uses genetically engineered viruses to create the negatively charged anode and positively charged cathode.

The virus is a so-called common bacteriophage which infects bacteria and is harmless to humans.

vv

The virus picks up a carbon nanotube after being genetically engineered

In fact, according to them, the new batteries could be manufactured with a cheap and environmentally benign process—the synthesis takes place at and below room temperature and requires no harmful organic solvents, and the materials that go into the battery are non-toxic. The viruses are a common bacteriophage, which infect bacteria but are harmless to humans.

The team found that incorporating carbon nanotubes increases the cathode’s conductivity without adding too much weight to the battery. In lab tests, batteries with the new cathode material could be charged and discharged at least 100 times without losing any capacitance. That is fewer charge cycles than currently available lithium-ion batteries, but “we expect them to be able to go much longer,” Belcher said.

Three years ago the MIT scientists manipulated genes inside a virus that coaxed the particles to grow and self-assemble to form a nanowire anode one-tenth the width of a human hair.The microbes are encouraged to collect exotic materials – cobalt oxide and gold – and because the particles are negatively charged, they can be formed into a dense, virus-loaded film which acts as an anode and “grows” on a polymer separator.Researchers, including MIT Professor Gerbrand Ceder and Associate Professor Michael Strano, have now developed a highly powerful cathode.

The work was more difficult because the material had to be highly conductive in order to be effective and most candidate materials for cathodes are highly insulating.

The virus was coaxed into binding with iron phosphate and then carbon nanotubes to create a highly conductive material.The batteries have the same energy capacity and power performance as rechargeable batteries used to power plug-in hybrid cars.

The prototype battery is currently the size of a coin but the scientists believe it can be scaled and be used to create flexible batteries that can take the shape of their container, which is perfect for mobile or small devices.

The researchers are now looking for better materials to work with the viruses to create a next-generation battery, which is even higher powered.

“Scale is the issue,” admitted Professor Belcher. “But we are not going to scale until we have the right material. We believe this is possible and has commercial implications otherwise we would not be researching in this area.”Currently, the virus battery can only be charged and discharged at least 100 times before it begins to lose its capacity to store a charge, but Professor Belcher said “we expect them to be able to go much longer”.

The process to build the batteries uses no harmful or toxic materials and so is attractive from an environmental point of view.

How to make a website using ASP(TUTORIAL-16)

ONLINE NESCAFE OF COLLEGE CAMPUS-16

(FORM OF CHANGING DATABASE OF ADMIN)

CHANGE_PASSWORD.ASP

 

This page shows you the how the form is created for changing the password of administrator in the database ADMIN.

 change passwrd

 

<html>

<body>

<form method=”post” action=”Validate_Password.asp”>

<table align=”center” cellpadding=”0″ cellspacing=”0″ border=”0″>

<tr>

<td>Current Password:</td>

<td><input value=”"></td>

</tr>

<tr>

<td>New Password:</td>

<td><input value=”"></td>

</tr>

<tr>

<td>Confirm Password:</td>

<td><input value=”"></td>

</tr>

<tr>

<td align=”center” colspan=”2″><input value=”Change Password”></td>

</tr>

</table>

</form>

</body>

</html>

 

(ASP SCRIPT OF CHANGING PASSWORD FROM DATABASE)

VALIDATE_PASSWORD.ASP

As you can see in CHANGE_PASSWORD.ASP that the values of the form have been sent to VALIDATE_PASSWORD .asp. In this script, the connectivity is done with the database, validations are performed  and  PASSWORD is CHANGED  from it with the help of UPDATE method.  

If every validation is successful, then the following window will appear and database will be updated. Before the execution of the following script, the password was phg, now it will be changed to hardik

 

 after chg passwrd

<%@Language=”VBScript”%>

<%Option Explicit%>

<!–#include virtual=”/adovbs.inc”–>

<html>

<body>

<center>

<%

                Dim MPath

                MPath=Server.MapPath(“Storage.mdb”)

               

                Dim objConn

                Set objConn=Server.CreateObject(“ADODB.Connection”)

                objConn.Mode=adModeReadWrite

                objConn.Provider=”Microsoft.Jet.OLEDB.4.0″

                objConn.Open (MPath)

               

                Dim Current_Password

                Dim New_Password

                Dim Confirm_Password

                Current_Password=Request.Form(“Current_Password”)

                New_Password=Request.Form(“New_Password”)

                Confirm_Password=Request.Form(“Confirm_Password”)

               

                If Current_Password=”" OR New_Password=”" OR Confirm_Password=”" Then

                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>No field can be left blank.<br><br><br>”

                                                Response.Write “<a href=’Change_Password.asp’>Back</a></font>”

                Else

                                Dim strSQL

                                strSQL=”SELECT Password FROM Admin WHERE Administrator=’admin’”

                               

                                Dim objRS

                                Set objRS=Server.CreateObject(“ADODB.Recordset”)

                                objRS.Open strSQL,objConn,,adLockOptimistic

                               

                                If Current_Password<>objRS(“Password”) Then

                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Current Password entered by You is not valid.<br><br><br>”

                                                Response.Write “<a href=’Change_Password.asp’>Back</a></font>”

                                Else

                                                If Not(New_Password=Confirm_Password) Then

                                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>New Password and confirm password does not match.<br><br><br>”

                                                Response.Write “<a href=’Change_Password.asp’>Back</a></font>”

                                                Else

                                                                objRS(“Password”)=New_Password

                                                                objRS.Update

                                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Password hase been successfully changed.<br><br><br>”

                                                Response.Write “<a href=’Change_Password.asp’>Back</a></font>”

                                                End If

                                End If

                                                objRS.Close

                                                Set objRS=Nothing

                                                objConn.Close

                                                Set objConn=Nothing

                End If

               

               

%>

</center>

</body>

</html>

 

Now, the database will look as follows:

 data chg pass

How to make a website using ASP(TUTORIAL-15)

ONLINE NESCAFE OF COLLEGE CAMPUS-15

(FORM OF UPDATING PRODUCTS FROM DATABASE)

UPDATE.ASP

 

This page shows you the how the form is created for updating any item to the database PRODUCTS.

 update

<html>

<body>

<form method=”post” action=”update_item.asp”>

<table align=”center” cellpadding=”0″ cellspacing=”0″ border=”0″>

<tr>

<td>Item Name:</td>

<td><input value=”"></td>

<td><sub><font face=”Arial, Helvetica, sans-serif” color=”#FF0000″ size=”-1″>*Enter the name in UPPERCASE</font></sub></td> 

</tr>

<tr>

<td>Item Price:</td>

<td><input value=”"></td>

</tr>

<tr>

<td>Item Quantity:</td>

<td><input value=”"></td>

</tr>

<tr>

<td>Image name:</td>

<td><input value=”"></td>

</tr>

<tr>

<td align=”center” colspan=”2″><input value=”Update”></td>

</tr>

</table>

</form>

</body>

</html>

(ASP SCRIPT OF UPDATING PRODUCTS FROM DATABASE)

UPDATE ITEM.ASP

As you can see in UPDATE.ASP that the values of the form have been sent to UPDATE ITEM.asp. In this script, the connectivity is done with the database, validations are performed  and  product is UPDATED from it with the help of UPDATE method.  

If every validation is successful, then the following window will appear and database will be updated

 after update

<%@Language=”VBScript”%>

<%Option Explicit%>

<!–#include virtual=”/adovbs.inc”–>

<html>

<body>

<center>

<%

            Dim MPath

            MPath=Server.MapPath(“Storage.mdb”)

           

            Dim objConn

            Set objConn=Server.CreateObject(“ADODB.Connection”)

            objConn.Mode=adModeReadWrite

            objConn.Provider=”Microsoft.Jet.OLEDB.4.0″

            objConn.Open (MPath)

           

            Dim P_name

            Dim P_price

            Dim P_quantity

            Dim P_image

            P_name=Request.Form(“P_name”)

            P_price=Request.Form(“P_price”)

            P_quantity=Request.Form(“P_quantity”)

            P_image=Request.Form(“P_image”)

 

           

            If P_name=”" OR P_price=”" OR P_quantity=”" OR P_image=”" Then

                        Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>No field can be left blank.<br><br><br>”

                                    Response.Write “<a href=’update.asp’>Back</a></font>”

            Else

                        Dim strSQL

                        strSQL=”SELECT * FROM Products”

                       

                        Dim objRS

                        Set objRS=Server.CreateObject(“ADODB.Recordset”)

                        objRS.Open strSQL,objConn,,adLockOptimistic

                       

                        Dim Count

                        Count=0

                        Do While Not objRS.EOF

                                    If objRS(“P_name”)=P_name Then

                                                Count=Count+1

                                    End If

                        objRS.MoveNext

                        Loop

                       

                        objRS.Close

                        Set objRS=Nothing

                       

                       

                        If Count=0 then

                        Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>No such item is present.<br><br><br>”

                                    Response.Write “<a href=’update.asp’>Back</a></font>”

                       

                        ElseIf IsNumeric(P_price)=False OR IsNumeric(P_quantity)=False Then

                        Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Price and quantity must have numeric values.<br><br><br>”

                                    Response.Write “<a href=’update.asp’>Back</a></font>”

                                   

                                   

                                    Else

                                    strSQL=”SELECT * FROM Products WHERE P_name=’” & P_name & “‘ ”

                       

                                    Set objRS=Server.CreateObject( “ADODB.Recordset”)

                                    objRS.Open strSQL,objConn,adOpenDynamic,adLockOptimistic

                                   

                                                objRS(“p_price”)=P_price

                                                objRS(“P_quantity”)=P_quantity

                                                objRS(“P_image”)=P_image

                                                objRS.Update

                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>DATA hase been successfully changed.<br><br><br>”

                                    Response.Write “<a href=’update.asp’>Back</a></font>”

                                    End If

                        End If

                                   

                                   

                                   

                                   

                                    Set objRS=Nothing

                                    objConn.Close

                                    Set objConn=Nothing

           

           

           

           

%>

</center>

</body>

</html>

 

Now, the database will look as follows:

 data update

How to make a website using ASP(TUTORIAL-14)

ONLINE NESCAFE OF COLLEGE CAMPUS-14

(FORM OF DELETING PRODUCTS FROM DATABASE)

DELETE.ASP

 

This page shows you the how the form is created for deleting any item to the database PRODUCTS.

 DELETE

<html>

<body>

<form method=”post” action=”Delete_item.asp”>

<table align=”center” cellpadding=”0″ cellspacing=”0″ border=”0″>

<tr>

<td>Item Name:</td>

<td><input value=”"></td>

<td><sub><font face=”Arial, Helvetica, sans-serif” color=”#FF0000″ size=”-1″>*Enter the name in UPPERCASE</font></sub></td> 

 

</tr>

<tr>

<td align=”center” colspan=”2″><input value=”Delete”></td>

</tr>

</table>

</body>

</html>

(ASP SCRIPT OF DELETING PRODUCTS FROM DATABASE)

DELETE ITEM.ASP

As you can see in DELETE.ASP that the values of the form have been sent to DELETE ITEM.asp. In this script, the connectivity is done with the database, validations are performed  and  product is deleted from it with the help of delete method.  

If every validation is successful, then the following window will appear and database will be updated

 

 AFTER DELETE

<%@Language=”VBScript”%>

<%Option Explicit%>

<!–#include virtual=”/adovbs.inc”–>

<html>

<body>

<center>

<%

                Dim MPath

                MPath=Server.MapPath(“Storage.mdb”)

               

                Dim objConn

                Set objConn=Server.CreateObject(“ADODB.Connection”)

                objConn.Mode=adModeReadWrite

                objConn.Provider=”Microsoft.Jet.OLEDB.4.0″

                objConn.Open (MPath)

               

                Dim P_name

                P_name=Request.Form(“P_name”)

               

               

                If P_Name=”" Then

                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>You can not leave the field blank.<br><br><br>”

                                Response.Write “<a href=’Delete.asp’>Back</a></font>”

                Else

                                Dim strSQL

                                strSQL=”SELECT * FROM Products”

                               

                                Dim objRS

                                Set objRS=Server.CreateObject( “ADODB.Recordset”)

                                objRS.Open strSQL,objConn,adOpenDynamic,adLockOptimistic

                               

                                Dim Count

                                Count=0

                                Do While Not objRS.EOF

                                                If objRS(“P_name”)=P_name Then

                                                                Count=Count+1

                                                End If

                                objRS.MoveNext

                                Loop

                                objRS.Close

                                Set objRS=Nothing

                               

                                If Count=0 Then

                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Product with such NAME is not present.<br><br><br>”

                                                Response.Write “<a href=’Delete.asp’>Back</a></font>”

                                Else

                                                strSQL=”SELECT * FROM Products WHERE P_name=’” & P_name & “‘ ”

                               

                                                Set objRS=Server.CreateObject( “ADODB.Recordset”)

                                                objRS.Open strSQL,objConn,adOpenDynamic,adLockOptimistic

                                               

                                                objRS.Delete

                               

                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Item sucessfully deleted from the database.<br><br><br>”

                                                Response.Write “<a href=’Delete.asp’>Back</a></font>”

                                                objRS.Close

                                                Set objRS=Nothing

                                                objConn.Close

                                                Set objConn=Nothing

                                End If

                End If

                               

%>

</center>

</body>

</html>

 

Now, the database will look as follows:

 

 DATA DELETE

How to make a website using ASP(TUTORIAL-13)

ONLINE NESCAFE OF COLLEGE CAMPUS-13

(FORM OF ADDING PRODUCTS TO DATABASE)

ADD.ASP

 

This page shows you the how the form is created for adding any item to the database PRODUCTS.

 

 ADDING ITEM

<html>

<body>

<form method=”post” action=”Add_item.asp”>

<table align=”center” cellpadding=”0″ cellspacing=”0″ border=”0″>

<tr>

<td>Item Name:</td>

<td><input value=”"></td>

<td><sub><font face=”Arial, Helvetica, sans-serif” color=”#FF0000″ size=”-1″>*Enter the name in UPPERCASE</font></sub></td> 

</tr>

<tr>

<td>Item Price:</td>

<td><input value=”"></td>

</tr>

<tr>

<td>Item Quantity:</td>

<td><input value=”"></td>

</tr>

<tr>

<td>Image Name:</td>

<td><input value=”"></td>

</tr>

<tr>

<td>Type</td>

<td><Select>

<option>MAGGI</option>

<option>COLD</option>

<option>HOT</option>

<option>OTHER</option>

</Select>

</td>

</tr>

<tr>

<td align=”center” colspan=”2″><input value=”Add”></td>

</tr>

</table>

</form>

</body>

</html>

 

(ASP SCRIPT OF ADDING PRODUCTS TO DATABASE)

ADD ITEM.ASP

As you can see in ADD.ASP that the values of the form have been sent to ADD ITEM.asp. In this script, the connectivity is done with the database, validations are performed  and new product is added to it with the help of ADDNEW method.  

If every validation is successful, then the following window will appear and database will be updated.

 

 AFTER ADD

<%@LANGUAGE=”VBSCRIPT”%>

<!–#include virtual=”/adovbs.inc”–>

<html>

<body>

<center>

<%

                Dim P_Name

                Dim P_Price

                Dim P_Image

                Dim P_Quntity

                Dim P_type

               

                P_Name=Request.Form(“P_Name”)

                P_Price=Request.Form(“P_Price”)

                P_Quantity=Request.Form(“P_Quantity”)

                P_Image=Request.Form(“P_Image”)

                P_type=Request.Form(“P_type”)

               

                If P_Name=”" OR P_Price=”" OR P_Quantity=”" OR P_Image=”" Then

                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>You can not leave any field blank.<br><br><br>”

                                Response.Write “<a href=’Add.asp’>Back</a></font>”

                Else

                                Dim objConn,objRS,MPath

                                MPath=Server.MapPath(“Storage.mdb”)

                                Set objConn=Server.CreateObject(“ADODB.Connection”)

                                objConn.Provider=”Microsoft.Jet.OLEDB.4.0″

                                objConn.Open (MPath)

                               

                                Dim strSQL

                                strSQL=”SELECT * FROM Products WHERE P_Name=’” & P_Name & “‘”

                               

                                Set objRS=Server.CreateObject( “ADODB.Recordset”)

                                objRS.Open strSQL,objConn,adOpenDynamic,adLockOptimistic

                               

                                Dim Count

                                Count=0

                                Do While Not objRS.EOF

                                Count=Count+1

                                objRS.MoveNext

                                Loop

 

                                If Count<>0 Then

                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Product with the given name is already present.<br><br><br>”

                                                Response.Write “<a href=’Add.asp’>Back</a></font>”

                                                objRS.Close

                                                Set objRS=Nothing

                                                objConn.Close

                                                Set objConn=Nothing

                               

                                Else

                                                If IsNumeric(P_Price)=False OR IsNumeric(P_Quntity)=False Then

                                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Product and Price must have only numeric values.<br><br><br>”

                                                                Response.Write “<a href=’Add.asp’>Back</a></font>”

                                                Else

                                                                objRS.AddNew

                                                                objRS(“P_Name”)=P_Name

                                                                objRS(“P_Price”)=P_Price

                                                                objRS(“P_Quantity”)=P_Quantity

                                                                objRS(“P_Image”)=P_Image

                                                                objRS(“P_type”)=P_type

                                                                objRS.Update

                                                                objRS.Close

                                                                Set objRS=Nothing

                                                                objConn.Close

                                                                Set objConn=Nothing

                                                                Response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Item sucessfully added to the database.<br><br><br>”

                                                                Response.Write “<a href=’Add.asp’>Back</a></font>”

                                                End If

                                End If

                End If

%>

</center>

</body>

</html>

 

 Now, the database will look as follows:

         

               DATA OF ADD

How to make a website using ASP(TUTORIAL-12)

ONLINE NESCAFE OF COLLEGE CAMPUS-12

(forms of FUCTIONS OF ADMINISTRATOR)

FUNCTIONS OF ADMIN.ASP

This page is simply divided into two frames. The top frame is the page HEADER OF FUNCTIONS OF ADMIN.ASP and the bottom frame is named ADMIN DOWN.

 

 func of admin]

The script for that is:

<frameset rows=”38%,*”>

<frame src=”header of functions of admin.asp” frameborder=”no” scrolling=”no”>

<frame  name=”admin down” frameborder=”no” scrolling=”yes”>

</frameset><noframes></noframes>

 

Now in every article related to the admin side I am going to show you the script of the form for each function and how it is implemented in the database.

How to make a website using ASP(TUTORIAL-11)

ONLINE NESCAFE OF COLLEGE CAMPUS-11

(FUCTIONS OF ADMINISTRATOR)

HEADER OF FUNCTIONS OF ADMIN.ASP

After creating the homepage, first of all you have to create all the script for all the functions to be performed by the administrator. For example, in my site , the administrator will have to perform the functions of updating the database of products, adding the products, deleting the products and deleting the orders after the orders has been placed.

To perform the above mentioned functions, you will first create a database named PRODUCTS with the fields P_name, P_price, P_quantity, P_image, P_type:

 

data 

The script below is same as the one in the file head.asp so that the same design appears on every page in order to maintain uniformity.

After that, the code which follows creates the BUTTONS for functions . These buttons are created just by saving writing the text in the textbox with a background color and saving it as an image. Each button is a hyperlink to a form associated with proper actions.

 

 header of admin

<%@Language=”VBScript”%>

<%Option Explicit%>

<!–#include virtual=”/adovbs.inc”–>

<html>

<head>

</head>

<body>

 

<marquee BGColor=”maroon” direction=UP height=20 width=100% scrolldelay=700>

<font size=5 color=white>

<B>DID U KNOW?</B>

</FONT>

 

<font size=4 color= white>

<ul>

 

<li> The name NESCAFÉ is a combination of Nestlé and café.

 

<li>It can take up to four years for a coffee to reach mature production.

 

<li>Each cherry consists of two coffee beans.

 

<li>Arabica beans account for around 65% of total coffee production,rest by Robusta.

 

<li>The word ‘coffee‘ originates from the Arabic word ‘kaweh’, meaning strength or vigour.

 

<li>After water, coffee is the 2nd most consumed beverage worldwide.

 

<li> Coffee reached Europe early in the 17th Century. Louis XIV and Pope Clement III were early converts to the drink.

 

</font></b></marquee>

 

<img src=”header1.jpg”  width=100%>

<a href=”frame.asp” target=”_parent”><img src=”PIC2.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”about us.asp” target=”_parent”><img src=”ABOUTUS.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”about cofee.asp” target=”_parent”><img src=”ABOUT COFFEE.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”add.asp” target=”admin down”><img src=”add_product.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”delete.asp” target=”admin down” ><img src=”delete_product.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”change_password.asp” target=”admin down” ><img src=”change_password.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”UPDATE.asp” target=”admin down” ><img src=”update.jpg” width=10% HEIGHT=15% border=”0″></a>

<a href=”del_data.asp” target=”admin down” ><img src=”delete_data.jpg” width=10% HEIGHT=15% border=”0″></a>

 

 

<br>

<a href=”LOGOUT.asp” target=”_parent”><img src=”LOGOUT.jpg” width=10% HEIGHT=15% border=”0″ align=”right”></a>

 

<br>

<br>

<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”100%”>

<%

If Session(“User_Type”)=1 Then

                        Response.Write “<tr><td align=’right’><font color=’black’ size=’+2′ align=’right’>Welcome: ” & Session(“user_Name”) & ” </font></td></tr>”

End If

%>

</table>

</body>

</html>

3-D TELEVISION, THE FUTURE

 

3-D TV TO BE RELEASED IN 2010

sony-bravia-3d-sport2-420-90
 

 If Sony had its way according to plan, the Japanese electronics giant would be offering 3D TVs worldwide as early as end 2010. This could possibly inject a new lease of life into the home display market which is gradually cooling off after the initial full-HD frenzy. According to an IFA-related report from the Financial Times, the company is not only planning to release 3D-enabled Bravias HDTVs, but also an entire ecosystem of compatible products. These range from Vaio laptops to Blu-ray players and PlayStation 3 consoles.

Sony announced today at IFA 2009 it is to bring out a 3D series of its Bravia TVs in 2010, marking the first time the company has brought 3D technology to its TV range.

While the company was remaining tight-lipped about specifics and about just how the 3D tech would work on a Bravia LCD TV, it did show off some demos of the technology.

It seems Sony has decided to turn fiction into reality – in more ways than one. At a press conference in Berlin, Germany, Sony Corporation announced that it plans to lead the way in entertainment by bringing 3D to the Home in 2010.

Sony’s 3D compatable “Bravia” LCD TV incorporates what is known as frame sequential display and active-shutter glass systems. This, together with Sony’s propriety high frame rate technology, enables reproduction of full High Definition, high quality 3D images. Sony believes this will form the centerpiece of Sony’s 3 Dimensional experience at home.

Sony will also develop additional 3D compatability into more of its devices, such as Blu-ray Disc products, VAIO and Playstation 3, which will provide multiple ways for users to enjoy 3D entertainment.

sony-bravia-3d-glasses-420-90

3d-glasses

 

The upcoming Sony 3D technology will be based on “active shutter” implementation that utilizes glasses equipped with micro shutters. These synchronize with the onscreen pictures to generate a three-dimensional effect. This solution currently delivers one of the widest viewing angles among the various 3D systems in the market. The new direction is definitely welcome news compared with the ongoing “ultraslim” TV rivalry among vendors, which adds very little value as far as viewing experience is concerned for the consumers.

Using Real D active shutter glasses,  First we had to ‘activate’ the glasses by pointing at a sensor the was situated above the TV. Once done, the glasses were turned on.

First impressions of the 3D technology from Sony is really immediately about how impressive it all looks. Unlike the demo shown in the press conference using normal stereoscopic glasses, the active shutter tech means the images are crisp and clear and the images jump right out at you.

This is definitely technology which will boost the playability of the PS3 for some years to come.

Yes, there is no word how much the LCD 3D TVs will be, but with Sony at the helm, it does mean that you will, very soon (should you have the ‘readies’) be able to watch movies and play PS3 games in 3D.

Sony has been at the forefront of developing 3D hardware products for shooting as well as producing 3D movies, and according to the company, 3D screens are increasing rapidly, with an expected growth to about 7,000 units by the end of 2009.

It seems 3D entertainment is definitely gathering momentum, with companies such as Sony investing in, and almost “steering” the entertainment industry in that direction, with gaming eventually also moving towards 3D, giving users the ability to interact with games, instead of just “playing”.

While 3D may not be the future for home entertainment, as of yet, Sony’s announcement today does herald something of a tipping point for the technology. Now all the company has to do is persuade the Blu-ray Disc Association to pick a 3D BD format that’s friendly to Sony’s TV technology and we could see 3D finally take off in the living room.

Alhough 3D is nothing new, with many people having already watched a 3D movie at the cinema at some point in time, it certainly is still fairly new in terms of home entertainment. So, 2010 will be the year to look forward to for this type of technology. The question just remains: Will production of 3D television programs also catch on quickly, or will it take longer? I suppose it all depends on the actual difference in cost of production between “normal” programmes, and those shot in 3D.

How to create a website using ASP(TUTORIAL-10)

ONLINE NESCAFE OF COLLEGE CAMPUS-10

(DATABASE CONNECTIVITY, CHECKING FROM DATABASE)

verifyadmin.ASP

 

Whenever you login in any site, first of all, it is checked if the user has ever sign up and the details of the user are present in the database of the system. This is done with the help of the following script:

I have also created a table named admin in STORAGE.MDB in which I have included only the fields of administrator and password as follows:

admin 

Here I have also created a session object. It is used to keep something constant for every individual user. Its implementation will be described later.

Response.Redirect   is a method usd to open a particular page if the validations are successful. Here, it will open a page called functions of admin.asp which is described later.

admin page

<%@LANGUAGE=”VBSCRIPT”%>

<!–#include virtual=”/adovbs.inc”–>

<html>

<head>

</head>

 

<body>

<center>

<%

            Dim admin_name

            Dim admin_password

            admin_name=Request.Form(“admin_name”)

            admin_password=Request.Form(“admin_password”)

           

            Dim objConn,objRS,MPath

            MPath=Server.MapPath(“Storage.mdb”)

           

            Set objConn=Server.CreateObject(“ADODB.Connection”)

            objConn.Provider=”Microsoft.Jet.OLEDB.4.0″

            objConn.Open (MPath)

           

           

           

           

            Dim strSQL

            strSQL=”SELECT * FROM Admin WHERE Administrator=’” & admin_name & “‘  AND  Password=’” & admin_password &”‘ ”

            set objRS=Server.CreateObject(“ADODB.Recordset”)

            objRS.OPen strSQL,objConn,1,2

           

            If admin_name=”" OR admin_password=”" Then

            response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>You must fill every detail.<br><br><br>”

                        Response.Write “<a href=’frame.asp’>Back</a></font>”

           

            ElseIf objRS.RecordCount = 0 Then

                        response.Write “<br><br><br><font color=’#FF0000′ face=’Verdana, Arial, Helvetica, sans-serif’ size=’+3′>Sorry,Name and Password does not match.<br><br><br>”

                        Response.Write “<a href=’frame.asp’>Back</a></font>”

            Else

                        Session(“User_Name”) = admin_name

                        Session(“User_Type”) = 1

                        Response.Redirect “functions of admin.asp”

            End If

           

            objRS.Close

            Set objRS=Nothing

            objConn.Close

            Set objConn=Nothing

           

%>

</center>

</body>

</html>