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

Armless Pilot !

Fil-Am Jessica Cox was born without arms - but that didn't stop her from becoming a black belt, a scuba diver and the first ever armless PILOT!

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...

Your life is the greatest movie you can imagine. What will it be from today on? Action, drama, adventure, tragedy, comedy, horror or romance? It's YOUR script. YOU are the star! Do you have an awesome body, incredible health and energy, magical relationships, a spectacular career? Ok, how about a reflection you are really comfortable with, a healthy lifestyle physically, mentally, emotionally and spiritually, empowering friendships, and work you look forward to? Be whatever you want to be and be it with all your heart. Be playful, be outrageous, be unstoppable, be outstanding. Be daring, be brave, be spontaneous, be courageous. BE YOU! Start living from today, as the god/goddess that you are.

Limitations of Personal Fears

Imagine your fears as your most powerful, loving friends. Use your inner strength, to not be denied, for one day more, the happiness, love, inner peace and fulfillment you dream of. Remind yourself often that anything less is NOT AN OPTION! YOU choose your feelings, your friends, your job, your home, your clothes, your food, your pets, your hobbies. What do you choose your future to be? What will it cost you if you don't take action? Imagine the joy and fulfillment if you do! Are you ready to let go? It is NEVER too late. All fear, is the fear of loss. What do you really lose if you don't let go? Hang on to your past and let it be your future, or let go of yesterday and create a magnificent tomorrow. Become a leader, not a follower. Be different. MAKE a difference! Remember who you TRULY are inside. Imagine being who you really are with every sunrise and sunset. When would now, be a fantastic day to begin? Remember a time when you were really happy. Imagine waking up and feeling like that every day! It's YOUR choice. No one can do it for you. No one is stopping you. Only YOU.

If you want something badly enough, Nothing will stand in your way!

Do you remember a time when you desired something so badly and you decided there was absolutely no other option? DEFY anyone who tells you that you can't! Go for it, with courage and passionate commitment. If you have not received what you want, then change course, change direction! This does not mean give up. It means do whatever it takes to manifest your deepest desires. Different results happen by NOT REPEATING THE SAME ACTIONS AND REACTIONS. Consider for a moment, that maybe it is not time yet, something better will be given to you, it is not for your highest good, you are not ready or maybe you truly deep down inside, don't REALLY want what you think you do! Hmmmm ... Give yourself the gift of an hour or two, to sit down and DEFINE your life goals. Be a little child again, get into a mood of playfulness, imagine everything is possible and write! Write down everything you would love to do in life .... Swim with dolphins, climb a mountain, ride in a hotair balloon, take a safari, write a song, dive the Great Barrier Reef, explore the Amazon, lie on a beach in Hawaii, own a house, learn to play the piano, fly a plane, master kung fu, lose weight, become a great parent. When you're done, decide how soon you want to experience these wonderful things - 1year, 3 years, 5 years, 10 years. Then, create deep empowering, inspiring emotional reasons why they are important to you. Take IMMEDIATE steps towards making them reality. Procrastination and putting off your goals and dreams will cause dissapation and they will probably never be realised. KNOW your outcomes because if you don't, than who does? Oh yeah, and if you want to make God laugh, tell him/her your plans! The Universe has a great sense of humour. Humour is a very important key to life happiness. When was the last time you reeeally laughed? Consider that maybe life is a game, games are supposed to be fun and the winner ... is the one who laughs the most! Seeing humour in life events will help get you through soooo much. The journey of life on earth is only as serious as you decide it to be.

Your Thoughts and Beliefs Create Your Tommorrows.

Stop focusing on what you don't want and focus on what you DO want! You receive what you focus on and what you focus on expands. Live in the present moment and travel forward towards what you want. Leave the past behind you. LET IT GO!!! The future is in front of you. Live with focused intention, looking straight ahead, and let the Universe take care of the details. OK - Where do you want to go? What do you want to achieve? What do you wish to experience? Why do you wake up in the morning? What is the purpose of your life? Live in the present moment and ENJOY. Afterall, YOU are creating it!

