Labels

Thursday, 17 May 2012

Hello all,
Make use of this blog by sharing all the information which you learn from outsource and distribute all the knowledge.
ALL THE BEST friends.

Monday, 23 April 2012

Steps to execute BDK:
1.Open a notepad and type your java code, add the statement "package sunw.demo.foldername;" in the top of code.
2.Save your java file in bdk\demo\sunw\demo\name of folder.
3.Compile the java file.
4.Go to first demo and then create a manifest file with .mft extension (create mft file with name of the class)
5.open command prompt and then go to bdk\demo
6.type the following command "jar cfm ..\jars\manifestfilename.jar manifestfilename,mft sunw\demo\foldername\*.class"
7.You can check your jar file in Jars folder in bdk.
8.Right click on the jar file and click extract to folder.
9.you can go to folder and inside folder you find META-INF folder
10.open the folder and you can find MANIFEST.MFT file
11.open the file and check whether you have the statement "Java-Bean: True"
12.If you find the statement you have successfully done with most of the work
13.Now go to beanbox folder in bdk and click on run.
14.You can find three or four windows open infront of you.
15.check for your jar file name in the left most window and if found you have successfully completed the execution.

Monday, 6 February 2012

Hi Friends,
Welcome back to the Blog.... Please note these 'validations' in your Observations and Practice them in WT lab tomorrow..

1) For the Fields Like NAME, which should not be left blank.. the following validation has to be done.

<html>
       <head>
             <script type="text/javascript">
                  function validateform()
                  {
                     varx=document.forms["myForm"]["fname"].value;
                     if(x==null || x==" ")
                     {
                        alert("First Name Must be Filled");
                        return false;
                     }
                  }
              </script>
         </head>
 <body>
  <form name="myForm" action="demo_form.asp"
                 onsubmit="return validateform();" method="post">
                First Name:<input type="text" name="fname">
      <input type="submit" value="submit">
  </form>
 </body>
</html>


2)For The fields where spaces are not allowed: // this is a function and should be used in scripts in head section
var ichas=" ";
for(var i=0;i<document.forms["myForm"]["fname"].value.length;i++)
{
if(ichas.Indexof(document.forms["myForm"]["fname"].value.charAt(0))!=-1)
{
alert("Spaces are Not allowed");
return false;
}
}



3)EMail Validation:
<html>
<head>
<script type=text/javascript>
function validateForm()
{
var x=document.forms["myForm"]["email"].value;
var atpos=x.IndexOf("@");
var dotpos=x.lastIndexOf(".");
if(atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
{
alert("Not a Valid E-Mail Address");
return false;
}
}
</script>
</head>
<body>
<form name="myForm" action="demo_form.asp"
                             onsubmit="return validateform();" method="post">
E Mail: <input type="text" name="email">
<input type="submit" value="submit">
</form>
</body>
</html>

// these are the functions to be used with the scripts in the head section


4) Name to be only in alphabets only

var mychar1=/^[a-ZA-z]+$/;
if(!mychar1.test(document.forms["myForm"]["fname"].value))
{
alert("Enter name in alphabets only");
}

5) To have a fixed length:

if(fname.length<6)
{
alert("Enter fname minimum 6 characters");
return false;
}
if(fname.length>25)
{
alert("Enter Name with maximum of 25 characters");
return false;
}

6) Validating a Mobile Number:

var contact=document.forms["myForm"]["mobileNo"].value;
if(contact==null || contact==" ")
{
alert("Enter Mobile Number");
return false;
}

7) For a Field to be Numericals only:

var digits="0123456789";
var temp;
for(var i=0;i<document.forms["myForm"]["mobileno"].value.length;i++)
{
temp=document.forms["myForm"]["mobileno"].value.substring(i,i+1);
if(digits.IndexOf(temp)==-1)
{
alert("please Enter numbers only for mobile number");
return false;
}
}

8) For a Field to have a restricted length:
if(contact.length<10)
{
alert("Enter 10 digits only for Mobile Number");
return false;
}

Tuesday, 20 September 2011

Previous Question Papers of PPL

Principles Of Programming Language
1)http://www.mediafire.com/file/pr9rrj2apn1nuzp/07A40501-PRINCIPLESOFPROGRAMMINGLANGUAGES.pdf
2)http://www.mediafire.com/file/ukcu9w0qfwyozta/R05310505-PRINCIPLESOFPROG.LANGUAGES.pdf
3)http://www.mediafire.com/file/vvakxjd87zql4hd/RR%20310505%20Principles%20of%20Programming%20Languages.pdf
4)http://www.mediafire.com/file/ef1oie3qkfr9138/RR310505-PRINCIPLESOFPROGRAMMINGLANGUAGES.pdf

Sunday, 4 September 2011

linking 2 classes using interfaces

Sir, in the class we have discussed about linking classes with interfaces..
i googled for it a long time, but i didn't find solution for that..
Finally i have posted it in dreamincode.net (a programmers website)..

The experties responded in this way
(click the link for more details).....

Friday, 26 August 2011

Tuesday, 5 July 2011

Operating Systems Internals And Design Principles E-BOOK download


Operating systems: 

internals and design principles
Front Cover
Prentice Hall, 2008 - Computers - 822 pages



For a one-semester undergraduate course in operating systems for computer science, computer engineering, and electrical engineering majors. Winner of the2009 Textbook Excellence Award from the Text and Academic Authors Association (TAA)! Operating Systems: Internals and Design Principlesis a comprehensive and unified introduction to operating systems. By using several innovative tools, Stallings makes it possible to understand critical core concepts that can be fundamentally challenging. The new edition includes the implementation of web based animations to aid visual learners. At key points in the book, students are directed to view an animation and then are provided with assignments to alter the animation input and analyze the results. The concepts are then enhanced and supported by end-of-chapter case studies of UNIX, Linux and Windows Vista. These provide students with a solid understanding of the key mechanisms of modern operating systems and the types of design tradeoffs and decisions involved in OS design. Because they are embedded into the text as end of chapter material, students are able to apply them right at the point of discussion. This approach is equally useful as a basic reference and as an up-to-date survey of the state of the art.


                                                                           Download::::::

Operating Systems Internals And Design Principles.pdf