Breadcrumb for post

function the_breadcrumb() {
		echo '<ul id="crumbs">';
	if (!is_home()) {
		echo '<li><a href="';
		echo home_url();
		echo '">';
		echo 'Home';
		echo "</a></li>";
		if (is_category() || is_single()) {
			echo '<li>';
			echo the_category();
			echo '</li>';
		elseif (is_search()) {
			echo '<li>Search Query for ';
			echo the_search_query();
			echo '</li>';
		elseif (bp_is_user_activity() || bp_is_my_profile() || bp_is_page( BP_MEMBERS_SLUG ) || bp_is_group() || bp_is_page( BP_GROUPS_SLUG ) || bp_is_page( BP_ACTIVITY_SLUG ) || bp_is_page( BP_FORUMS_SLUG )) {
	elseif (is_tag()) {single_tag_title();}
	elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo "<li>Blog Archives"; echo'</li>';}
	elseif (is_search()) {echo"<li>Search Results"; echo'</li>';}
	echo '</ul>';
function buddypress_breadcrumb() {
	global $bp;
$bp_user_link = $bp->loggedin_user->domain;
$bp_user_logout = wp_logout_url( bp_get_root_domain());
global $current_user;

   if ( bp_is_my_profile() ) echo '<a href="'.SITE_URL.'/members/">Members</a>';
          if ( bp_is_page( BP_MEMBERS_SLUG ) && !bp_is_user()) echo '<a href="'.SITE_URL.'/members/">Members</a>';
          if ( bp_is_group() ) echo '<a href="'.SITE_URL.'/groups/">Groups</a>';
          if ( bp_is_page( BP_GROUPS_SLUG ) && !bp_is_group() ) echo '<a href="'.SITE_URL.'/groups/">Groups</a>';
          if ( bp_is_page( BP_ACTIVITY_SLUG ) ) echo '<a href="'.SITE_URL.'/activity/">Activity</a>';
          if ( bp_is_page( BP_FORUMS_SLUG )) echo '<a href="'.SITE_URL.'/forums/">Forums</a>';
          if ( bp_is_user_activity() ) echo '<a href="'.$bp_user_link.'">'.$current_user->display_name.'</a>';

Find a name of the package in ubuntu

I have been trying to find a package name in ubuntu.Thats makes it keep on hitting my mind.Atlast i have landed up with a solution by googling.

Here is the command that you can try with name of the package you know and it will tell you the exact package name.

sudo apt-cache search package-name;

For example, i want to install java sdk in Ubuntu, but i do not know the exatly package name to install, i can issue following command to search “java sdk”.

sudo apt-cache search java sdk

After executing the above command you will get the exact name of the package like

sudo apt-get install sun-java6-sdk