Focus on what you want....

Dare to awaken and live as you dream! Everything is possible, if ... you believe. All the beliefs which you have today, are based on past experiences. As a child you formed subconscious beliefs which you carry into adulthood. These beliefs, more often then not, screw up your happiness. However, the past does not equal the future. Nothing in life has any meaning other than the meaning YOU give to it. You can change your life as fast as a heartbeat. All it takes is a decision. A conviction from your heart with passion, emotion and belief. With every decision, you shape and create your destiny.
" I can't change the direction of the wind, but I can adjust my sails to always reach my destination" - James Dean
Adjust your beliefs. Look into your childhood right now, and review all the events that impacted you and caused you pain. It was in these moments that you decided your future. Disempowering beliefs were formed such as: "I'm not good enough", "I don't deserve to be loved", "I have to take care of everyone", "I'm ugly", "I have to do everything myself", "I'm stupid".

Don't Lose your HOPE....

About This Story 
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.......

It is very important to generate a good attitude, a good heart, as much as possible. From this, happiness in both the short term and the long term for both yourself and others will come.

Everything is possible:


Friday, May 25, 2012

A story of Cody McCasland

Cody McCasland is not an ordinary child. He had to have his legs amputated below the knee when he was only 15 month old because of a rare condition called Sacral Agenesis. Some months later he got his first prosthetic legs and since then he can move almost like any other kid. ?e can not only walk, but run, swim, play soccer, golf, karate, ice hockey etc. But the boy grows fast, so he outgrows his prosthetic legs all the time and needs new. Now he is seven and during his life he had many surgeries because of his condition, but despite all of the problems Cody remains an amazing spirit.
In December 2001, Cody had his first appointment at Texas Scottish Rite Hospital for Children. Up to now, no one has given the family a diagnosis, although they have come up with their own by researching the symptoms on the Internet. Although the doctors will not confirm the diagnosis, they do tell the family that Cody will require multiple surgeries, one of which will be an amputation of his right leg through the knee. Cody had no knee or tibia on the right side. They were uncertain about the problems with the left leg and would have to wait to see how it developed, as he got a little older. The first surgery would be a hip surgery to his right hip, which was dislocated, followed by 3 months in a hip spica cast. None of the orthopedic surgeries could begin though, until all the necessary medical surgeries were completed.

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.




Bilateral amputation surgery was scheduled for January 2003. In December 2002, Cody caught RSV and again was in the hospital. He was released the day before Christmas, but this caused his surgery to be postponed until later in January. After Cody’s amputation, he was trying to stand on his stumps later that day. Mike and Tina were so impressed by how he continued to deal so well with being in a hospital environment and keep his always-cheery disposition. Cody never lets anything bring him down. Two months after Cody had his surgery he was fitted with his first prosthetics and walking with assistance! In August 2003, Cody again had a surgery, and subsequently, spent about 6 weeks in the hospital between August and November due to airway and respiratory concerns. Again, Tina stayed in the hospital away from Mike, and Mike worked, came to visit and relieve Tina, while trying to find time to sleep. Due to Cody’s continual illnesses that winter, Mike, Tina and Cody had to cancel their Christmas plans just a few days before Christmas and stay in Dallas. Since Cody had been born, they had not spent any holidays with Mike’s family in California, which was very difficult. Luckily, Tina’s mom and stepfather were there in Dallas for support and to spend the holidays with.


