In this world, nothing is impossible that describes EVERYTHING IS POSSIBLE if you believe. Therefore I create this blog to you for giving you some important information, ideas, tricks, and many more... through this blog. So use this blog and enjoy!!!
Thursday, November 01, 2012
Tuesday, July 31, 2012
Natalia Partyka
Natalia Partyka (born July 27, 1989) is a Polish table tennis player. Born without a right hand and forearm, she participates in competitions for able-bodied athletes as well as in competitions for athletes with disabilities. Natalia Partyka reached the last 32 of the London 2012 Olympic women's singles event in Table Tennis.
Wednesday, July 25, 2012
Wednesday, July 11, 2012
Wednesday, May 30, 2012
Tuesday, May 29, 2012
Jessica Cox...
We are ~ what we Think
All that we are ~ arises with our Thoughts
With our thoughts ~ we make our World !
The Buddah
When you discover the power of your own mind... you open up a new and exciting world that is laid at your feet. The only prerequisite is that you must place your feet on the path...
Start directing the awesome power of your mind and create the life you want. Once you realize that it is the power of your thoughts & beliefs that create your reality, you will begin to pay close attention to the thoughts you are thinking.
Positive, daily affirmations will help develop a powerful visualization process that will lead to greater success in every area of your life. There is a way to get anything you want in this world. Check out Jessica Cox !
Monday, May 28, 2012
There is no dress REHERSAL for Life...
Limitations of Personal Fears
If you want something badly enough, Nothing will stand in your way!
Your Thoughts and Beliefs Create Your Tommorrows.
Focus on what you want....
Don't Lose your HOPE....
Gender of storyteller: Male
Age of storyteller: 22-30 years old
This story took place 1-2 years ago
Location: Murhanda, Kakamega, Kenya
Five years ago, i had a friend of mine who dropped out of school when we were in form 3. It sounds pain because we used to associate with him in all our undertakings. I was lack of enough fees to go ahead and when i finished my high school i happened to get in touch with a one NGO with the name CABDA which was willing to sponser a student to college. It has turned up to be a challenge since the sponsor left the village and my friend is able to support me right now to pay my school fees through her little income right now as we thank the NGo for turning our life to the next level as we are wishing to persue further. God may open a way were it seems not to be as hard as we pays and always don't lose your hope.
Important to generate.......
Friday, May 25, 2012
A story of Cody McCasland
In January 2002, Cody again ended up in the ER at Children’s Dallas because of abdominal concerns. He had an emergency surgery due to an adhesion caused by his November surgeries. Another 10 day stay in the hospital for both Cody and Tina, and Mike again juggled work, coming to the hospital to see Cody and Tina, and finding time to sleep. The hospitalizations and surgeries continued on. Cody had numerous hospitalizations for infections and asthma/airways concerns, as well as for his surgeries. His next surgeries were in March 2002, on Tina’s birthday, in April 2002 he had 3 surgeries, and in July 2002 he had two surgeries. In November 2002 Cody had a seizure with an unknown cause right before going to Children’s Hospital Philadelphia for a second opinion on his legs. After coming home from that appointment, Cody had an MRI of his hips and legs to see what structures were present on each leg. This MRI showed that Cody was missing his tibia and knee on both the left and right side. Mike and Tina’s choices were few – to leave him in a wheelchair with legs that would not function for him and wouldn’t even allow him to sit normally or to have the portion of his legs from the knees down amputated to give him the opportunity to walk with prostheses.
There is always the danger
Thursday, May 24, 2012
Living Proof
--George Lopez--
would not say anything is impossible...
Wednesday, May 23, 2012
This was very unexpected....
Nothing is guarnteed....
Tuesday, May 22, 2012
Never let life impede
Friday, May 04, 2012
MCSL-016 BLOCK 1->UNIT 4(2)
OBJECT BASED PROGRAMMING
Java Script is a very powerful object-based language, but not a full-blown OOP language.FUNCTIONS:
Functions are the central working units of javascript. Almost all the scripting code uses one or more functions to get the desired result. Functions are a convenient way for providing certain user defined functionality.Syntax of FUNCTION:
function funtionname(parameters/arguments)
{
Calling the FUNCTION:
We can call the function from any other place in our javascript code or say HTML document. After the function is executed, the control goes back to the next statement of calling function statement.Syntax for calling Function:
functionname(parameters/arguments(if any));
Arguments:
We can pass arguments to a function. These are variables, either numbers or strings, which are used inside the function.Returning a value:
Function can do is to return a value by using a return keyword.Example:
<html>
<head>
<script type="text/JavaScript">
function hello() //function without any arguments. This function shows an alert window on page.
{
alert("WELCOME TO PRUDRADEEP.BLOGSPOT.IN");
}
function product(a,b) // function with two arguments. This function returns the product of a and b.
{
return a*b; //This returns a*b or send the result back to the caller of function.
}
</script>
</head>
<body>
<script type="text/JavaScript">
hello(); //Hello Function callled.
product(5,6); //Product function called but on the page there is no result.
document.write(product(4,3)); //In this line we called the product function and passed the arguments in numbers. This line returns the result on Page.
</script>
</body>
</html>
BACK
To Be Continued.................
Please leave the comments... and give feedbacks...
MCSL-016 BLOCK 1->UNIT 3
+++Links...+++
+++++++++++
A links moves us from the current page to a destination that is specified in the HTML page.
URL stands for Universal Resource Locator.
Anchor Tag(<a>, </a>) : is used to create links between different objects like HTML pages, files, web sites, etc. href is the most common attribute of the ANCHOR tag. It defines the destination of the link.
Example:
<a href="http://www.google.co.in">GOOGLE.CO.IN</a>
For Email LINK:
<a href="mailto:emailid@domainname.com">send mail to</a>
++++++++
++LIST...++
++++++++
List are used when the data are to be mentioned in the form of points.
List are segerated into three types namely ORDERED list, UNORDERED list, and DEFINITION list
UNORDERED LIST: <UL>,</UL>
Sometimes these list are also called bulleted lists. These lists are characterized by list items that do not have numbers. They ar used when the points in the list have no particular order. It has the TYPE attribute through which we can be changed bullet appearance.
There are three types
1. "disc"
2. "square"
3. "circle"
Each point in the list is delimited by the <LI>, </LI> tags.
Example
<UL type = "DISC"> <!-- you have use only one type at a time. By default its type is DISC-->
<LI>PRADEEP</LI>
<LI>SHANKAR</LI>
<LI>SHARAN</LI>
</UL>
ORDERED LIST: <OL>, </OL>
Lists having numbered items are known as ordered lists. They are used when the items in the list have a natural order. It has the TYPE attribute through which we can be change the numbering format.
There are listed the types:
1. "1"
2. "i"
3. "I"
4. "a"
5. "A"
Each point in the list is delimited by the <LI>, </LI> tags.
Example
<OL type = "A"> <!-- you have use only one type at a time. By default its type is "1"-->
<LI>PRADEEP</LI>
<LI>SHANKAR</LI>
<LI>SHARAN</LI>
</OL>
DEFINITION LIST: <DL>, </DL>
Definition lists have a heading and the text appears below that.
Defintion headings specified by the <DT>, </DT>
Definition should be specified between <DD>, </DD>
Example:
<DL>
<DT>LIFE</DT>
<DD>LIFE BECOMES LIE WITHOUT FRIENDS......</DD>
</DL>
++++++++++
++TABLES..++
++++++++++
A table is simply a combination of rows and columns. Three tags form the essential ingredients for creating a table.
1.<TABLE>,</TABLE> => This is main tag. It tells the browser that a table follows. It has attributes like size, border, cellspacing, cellpadding, width, height.
2.<TR>, </TR> => It defines horizontal row that consists of Table Data cells.
3.<TD>,</TD> => It specifies an individual block or cell in a table row.
TR and TD has attributes like width, height, align, valign.
CELLSPACING :-> It determines the spacing between adjacent cells. Its default value is 2.
CELLPADDING:-> It determines the space between the border of the cell and the contents of the cell.
COLSPAN:-> Using this attribute we can MERGE the multiple columns into one column.
ROWSPAN:-> Using this attribute we can MERGE the multiple rows into one row.
Example:
<table border="0" cellspacing="2" cellpadding="2" width="100%" height="100%">
<tr align = "center" valign="center">
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr>
<td colspan = "2" align="center" valign="center"> colspan</td>
<td>notspaned</td>
</tr>
<tr>
<td rowspan = "2" align="center" valign="center">rowspaned</td>
<td>notspaned</td>
<td>notspaned</td>
</tr>
<tr align = "center" valign="center">
<td>a</td>
<td>b</td>
</tr>
</table>
+++++++++++
++FRAMES...++
+++++++++++
If we want to see the multiple HTML documents in a one HTML document side by side then we use the frames. For this there are only two major frame tags:
1. <FRAMESET> :-> It is a container tag. It has the COLS and ROWS attributes which specifies the division of page(How many frames shows on the page at a time in rows or cols depends on you).
2. <FRAME> :-> It's not a container tag. It has the SRC attribute which specifies the source file path to be displayed in that frame.
Exapmle:
<FRAMESET cols="50%,25%,25%"><!-- Make sure that the percentage total must be 100% -->
<FRAMESET rows="25%,62%,*"><!-- We can use * instead of a number. The * means whatever is left over-->
<FRAME SRC="URL">
<FRAME SRC="URL">
<FRAME SRC="URL">
</FRAMESET>
<FRAME SRC="URL">
<FRAME SRC="URL">
</FRAMESET>
<BODY>
<NOFRAMES>Oooops!!! Your browser does not handle frames!</NOFRAMES>
</BODY>
There is a NOFRAME tag, This tag is used for those browsers that are not able to interpret FRAME tags.
++++++++++
++FORMS..++
++++++++++
1. FORM Tag <FORM>,</FORM> :->
HTML forms are used to pass data to a server.
A form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.
2. INPUT Tag <INPUT> :-> The INPUT tag is used to indicate where user input is expected. It has different attributes, of which the TYPE attribute is used to specify the kind of input that is to be provided and the NAME attribute is used to specify the name of that INPUT. Default type is TEXT box.
FOR TEXT:
<input type="text" name="mytext" value="" size="10">
FOR PASSWORD:
<input type="password" name="mypass">
FOR RADIO BUTTON:
<input type="radio" name="gender" value="male" /> Male
<input type="radio" name="gender" value="female" /> Female
FOR CHECKBOX:
<input type="checkbox" name="vehicle" value="Bike" /> I have a bike
<input type="checkbox" name="vehicle" value="Car" /> I have a car
FOR PULL DOWN LIST: <SELECT>,</SELECT>
for this input type we have to use <SELECT> tag instead of <INPUT> tag.
for listing an items in the pull down list we have to use <OPTION>,</OPTION> tag
<select name="Alphabets">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
</select>
FOR BUTTONS:
<input type="button" name="mybutton" value="BUTTON">
FOR SUBMIT BUTTON: => This submits the all data from the form.
<input type="submit" name="submitbutton" value="SUBMIT">
<input type="reset" name="resetbutton" value="CLEAR">
TO BE CONTINUE.......
Thursday, May 03, 2012
MCSL-016 BLOCK 1->UNIT 4(1)
In the HTML document we can write the java script in the HEAD tag and also in the BODY tag, using SCRIPT tag.
Syntax of writing java script in HTML document...
Under Head tag
<HEAD>
<SCRIPT LANGUAGE = "JavaScript">
OR
<SCRIPT TYPE="text/JavaScript">
---------------------------------------
---------------------------------------
BODY OF THE JAVASCRIPT
---------------------------------------
---------------------------------------
</SCRIPT>
</HEAD>
OR
Under Body tag
<BODY>
<SCRIPT LANGUAGE = "JavaScript">
OR
<SCRIPT TYPE="text/JavaScript">
---------------------------------------;
---------------------------------------;
BODY OF THE JAVASCRIPT;
---------------------------------------;
---------------------------------------;
</SCRIPT>
</BODY>
NOW, Lets go to the JavaScript Tutorial.........
JAVA SCRIPT IS CASE SENSITIVE LANGUAGE.
Commenting in JavaScript
// Single line comment
/*Multiline
comment*/
Every Statement must be terminated by Semicolon( ; )
VARIABLES:
A variable declared within a JavaScript function becomes LOCAL and can only be accessed within that function. (the variable has local scope).
You can have local variables with the same name in different functions, because local variables are only recognized by the function in which they are declared.
Local variables are deleted as soon as the function is completed.
Global JavaScript Variables
Variables declared outside a function become GLOBAL, and all scripts and functions on the web page can access it.
Global variables are deleted when you close the page.
DATA TYPES:
STATEMENTS AND OPERATORS:
OPERATORS | FUNCTIONALITY |
---|---|
= | Assigning the value |
+= | Shortcut for Adding to the current value |
-= | Shortcut for Subtracting from the current value |
*= | Shortcut for Multiplying the current value |
/= | Shortcut for Dividing the current value |
OPERATORS | FUNCTIONALITY |
---|---|
== | Returns true value if the items are same |
!= | Returns true value if the items are not same |
> | Returns true if the item on the left is greater than the item on the right |
>= | Returns true if the item on the left is equal to or greater than the item on the right |
< | Returns true if the item on the left is less than the item on the right |
<= | Returns true if the item on the left is equal to or less than the item on the right |
OPERATORS | FUNCTIONALITY |
---|---|
+ | Add two values together |
- | Subtract one value from another |
* | Multiply two values |
/ | Divides the value on the left by the one on the right and returns the result |
++X | Increments the value, then return the value |
X++ | Returns the value, and then increments the value |
--X | Decrements the value, then return the value |
X-- | Returns the value, and then decrements the value |
OPERATORS | FUNCTIONALITY |
---|---|
&& | Looks at two expressions and returns a value of TRUE if the expressions on the left and right of the operators are both true |
|| | Looks at two expressions and returns a value of TRUE if either one --but not both-- of the expressions are true |
CONTROL STRUCTURES:
CONDITIONAL STATEMENTS:
Syntax for IF Statement:
if(condition)
{
-----------;
-----------;
Statements;
-----------;
-----------;
}
Syntax for IF-ELSE statement:
if(condition) { -----------; -----------; Statements; -----------; -----------; } else { if(condition) { -----------; -----------; Statements; -----------; -----------; } else { -----------; -----------; Statements; -----------; -----------; } } |
if(condition) { -----------; -----------; Statements; -----------; -----------; } else if(condition) { -----------; -----------; Statements; -----------; -----------; } |
if(condition) { -----------; -----------; Statements; -----------; -----------; } else if(condition) { -----------; -----------; Statements; -----------; -----------; } else { -----------; -----------; Statements; -----------; -----------; } |
Syntax for Switch Statement:
switch(myVar) //myVar value must be an integer or a character.
{
case 1:
-----------;
-----------;
Statements;
-----------;
-----------;
break;
case 2:
-----------;
-----------;
Statements;
-----------;
-----------;
break;
case 3:
| | |
| | |
| | |
default:
-----------;
-----------;
Statements;
-----------;
-----------;
break;
}
Examples:
var a = 10; if(a==10) { b="true"; } else { if(a == 5) { b="Other value"; } else { b = "false"; } } |
var a = 10; if(a==10) { b="true"; } else if(a == 5) { b="Other value"; } else { b = "false"; } |
3. For SWITCH statement:
switch(myVar) //myVar value must be an integer or a character.
{
case 1: //If myVar is 1 this is executed
-----------;
-----------;
Statements;
-----------;
-----------;
break;
case 2: //If myVar is 2 this is executed
-----------;
-----------;
Statements;
-----------;
-----------;
break;
default: //If myVar is does not satisfy any case
-----------;
-----------;
Statements;
-----------;
-----------;
break;
}
//Break is used here for getting out from the switch statement.
LOOP/ITERATION STATEMENTS:
Example:
for(var i=0; i<=5; i++)
{
alert(i); // Shows the 6 alert windows with the value of "i"...
}
increment/decrement-expression;
var i=0;
while(i<=5)
{
alert(i); // Shows the 6 alert windows with the value of "i"...
i++;
}
BREAK STATEMENT:
The break statement is used for terminating the current WHILE of FOR loop and then transferring program control to the statement just after the terminated loop.
Example:
for(var i=0; i<=5; i++)
{
alert(i);
if(i == 3) //Here, if the i is 3 then the loop is terminated from for loop.
{
break;
}
}
//This is show only 4 alert windows with the value of "i" on your browser
CONTINUE STATEMENT:
A continue statement terminate execution of the block of statements in a WHILE or FOR loop and continues execution of the loop with the next iteration.
Example:
for(var i=0; i<=5; i++)
{
if(i == 3 || i == 4) //Here, if the i is 3 or 4 then the loop is terminated for the next iteration.
{
continue;
}
alert(i);
}
//This is shows alert windows with the value of "i" except whenever "i" is 3 or 4 alert windows.
NEXT
To Be Continued.................
Please leave the comments... and give feedbacks...
Wednesday, May 02, 2012
MCSL-016 BLOCK 1->UNIT 2
++What is HTML?++
+++++++++++++
Ans:
1. HTML stands for Hypertext Markup Language.
2. It is not a PROGRAMMING language, It is a Markup Language.
3. It provides a way of displaying Web Pages.
4. HTML file must have htm or html extension.
5. HTML file is a Text fiel.
6. Its not a case sensitive language.
Example of HTML page
<!--COMMENT -- >
<html> <!-- HTML page begins with this tag-- >
<head><title>RUDRA-KSH</title></head> <!-- Contains info. about a page that will not appear on page itself-- >
<body></body> <!-- Contains all info. that appears on the page.-- >
</html> <!-- HTML page ends with this tag-- >
HTML pages are 2 types:
1. Static Pages
2. Dynamic Pages
+++++++++++++++++++++++
++++Basic Tags of HTML.....++++
+++++++++++++++++++++++
HTML TAG : <html> Opening tag, </html> closing tag -> It is necessary to write the code for an HTML page between these tags.
TITILE TAG: <title>,</title> -> This tag is written under the Head tag. This tag is used to display the document title on the top of BROWSER WINDOW.
BODY TAG: <body>, </body> -> All the content to be displayed on the web page has to be written within the these tags. It has the following attributes:
1. bgcolour -> for changing the background color of page, Bydefault its white.
2. background -> for specifyng the image to be displayed in the background of the page.
3. link -> indicates the color of the hyperlinks.
4. alink -> indicates the color of active hyperlinks.
5. vlink -> inidcates the color of visited hyperlinks.
6. text -> indicates the color of the text displayed on the page.
+++++++++++++++++++++
++Formating of the TEXT....++
+++++++++++++++++++ ++
HEADERS: Headers are used to specify the headings of sections or sub-sections in a document.
Header TAGS are as follows:
1. <h1> Heading 1</h1>
2. <h2> Heading 2</h2>
3. <h3> Heading 3</h3>
4. <h4> Heading 4</h4>
5. <h5> Heading 5</h5>
6. <h6> Heading 6</h6>
FormattingTags: These tags are used for formatting our text or say give a good look to text.
These Tags are as follows:
1. <B>, </B> || <STRONG>, </STRONG> =>These tags are used for display the text in BOLD face.
2. <I>, </I> || <EM>, </EM> || <ADDRESS>,</ADDRESS> || <CITE>, </CITE> =>These tags are used for display the text in ITALIC.
3. <U>, </U> => This tag is used for Underlining the text to be displayed
4. <P>, </P> =>This tag is use for displaying the text in the form of paragraph.
5. <BR> || <BR /> => This tag is used for insertin a lin break. It has not a closing tag.
6. <HR> || <HR /> => This tag is used for puts a horizontal line on page. It has not a closing tag.
7. <STRIKE>, </STRIKE> => This tag is used for marking a text with strikethrough.(CUTTED TEXT)
8. <TT>,</TT> => This tag is used for displaying text in a fixed width font similar to that of a typewriter.
9.<BLOCKQUOTE>, </BLOCKQUOTE> => This tag indents the left margin of text.
PRE TAG: <PRE>, </PRE>This tag is used to present the text exactly written in the code, including whitespace character.
FONT TAG: <FONT>,</FONT>=> This tag is used to change the characteristics of the font such as: size, color, etc. It has the following attributes:
1. face -> for change the font style. Its value should be given as the name of the desired font.
2. size -> for change the size of text. Font can be displayed in any 7 sizes:
=====> 1 for TINY
=====> 2 for SMALL
=====> 3 for REGULAR
=====> 4 for EXTRA MEDIUM
=====> 5 for LARGE
=====> 6 for REAL BIG
=====> 7 for LARGEST
3. colour -> With this attribute we can change the desired font colour. The values can be specified either in HEXADECIMAL(#RGB=> #000000 to #FFFFFF) format or name of the colour.
Example:
<font face="arial" size=5 colour="RED">
SPECIAL CHARACTERS: There are different character symbols to display the special characters in our HTML document. These are as follows: SC(Special Character), CS(Character Symbol)
SN SC CS
1. < <
2. > >
3. & &
4. " "
5. whitespace
++++++++++++++++++++++
++WORKING WITH IMAGES...++
++++++++++++++++++++++
We can insert/specifies the image on a page with the <IMG> tag. <IMG> tag can be used for displaying an image with the desired height and width.
It has the following attributes:
1. SRC -> This specifies the pathname to the source file that contains the image.
2.WIDTH -> for specifying the desired width of the image.
3. HEIGHT -> for specifying the desired height of the image.
4. BORDER -> It specifies the width of the border of the image. By default it is 0 i.e. there is no border.
5. ALT -> It gives the proper text to describe the image, when image is not loaded or not available or user turnedoff image loading.
Example:
<img src="image.jpeg" width=100 height=100 border=10 alt="image">
Please leave the comments... and give feedbacks...
Thursday, April 12, 2012
Pattern Program
1 232 34543 4567654 567898765
Soln:->
#include<stdio.h>
#include<conio.h> void main() { int n, c, d, num = 1, space;clrscr(); scanf("%d",&n); space = n - 1; for ( d = 1 ; d <= n ; d++ ) { num = d; for ( c = 1 ; c <= space ; c++ ) printf(" "); space--; for ( c = 1 ; c <= d ; c++ ) { printf("%d", num); num++; } num--; num--; for ( c = 1 ; c < d ; c++) { printf("%d", num); num--; } printf("\n"); } getch(); }
Monday, April 09, 2012
Easyt way to Installing PHP on windows with Apache, MySql and etc...
Sunday, April 01, 2012
Concatenate Two Strings without using strcat()
#include <conio.h>
#include <string.h>
void main()
{
char str1[30], str2[20];
int i, length=0, temp;
printf("Enter the First String: \n");
gets(str1);
printf("\nEnter the Second String: \n");
gets(str2);
for(i=0; str1[i]!='\0'; i++)
length++;
temp = length;
for(i=0; str2[i]!='\0'; i++)
{
str1[temp] = str2[i];
temp++;
}
str1[temp] = '\0';
printf("\nThe concatenated string is:\n");
puts(str1);
getch();
}
Check Whether a Character is a Vowel or not by using switch Statement
#include <conio.h>
void main()
{
char ch;
printf("\nEnter any character: ");
scanf("%c", &ch);
switch (ch)
{
case 'a':
case 'A':
printf("\n\n%c is a vowel", ch);
break;
case 'e':
case 'E':
printf("\n\n%c is a vowel", ch);
break;
case 'i':
case 'I':
printf("\n\n%c is a vowel", ch);
break;
case 'o':
case 'O':
printf("\n\n%c is a vowel", ch);
break;
case 'u':
case 'U':
printf("\n\n%c is a vowel", ch);
break;
default:
printf("\n\n%c is not a vowel", ch);
}
getch();
}
Add Two Matices
#include <conio.h>
void main()
{
int a[10][10], b[10][10], c[10][10], i, j, row, col;
printf("\nEnter number of rows and columns: ");
scanf("%d %d", &row, &col);
printf("\nEnter elements of Array A:\n");
for (i=0; i<row; i++)
for (j=0; j<col; j++)
scanf("%d", &a[i][j]);
printf("\nEnter elements of Array B:\n");
for (i=0; i<row; i++)
for (j=0; j<col; j++)
scanf("%d", &b[i][j]);
printf("\nElements of Matrix A:\n\n");
for (i=0; i<row; i++)
{
for (j=0; j<col; j++)
printf("\t%d", a[i][j]);
printf("\n\n");
}
printf("\nElements of Matrix B:\n\n");
for (i=0; i<row; i++)
{
for (j=0; j<col; j++)
printf("\t%d", b[i][j]);
printf("\n\n");
}
for (i=0; i<row; i++)
for (j=0; j<col; j++)
c[i][j] = a[i][j] + b[i][j];
printf("\nMatrix Addition is:\n\n");
for (i=0; i<row; i++)
{
for (j=0; j<col; j++)
printf("\t%d", c[i][j]);
printf("\n");
}
getch();
}
Monday, March 19, 2012
Exception error: Limit of jInternal Frames in NetBeans
YES there is a limit of jInternal frames i.e. 20
Means you can add only 20 jInternal Frames on a jDesktop Pane. If you exceed the limit
then you see an event error or Class defination not find like that error:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: college/COLLEGE
at college.Login.Login(Login.java:257)
at college.Login.jButton1ActionPerformed(Login.java:221)
at college.Login.access$200(Login.java:25)
at college.Login$3.actionPerformed(Login.java:112)
Sunday, March 18, 2012
Dont Play with these...
Sunday, March 11, 2012
Countdown timer for shutdown computer
Go to run in start menu and input this command
shutdown -s -t 3600
this will create a countdown timer which will go off in 3600 seconds (1 Hour). you can replace the 3600 to any time limit you want the comp to shutdown ,but remember the time should always be expressed in seconds i.e if u want the comp to shutdown in Half an hour you have to write 1800 and so on...
If you are as lazy as me and don't want to input the command each time, then create a batch file or shortcut
Batch:
open a notepad and type
shutdown -s -t 3600
now in the files menu select "save as" and save this file as Activate.bat
Just double clicking this file will activate your timer
Shortcut:
On the desktop right click and create a new shortcut. in the location type
shutdown -s -t 3600
Give it any name like "Activate timer"
Again, double clicking this newly created shortcut will do the same.
FORCING THE SHUTDOWN:
another operator that you can use with this command is -f . this will force a shutdown on system. suppose you want the comp to shutdown as quickly as possible you can give command
shutdown -s -f -t 00
here we have used a -f operator and the delay is set to 0 seconds.
(as we are talking about quick shutdown, u can use command
c:windowssystem32tsshutdn.exe 00 /POWERDOWN /DELAY:00 also)
STOPPING THE TIMER:
Any time when you want to stop the running timer use a -a operator(standing for abort)
the command is
shutdown -a
You can use it in any way u prefer, like direct input in run (or command prompt) , create a .bat file or create a shortcut on desktop
SOME OTHER OPTIONS:
shutdown -r (restarting)
shutdown -r -t 3600 (timer for restarting in 1 hour)
shutdown -r -f -t 00 (quick reboot)