<?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>YourSearchBuddy &#187; Education</title>
	<atom:link href="http://www.yoursearchbuddy.com/category/how-to/education/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yoursearchbuddy.com</link>
	<description>your search ends here</description>
	<lastBuildDate>Tue, 31 Jan 2012 19:47:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Convert an HTML table to CSV using PHP</title>
		<link>http://www.yoursearchbuddy.com/convert-html-table-csv-php</link>
		<comments>http://www.yoursearchbuddy.com/convert-html-table-csv-php#comments</comments>
		<pubDate>Fri, 18 Nov 2011 21:47:02 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[html to csv]]></category>
		<category><![CDATA[html to csv php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php tuorial]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=6759</guid>
		<description><![CDATA[Here is a tutorial to convert a HTML table to CSV using php. To do this, we will need two php files: 1. table.php (where you create your table) 2.... <a class="meta-more" href="http://www.yoursearchbuddy.com/convert-html-table-csv-php">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a tutorial to convert a HTML table to CSV using php. To do this, we will need two php files:</p>
<p>1. table.php (where you create your table)<br />
2. export.php (which converts your table to csv and let it download)</p>
<p><strong>Let&#8217;s say that you have two column table that you make via MySql table</strong>:</p>
<pre>
$output .= "&lt;table&gt;";

	$output .= "&lt;th&gt;Year&lt;/th&gt;";
        $output .= "&lt;th&gt;Date&lt;/th&gt;";

	while($result_array=mysql_fetch_array($query)) {
		$output .= "&lt;tr&gt;";
		        $output .= "&lt;td&gt;$result_array[0]&lt;/td&gt;";
		        $csv_output .= $result_array[0] . ", ";

		        $output .= "&lt;td&gt;$result_array[1]&lt;/td&gt;";
		        $csv_output .= $result_array[1] . "\n";
		$output .= "&lt;/tr&gt;";
	}
$output .= "&lt;/table&gt;";

$csv_hdr = "Year, Date";
</pre>
<p><strong>Now we need to pass $csv_hdr and $csv_output to export.php via table.php</strong>:</p>
<pre>
&lt;form name="export" action="export.php" method="post"&gt;
	&lt;input type="submit" value="Export table to CSV"&gt;
	&lt;input type="hidden" value="&lt;? echo $csv_hdr; ?&gt;" name="csv_hdr"&gt;
	&lt;input type="hidden" value="&lt;? echo $csv_output; ?&gt;" name="csv_output"&gt;
&lt;/form&gt;
</pre>
<p><strong>In export.php do</strong>:</p>
<pre>
&lt;?php

//First we'll generate an output variable called out. It'll have all of our text for the CSV file.

$out = '';

//Next we'll check to see if our variables posted and if they did we'll simply append them to out.

if (isset($_POST['csv_hdr'])) {

$out .= $_POST['csv_hdr'];

$out .= "\n";

}

if (isset($_POST['csv_output'])) {

$out .= $_POST['csv_output'];

}

//Now we're ready to create a file. This method generates a filename based on the current date &#038; time.

$filename = $file."_".date("Y-m-d_H-i",time());

//Generate the CSV file header

header("Content-type: application/vnd.ms-excel");

header("Content-disposition: csv" . date("Y-m-d") . ".csv");

header("Content-disposition: filename=".$filename.".csv");

//Print the contents of out to the generated file.

print $out;

//Exit the script

exit;

?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/convert-html-table-csv-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Load local HTML from assets &#8211; Android Programming</title>
		<link>http://www.yoursearchbuddy.com/load-local-html-assets-android-programming</link>
		<comments>http://www.yoursearchbuddy.com/load-local-html-assets-android-programming#comments</comments>
		<pubDate>Fri, 07 Oct 2011 22:19:50 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[android development]]></category>
		<category><![CDATA[load html android]]></category>
		<category><![CDATA[webview]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=6454</guid>
		<description><![CDATA[If you wish to load local HTML in webview from html file under assets, then first make a html file (filename.html) and place it under assets folder. Lets say place... <a class="meta-more" href="http://www.yoursearchbuddy.com/load-local-html-assets-android-programming">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you wish to load local HTML in webview from html file under assets, then first make a html file (filename.html) and place it under assets folder.</p>
<p><strong>Lets say place temp.html in /assets</strong>:</p>
<pre>
&lt;!DOCTYPE html&gt;
&lt;html&gt;
	&lt;head&gt;
		&lt;meta charset="UTF-8"&gt;
		&lt;meta name="viewport" content="width=device-width; user-scalable=0;" /&gt;
		&lt;title&gt;Load HTML in webview&lt;/title&gt;
	&lt;/head&gt;

	&lt;body&gt;
		&lt;h1&gt;Hi There!&lt;/h1&gt;

		It's a local html in /assets.
		Click &lt;a href="http://www.yoursearchbuddy.com"&gt;here&lt;/a&gt; for more tips
	&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><strong>Load the local HTML in Java code</strong>: </p>
<pre>
final String DEFAULT_URL = "file:///android_asset/temp.html";
webView.loadUrl(DEFAULT_URL);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/load-local-html-assets-android-programming/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send HTML Email with PHP</title>
		<link>http://www.yoursearchbuddy.com/send-html-email-php</link>
		<comments>http://www.yoursearchbuddy.com/send-html-email-php#comments</comments>
		<pubDate>Wed, 05 Oct 2011 23:13:37 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[TipnTricks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php html email]]></category>
		<category><![CDATA[php tutorial]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=6400</guid>
		<description><![CDATA[Sending HTML email is similar to sending text email via PHP, but you need to take care of the headers you send. So lets say you need to send a... <a class="meta-more" href="http://www.yoursearchbuddy.com/send-html-email-php">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sending HTML email is similar to sending text email via PHP, but you need to take care of the headers you send.</p>
<p><strong>So lets say you need to send a HTML email</strong>:</p>
<pre>
<b>Hi Andy,</b>
//Using bold text

How are you?

Check out this link: <a href="http://www.yoursearchbuddy.com">yoursearchbuddy.com</a>
//using link

Regards, Tom
</pre>
<p><strong>So here is the code that you would use to send out this HTML Email</strong>:</p>
<pre>
$to = recipient_email;

// Your subject
$subject="Sabrient Systems LLC: Welcome to Silver Level";

// From
$headers = "From: sender_email\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

// Your message
$message="&lt;html&gt;&lt;body&gt;";
$message .="&lt;b&gt;Hi Andy,&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;";
$message .="How are you?&lt;br /&gt;";
$message .="Check out this link: &lt;a href='http://www.yoursearchbuddy.com'&gt;yoursearchbuddy.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;";
$message .="Regards, Tom";
$message .="&lt;/body&gt;&lt;/html&gt;";
// send email

mail($to,$subject,$message,$headers);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/send-html-email-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install and configure VSFTPD linux</title>
		<link>http://www.yoursearchbuddy.com/install-configure-vsftpd-linux</link>
		<comments>http://www.yoursearchbuddy.com/install-configure-vsftpd-linux#comments</comments>
		<pubDate>Mon, 03 Oct 2011 21:39:39 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[install vsftpd linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=6368</guid>
		<description><![CDATA[You can install vsftpd on Ubuntu / Debian, CentOS /Fedora and RHEL linux. Installing vsftpd on Ubuntu or Debian sudo apt-get install vsftpd Installing vsftpd on CentOS / Fedora yum... <a class="meta-more" href="http://www.yoursearchbuddy.com/install-configure-vsftpd-linux">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You can install vsftpd on Ubuntu / Debian, CentOS /Fedora and RHEL linux.</p>
<p>Installing vsftpd on Ubuntu or Debian</p>
<p>sudo apt-get install vsftpd</p>
<p>Installing vsftpd on CentOS / Fedora</p>
<p>yum install vsftpd</p>
<p><strong>How to configure vsftpd</strong>:</p>
<p>Now that you&#8217;ve installed vsftpd, follow this procedure to configure it. These steps applies for both the linux variants.</p>
<p><strong>Before you get started, stop the vsftpd by typing</strong>:</p>
<p>service vsftpd stop</p>
<p><strong>Edit the vsftp.conf</strong></p>
<p>In Ubuntu / Debian:</p>
<p>vi /etc/vsftp.conf</p>
<p>In Red Hat / CentOS</p>
<p>vi /etc/vsftpd/vsftpd.conf</p>
<p><strong>Make the following changes</strong>:</p>
<p>We don&#8217;t want anonymous login:</p>
<pre> anonymous_enable=NO </pre>
<p>Enable local users:</p>
<pre> local_enable=YES</pre>
<p>The ftpuser should be able to write data:</p>
<pre> write_enable=YES</pre>
<p><strong>Port 20 need to turned off, makes vsftpd run less privileged</strong>:</p>
<pre> connect_from_port_20=NO</pre>
<p><strong>Chroot everyone</strong>:</p>
<pre> chroot_local_user=YES</pre>
<p>set umask to 022 to make sure that all the files (644) and folders (755) you upload get the proper permissions.</p>
<pre> local_umask=022</pre>
<p><strong>Now that basic configuration is complete, now let us begin with locking / securing a directory to user.</strong></p>
<p>sudo useradd -d /var/www/path/to/your/dir -s /usr/sbin/nologin ftpuser</p>
<p>Setup a password for the user:</p>
<p>sudo passwd ftpuser</p>
<p>In order to enable the ftpuser read and write the data in your home dir, change the permission and take ownership:</p>
<p>sudo chown -R ftpuser /var/www/path/to/your/dir<br />
sudo chmod 775 /var/www/path/to/your/dir</p>
<p><strong>Create userlist file and add the user</strong>:</p>
<p>Ubuntu / Debian:</p>
<p>vi /etc/vsftpd.userlist</p>
<p>CentOS / Fedora:</p>
<p>vi /etc/vsftpd/vsftpd.userlist</p>
<p>and add the user:</p>
<p>ftpuser</p>
<p>save the file and open the vsftp.conf file again:</p>
<p>vi /etc/vsftpd.conf</p>
<p><strong>Add the following lines at the end of the file and save it</strong>:</p>
<pre>
    # the list of users to give access
    userlist_file=/etc/vsftpd.userlist

    # this list is on
    userlist_enable=YES

    # It is not a list of users to deny ftp access
    userlist_deny=NO
</pre>
<p>After completing all these procedures it is almost ready to use it, give it a try but you will get a 500 OOPS permission denied error. To fix it you need to add a nologin to the shell set.</p>
<p>vi /etc/shells</p>
<p><strong>The file should look like this</strong>:</p>
<pre>
    /bin/ksh
    /usr/bin/rc
    /usr/bin/tcsh
    /bin/tcsh
    /usr/bin/esh
    /bin/dash
    /bin/bash
    /bin/rbash
</pre>
<p><strong>Add this line at the end</strong>:</p>
<p>/usr/sbin/nologin</p>
<p>Now create a usergroup and add the ftpuser to it:</p>
<p>sudo addgroup ftpusers<br />
sudo usermod -Gftpusers ftpuser</p>
<p><strong>Now start the vsftpd</strong>:</p>
<p>service vsftpd start</p>
<p>That&#8217;s it. Now you have a secure installation of vsftpd on your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/install-configure-vsftpd-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get bigger thumbnail of youtube videos?</title>
		<link>http://www.yoursearchbuddy.com/bigger-thumbnail-youtube-videos</link>
		<comments>http://www.yoursearchbuddy.com/bigger-thumbnail-youtube-videos#comments</comments>
		<pubDate>Fri, 26 Aug 2011 20:57:43 +0000</pubDate>
		<dc:creator>vishal</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[TipnTricks]]></category>
		<category><![CDATA[youtube]]></category>
		<category><![CDATA[youtube big thumnail]]></category>
		<category><![CDATA[youtube thumbnail]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=5970</guid>
		<description><![CDATA[If you embed a youtube video in your website, and also want to use the thumbnail of that video, then you just right click on the video&#8217;s thumbail and either... <a class="meta-more" href="http://www.yoursearchbuddy.com/bigger-thumbnail-youtube-videos">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you embed a youtube video in your website, and also want to use the thumbnail of that video, then you just right click on the video&#8217;s thumbail and either click on &#8220;save link as&#8221; (this will save thumbnail on your computer) or click &#8220;view image&#8221; and then use the url somewhere in your website. The size of the image that you will get this way will be 120&#215;90 which is pretty small, and if you use the same image with increased height and width, the image will be distorted. </p>
<p>The URL will be something like: http://i2.ytimg.com/vi/[youtube_code]/default.jpg</p>
<div align="center">
<img src="http://farm7.static.flickr.com/6197/6083828726_efb3d26703_z.jpg" width="560" alt="youtube small thumbnail" title="How to get bigger thumbnail of youtube videos?" />
</div>
<p>So, in order to get bigger thumbnail of the video, you should right click on the image -> click on &#8220;view image&#8221; -> in the URL, instead of default.jpg type either &#8220;hqdefault.jpg&#8221; or &#8220;0.jpg&#8221; -> hit enter. You will get the same image with 480&#215;360 dimensions. </p>
<p>To save this image on your computer, do ctrl+s and save at any preferred location.</p>
<div align="center">
<img src="http://farm7.static.flickr.com/6075/6083828810_882d4d3c0d.jpg" alt="youtube big thumbnail" title="How to get bigger thumbnail of youtube videos?" />
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/bigger-thumbnail-youtube-videos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTPS and VPN Explained in Simple English</title>
		<link>http://www.yoursearchbuddy.com/https-vpn-explained-simple-english</link>
		<comments>http://www.yoursearchbuddy.com/https-vpn-explained-simple-english#comments</comments>
		<pubDate>Fri, 26 Aug 2011 20:31:20 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=5961</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="345" src="http://www.youtube.com/embed/_p-LNLv49Ug" frameborder="0" allowfullscreen></iframe></p>
<p><iframe width="560" height="345" src="http://www.youtube.com/embed/B41vCC4KLkY" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/https-vpn-explained-simple-english/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restoring iptables Automatically On Reboot</title>
		<link>http://www.yoursearchbuddy.com/restoring-iptables-automatically-reboot</link>
		<comments>http://www.yoursearchbuddy.com/restoring-iptables-automatically-reboot#comments</comments>
		<pubDate>Tue, 09 Aug 2011 23:52:40 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[TipnTricks]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[iptables restore]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=5580</guid>
		<description><![CDATA[I have already mentioned of how to use iptables here. In this post we will see how to restore iptables rules after a reboot. First you need to save your... <a class="meta-more" href="http://www.yoursearchbuddy.com/restoring-iptables-automatically-reboot">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have already mentioned of how to use iptables <a href="http://www.yoursearchbuddy.com/iptables-linux">here</a>. In this post we will see how to restore iptables rules after a reboot. </p>
<p>First you need to save your rules somewhere (i will copy them to /etc/firewall.conf):</p>
<pre>
iptables-save > /etc/firewall.conf
</pre>
<p>To restore iptables rules, enter:</p>
<pre>
iptables-restore < /etc/firewall.conf

// this lets iptables restore from /etc/firewall.conf
</pre>
<p>To restore rules automatically upon Linux system reboot add following command to your /etc/rc.local file, enter:
</pre>
<pre>
<strong>Append the line</strong>:
/sbin/iptables-restore < /etc/firewall.conf
</pre>
<p>If you are using Debian / Ubuntu Linux  open /etc/network/interfaces:
</pre>
<pre>
<strong>Append the line to eth0 section</strong>:

post-up iptables-restore
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/restoring-iptables-automatically-reboot/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send an Email with PDF Attachment &#8211; PHP</title>
		<link>http://www.yoursearchbuddy.com/send-email-pdf-attachment-php</link>
		<comments>http://www.yoursearchbuddy.com/send-email-pdf-attachment-php#comments</comments>
		<pubDate>Wed, 01 Jun 2011 21:24:00 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[email pdf php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php tutorial]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=5151</guid>
		<description><![CDATA[To send pdf with your email in PHP, here is what you need to do: I am using php mail function to do that $fileatt = "./yourpdf.pdf"; // Path to... <a class="meta-more" href="http://www.yoursearchbuddy.com/send-email-pdf-attachment-php">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To send pdf with your email in PHP, here is what you need to do:</p>
<p><strong>I am using php mail function to do that</strong></p>
<pre>
$fileatt = "./yourpdf.pdf"; <strong>// Path to the file</strong>
$fileatt_type = "application/pdf"; <strong>// File Type</strong>
$fileatt_name = "pdfname.pdf"; <strong>// Filename that will be used for the file as the attachment</strong>

$email_from = "from_emailaddress"; <strong>// Who the email is from</strong>
$email_subject = "Your subject here"; <strong>// The Subject of the email</strong>

$email_message="Your Message\r\n\n";

$email_to = "to_emailaddress"; <strong>// Who the email is to</strong>

$file = fopen($fileatt,'rb');
$data = fread($file,filesize($fileatt));
fclose($file);

$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";

$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";
$email_message .= "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type:text/plain; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$email_message .= "\n\n";

$data = chunk_split(base64_encode($data));
$email_message .= "--{$mime_boundary}\n" .
"Content-Type: {$fileatt_type};\n" .
" name=\"{$fileatt_name}\"\n" .
//"Content-Disposition: attachment;\n" .
//" filename=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data .= "\n\n" .
"--{$mime_boundary}--\n";

$sent = @mail($email_to, $email_subject, $email_message, $headers);
</pre>
<p>You can change $fileatt_type to send other attachments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/send-email-pdf-attachment-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search and install packages in Linux</title>
		<link>http://www.yoursearchbuddy.com/search-install-packages-linux</link>
		<comments>http://www.yoursearchbuddy.com/search-install-packages-linux#comments</comments>
		<pubDate>Fri, 27 May 2011 22:53:02 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[install packages]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[show packages]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=5098</guid>
		<description><![CDATA[You can install, search, delete, show installed packages etc. in your Linux system. We will discuss all the operations here briefly: To display all installed packages: # $ dpkg --get-selections... <a class="meta-more" href="http://www.yoursearchbuddy.com/search-install-packages-linux">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You can install, search, delete, show installed packages etc. in your Linux system. We will discuss all the operations here briefly:</p>
<p><strong>To display all installed packages</strong>:</p>
<pre>
# $ dpkg --get-selections

seahorse-plugins                                install
sed                                             install
sensible-utils                                  install
sgml-base                                       install
sgml-data                                       install
shared-mime-info                                install
shotwell                                        install
simple-scan                                     install
software-center                                 install
software-properties-gtk                         install
sound-juicer                                    install
ssl-cert                                        install
sudo                                            install
synaptic                                        install
</pre>
<p>I just displayed some of the packages installed on my computer.</p>
<p><strong>To display specific packages, so lets say in my case we will search for installed perl packages</strong>:</p>
<pre>
l# dpkg --get-selections | grep perl
libapache2-mod-perl2                            install
libapache2-reload-perl                          install
libbsd-resource-perl                            install
libcairo-perl                                   install
libdevel-symdump-perl                           install
libfile-copy-recursive-perl                     install
libfont-afm-perl                                install
libfont-freetype-perl                           install
libglib-perl                                    install
libgnome2-canvas-perl                           install
libgnome2-perl                                  install
libgnome2-vfs-perl                              install
libgtk2-perl                                    install
libhtml-format-perl                             install
libhtml-parser-perl                             install
</pre>
<p>So you can use grep for a specific installed package.</p>
<p><strong>To search any package to install</strong>:</p>
<pre>

# apt-cache search package name

or

<strong>if you can find specific package by using grep</strong>:

# apt-cache search package-type |grep -i package

So, for example i wish to find LWP package for perl, i will do:

# apt-cache search perl |grep -i LWP

libcrypt-ssleay-perl - Support for https protocol in LWP
libio-all-lwp-perl - Perl module to use HTTP and FTP URLs with IO::All
liblwp-authen-negotiate-perl - Perl module for GSSAPI based Authentication Plugin for LWP
liblwp-authen-wsse-perl - Library for enabling X-WSSE authentication in LWP
liblwp-online-perl - module to check if there is Internet access
liblwp-protocol-http-socketunix-perl - Perl module to speak http through unix sockets
liblwp-protocol-socks-perl - SOCKS proxy support for LWP
liblwp-useragent-determined-perl - LWP useragent that retries errors
liblwpx-paranoidagent-perl - a "paranoid" subclass of LWP::UserAgent
libtest-mock-lwp-perl - Easy mocking of LWP packages
</pre>
<p><strong>To install any package do</strong>:</p>
<pre>
# apt-get install package_name

So, to install libcrypt-ssleay-perl i would do:

# apt-get install libcrypt-ssleay-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libcrypt-ssleay-perl
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 56.7 kB of archives.
After this operation, 205 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian/ squeeze/main libcrypt-ssleay-perl i386 0.57-2 [56.7 kB]
Fetched 56.7 kB in 0s (64.8 kB/s)
Unpacking libcrypt-ssleay-perl (from .../libcrypt-ssleay-perl_0.57-2_i386.deb) ...
Processing triggers for man-db ...
Setting up libcrypt-ssleay-perl (0.57-2) ...
</pre>
<p>Keep checking for more updates <img src='http://www.yoursearchbuddy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Search and install packages in Linux" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/search-install-packages-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Alert Box &#8211; Android Development</title>
		<link>http://www.yoursearchbuddy.com/display-alert-box-android-development</link>
		<comments>http://www.yoursearchbuddy.com/display-alert-box-android-development#comments</comments>
		<pubDate>Thu, 26 May 2011 22:42:16 +0000</pubDate>
		<dc:creator>techno</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[How to?]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[android development]]></category>

		<guid isPermaLink="false">http://www.yoursearchbuddy.com/?p=5080</guid>
		<description><![CDATA[You can add alert box in your android application and grab user input to decide what to do next. So, let say before user closes your application you want to... <a class="meta-more" href="http://www.yoursearchbuddy.com/display-alert-box-android-development">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You can add alert box in your android application and grab user input to decide what to do next. So, let say before user closes your application you want to ask user to confirm if they really wish to exit, then here is a small example:</p>
<p>In my case there is only one activity thus i will show alert box if they click back:</p>
<pre>
public boolean onKeyDown(int keyCode, KeyEvent event) {
	if (keyCode == KeyEvent.KEYCODE_BACK) {
		show_alert();
		return true;
	}
	return super.onKeyDown(keyCode, event);
}

private void show_alert() {
	// TODO Auto-generated method stub
	 AlertDialog.Builder alert_box=new AlertDialog.Builder(this);
	 alert_box.setMessage("Do you want to exit?");
	 alert_box.setPositiveButton("Yes",new DialogInterface.OnClickListener() {
	 @Override
	 public void onClick(DialogInterface dialog, int which) {
	 <strong>// Close application</strong>
			finish();
		}
	 });
	 alert_box.setNegativeButton("No", new DialogInterface.OnClickListener() {
	 @Override
	 public void onClick(DialogInterface dialog, int which) {
	<strong> // Do whatever you wish, i am show Toast</strong>
	 Toast.makeText(getApplicationContext(), "No Button Clicked", Toast.LENGTH_LONG).show();
	 }
	 });

	 alert_box.show();
}
</pre>
<p><strong>This is how this looks like</strong>:</p>
<div align="center">
<img src="http://farm4.static.flickr.com/3064/5763258240_97f0b0be8b.jpg" alt="alert box android" title="Display Alert Box   Android Development" />
</div>
<p>Keep checking for more tips on Android Development</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yoursearchbuddy.com/display-alert-box-android-development/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