In June 2004, Cody was diagnosed with severe Osteopenia, putting him at an extremely high risk for a bone to break. Cody had to spend three days as an outpatient, every four months, getting infusion therapy to help re-generate his bones. He did this for a year and a half, and is now in re-mission. Besides all of the above surgeries, Cody has also needed “regular kid” procedures such as tubes in his ears and gall bladder removal. Through all of this, Cody has had the opportunity to participate in horseback riding, gymnastics, t-ball, soccer, swimming, running, golf, flying a plane, and many other adventures. Cody’s limitless attitude will get him far in life and help him to reach his goals. Cody now has three different sets of prostheses. One set he uses for everyday walking, another, stubbies, for playing low on the ground with his friends, and a third, running prostheses, he uses for his athletic endeavors. Cody is currently in 1st grade. He swims, plays sled hockey, runs and plays the piano. His hope is to one day represent the United States of America in the Olympics or Paralympics, as well as to run a marathon, and complete a triathlon. Cody competed this past summer at the University of Central Oklahoma Endeavor Games in the 60 meter and 100 meter races, earning gold medals in each event for his classification, as well as swam the 25 meter freestyle and backstroke, again winning gold for his age and classification. In October, Team Cody will be going to the San Diego Triathlon Challenge. Cody will be running in the kid’s fun run, as well as running a portion of the 13.1 miles for our triathlon team. This December, Cody completed the last mile for Team Cody in the Dallas White Rock Marathon.
Cody is active in the community by speaking with others about his limb difference and promoting Texas Scottish Rite Hospital for Children and Challenged Athletes Foundation. His hope is that through his public appearances he will raise awareness of the abilities of children with limb differences, and raise funds to support programs that help Cody to reach his goals. This is just a little of Cody’s amazing story. There is so much more to it. It continues on a regular basis with the family having to endure multiple doctor’s appointments and treatments to make Cody as independent as possible. Through it all, Cody remains an amazing spirit!

There is always the danger

There is always the danger that we may just do the work for the sake of the work. This is where the respect and the love and the devotion come in - that we do it to God, to Christ, and that's why we try to do it as beautifully as possible.

Thursday, May 24, 2012

Everything is possible:


Everything is possible:


Everything is possible:


Living Proof

I grew up with nothing and nobody ever told me I could do anything. I never knew my father, and my mother wasnt the best, most stable person. My grandparents raised me, and my grandmother never really connected with me. I just had a home. So I was kind of left to my own self. When I found out that nobody had ever graduated from high school in our family, I wanted to be the first one to graduate. By the time I was 11, I wanted to be a comedian. So all those years later, Ive managed to achieve my dream as a kid, and it wasnt easy. Im on the Walk of Fame and Im one of the 25 most influential Hispanics in America, according to Time Magazine. I think my duty is to go back and tell kids, Whatever color you are, wherever you come from, anything and everything is possible. And Im living proof.

--George Lopez--

would not say anything is impossible...

I wouldnt say anything is impossible. I think that everything is possible as long as you put your mind to it and put the work and time into it.

Wednesday, May 23, 2012

This was very unexpected....

This was very unexpected. Everything is possible. Nothing is impossible.

Nothing is guarnteed....

Nothing is guaranteed, and everything is possible. The script of your life isn’t written until you do it yourself.

Tuesday, May 22, 2012

Never let life impede

Never let life impede on your ability to manifest your dreams. Dig deeper into your dreams and deeper into yourself and believe that anything is possible, and make it happen.

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)

{
       
      - - - - - - - - - - - - - -;
      - - - - - - - - - - - - - -; 
            Statements;
      - - - - - - - - - - - - - -; 
      - - - - - - - - - - - - - -;
}

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)

Before starting the Java Script Tutorial, Let us see the how add the JAVA SCRIPT in the HTML document../

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:

Variables store and retrieve data/values. A variable can refer to a value, which changes or is changed. For declaring a variable there are some rules are as follows:

1. Variable should be start with the letter, Underscore"_", Dollar($).
2. Variable should be unique in his own scope(about scope we can read later).
3. Variable must not contain any blank space and special characters except underscore"_".
4. Subsequent digits can also be digits (0-9).

We can declare JavaScript variables with the var keyword:

Example:

var a; //single variable declaration.
var _a; 
var $a;
var a90, a_bc, $r; // Multiple variables declaration.

Assigning value to variables:

var a = 90;
    OR
