<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>How To Do Everything &#124; How To Tutorials</title>
	<atom:link href="http://howtoideas.net/feed" rel="self" type="application/rss+xml" />
	<link>http://howtoideas.net</link>
	<description>How To Ideas</description>
	<lastBuildDate>Wed, 25 Apr 2012 21:22:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to enable/disable Bluetooth programmatically in Android</title>
		<link>http://howtoideas.net/enabledisable-bluetooth-programmatically-android</link>
		<comments>http://howtoideas.net/enabledisable-bluetooth-programmatically-android#comments</comments>
		<pubDate>Wed, 25 Apr 2012 21:01:01 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[enable]]></category>
		<category><![CDATA[Programmatically]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3437</guid>
		<description><![CDATA[In this tutorial, I will show you a simple but very useful example to switch on/off the bluetooth of your Android phone programmatically. You can do this by either calling the system intent for the same or directly from your application. In this application, I will cover only the second part. The application will be having a TextView to show the current status of Bluetooth and a ToggleButton to toggle... <span class="meta-more"><a href="http://howtoideas.net/enabledisable-bluetooth-programmatically-android">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p>In this tutorial, I will show you a simple but very useful example to switch on/off the bluetooth of your Android phone programmatically. You can do this by either calling the system intent for the same or directly from your application. In this application, I will cover only the second part.</p>
<p>The application will be having a TextView to show the current status of Bluetooth and a ToggleButton to toggle the status of Bluetooth.<br />
<span style="text-decoration: underline;"><strong>Algorithm</strong></span>:</p>
<ol>
<li>Check if the Bluetooth is available in the phone or not. If yes, move to next step, otherwise just disable the toggle button and display the message about unavailability of Bluetooth.</li>
<li>Check if the Bluetooth is on or not, if yes, change the status of toggle button to on otherwise change it to off and display the message in text view.</li>
<li>Listen for the click event on toggle button, and switch on/off the Bluetooth as desired by user.</li>
<li>Display the message on every status change.</li>
</ol>
<p><span style="text-decoration: underline;"><strong>Instructions:</strong></span></p>
<ol>
<li>You need to import following packages to your java code file.
<pre name="code" class="java">import android.bluetooth.BluetoothAdapter;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.ToggleButton;</pre>
</li>
<li>You will need to have instances of <code>TextView</code> and <code>ToggleButton</code> classes to programmatically access <code>TextView</code> and <code>ToggleButton</code> of your application. So, declare instances of these two classes in your class
<pre name="code" class="java">private TextView tv;
private ToggleButton tb;</pre>
</li>
<li>In the <code>onCreate</code> method of your class, first of all instantiate the <code>TextView</code> and <code>ToggleButton</code> by using ids of the same from layout file which are <code>bluetoothText</code> and <code>toggleButton</code> in my case.
<pre name="code" class="java">tv = (TextView) findViewById(R.id.bluetoothText);
tb = (ToggleButton) findViewById(R.id.toggleButton);</pre>
</li>
<li>Now create a <code>final</code> instance of <code>BluetoothAdapter</code> class and instantiate it with the default Bluetooth adapter of your device. After that check if the device contains a bluetooth adapter or not by checking whether the <code>BluetoothAdapter</code> instance we just created is <code>null</code> or not. If Bluetooth is present then check whether it is enabled or not and display equivalent message in <code>TextView</code> and <code>ToggleButton</code>.
<pre name="code" class="java">final BluetoothAdapter bta = BluetoothAdapter.getDefaultAdapter();
if (bta == null) {
    tv.setText("Device does not support Bluetooth");
}
else if(bta.isEnabled()){
    tv.setText("Bluetooth is enabled");
    tb.setChecked(true);
}
else{
    tv.setText("Bluetooth is disabled");
    tb.setChecked(false);
}</pre>
</li>
<li>We declared the <code>BluetoothAdapter</code> instance as <code>final</code> because I am going to use this object in an <code>inner class</code> in following point.</li>
<li>Now using <code>setOnClickListener</code> method on <code>ToggleButton</code> create an inner class with a overrided <code>onClick</code> method of <code>View</code> interface. In that method, check if currently Bluetooth is on or not, if yes, then disable it using <code>disable()</code> method of <code>BluetoothAdapter</code> class, otherwise enable it using <code>enable()</code> method of <code>BluetoothAdapter</code> class. Also display the current status of Bluetooth in <code>TextView</code>.
<pre name="code" class="java">tb.setOnClickListener(new View.OnClickListener() {
    public void onClick(View v) {
        if(bta.isEnabled()){
            bta.disable();
            tv.setText("Bluetooth is disabled");
        }
        else{
            bta.enable();
            tv.setText("Bluetooth is enabled");
        }
    }
});</pre>
</li>
<li>Here are some screenshots which shows the output and current status of Bluetooth in the application.
<div id="attachment_3440" class="wp-caption aligncenter" style="width: 317px"><a href="http://howtoideas.net/enabledisable-bluetooth-programmatically-android/bluetooth-unavailable" rel="attachment wp-att-3440"><img class=" wp-image-3440 " title="Bluetooth Unavailable" src="http://howtoideas.net/wp-content/uploads/2012/04/Bluetooth-Unavailable.png" alt="Bluetooth Unavailable" width="307" height="122" /></a><p class="wp-caption-text">Bluetooth Unavailable</p></div>
<div id="attachment_3438" class="wp-caption aligncenter" style="width: 330px"><a href="http://howtoideas.net/enabledisable-bluetooth-programmatically-android/screenshot_2012-04-26_0117" rel="attachment wp-att-3438"><img class="size-full wp-image-3438" title="Bluetooth Disabled" src="http://howtoideas.net/wp-content/uploads/2012/04/screenshot_2012-04-26_0117.png" alt="Bluetooth Disabled" width="320" height="126" /></a><p class="wp-caption-text">Bluetooth Disabled</p></div>
<p><div id="attachment_3439" class="wp-caption aligncenter" style="width: 330px"><a href="http://howtoideas.net/enabledisable-bluetooth-programmatically-android/screenshot_2012-04-26_0117_1" rel="attachment wp-att-3439"><img class="size-full wp-image-3439" title="Bluetooth Enabled" src="http://howtoideas.net/wp-content/uploads/2012/04/screenshot_2012-04-26_0117_1.png" alt="Bluetooth Enabled" width="320" height="123" /></a><p class="wp-caption-text">Bluetooth Enabled</p></div></li>
</ol>
<p>Reference : <a title="BluetoothAdapter Class - Android" href="http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html" target="_blank">BluetoothAdapter</a></p>
<p>You can download the Android project from <a title="Download Android Project for Bluetooth Switching" href="http://howtoideas.net/wp-content/uploads/Android/SwitchBluetooth.rar">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/enabledisable-bluetooth-programmatically-android/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create new Friend List in Facebook</title>
		<link>http://howtoideas.net/create-friend-list-facebook</link>
		<comments>http://howtoideas.net/create-friend-list-facebook#comments</comments>
		<pubDate>Thu, 05 Apr 2012 21:56:37 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Friend List]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[new friend list]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3421</guid>
		<description><![CDATA[Facebook provides two types of Friend List Smart Lists These are the lists that update automatically based on your info which you have in common with your friends, like a college, job, etc. So, if your from a particular city and one of your friend changes its city to yours, then he/she will automatically updated to the smart list based on your city. Custom Lists You can also create Friend... <span class="meta-more"><a href="http://howtoideas.net/create-friend-list-facebook">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p><strong>Facebook</strong> provides two types of <strong>Friend List</strong></p>
<ol>
<li><strong>Smart Lists</strong><br />
These are the lists that update automatically based on your info which you have in common with your friends, like a college, job, etc. So, if your from a particular city and one of your friend changes its city to yours, then he/she will automatically updated to the smart list based on your city.</li>
<li><strong>Custom Lists</strong><br />
You can also create Friend List based on your custom criteria and you have the choice to select which friends goes into that list.</li>
</ol>
<p>You can find more information about Friend Lists over <a href="http://www.google.co.in/url?sa=t&amp;rct=j&amp;q=friend+list+facebook&amp;source=web&amp;cd=1&amp;ved=0CC4QFjAA&amp;url=http%3A%2F%2Fwww.facebook.com%2Fhelp%2F%3Fpage%3D175076589213424&amp;ei=YRV-T8jeCpHxrQfpgN2QDg&amp;usg=AFQjCNFPrz0yfRJyDhIoMNvscRLj1YrgdQ&amp;cad=rja" target="_blank">here</a>.</p>
<p>You can create custom <strong>Friend List</strong> in <strong>Facebook</strong> to organize your friends based on a particular criteria like your class, school/ college, job, etc. When you select any friend in a Custom Friend list, he won&#8217;t get notified about that. And best feature of these lists is that you can apply different privacy restrictions on every <strong>Friend List</strong>.</p>
<p><span style="text-decoration: underline;"><strong>Instructions:</strong></span></p>
<ol>
<li>Log into your <strong>Facebook</strong> account and then on your <strong>Home page</strong>, click on the <strong>MORE</strong> link for <strong>Friends</strong> section in left sidebar below to the <strong>Groups</strong>section.
<p><div id="attachment_3427" class="wp-caption aligncenter" style="width: 225px"><a href="http://howtoideas.net/create-friend-list-facebook/more-option-friend-list-2" rel="attachment wp-att-3427"><img class="size-full wp-image-3427" title="More option - Friend List" src="http://howtoideas.net/wp-content/uploads/2012/04/More-option-Friend-List1.png" alt="More option - Friend List" width="215" height="94" /></a><p class="wp-caption-text">More option - Friend List</p></div></li>
<li>Now in the next page, click on the <strong>+ Create List</strong>button at the top of page as shown in the following image.
<p><div id="attachment_3426" class="wp-caption aligncenter" style="width: 529px"><a href="http://howtoideas.net/create-friend-list-facebook/new-list-friend-list" rel="attachment wp-att-3426"><img class="size-full wp-image-3426" title="New List - Friend List" src="http://howtoideas.net/wp-content/uploads/2012/04/New-List-Friend-List.png" alt="New List - Friend List" width="519" height="229" /></a><p class="wp-caption-text">New List - Friend List</p></div></li>
<li>In the <strong>Create New List</strong> dialogue, enter the name of your list and you can also select Friends by typing their name in the <strong>Members</strong> box as shown in the following image. When finished, click the <strong>Create</strong>button to create list.
<p><div id="attachment_3424" class="wp-caption aligncenter" style="width: 474px"><a href="http://howtoideas.net/create-friend-list-facebook/create-list-friend-list" rel="attachment wp-att-3424"><img class="size-full wp-image-3424" title="Create List - Friend List" src="http://howtoideas.net/wp-content/uploads/2012/04/Create-List-Friend-List.png" alt="Create List - Friend List" width="464" height="324" /></a><p class="wp-caption-text">Create List - Friend List</p></div></li>
<li>It will open your new <strong>Friend List</strong> page. You can also add <strong>Friends</strong> or <strong>Facebook Pages</strong> to <strong>Friend List</strong>as shown in the following image.
<p><div id="attachment_3423" class="wp-caption aligncenter" style="width: 265px"><a href="http://howtoideas.net/create-friend-list-facebook/adding-members-friend-list" rel="attachment wp-att-3423"><img class="size-full wp-image-3423" title="Adding Members - Friend List" src="http://howtoideas.net/wp-content/uploads/2012/04/Adding-Members-Friend-List.png" alt="Adding Members - Friend List" width="255" height="216" /></a><p class="wp-caption-text">Adding Members - Friend List</p></div></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/create-friend-list-facebook/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove Search Bar from Firefox</title>
		<link>http://howtoideas.net/remove-search-bar-firefox</link>
		<comments>http://howtoideas.net/remove-search-bar-firefox#comments</comments>
		<pubDate>Sun, 22 Jan 2012 14:25:45 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Add New Toolbar]]></category>
		<category><![CDATA[Address Bar]]></category>
		<category><![CDATA[Customize Toolbar]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox 9]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[Options Toolbar Layout]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[Search Bar]]></category>
		<category><![CDATA[search box]]></category>
		<category><![CDATA[toolbar]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3401</guid>
		<description><![CDATA[Firefox provides you the functionality to search on almost all the major search engines either by entering your query in the Address Bar directly or by entering your query in the Search Bar provided next to Address Bar. As both of these provide similar functionality, so if any time you decide to remove the Search Bar to get more space for Address Bar, then this tutorial might help you with... <span class="meta-more"><a href="http://howtoideas.net/remove-search-bar-firefox">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p><strong>Firefox </strong>provides you the functionality to search on almost all the major search engines either by entering your query in the <strong>Address Bar </strong>directly or by entering your query in the <strong>Search Bar </strong>provided next to <strong>Address Bar</strong>. As both of these provide similar functionality, so if any time you decide to remove the <strong>Search Bar </strong>to get more space for <strong>Address Bar</strong>, then this tutorial might help you with that.</p>
<p>Following instructions will work perfectly on Firefox 4.0 and above and these are successfully tested on Firefox 9.0.1</p>
<p><strong><span style="text-decoration: underline;">Instructions:</span></strong></p>
<ol>
<li>Click on the dark orange <strong>Firefox </strong>button on the top-left corner of <strong>Firefox </strong>window and then select <strong>Options –</strong>&gt; <strong>Toolbar Layout</strong>.
<p><div class="wp-caption aligncenter" style="width: 414px"><a href="http://howtoideas.net/wp-content/uploads/2012/01/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0pt none;" title="Open Toolbar Layout" src="http://howtoideas.net/wp-content/uploads/2012/01/image_thumb.png" alt="Open Toolbar Layout" width="404" height="248" border="0" /></a><p class="wp-caption-text">Open Toolbar Layout</p></div></li>
<li>It will open <strong>Customize Toolbar</strong>dialogue as shown in following image. As long as this dialogue is open, you can re-arrange your toolbar as you wish by just dragging particular icons and bars.
<p><div class="wp-caption aligncenter" style="width: 414px"><a href="http://howtoideas.net/wp-content/uploads/2012/01/image1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0pt none;" title="Customize Toolbar" src="http://howtoideas.net/wp-content/uploads/2012/01/image_thumb1.png" alt="Customize Toolbar" width="404" height="357" border="0" /></a><p class="wp-caption-text">Customize Toolbar Dialogue</p></div></li>
<li><strong>Removing Search Bar (Method 1):</strong>
<ul>
<li>As we want to permanently remove Search Bar, for that create a new toolbar by clicking <strong>Add New Toolbar </strong>button. Give it any name you want. Toolbar will appear on the Firefox window. For now this toolbar doesn’t have anything in it, so it is showing an empty space.
<p><div class="wp-caption aligncenter" style="width: 254px"><a href="http://howtoideas.net/wp-content/uploads/2012/01/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0pt none;" title="New Toolbar" src="http://howtoideas.net/wp-content/uploads/2012/01/image_thumb2.png" alt="New Toolbar" width="244" height="105" border="0" /></a><p class="wp-caption-text">New Toolbar</p></div></li>
<li>To remove <strong>Search Bar</strong>, click and drag the Search Bar to this new toolbar.
<p><div class="wp-caption aligncenter" style="width: 437px"><a href="http://howtoideas.net/wp-content/uploads/2012/01/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0pt none;" title="Drag to Remove Search Bar" src="http://howtoideas.net/wp-content/uploads/2012/01/image_thumb3.png" alt="Drag to Remove Search Bar" width="427" height="302" border="0" /></a><p class="wp-caption-text">Drag to Remove Search Bar</p></div></li>
<li>It will remove the <strong>Search Bar</strong> from the main toolbar and <strong>Address Bar</strong> will expand to cover the whole space.</li>
<li>Now right-click on the <strong>Firefox</strong>toolbar and then un-check the newly created toolbar i.e. SearchBar.
<p><div class="wp-caption aligncenter" style="width: 254px"><a href="http://howtoideas.net/wp-content/uploads/2012/01/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; padding-top: 0px; border: 0pt none;" title="Remove New Toolbar" src="http://howtoideas.net/wp-content/uploads/2012/01/image_thumb4.png" alt="Remove New Toolbar" width="244" height="181" border="0" /></a><p class="wp-caption-text">Remove New Toolbar</p></div></li>
</ul>
</li>
<li><strong>Removing Search Bar (Method 2):</strong></li>
<ul>
<li>This is an easy method. For this, just drag and drop the Search Bar to the <strong>Customize Toolbar Dialogue</strong>. It will remove Search Bar from your toolbar as desired.
<p><div id="attachment_3409" class="wp-caption aligncenter" style="width: 437px"><a href="http://howtoideas.net/remove-search-bar-firefox/drag-search-bar-to-customize-toolbar" rel="attachment wp-att-3409"><img class=" wp-image-3409 " title="Drag Search Bar to Customize Toolbar" src="http://howtoideas.net/wp-content/uploads/2012/01/Drag-Search-Bar-to-Customize-Toolbar.png" alt="Drag Search Bar to Customize Toolbar" width="427" height="372" /></a><p class="wp-caption-text">Drag Search Bar to Customize Toolbar</p></div></li>
</ul>
<li>Close the <strong>Customize Toolbar</strong> dialogue and <strong>Search Bar</strong> is gone from your <strong>Firefox</strong>.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/remove-search-bar-firefox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Perform Linear Search using C Language</title>
		<link>http://howtoideas.net/perform-linear-search-language</link>
		<comments>http://howtoideas.net/perform-linear-search-language#comments</comments>
		<pubDate>Mon, 16 Jan 2012 21:36:14 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[C Language]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[find nth element]]></category>
		<category><![CDATA[Linear Search]]></category>
		<category><![CDATA[linear search using C]]></category>
		<category><![CDATA[perform linear search]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3377</guid>
		<description><![CDATA[Consider you have an array of 10 numbers and you want to find out position of a particular number. Linear Search can help you with that and it is one of the best criteria to search when you have un-ordered list of number. Linear Search is a method for finding a particular in an array or list, which consists of checking every element of that array, one at a time... <span class="meta-more"><a href="http://howtoideas.net/perform-linear-search-language">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p>Consider you have an array of 10 numbers and you want to find out position of a particular number. <strong>Linear Search</strong> can help you with that and it is one of the best criteria to search when you have un-ordered list of number.</p>
<p><strong>Linear Search</strong> is a method for finding a particular in an array or list, which consists of checking every element of that array, one at a time and in sequence, until the desired value is found. In this tutorial, I will show you how to implement <strong>Linear Search</strong> using C language to search for a particular number in a list of n numbers (in my case n can have any positive value less than 9).</p>
<p><span style="text-decoration: underline;"><strong>Algorithm:</strong></span></p>
<ol>
<li>Let we have an array of 10 elements in variable <code>array</code> and every element can be accessed using <code>array[0], array[1], . . ., array[9]</code>. i.e. size of array is 10 and index is starting from 0 (not 1).</li>
<li>Let we have to find value stored in variable <code>num</code> and <code>temp</code> is a temporary variable which will be used for iteration purpose.</li>
<li>Initialize <code>temp</code> with 0.</li>
<li>Check whether value of <code>temp</code> is less than size of array or not. If yes, continue to next step, otherwise go to step 7.</li>
<li>Now check whether <code>array[temp]</code> is equal to <code>num</code> or not. If yes, go to step number 7, otherwise continue to next step.</li>
<li>Increment value of variable <code>temp</code> by 1 and move to 4th step.</li>
<li>Check if value of temporary variable is equal to size of array. If yes, then no match is found and move to step 9, otherwise move to next step.</li>
<li>Match is found at index <code>temp</code> or at position <code>temp + 1</code>. i.e. <code>array[temp + 1] == num</code>.</li>
<li>Exit the program.</li>
</ol>
<p><span style="text-decoration: underline;"><strong>Instructions:</strong></span></p>
<ol>
<li>For this program, we need only a single header file which is mentioned below.
<pre name="code" class="c">#include &lt;stdio.h&gt;</pre>
</li>
<li>In function <code>main</code> declare an array of 10 numbers, a temporary variable <code>temp</code> for iteration purpose, <code>num</code> variable for storing the value to be found and <code>size</code> variable which will be used to store size of the array. Now ask user to enter size of the array and then ask him/her to enter all the number for the array.
<pre name="code" class="c">int array[10], size, num, temp;
printf("Enter size of array : ");
scanf("%d", &amp;size);
for(temp = 0; temp &lt; size; temp++)
{
    printf("Enter Element #%d : ", temp + 1);
    scanf("%d", &amp;array[temp]);
}</pre>
</li>
<li>Now ask the user to enter the number he/she wants to search in the list.
<pre name="code" class="c">printf("\n Enter the number you want to search : ");
scanf("%d", &amp;num);</pre>
</li>
<li>Now using a <code>for</code> loop (which will run at max equal to size input by user) check whether array contains an element that user wants to search or not using algorithm explained earlier. If any time, it founds a match, the loop will break.
<pre name="code" class="c">for(temp = 0; temp &lt; size; temp++)
{
    if(array[temp] == num)
        break;
}</pre>
</li>
<li>Now check whether value of <code>temp</code> is equal to size of array or not. If yes, then it means for loop finished completely and break command is not triggered i.e no match is found. But if it is less than the size of array, then we indeed found a match at position <code>temp + 1</code> (because <code>temp</code> starts at 0).
<pre name="code" class="c">if(temp == size)
    printf("Number is not present in the array...");
else
    printf("Number found at #%d", temp + 1);</pre>
</li>
</ol>
<p>Here are two screenshots of the working sample code.</p>
<div id="attachment_3379" class="wp-caption aligncenter" style="width: 354px"><a href="http://howtoideas.net/perform-linear-search-language/linear-search-using-c-2" rel="attachment wp-att-3379"><img class="size-full wp-image-3379" title="Linear Search Using C (Match Found)" src="http://howtoideas.net/wp-content/uploads/2012/01/Linear-Search-Using-C.png" alt="Linear Search Using C (Match Found)" width="344" height="227" /></a><p class="wp-caption-text">Linear Search Using C (Match Found)</p></div>
<div id="attachment_3378" class="wp-caption aligncenter" style="width: 337px"><a href="http://howtoideas.net/perform-linear-search-language/linear-search-using-c" rel="attachment wp-att-3378"><img class="size-full wp-image-3378" title="Linear Search Using C (No Match Found)" src="http://howtoideas.net/wp-content/uploads/2012/01/Linear-Search-using-C.png" alt="Linear Search Using C (No Match Found)" width="327" height="227" /></a><p class="wp-caption-text">Linear Search Using C (No Match Found)</p></div>
<p>You can also download sample code from <a href="http://howtoideas.net/wp-content/uploads/C Language Source Codes/linear-search.c">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/perform-linear-search-language/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Wine in Ubuntu</title>
		<link>http://howtoideas.net/install-wine-ubuntu</link>
		<comments>http://howtoideas.net/install-wine-ubuntu#comments</comments>
		<pubDate>Mon, 16 Jan 2012 16:17:12 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[install wine]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu 11.10]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[WINE]]></category>
		<category><![CDATA[wine software]]></category>
		<category><![CDATA[wine1.3]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3360</guid>
		<description><![CDATA[Wine is free and open source application for Unix / Linux based Operating Systems which allows us to run applications written for Microsoft Windows. WINE is an acronym for WINdows Emulator. WINE also provides a software library, Winelib, which developers can use to compile Windows applications to port them to Unix / Linux based systems. In this tutorial, I will show you how to install Wine in Ubuntu using both... <span class="meta-more"><a href="http://howtoideas.net/install-wine-ubuntu">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.winehq.org/" target="_blank"><strong>Wine</strong></a> is free and open source application for <strong>Unix / Linux</strong> based <strong>Operating Systems</strong> which allows us to run applications written for <strong>Microsoft Windows</strong>. WINE is an acronym for <em>WIN</em>dows <em>E</em>mulator. <strong>WINE</strong> also provides a software library, <strong>Winelib</strong>, which developers can use to compile <strong>Windows</strong> applications to port them to <strong>Unix / Linux</strong> based systems.</p>
<p>In this tutorial, I will show you how to install <strong>Wine</strong> in <strong>Ubuntu</strong> using both methods <strong>1. Using Terminal </strong>and<strong> 2. Manual Installation</strong>. Following method is successfully tested on <strong>Ubuntu 11.10.</strong></p>
<p><span style="text-decoration: underline;"><strong>Installing using Terminal:<br />
</strong></span></p>
<ol>
<li>Start by adding repository for <strong>Wine</strong> (<code>ppa:ubuntu-wine/ppa</code>) to your <strong>Software Sources</strong> using following command.
<pre name="code" class="bash">sudo add-apt-repository ppa:ubuntu-wine/ppa</pre>
<p><div id="attachment_3362" class="wp-caption aligncenter" style="width: 589px"><a href="http://howtoideas.net/install-wine-ubuntu/add-repository" rel="attachment wp-att-3362"><img class=" wp-image-3362 " title="Add Repository" src="http://howtoideas.net/wp-content/uploads/2012/01/Add-Repository.png" alt="Add Repository" width="579" height="327" /></a><p class="wp-caption-text">Add Repository</p></div></li>
<li>Now get updates for this repository&#8217;s packages using following command.
<pre name="code" class="bash">sudo apt-get update</pre>
<p><div id="attachment_3364" class="wp-caption aligncenter" style="width: 528px"><a href="http://howtoideas.net/install-wine-ubuntu/get-updates-2" rel="attachment wp-att-3364"><img class=" wp-image-3364 " title="Get Updates" src="http://howtoideas.net/wp-content/uploads/2012/01/Get-Updates.png" alt="Get Updates" width="518" height="371" /></a><p class="wp-caption-text">Get Updates</p></div></li>
<li>Now install the Wine using the following command.
<pre name="code" class="bash">sudo apt-get install wine1.3</pre>
<div id="attachment_3365" class="wp-caption aligncenter" style="width: 582px"><a href="http://howtoideas.net/install-wine-ubuntu/installing-wine-1-3" rel="attachment wp-att-3365"><img class=" wp-image-3365 " title="Installing Wine 1.3" src="http://howtoideas.net/wp-content/uploads/2012/01/Installing-Wine-1.3.png" alt="Installing Wine 1.3" width="572" height="386" /></a><p class="wp-caption-text">Installing Wine 1.3</p></div>
<p>It will install <strong>Wine1.3</strong>, If you want to install other version just replace <code>wine1.3</code> with <code>wine[version-number]</code>.</li>
</ol>
<p><span style="text-decoration: underline;"><strong>Installing Manually</strong></span><strong>:</strong></p>
<ol>
<li>Open <strong>Software Sources</strong> by searching the same in <strong>Dash Home</strong> in <strong>Ubuntu 11.10</strong> or by navigating to <strong>Applications-&gt;Ubuntu Software Center</strong> and then selecting <strong>Edit-&gt;Software Sources</strong> in lower versions of Ubuntu.
<p><div id="attachment_3366" class="wp-caption aligncenter" style="width: 530px"><a href="http://howtoideas.net/install-wine-ubuntu/software-sources" rel="attachment wp-att-3366"><img class=" wp-image-3366 " title="Software Sources" src="http://howtoideas.net/wp-content/uploads/2012/01/Software-Sources.png" alt="Software Sources" width="520" height="209" /></a><p class="wp-caption-text">Software Sources</p></div></li>
<li>In <strong>Software Sources</strong> dialogue box, click on the <strong>Other Software</strong> tab and then click on <strong>Add</strong> button. Then copy and paste following line in the dialogue box opened and click on <strong>Add Source</strong> to add <strong>Wine</strong> repository.<br />
ppa:ubuntu-wine/ppa</p>
<p><div id="attachment_3363" class="wp-caption aligncenter" style="width: 493px"><a href="http://howtoideas.net/install-wine-ubuntu/add-repository-using-software-sources" rel="attachment wp-att-3363"><img class=" wp-image-3363 " title="Add Repository using Software Sources" src="http://howtoideas.net/wp-content/uploads/2012/01/Add-Repository-using-Software-Sources.png" alt="Add Repository using Software Sources" width="483" height="451" /></a><p class="wp-caption-text">Add Repository</p></div></li>
<li>Now open following link in your browser. It will open up <strong>Ubuntu Software Center</strong>. Follow the instructions given to install <strong>Wine</strong> in your PC.<br />
<blockquote><p><code>apt://wine1.3</code></p></blockquote>
<p>Replace version number with the one you want to install.</p>
<p><div id="attachment_3367" class="wp-caption aligncenter" style="width: 400px"><a href="http://howtoideas.net/install-wine-ubuntu/install-wine1-3" rel="attachment wp-att-3367"><img class=" wp-image-3367 " title="Install Wine1.3" src="http://howtoideas.net/wp-content/uploads/2012/01/Install-Wine1.3.png" alt="Install Wine1.3" width="390" height="465" /></a><p class="wp-caption-text">Install Wine1.3</p></div></li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/install-wine-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Eclipse in Linux</title>
		<link>http://howtoideas.net/install-eclipse-linux</link>
		<comments>http://howtoideas.net/install-eclipse-linux#comments</comments>
		<pubDate>Sun, 15 Jan 2012 16:16:54 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[3.7]]></category>
		<category><![CDATA[3.7.1]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[install eclipse]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu 11.10]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3349</guid>
		<description><![CDATA[Eclipse is a an IDE i.e Integrated Development Environment tool mostly used by developers for JAVA development. This tool support development in a number of languages like C, C++, COBOL, Java, Perl, PHP, Python, Ruby, etc. and also supports plugins which can let you develop projects in a number of other languages as well. Eclipse SDK is free and open source software released under the terms of the Eclipse Public License.... <span class="meta-more"><a href="http://howtoideas.net/install-eclipse-linux">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p><strong>Eclipse</strong> is a an <strong>IDE</strong> i.e <strong>Integrated Development Environment</strong> tool mostly used by developers for <strong>JAVA</strong> development. This tool support development in a number of languages like C, C++, COBOL, Java, Perl, PHP, Python, Ruby, etc. and also supports plugins which can let you develop projects in a number of other languages as well.</p>
<p>Eclipse SDK is free and open source software released under the terms of the <strong>Eclipse Public License.</strong> In this tutorial, I will explain you how to install this IDE in your Linux based system. All the steps are successfully tested on <strong>Ubuntu 11.10</strong> and <strong>Eclipse 3.7.1</strong>.</p>
<p><span style="text-decoration: underline;"><strong>Instructions:</strong></span></p>
<ol>
<li>Download <a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse</a> package from their website. You must select a version according to your need like if you want to develop C/C++ applications then you must select <strong>Eclipse IDE for C/C++ Developers</strong>, if you want to develop applications if JAVA, then you must select <strong>Eclipse IDE for JAVA Developers</strong> or <strong>Eclipse IDE for JAVA EE Developers</strong> and if you want to develop applications in third-party languages like <strong>Android</strong> from <strong>Google</strong> or some other language plugins, then you must select <strong>Eclipse Classic</strong>.</li>
<li>Now open your <strong>Terminal</strong> application, move to the directory where you have downloaded eclipse archive using <code>cd</code> command and extract the package downloaded using the <code>tar</code> command. In my case the command is as follows
<pre name="code" class="c">tar xzf eclipse-SDK-3.7.1-linux-gtk.tar.gz</pre>
<div id="attachment_3353" class="wp-caption aligncenter" style="width: 548px"><a href="http://howtoideas.net/install-eclipse-linux/extract-eclipse" rel="attachment wp-att-3353"><img class=" wp-image-3353 " title="Extract Eclipse" src="http://howtoideas.net/wp-content/uploads/2012/01/Extract-Eclipse.png" alt="Extract Eclipse" width="538" height="152" /></a><p class="wp-caption-text">Extract Eclipse</p></div>
<p>Change the name of file <code>eclipse-SDK-3.7.1-linux-gtk.tar.gz</code> with the one you just downloaded.</li>
<li>You can also extract the package by right clicking and then selecting <strong>Extract Here</strong>.</li>
<li>After extracting, move the extracted directory to <code>/opt/ directory/</code>. After that change the owner of the directory to <code>root</code> using <code>chown</code> command recursively (by using <code>-R</code> option with <code>chown</code> command) and then add read permission to all the directories and files present in the <strong>Eclipse</strong> directory by using <code>chmod</code> command with <code>-R</code> option.
<pre name="code" class="c">sudo mv eclipse /opt/
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse</pre>
<div id="attachment_3354" class="wp-caption aligncenter" style="width: 527px"><a href="http://howtoideas.net/install-eclipse-linux/move-eclipse-to-opt" rel="attachment wp-att-3354"><img class=" wp-image-3354 " title="Move Eclipse to /opt/ Directory" src="http://howtoideas.net/wp-content/uploads/2012/01/Move-Eclipse-to-opt.png" alt="Move Eclipse to /opt/ Directory" width="517" height="155" /></a><p class="wp-caption-text">Move Eclipse to /opt/ Directory</p></div>
<p><div id="attachment_3350" class="wp-caption aligncenter" style="width: 487px"><a href="http://howtoideas.net/install-eclipse-linux/change-permissions-and-directory-owner" rel="attachment wp-att-3350"><img class=" wp-image-3350 " title="Change Permissions and Directory Owner" src="http://howtoideas.net/wp-content/uploads/2012/01/Change-Permissions-and-Directory-Owner.png" alt="Change Permissions and Directory Owner" width="477" height="67" /></a><p class="wp-caption-text">Change Permissions and Directory Owner</p></div></li>
<li>Now we need to create eclipse executable in <code>/usr/bin/</code> directory with following commands and then we need to set its permissions to <code>755</code>. Use the following command to create eclipse executable
<pre name="code" class="c">sudo gedit /usr/bin/eclipse</pre>
<p>Now place following command lines in the file opened in <code>gedit</code></p>
<pre name="code" class="c">#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*</pre>
<p>After this use the following command to change executable file permission to <code>755</code></p>
<pre name="code" class="c">sudo chmod 755 /usr/bin/eclipse</pre>
<p><div id="attachment_3352" class="wp-caption aligncenter" style="width: 589px"><a href="http://howtoideas.net/install-eclipse-linux/creating-eclipse-executable" rel="attachment wp-att-3352"><img class=" wp-image-3352 " title="Creating Eclipse Executable" src="http://howtoideas.net/wp-content/uploads/2012/01/Creating-Eclipse-Executable.png" alt="Creating Eclipse Executable" width="579" height="369" /></a><p class="wp-caption-text">Creating Eclipse Executable</p></div></li>
<li>Now we need to create <strong>Gnome menu item</strong> for eclipse. Use the following command to create <code>eclipse.desktop</code> file in <code>/usr/share/applications/</code> directory
<pre name="code" class="c">sudo gedit /usr/share/applications/eclipse.desktop</pre>
<p>Paste in the following lines in that file and then save and quit <code>gedit</code></p>
<pre name="code" class="c">[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true</pre>
<p><div id="attachment_3351" class="wp-caption aligncenter" style="width: 589px"><a href="http://howtoideas.net/install-eclipse-linux/create-gnome-menu-item" rel="attachment wp-att-3351"><img class=" wp-image-3351 " title="Create Gnome Menu Item" src="http://howtoideas.net/wp-content/uploads/2012/01/Create-Gnome-Menu-Item.png" alt="Create Gnome Menu Item" width="579" height="400" /></a><p class="wp-caption-text">Create Gnome Menu Item</p></div></li>
<li>That&#8217;s all Eclipse is successfully installed in your system. You can launch it from command line using the following command
<pre name="code" class="c">/opt/eclipse/eclipse -clean &amp;</pre>
</li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/install-eclipse-linux/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install or update Firefox in Linux using Terminal</title>
		<link>http://howtoideas.net/install-update-firefox-linux-using-terminal</link>
		<comments>http://howtoideas.net/install-update-firefox-linux-using-terminal#comments</comments>
		<pubDate>Sat, 14 Jan 2012 11:53:13 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox 10.0]]></category>
		<category><![CDATA[instal firefox linux]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[install firefox in ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3339</guid>
		<description><![CDATA[In this tutorial, I will show you how can you install or update latest version of Firefox in Linux using Terminal commands. Method explained is tested on Ubuntu 11.10 to install Firefox 10.0 and it probably work on all the Linux based Operating Systems. If you already have older version of Firefox installed in your system, then it should not be running while getting this update. If you are not... <span class="meta-more"><a href="http://howtoideas.net/install-update-firefox-linux-using-terminal">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p>In this tutorial, I will show you how can you install or update latest version of <strong>Firefox</strong> in <strong>Linux</strong> using <strong>Terminal</strong> commands. Method explained is tested on <strong>Ubuntu 11.10</strong> to install <strong>Firefox 10.0</strong> and it probably work on all the <strong>Linux</strong> based <strong>Operating Systems</strong>.</p>
<p>If you already have older version of Firefox installed in your system, then it should not be running while getting this update. If you are not sure whether latest version is available or not, you can check for the latest version at <a href="http://www.mozilla.org/firefox/" target="_blank">Firefox</a> website.</p>
<p><span style="text-decoration: underline;"><strong>Instructions:</strong></span></p>
<ol>
<li>To start getting latest version of <strong>Firefox</strong> in you system, you should add required repository in your system. Following command let you do that.<br />
<blockquote><pre name="code" class="bash">sudo add-apt-repository ppa:mozillateam/firefox-next</pre>
</blockquote>
<p>When your <strong>Terminal</strong> ask you to press <strong>Enter</strong> as shown in following image, just press <strong>Enter</strong>to continue adding required repository. This command will add the PPA repositories inside your <code>/etc/apt/sources.list.d/</code> directory, in a file named <code>mozillateam-firefox-next-oneiric.list</code>.</p>
<p><div id="attachment_3340" class="wp-caption aligncenter" style="width: 589px"><a href="http://howtoideas.net/install-update-firefox-linux-using-terminal/add-repository-2" rel="attachment wp-att-3340"><img class=" wp-image-3340 " title="Adding Repository - Install Firefox" src="http://howtoideas.net/wp-content/uploads/2012/01/Add-Repository-2.png" alt="Adding Repository - Install Firefox" width="579" height="222" /></a><p class="wp-caption-text">Adding Repository</p></div></li>
<li>After adding repository, its time to get updates. Using following command will get all the updates required.<br />
<blockquote><pre name="code" class="bash">sudo apt-get update</pre>
</blockquote>
<p><div id="attachment_3341" class="wp-caption aligncenter" style="width: 542px"><a href="http://howtoideas.net/install-update-firefox-linux-using-terminal/get-updates" rel="attachment wp-att-3341"><img class=" wp-image-3341 " title="Get Updates - Install Firefox" src="http://howtoideas.net/wp-content/uploads/2012/01/Get-updates.png" alt="Get Updates - Install Firefox" width="532" height="371" /></a><p class="wp-caption-text">Get Updates</p></div></li>
<li>After getting all the updates, its time to finally install latest <strong>Firefox</strong> in your system. Use the following command to install Firefox in your system.<br />
<blockquote><pre name="code" class="bash">sudo apt-get install firefox</pre>
</blockquote>
</li>
<li>This command will show you all the packages which will be installed, which will be upgraded and which ones are no longer required and finally ask you whether you want to continue installation or not. If you are sure that you want to update Firefox or install it, then press <code>'y'</code> or <code>'Y'</code> and hit Enter to continue installation.
<p><div id="attachment_3342" class="wp-caption aligncenter" style="width: 589px"><a href="http://howtoideas.net/install-update-firefox-linux-using-terminal/install-firefox" rel="attachment wp-att-3342"><img class=" wp-image-3342 " title="Installing Firefox" src="http://howtoideas.net/wp-content/uploads/2012/01/Install-Firefox.png" alt="Installing Firefox" width="579" height="371" /></a><p class="wp-caption-text">Installing Firefox</p></div></li>
<li>This which will take a little bit of time (depending on your Internet connection) in downloading the installation package and then finally install them.</li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/install-update-firefox-linux-using-terminal/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to print Facebook Timeline Profile Cards</title>
		<link>http://howtoideas.net/print-facebook-timeline-profile-cards</link>
		<comments>http://howtoideas.net/print-facebook-timeline-profile-cards#comments</comments>
		<pubDate>Thu, 12 Jan 2012 18:04:10 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[business card]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook profile card]]></category>
		<category><![CDATA[facebook timeline]]></category>
		<category><![CDATA[free business card]]></category>
		<category><![CDATA[moo]]></category>
		<category><![CDATA[moo.com]]></category>
		<category><![CDATA[timeline]]></category>
		<category><![CDATA[timeline card]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3324</guid>
		<description><![CDATA[Digital Printing shop Moo.com is now made a partnership with Facebook to provide Facebook Users an interface to create Business Cards based on their Timeline photos. You can create as many designs you want and can order in a set of 50 cards which will cost you about $15 for every 50 Cards. As a limited time offer, Moo.com is providing set of 50 cards for free to its 200,000... <span class="meta-more"><a href="http://howtoideas.net/print-facebook-timeline-profile-cards">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p>Digital Printing shop Moo.com is now made a partnership with Facebook to provide Facebook Users an interface to create Business Cards based on their Timeline photos.</p>
<p>You can create as many designs you want and can order in a set of 50 cards which will cost you about $15 for every 50 Cards. As a limited time offer, Moo.com is providing set of 50 cards for free to its 200,000 users based on &#8220;First come first serve&#8221; basis. You can try your luck as well, and to create you own set of Timeline Profile Cards follow the instructions described below.</p>
<p><span style="text-decoration: underline;"><strong>Instructions:</strong></span></p>
<ol>
<li>Open your Timeline page and then click on <strong>About</strong> link or open your <strong>Info</strong> page directly using link <span style="text-decoration: underline;">facebook.com/your-username/info</span>. Like URL of my Info page is <span style="text-decoration: underline;">http://www.facebook.com/rt.garg1991/info</span>.
<p><div id="attachment_3330" class="wp-caption aligncenter" style="width: 296px"><a href="http://howtoideas.net/print-facebook-timeline-profile-cards/selection_030" rel="attachment wp-att-3330"><img class=" wp-image-3330 " title="Facebook Info Page - About Link" src="http://howtoideas.net/wp-content/uploads/2012/01/Selection_030.png" alt="Facebook Info Page - About Link" width="286" height="277" /></a><p class="wp-caption-text">Facebook Info Page - About Link</p></div></li>
<li>On the Info page, locate the <strong>Contact Info</strong> section and then click on the <strong>Card</strong> icon next to &#8220;<strong>Contact Info</strong>&#8221; and then click on the <strong>Print Cards</strong>link in the pop-up opened as shown in following image.
<p><div id="attachment_3331" class="wp-caption aligncenter" style="width: 310px"><a href="http://howtoideas.net/print-facebook-timeline-profile-cards/tooltip_028" rel="attachment wp-att-3331"><img class="size-medium wp-image-3331" title="Print Design Link in Info Page" src="http://howtoideas.net/wp-content/uploads/2012/01/Tooltip_028-300x202.png" alt="Print Design Link in Info Page" width="300" height="202" /></a><p class="wp-caption-text">Print Design Link in Info Page</p></div></li>
<li>In the page opened, <strong>Moo.com application</strong> will request for permission to access your content. Click on <strong>Allow</strong>to proceed.
<p><div id="attachment_3329" class="wp-caption aligncenter" style="width: 310px"><a href="http://howtoideas.net/print-facebook-timeline-profile-cards/selection_029" rel="attachment wp-att-3329"><img class="size-medium wp-image-3329" title="Request for Permission from Moo.com Application" src="http://howtoideas.net/wp-content/uploads/2012/01/Selection_029-300x218.png" alt="Request for Permission from Moo.com Application" width="300" height="218" /></a><p class="wp-caption-text">Request for Permission from Moo.com Application</p></div></li>
<li>It will redirect you to <strong>Moo.com</strong> website where you can select the design (<strong>Timeline photo</strong>) you want on your <strong>Profile Card</strong>. Select any photo you want, customize as you&#8217;d like and then click on <strong>Next</strong><strong> Step</strong>button.
<p><div id="attachment_3325" class="wp-caption aligncenter" style="width: 310px"><a href="http://howtoideas.net/print-facebook-timeline-profile-cards/selection_024" rel="attachment wp-att-3325"><img class="size-medium wp-image-3325" title="Profile Card Front Side - Edit the design" src="http://howtoideas.net/wp-content/uploads/2012/01/Selection_024-300x199.png" alt="Profile Card Front Side" width="300" height="199" /></a><p class="wp-caption-text">Profile Card Front Side - Edit the design</p></div></li>
<li>On the next slide, click on the card to add your own detail, you want to appear at the back of your <strong>Profile Card</strong>. When finished, click on <strong>Next Step</strong>button.
<p><div id="attachment_3326" class="wp-caption aligncenter" style="width: 310px"><a href="http://howtoideas.net/print-facebook-timeline-profile-cards/selection_025" rel="attachment wp-att-3326"><img class="size-medium wp-image-3326" title="Profile Card Back Side - Edit the quote" src="http://howtoideas.net/wp-content/uploads/2012/01/Selection_025-300x201.png" alt="Profile Card Back Side" width="300" height="201" /></a><p class="wp-caption-text">Profile Card Back Side - Edit the quote</p></div></li>
<li>In the next step, go through all the steps in the checklist provided. After making desired changes (if any), check all the three check boxes and click on<strong> Next<strong> Step</strong></strong>button.
<p><div id="attachment_3327" class="wp-caption aligncenter" style="width: 310px"><a href="http://howtoideas.net/print-facebook-timeline-profile-cards/selection_026" rel="attachment wp-att-3327"><img class="size-medium wp-image-3327" title="Final Checklist" src="http://howtoideas.net/wp-content/uploads/2012/01/Selection_026-300x188.png" alt="Final Checklist" width="300" height="188" /></a><p class="wp-caption-text">Final Checklist</p></div></li>
<li>On the next page, click on the <strong>Proceed to checkout</strong>button to fill in all the details required and finalize your order.
<p><div id="attachment_3328" class="wp-caption aligncenter" style="width: 310px"><a href="http://howtoideas.net/print-facebook-timeline-profile-cards/selection_027" rel="attachment wp-att-3328"><img class="size-medium wp-image-3328" title="Proceed to Checkout" src="http://howtoideas.net/wp-content/uploads/2012/01/Selection_027-300x216.png" alt="Proceed to Checkout" width="300" height="216" /></a><p class="wp-caption-text">Proceed to Checkout</p></div></li>
</ol>
<p>You can also watch following video which describes all the steps to create your own Facebook Profile Cards.<br />
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='400' height='255' src='http://www.youtube.com/embed/FE_o8favJoU?version=3&#038;rel=0&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/print-facebook-timeline-profile-cards/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a Terminal Clock using Shell Script</title>
		<link>http://howtoideas.net/create-terminal-clock-shell-script</link>
		<comments>http://howtoideas.net/create-terminal-clock-shell-script#comments</comments>
		<pubDate>Wed, 11 Jan 2012 17:42:21 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Terminal Clock]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3303</guid>
		<description><![CDATA[date command displays current date and time to the Terminal and we can use this command to recursively display time every second on Terminal which will look like a Terminal Clock. In this tutorial, I will show you how to create a Shell Script which will make the terminal to show system time every second like a clock. Default output of date command prints result in the format shown in... <span class="meta-more"><a href="http://howtoideas.net/create-terminal-clock-shell-script">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p><code>date</code> command displays current date and time to the <strong>Terminal</strong> and we can use this command to recursively display time every second on <strong>Terminal</strong> which will look like a <strong>Terminal Clock</strong>. In this tutorial, I will show you how to create a <strong>Shell Script</strong> which will make the terminal to show system time every second like a clock.</p>
<p>Default output of <code>date</code> command prints result in the format shown in following image.</p>
<div id="attachment_3304" class="wp-caption aligncenter" style="width: 390px"><a href="http://howtoideas.net/create-terminal-clock-shell-script/date-command" rel="attachment wp-att-3304"><img class="size-full wp-image-3304" title="date command" src="http://howtoideas.net/wp-content/uploads/2012/01/date-command.png" alt="date command" width="380" height="104" /></a><p class="wp-caption-text">date command</p></div>
<p>But if we use <code>+%r</code> option with <code>date</code> command, the output format changes to format of the system locale as shown in following image.</p>
<div id="attachment_3309" class="wp-caption aligncenter" style="width: 395px"><a href="http://howtoideas.net/create-terminal-clock-shell-script/date-command-to-show-time-in-system-locale-timeformat" rel="attachment wp-att-3309"><img class="size-full wp-image-3309" title="date command to show time in the format of the system locale" src="http://howtoideas.net/wp-content/uploads/2012/01/date-command-to-show-time-in-system-locale-timeformat.png" alt="date command to show time in the format of the system locale" width="385" height="104" /></a><p class="wp-caption-text">date command to show time in the format of the system locale</p></div>
<p><span style="text-decoration: underline;"><strong>Instructions:</strong></span></p>
<ol>
<li>Tell the <strong>Terminal</strong> to use <code>bash</code> to execute the commands of the script file.<br />
<blockquote><pre name="code" class="bash">#!/bin/bash</pre>
</blockquote>
</li>
<li>Now clear the Terminal using <code>clear</code> command so that output of the <code>date</code> command will shown at the top of the Terminal window.<br />
<blockquote><pre name="code" class="bash">clear</pre>
</blockquote>
</li>
<li>Now using a <code>while</code> loop which will run infinitely print the time using the following command in which <code>echo</code> command is used with <code>-e</code> option which enable interpretation of backslash escapes (<code>\b</code>) and <code>\c</code> option prevent the <code>echo</code> command to enter a newline character.<br />
<blockquote><pre name="code" class="bash">echo -e "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b`date +%r` \c"</pre>
</blockquote>
</li>
<li>We have to sleep the <strong>Shell</strong> for a second before next iteration of <code>while</code> loop takes place. So, the full while loop looks like<br />
<blockquote><pre name="code" class="bash">while true
do
    echo -e "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b`date +%r` \c"
    sleep 1
done</pre>
</blockquote>
</li>
</ol>
<p>Following image is a screenshot of the working sample script.</p>
<div id="attachment_3306" class="wp-caption aligncenter" style="width: 261px"><a href="http://howtoideas.net/create-terminal-clock-shell-script/terminal-clock-output" rel="attachment wp-att-3306"><img class="size-full wp-image-3306" title="Terminal Clock Output" src="http://howtoideas.net/wp-content/uploads/2012/01/Terminal-Clock-Output.png" alt="Terminal Clock Output" width="251" height="60" /></a><p class="wp-caption-text">Terminal Clock Output</p></div>
<p>You can download the sample script file <a href="http://howtoideas.net/wp-content/uploads/Shell Commands/clock">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/create-terminal-clock-shell-script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check whether a number is Armstrong Number in C</title>
		<link>http://howtoideas.net/check-armstrong-number-c</link>
		<comments>http://howtoideas.net/check-armstrong-number-c#comments</comments>
		<pubDate>Tue, 10 Jan 2012 14:11:11 +0000</pubDate>
		<dc:creator>Rohit</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[64 bit c# check key pressed]]></category>
		<category><![CDATA[Armstrong Number]]></category>
		<category><![CDATA[C Language]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Narcissistin Number]]></category>
		<category><![CDATA[PluperfectDigital Invariant]]></category>
		<category><![CDATA[Plus Perfect Number]]></category>
		<category><![CDATA[PPDI]]></category>

		<guid isPermaLink="false">http://howtoideas.net/?p=3289</guid>
		<description><![CDATA[Armstrong Numbers are those numbers which are equal to the sum of its own digits each raised to the power of the number of digits in the number. Consider number 153, it has three digits, so length is 3. Now each digits raised to the power of the number of digits in the number :  13 = 1, 53 = 125, 33 = 27. Sum of these values : 1... <span class="meta-more"><a href="http://howtoideas.net/check-armstrong-number-c">Read more &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p><strong>Armstrong Numbers </strong>are those numbers which are equal to the sum of its own digits each raised to the power of the number of digits in the number. Consider number 153, it has three digits, so length is 3.<br />
Now each digits raised to the power of the number of digits in the number :  1<sup>3</sup> = 1, 5<sup>3</sup> = 125, 3<sup>3</sup> = 27.<br />
Sum of these values : 1 + 125 + 27 = 153. So, sum is equal to the number itself, so 153 is an <strong>Armstrong Number</strong>.</p>
<p>Armstrong Numbers are also known as <strong>Narcissistic Numbers</strong>, <strong>Pluperfect Digital Invariant</strong> (<strong>PPDI</strong>) and <strong>Plus Perfect Numbers. </strong>You can learn more about <strong>Armstrong Numbers</strong> on <a href="http://en.wikipedia.org/wiki/Narcissistic_number" target="_blank">Wikipedia</a>.</p>
<p><span style="text-decoration: underline;"><strong>Algorithm:</strong></span></p>
<ol>
<li>Let <code>num</code> is the number which is to be checked whether it&#8217;s an <strong>Armstrong Number</strong> or not.</li>
<li>Let <code>af</code> (additive factor),<code>sum</code> and <code>temp</code> be three temporary variables, <code>sum</code> having value 0 and <code>temp</code> having value equal to variable <code>num</code> initially.</li>
<li>Check if <code>num</code> is less than zero or not, if yes, print an error message that only positive numbers are allowed and exit the program. Otherwise continue to next step.</li>
<li>Find the length of the number i.e. how many digits it has and store it in variable <code>length</code>.</li>
<li>Now check if <code>temp</code> is equal to zero or not. If yes, proceed to 9th step, else continue to next step.</li>
<li>Fetch rightmost digit of <code>temp</code> and store it in variable <code>af</code>.</li>
<li>Calculate <code>af<sup>length</sup></code> i.e. digit raised to power of the number of digits in number and store in <code>af</code> itself.</li>
<li>Add <code>af</code> to <code>sum</code> and remove rightmost digit from <code>temp</code> variable by dividing it with 10 and move to step 5.</li>
<li>Check if variable <code>sum</code> is equal to actual number <code>num</code>. If yes, then <code>num</code> is an <strong>Armstrong Number</strong>, else it is not.</li>
<li>Quit the program.</li>
</ol>
<p><span style="text-decoration: underline;"><strong>Instructions:</strong></span></p>
<ol>
<li>We only need a single header file for this program to work.<br />
<blockquote>
<pre name="code" class="c">#include &lt;stdio.h&gt;</pre>
</blockquote>
</li>
<li>Now in <code>main</code> function ask the user to enter the number he/she wants to check. Check if it is positive number or not. If not, then exit the program.<br />
<blockquote>
<pre name="code" class="c">int num, temp;
printf("Enter the number which you want to check : ");
scanf("%d", &amp;num);
if(num &lt; 0)
{
    printf("Number entered is not valid positive number");
    return 0;
}</pre>
</blockquote>
</li>
<li>Now call user defined function <code>isArmstrong</code> (explained in next step) to calculate sum of its digits each raised to power of number of digits in the number. After than check if value returned by <code>isArmstrong</code> function is equal to actual number or not. If yes, then number entered by user is <strong>Armstrong Number</strong>, otherwise it is not. Print desired message and quit the program.<br />
<blockquote>
<pre name="code" class="c">temp = isArmstrong(num);
if(temp == num)
    printf("%d is an Armstrong number...", num);
else
    printf("%d is not an Armstrong number...", num);</pre>
</blockquote>
</li>
<li>In <code>isArmstrong</code> function, find sum of its digits each raised to power of number of digits in the number using a <code>for</code> loop. Before that we have to find number of digits in the number as well. Finally return the sum calculated.<br />
<blockquote>
<pre name="code" class="c">int isArmstrong(int num)
{
    int temp, temp2, af, length = 0, sum = 0;
    temp = num;
    while(temp)
    {
        length++;
        temp /= 10;
    }
    for(temp = num; temp; temp /= 10)
    {
        af = temp % 10;
        for(temp2 = 1; temp2 &lt; length; temp2++)
            af *= temp % 10;
        sum += af;
    }
    return sum;
}</pre>
</blockquote>
</li>
</ol>
<p>Here are some screenshots of the working sample program.</p>
<div id="attachment_3292" class="wp-caption aligncenter" style="width: 346px"><a href="http://howtoideas.net/check-armstrong-number-c/check-armstrong-number-4" rel="attachment wp-att-3292"><img class="size-full wp-image-3292" title="Check Armstrong Number - 4" src="http://howtoideas.net/wp-content/uploads/2012/01/Check-Armstrong-Number-4.png" alt="Check Armstrong Number - 4" width="336" height="99" /></a><p class="wp-caption-text">Check Armstrong Number - 4</p></div>
<div id="attachment_3293" class="wp-caption aligncenter" style="width: 334px"><a href="http://howtoideas.net/check-armstrong-number-c/check-armstrong-number-100" rel="attachment wp-att-3293"><img class="size-full wp-image-3293" title="Check Armstrong Number - 100" src="http://howtoideas.net/wp-content/uploads/2012/01/Check-Armstrong-Number-100.png" alt="Check Armstrong Number - 100" width="324" height="100" /></a><p class="wp-caption-text">Check Armstrong Number - 100</p></div>
<div id="attachment_3294" class="wp-caption aligncenter" style="width: 327px"><a href="http://howtoideas.net/check-armstrong-number-c/check-armstrong-number-153" rel="attachment wp-att-3294"><img class="size-full wp-image-3294" title="Check Armstrong Number - 153" src="http://howtoideas.net/wp-content/uploads/2012/01/Check-Armstrong-Number-153.png" alt="Check Armstrong Number - 153" width="317" height="96" /></a><p class="wp-caption-text">Check Armstrong Number - 153</p></div>
<div id="attachment_3295" class="wp-caption aligncenter" style="width: 336px"><a href="http://howtoideas.net/check-armstrong-number-c/check-armstrong-number-371" rel="attachment wp-att-3295"><img class="size-full wp-image-3295" title="Check Armstrong Number - 371" src="http://howtoideas.net/wp-content/uploads/2012/01/Check-Armstrong-Number-371.png" alt="Check Armstrong Number - 371" width="326" height="99" /></a><p class="wp-caption-text">Check Armstrong Number - 371</p></div>
<p>You can download the sample program as well from <a href="http://howtoideas.net//wp-content/uploads/C Language Source Codes/armstrong-number.c">here</a>.</p>
<div align="left"><h4>Incoming search terms:</h4></div><ul><li>fotos de grisel ramos trautmann (10)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://howtoideas.net/check-armstrong-number-c/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