var a;
a = 90;

Now Scope of variable:

Local JavaScript 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:

Java Script considers data to fall into several possible types. Depending on the type of data certain operations may or may not be allowed on the values. Variables can be of these types:

1. NUMBER :-> Integer(can be expressed in Decimal, Hexadecimal(leading with 0x/0X), Octal(leading with 0)) and Floating-point numbers
2. BOOLEAN :-> True or False
3. STRING :-> Strings are delineated by single(') or double(") quotation marks.


STATEMENTS AND OPERATORS:

Assignment 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

Comparision Operators
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

Arithmetic or Computational Operators
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

Logical Operators
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:

JavaScript supports the usual control structures:
1. The Conditional :-> If, If-else, and switch.
2. The Iterations/Loop :-> For, While, Do-While, Break, Continue.


CONDITIONAL STATEMENTS:

When we want to perform different actions for different decisions, then we used Conditional Statements.

In JavaScript we have three Conditional Statements:

1. IF :-> we use this statement if we want to execute a set of code when a condition is true.
2. IF-ELSE :-> we use this statement if we want to select one of two sets of code to execute.
3. SWITCH :-> we use this statement if we want to select one of many sets of code to execute.

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:


1. For IF statement: 

var a=10;
if(a==10)
{
    b="true";
}
else
{
     b="false";
}

2. For IF-ELSE statement:
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:

A loop is a set of commands that executes repeatedly until a specified condition is met/TRUE. Java script supports two loop statements: FOR and WHILE.


FOR LOOP:

A for loop repeats until a specified condition evaluates to false.

Syntax for FOR loop:

for(initial-expression; condition; increment/decrement-expression) 
{
      - - - - - - - - - - - - - -;
      - - - - - - - - - - - - - -; 
            Statements;
      - - - - - - - - - - - - - -; 
      - - - - - - - - - - - - - -; 

}

Example:


for(var i=0; i<=5; i++)

{
    alert(i); // Shows the 6 alert windows with the value of "i"...
}

WHILE LOOP:
The while statement defines a loop that iterates as long as a condition remains true.

Syntax for WHILE loop:

initial-expression;
while(condition)
{
   
      - - - - - - - - - - - - - -;
      - - - - - - - - - - - - - -; 
            Statements;
      - - - - - - - - - - - - - -; 
      - - - - - - - - - - - - - -;
     increment/decrement-expression;
 }

Example:


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. < &lt;

2. > &gt;

3. & &amp;

4. " &quot;

5. whitespace &nbsp;



++++++++++++++++++++++

++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

Print this Patteren

        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...

My self Pradeep Kumar, I am here talking about PHP on windows in an Easy way...
So, Now lets start...

You need to download a XAMPP from here...
On that page you findout there are XAMPP for many types of OS...
Choose Your Operating System.
Now Click on XAMPP under Download Label:
Here You find 3 files...
1. Installer
2.Zip
3.7Zip... Donwload any file from them..

Now, If you download the Installer version of XAMPP, then open it and Installing start.....

If you download the Zip or 7Zip version of XAMPP, then extract it with the help o f any extractor to any location which you want..

that's It. You successfully Installed XAMPP a group of PHP, Appache, MySql, and other services...


You can view this on You tube. Click here for view the video.


Thnx for Reading This....

For any query Please Leave Comments!!!!!! 

Bye......

Sunday, April 01, 2012

Concatenate Two Strings without using strcat()

#include <stdio.h>
#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 <stdio.h>
#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 <stdio.h>
#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

There is a limit of jInternal frames on a jDesktopPane?
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...

Dont Play with IMOTIONS, TRUST, and FEELINGS of other PERSON........................​...

Sunday, March 11, 2012

Countdown timer for shutdown computer

Many a times people like to sleep on music, but the problem is that the comp will continue running the whole night. Here is how you can create a countdown timer to shutdown your comp in your specified time.

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)

Monday, March 05, 2012

MCSL- 016 Assignment IGNOU 2012

This is not complete in a manner Please Complete it with Your Self. Thank You!!!!


Question 1
<html>
<frameset cols = "40%,15%,15%,15%,15%">
<frameset rows = "20%,80%">
<frame src = "">
<frame src = "">
</frameset>
<frame src = "">
<frame src = "">
<frameset rows = "20%,80%">
<frame src = "">
<frame src = "">
</frameset>
<frame src = "">
</frameset>
</html>


Question 2

<html>
<head>
<title>
GIVE FROM OWNSIDE
</title>
</head>
<body>
<form name="Tick">
 <input type="text" size="11" name="Clock">
</form>
<script type ="text/javascript">
function show(){
 var Digital=new Date()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 var seconds=Digital.getSeconds()
 var dn="AM"
 if (hours>12){
 dn="PM"
 hours=hours-12
 }
 if (hours==0)
 hours=12
 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
 document.Tick.Clock.value=hours+":"+minutes+":"
 +seconds+" "+dn
 setTimeout("show()",1000)
 }
 show()
</script>
</body>
</html> 


Question 3
<html>
 <head>
 <title>
 ROLLOVER EFFECT
 </title>
 </head>
 <body>
 <img name = "image" src = "1.png" onmouseover = "overfunction()" onmouseout = "outfunction()">
 <script type="text/vbscript">
 function overfunction()
 document.image.src = "2.png"
 end function
 function outfunction()
document.image.src = "1.png"
 end function
 </script>
 </body>
 </html>


Question 4

<html>
<head>
<title>
GIVE FROM OWNSIDE
</title>
</head>
<body>
<table border = "2" cellpadding = "10", cellspacing = "5" bgcolor = " GIVE FROM OWNSIDE">
<caption> STATUS GIVE FROM OWNSIDE</caption>
<tr>
<th>Train No.</th>
<th>Starting From</th>
<th>Destination</th>
<th>Departure Time</th>
<th>Arrival Time</th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
Note: Fill <td>anything you want </td> with the data


Question  5

<html>
 <head>
 <title>My Page</title>
 </head>
 <body>
 <form name="Tick">
 <input type="text" size="11" name="Clock">
</form>
<script type ="text/javascript">
function show(){
 var Digital=new Date()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 var seconds=Digital.getSeconds()
 var dn="AM"
 if (hours>12){
 dn="PM"
 hours=hours-12
 }
 if (hours==0)
 hours=12
 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
 document.Tick.Clock.value=hours+":"+minutes+":"
 +seconds+" "+dn
 setTimeout("show()",1000)
 }
 show()
</script>
<FORM NAME="nav"><DIV>
<SELECT NAME="SelectURL" onChange=
"document.location.href=
document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value">
<OPTION VALUE="home.html"
SELECTED>Please select an item:
<OPTION VALUE="forms/">
Main page on HTML forms
<OPTION VALUE="choices.html">
Choices in HTML forms
<OPTION VALUE="tables.html">
Tables and forms
<OPTION VALUE="methods.html">
Form submission methods (GET and POST)
</SELECT><DIV>
</FORM>

<table border = "2" cellpadding = "10" cellspacing = "5">
<tr>
<td><h3>IMAGEs</h3>
<td><img src = "1.png">
<td><img src = "2.png">
</tr>
<tr>
<td><h3>AUDIO</h3>
<td colspan = "2"><audio controls="controls" height="50px" width="500px">
   <source src="song.mp3" type="audio/mpeg" />
   <source src="song.ogg" type="audio/ogg" />
 <embed height="50px" width="500px" src="song.mp3" />
 </audio>
</tr>
<tr>
<td><h3>ANIMATION</h3>
<td colspan = "2"><object type="application/x-shockwave-flash" data="ani.swf" height = "100" width = "500px">
                                                                                <param name="movie" value="ani.swf" />
                                                                </object>
</tr>
</table>
 </body>
 </html>

IF You have any problem than leave comment!!!!!!!!!