<?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>Ashfame &#124; Tech Blog &#187; How To / Tutorials</title>
	<atom:link href="http://blog.ashfame.com/category/how-to-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ashfame.com</link>
	<description>Hacking life of Power Users and Webmasters</description>
	<lastBuildDate>Thu, 15 Dec 2011 23:35:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://blog.ashfame.com/?pushpress=hub'/>
<cloud domain='blog.ashfame.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Fetch comments of a specific category in WordPress</title>
		<link>http://blog.ashfame.com/2011/04/get-comments-category-wordpress/</link>
		<comments>http://blog.ashfame.com/2011/04/get-comments-category-wordpress/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 18:31:34 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=907</guid>
		<description><![CDATA[WordPress already provides an easy function for fetching the comments get_comments() but the function only supports fetching comments of a particular user, or for a particular post and not fetching comments of a particular category. The code for the former two cases, is pretty simple but the last one is not so simple. Here are [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/" rel="bookmark">Show recent comments of a particular user in WordPress</a><!-- (27.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/wordpress-plugin-move-comments-between-posts-change-parents/" rel="bookmark">WordPress Plugin to move comments between posts and change parents</a><!-- (23.6)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/pagination-approach-get-posts-wordpress/" rel="bookmark">Pagination approach using get_posts() in WordPress</a><!-- (21)--></li>
		<li><a href="http://blog.ashfame.com/2007/12/wordpress-bug-fix-categories-shows-incorrect-number-posts-2/" rel="bookmark">WordPress Bug &#038; its Fix : Categories shows incorrect number of posts</a><!-- (17.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/07/display-posts-from-another-wordpress-installation/" rel="bookmark">Display posts from another WordPress installation</a><!-- (14.6)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>WordPress already provides an easy function for fetching the comments <strong>get_comments()</strong> but the function only supports fetching comments of a particular user, or for a particular post and not fetching comments of a particular category. The code for the former two cases, is pretty simple but the last one is not so simple. Here are the code snippets as examples:</p>
<h2>Fetching Comments of a particular user</h2>
<pre class="brush: php; title: ; notranslate">
$args = array( 'number' =&gt; 10, 'status' =&gt; 'approve', 'user_id' =&gt; 1 );
$comments_list_by_user = get_comments( $args );
print_r ( $comments_list_by_user );
</pre>
<h2>Fetching Comments of a particular post</h2>
<pre class="brush: php; title: ; notranslate">
$args = array( 'number' =&gt; 10, 'status' =&gt; 'approve', 'post_id' =&gt; 30 );
$comments_list_post = get_comments( $args );
print_r ( $comments_list_post );
</pre>
<h2>Fetching Comments of a particular category</h2>
<p>Here is how you can fetch comments for a specific category:</p>
<pre class="brush: php; title: ; notranslate">
// Posts per page setting
$ppp = get_option('posts_per_page'); // either use the WordPress global Posts per page setting or set a custom one like $ppp = 10;
$custom_offset = 0; // If you are dealing with your custom pagination, then you can calculate the value of this offset using a formula

// category (can be a parent category)
$category_parent = 3;

// lets fetch sub categories of this category and build an array
$categories = get_terms( 'category', array( 'child_of' =&gt; $category_parent, 'hide_empty' =&gt; false ) );
$category_list =  array( $category_parent );
foreach( $categories as $term ) {
 $category_list[] = (int) $term-&gt;term_id;
}

// fetch posts in all those categories
$posts = get_objects_in_term( $category_list, 'category' );

$sql = &quot;SELECT comment_ID, comment_date, comment_content, comment_post_ID
 FROM {$wpdb-&gt;comments} WHERE
 comment_post_ID in (&quot;.implode(',', $posts).&quot;) AND comment_approved = 1
 ORDER by comment_date DESC LIMIT $ppp OFFSET $custom_offset&quot;;

$comments_list = $wpdb-&gt;get_results( $sql );

if ( count( $comments_list ) &gt; 0 ) {
 $date_format = get_option( 'date_format' );
 echo '&lt;ul&gt;';
 foreach ( $comments_list as $comment ) {
 echo '&lt;li&gt;Comment: '.substr( $comment-&gt;comment_content, 0, 50 ).'..&lt;br /&gt;'.date( $date_format, strtotime( $comment-&gt;comment_date ) ).'&lt;br /&gt;Post: &lt;a href=&quot;'.get_permalink( $comment-&gt;comment_post_ID ).'&quot;&gt;'.get_the_title( $comment-&gt;comment_post_ID ).'&lt;/a&gt;&lt;/li&gt;';
 }
 echo '&lt;/ul&gt;';
} else {
 echo '&lt;p&gt;No comments&lt;/p&gt;';
}
?&gt;
</pre>
<p>What we have done here is that, first we fetch sub categories of the category specified so as to include comments on those posts too which are under a sub-category of the specified category. Then we build an array of all these categories, where we need to look up for comments. Then we fetch the posts ID under those categories and then we use a query to fetch the comments on those posts. Finally, we display them as per our need by iterating <strong>$comments_list</strong>.</p>
<p>In case you want to fetch the comments of a  particular user under a specific category, then you can just change the SQL query in the above code to this:</p>
<pre class="brush: php; title: ; notranslate">
$user_id = 1; // change this to the user ID either manually or let it come from some other code
$sql = &quot;SELECT comment_ID, comment_date, comment_content, comment_post_ID
 FROM {$wpdb-&gt;comments} WHERE
 comment_post_ID in (&quot;.implode(',', $posts).&quot;) AND comment_approved = 1 AND user_id = $user_id
 ORDER by comment_date DESC LIMIT $ppp OFFSET $custom_offset&quot;;
</pre>
<p>I have used simple names for variables here to make it easy to understand. Always take care to provide your code in its own namespace, choose unique (non-generic) names. Read <a href="http://andrewnacin.com/2010/05/11/in-wordpress-prefix-everything/">prefix everything in WordPress</a>.</p>
<p>Need help? Got questions? Comment section is all yours! <img src='http://blog.ashfame.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/" rel="bookmark">Show recent comments of a particular user in WordPress</a><!-- (27.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/wordpress-plugin-move-comments-between-posts-change-parents/" rel="bookmark">WordPress Plugin to move comments between posts and change parents</a><!-- (23.6)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/pagination-approach-get-posts-wordpress/" rel="bookmark">Pagination approach using get_posts() in WordPress</a><!-- (21)--></li>
		<li><a href="http://blog.ashfame.com/2007/12/wordpress-bug-fix-categories-shows-incorrect-number-posts-2/" rel="bookmark">WordPress Bug &#038; its Fix : Categories shows incorrect number of posts</a><!-- (17.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/07/display-posts-from-another-wordpress-installation/" rel="bookmark">Display posts from another WordPress installation</a><!-- (14.6)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/04/get-comments-category-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress plugin Facebook Like Thumbnail Updates</title>
		<link>http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/</link>
		<comments>http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 21:48:00 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=912</guid>
		<description><![CDATA[I have updated my WordPress plugin to fix Facebook Like Thumbnails to version 0.2 which I am sure will make the existing users happy! Some of the users who quickly upgraded might be facing issues because of a silly mistake on my part. If the plugin has disappeared from the plugins listing, then you would [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/" rel="bookmark">WordPress Plugin to fix Facebook Like Thumbnail</a><!-- (53.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/post-twitter-updates-tweets-facebook-automatically/" rel="bookmark">Post Twitter updates on Facebook automatically</a><!-- (26.4)--></li>
		<li><a href="http://blog.ashfame.com/2011/02/kontactr-wordpress-plugin/" rel="bookmark">Kontactr WordPress plugin</a><!-- (24.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/wordpress-plugin-move-comments-between-posts-change-parents/" rel="bookmark">WordPress Plugin to move comments between posts and change parents</a><!-- (22.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/12/add-facebook-video-wordpress/" rel="bookmark">Add Facebook video in WordPress</a><!-- (20.3)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>I have updated my WordPress plugin to fix Facebook Like Thumbnails to version 0.2 which I am sure will make the existing users happy! <img src='http://blog.ashfame.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Some of the users who quickly upgraded might be facing issues because of a silly mistake on my part. If the plugin has disappeared from the plugins listing, then you would have to delete the folder &#8220;<strong>facebook-like-thumbnail</strong>&#8221; folder in your plugins folder (<strong>/wp-content/plugins/</strong>) and then reinstall the plugin by typing &#8220;<strong>Facebook Like Thumbnail</strong>&#8221; in <strong>Add New Plugins</strong> screen. I apologise for the issue, please excuse me, I am not used to pushing updates to public repositories.</p>
<p>The plugin now features an options pages which can be found under <strong>Settings</strong> &gt; <strong>Facebook Like Thumbnail</strong>. You can specify your default thumbnail image on that page, no more code edits are required. This was a necessary move as the users would have to edit the plugin to specify their default image after every upgrade.</p>
<p>The plugin now supports <strong>featured thumbnails</strong> and <strong>NextGEN galleries</strong> (other than the slideshow ones).</p>
<p>The plugin picks the thumbnail in the following order (whichever is found first)</p>
<ul>
<li>If its a post or page
<ul>
<li>Featured Thumbnail</li>
<li>First Image in the post</li>
<li>Default</li>
</ul>
</li>
<li>If its a Front Page or Search Page
<ul>
<li>Default</li>
</ul>
</li>
<li>Anything else
<ul>
<li>First image in the first post of the loop</li>
<li>Default</li>
</ul>
</li>
</ul>
<p><strong><a href='http://wordpress.org/extend/plugins/facebook-like-thumbnail/'>Facebook Like Thumbnail</a></strong> <br/></p><p>Author: <a href="http://blog.ashfame.com/">Ashfame</a>, version: 0.2, updated: April 16, 2011, <br/>Requires WP version: 2.7 or higher, tested up to: 3.1.4.<br/><a href="http://downloads.wordpress.org/plugin/facebook-like-thumbnail.0.2.zip">Download</a> (18 990 hits) <img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/full.png"/><img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/full.png"/><img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/full.png"/><img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/full.png"/><img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/half.png"/> (23 votes)</p>
<p>Adding the author avatar on author pages to be used as thumbnail and ignoring smilies as a possible match for thumbnail are on my To-do lists. If you have any suggestions, comments section is all yours.</p>
<p>Also the plugin can be totally uninstalled by using the delete option from WordPress dashboard, it won&#8217;t leave anything behind in the database.</p>
<p>I have tried to keep the plugin as fast as it can be. If any developer can provide any suggestions/improvements, I would love that. If you have any questions or facing any issues because of the early upgrade or need any help, give me a shout in the comments.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/" rel="bookmark">WordPress Plugin to fix Facebook Like Thumbnail</a><!-- (53.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/post-twitter-updates-tweets-facebook-automatically/" rel="bookmark">Post Twitter updates on Facebook automatically</a><!-- (26.4)--></li>
		<li><a href="http://blog.ashfame.com/2011/02/kontactr-wordpress-plugin/" rel="bookmark">Kontactr WordPress plugin</a><!-- (24.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/wordpress-plugin-move-comments-between-posts-change-parents/" rel="bookmark">WordPress Plugin to move comments between posts and change parents</a><!-- (22.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/12/add-facebook-video-wordpress/" rel="bookmark">Add Facebook video in WordPress</a><!-- (20.3)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Pagination approach using get_posts() in WordPress</title>
		<link>http://blog.ashfame.com/2011/04/pagination-approach-get-posts-wordpress/</link>
		<comments>http://blog.ashfame.com/2011/04/pagination-approach-get-posts-wordpress/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 18:31:05 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=910</guid>
		<description><![CDATA[Yesterday, I talk about using WP_query or query_posts or get_posts and today I am going to explain the approach I use to have pagination using get_posts(). The other two methods take care of the pagination by them self by just passing the paged parameter along with the function call. But get_posts() is more of a [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/04/difference-wp-query-vs-query-posts-vs-get-posts/" rel="bookmark">Which one to use WP_Query vs query_posts() vs get_posts()?</a><!-- (21.8)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/get-comments-category-wordpress/" rel="bookmark">Fetch comments of a specific category in WordPress</a><!-- (17.2)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (12.6)--></li>
		<li><a href="http://blog.ashfame.com/2010/11/add-custom-field-registration-wordpress/" rel="bookmark">Adding a custom user profile field to registration in WordPress</a><!-- (11.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (11.7)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I talk about using <a href="http://blog.ashfame.com/2011/04/difference-wp-query-vs-query-posts-vs-get-posts/">WP_query or query_posts or get_posts</a> and today I am going to explain the approach I use to have pagination using <strong>get_posts()</strong>. The other two methods take care of the pagination by them self by just passing the <em>paged</em> parameter along with the function call. But <strong>get_posts()</strong> is more of a raw function which I used to create paginated data on the basis of already existing pagination.</p>
<p>Here for the sake of explanation of approach, I am making the content paginated where content is already paginated. We will make our extra content work in order to the global <strong>$paged</strong> variable.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// Posts Per Page option
$ppp = get_option('posts_per_page');

if (!is_paged()) {
	$custom_offset = 0;
} else {
	$custom_offset = $ppp*($paged-1);
}

// Lets suppose we are querying for posts of a certain author in a particular category
$args = array(
'numberposts' =&gt; $ppp,
'offset' =&gt; $custom_offset,
'category' =&gt; 7, // Category ID of category 'Articles'
'author' =&gt; $author_id
);

$posts_data = get_posts( $args );

if ( count( $posts_data ) &gt; 0 ) {
	echo '&lt;ul&gt;';
	foreach ( $posts_data as $post ) {
		echo '&lt;li&gt;&lt;a href=&quot;'.get_permalink( $post-&gt;ID ).'&quot;&gt;'.$post-&gt;post_title.'&lt;/a&gt;&lt;/li&gt;';
	}
	echo '&lt;/ul&gt;';
} else {
	echo '&lt;p&gt;No articles by this user&lt;/p&gt;';
}
?&gt;
</pre>
<p>This way the code make use of the global <strong>$paged</strong> variable to see which page it is on, and set the value of offset accordingly making the fetched content using get_posts itself paginated. On Page 1, the offset will be zero, it will fetch the posts limited by the posts per page value and on Page 2, the offset will be calculated to leave the posts already shown on previous page and query further posts limited by the posts per page value.</p>
<p>Got questions? Comment section is down below.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/04/difference-wp-query-vs-query-posts-vs-get-posts/" rel="bookmark">Which one to use WP_Query vs query_posts() vs get_posts()?</a><!-- (21.8)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/get-comments-category-wordpress/" rel="bookmark">Fetch comments of a specific category in WordPress</a><!-- (17.2)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (12.6)--></li>
		<li><a href="http://blog.ashfame.com/2010/11/add-custom-field-registration-wordpress/" rel="bookmark">Adding a custom user profile field to registration in WordPress</a><!-- (11.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (11.7)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/04/pagination-approach-get-posts-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using Ubuntu Notification System &#8211; NotifyOSD</title>
		<link>http://blog.ashfame.com/2011/04/ubuntu-notification-system/</link>
		<comments>http://blog.ashfame.com/2011/04/ubuntu-notification-system/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 11:30:58 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[NotifyOSD]]></category>
		<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=904</guid>
		<description><![CDATA[Ubuntu features a notification system, where you can see a message notifying you about some particular event. Rhythmbox uses it to show the next track when a track ends, Filezilla shows a notification that file transfers are completed when its window is not in focus (Very handy!) and so on several applications can use it [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/04/pomodoro-timer-in-ubuntu/" rel="bookmark">Pomodoro Timer in Ubuntu</a><!-- (24.4)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/remove-windows-genuine-notification/" rel="bookmark">Remove Windows Genuine Notification</a><!-- (22.2)--></li>
		<li><a href="http://blog.ashfame.com/2011/01/connect-ftp-server-ubuntu-without-client/" rel="bookmark">Connect to a FTP server in Ubuntu without any FTP client</a><!-- (16)--></li>
		<li><a href="http://blog.ashfame.com/2011/03/quickly-setup-localhost-environment-ubuntu/" rel="bookmark">Quickly setup a localhost environment in Ubuntu</a><!-- (14.9)--></li>
		<li><a href="http://blog.ashfame.com/2008/02/safely-remove-usb-drive-safely-remove-hardware-icon-disappears-system-tray/" rel="bookmark">How to safely remove your USB drive when Safely Remove Hardware icon disappears from the system tray</a><!-- (14.3)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Ubuntu features a notification system, where you can see a message notifying you about some particular event. Rhythmbox uses it to show the next track when a track ends, Filezilla shows a notification that file transfers are completed when its window is not in focus (Very handy!) and so on several applications can use it to notify users in the same way (keeping the UI consistent, which is a good design principle).</p>
<h2>Rhythmbox Song Notification</h2>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/04/rhythmbox-notify.png" alt="rhythmbox notify" /></p>
<h2>Filezilla Transfer Complete Notification</h2>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/04/filezilla-notify.png" alt="filezilla notify" /></p>
<p>We too can use this easily in our shell scripts. It supports more functionality if you are working in Python or C (Read <a href="https://wiki.ubuntu.com/NotifyOSD">Ubuntu NotifyOSD</a>) but for shell scripts it does the pretty fine job too, if you just want to make Ubuntu work for you.</p>
<h2>Using NotifyOSD in shell scripts</h2>
<p>Make sure you have <strong>libnotify-bin</strong> installed, if not, just install it by typing the following command in a terminal:</p>
<pre class="brush: bash; title: ; toolbar: false; notranslate">sudo apt-get install libnotify-bin</pre>
<h2><em>notify-send</em> &#8211; Program to send desktop notifications</h2>
<p>With notify-send you can sends desktop notifications to the user via a notification daemon from the command line.  These notifications can be used to inform the user about an event or display some form of information without getting in the user’s way.</p>
<p>Check out the man page for it, to see the options it has to offer &#8211; <strong>man notify-send</strong></p>
<p>Enter this in a terminal, <strong>notify-send &#8220;Hello&#8221; &#8220;this is just a test&#8221;</strong> and you will see the notification appearing up on your desktop.I usually collect icons that I would like to use and then use them in notification bubbles in the following manner:</p>
<p>In terminal, you can use it like</p>
<pre class="brush: bash; title: ; toolbar: false; notranslate">notify-send -t 2000 -i /home/ashfame/Dropbox/Ubuntu/icons/console.png &quot;Hello Ashfame&quot; &quot;This is your computer, lets start with work&quot;</pre>
<p>In a shell script, use it like (take care of the screen where you want to display the message &#8211; I am on a dual screen setup)</p>
<pre class="brush: bash; title: ; toolbar: false; notranslate">DISPLAY=:0 notify-send -t 2000 -i /home/ashfame/Dropbox/Ubuntu/icons/console.png &quot;Hello Ashfame&quot; &quot;This is your computer, lets start with work&quot;</pre>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/04/notify-example.png" alt="notify example" /></p>
<p>Time parameter (-t) lets you specify the time in miliseconds after which the notification will fade away. Its affected with a bug right now (will work on the default timeout even if you set it, but will be fixed in upcoming releases anyway, so better use it).</p>
<p>Icon parameter (-i) is used to specify the icon which is to be used in the notification.</p>
<p>You can also use it to notify you when a certain command has completed in the terminal, like when you were compiling some code or anything which takes a good amount of time so that you can get to know the moment it is ready. As an example, you can use it like</p>
<pre class="brush: bash; title: ; toolbar: false; notranslate">make &amp;&amp; notify-send &quot;DONE&quot;</pre>
<h2>Making practical use of NotifyOSD using notify-send</h2>
<p>You can create shell scripts for additional functionality you want, right? Just use notify-send where you want you to be informed or alerted.</p>
<p>Here are the examples, where I use them:</p>
<ol>
<li><strong>WordPress new version alert</strong></li>
<li><strong>Alert if my site is down</strong></li>
<li><strong>Health check</strong> &#8211; Tells me to take breaks, sleep at night and if I resist, lock the screen</li>
<li><strong>Pomodoro technique</strong> for quantizing time for increasing productivity</li>
<li><strong>Random fun facts</strong> from randomfunfacts.com</li>
</ol>
<p>You can build a lot more useful stuff as per your needs. Share your ideas in the comments and we can discuss <img src='http://blog.ashfame.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/04/pomodoro-timer-in-ubuntu/" rel="bookmark">Pomodoro Timer in Ubuntu</a><!-- (24.4)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/remove-windows-genuine-notification/" rel="bookmark">Remove Windows Genuine Notification</a><!-- (22.2)--></li>
		<li><a href="http://blog.ashfame.com/2011/01/connect-ftp-server-ubuntu-without-client/" rel="bookmark">Connect to a FTP server in Ubuntu without any FTP client</a><!-- (16)--></li>
		<li><a href="http://blog.ashfame.com/2011/03/quickly-setup-localhost-environment-ubuntu/" rel="bookmark">Quickly setup a localhost environment in Ubuntu</a><!-- (14.9)--></li>
		<li><a href="http://blog.ashfame.com/2008/02/safely-remove-usb-drive-safely-remove-hardware-icon-disappears-system-tray/" rel="bookmark">How to safely remove your USB drive when Safely Remove Hardware icon disappears from the system tray</a><!-- (14.3)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/04/ubuntu-notification-system/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Quickly setup a localhost environment in Ubuntu</title>
		<link>http://blog.ashfame.com/2011/03/quickly-setup-localhost-environment-ubuntu/</link>
		<comments>http://blog.ashfame.com/2011/03/quickly-setup-localhost-environment-ubuntu/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 10:59:45 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=899</guid>
		<description><![CDATA[Although, I use Ubuntu, this should apply to a large number of linux distros. Every developer uses a local environment to develop locally before testing it live. I kinda avoid that root by mounting my FTP webspace in Ubuntu and directly working on live files (there is no need of download and upload as you [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/01/connect-ftp-server-ubuntu-without-client/" rel="bookmark">Connect to a FTP server in Ubuntu without any FTP client</a><!-- (19.7)--></li>
		<li><a href="http://blog.ashfame.com/2008/07/compiz-fusion-ultimate-3d-environment/" rel="bookmark">Compiz Fusion &#8211; Unmatched 3D Environment in Linux</a><!-- (16.9)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/ubuntu-notification-system/" rel="bookmark">Using Ubuntu Notification System &#8211; NotifyOSD</a><!-- (15.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/" rel="bookmark">Integrate bbpress forum with your wordpress setup</a><!-- (15.6)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/search-replace-text-multiple-documents-quickly/" rel="bookmark">Search and Replace text in multiple documents quickly</a><!-- (14.7)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Although, I use Ubuntu, this should apply to a large number of linux distros. Every developer uses a local environment to develop locally before testing it live. I kinda avoid that root by mounting my FTP webspace in Ubuntu and directly working on live files (there is no need of download and upload as you might think), but I wanted to do some CPU intensive job for a client for which I needed to setup a localhost environment, so I thought I would share this with everyone on my blog.</p>
<h2>Install LAMP stack</h2>
<p>Fire up a terminal (<em><strong>Applications</strong></em> &gt; <em><strong>Accessories</strong></em> &gt; <em><strong>Terminal</strong></em>) and enter this command:</p>
<p><strong>sudo apt-get install lamp-server^</strong></p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/lamp-server.png" alt="lamp-server" /></p>
<p>Enter <strong>y</strong> for yes when it asks to continue after estimation of how much data will be downloaded and how much will be used on disk.</p>
<p>It will install quickly and can take a few minutes depending on your internet speed, and then it will ask you to setup the password for MySQL user <strong>root</strong>. It is usually left blank on localhost machines as they are used only for development purposes but last time I left it blank, I had to deal with the issues that it didn&#8217;t change the password to blank but has something else and I had to turn off the password prompt for root access. Avoid doing all that by just selecting &#8220;root&#8221; or anything you want as the password of the root user of MySQL.</p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/mysql-root-password.png" alt="mysql-root-password" /></p>
<p>Confirm it once (Type the password and press <em><strong>Tab</strong></em> key).</p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/mysql-root-password-confirm.png" alt="mysql-root-password-confirm" /></p>
<p>and you are done.</p>
<h2>Test Apache Webserver</h2>
<p>Just open <strong>http://localhost/</strong> in your browser and it will show up a message &#8220;<strong>It works!</strong>&#8221; which means Apache is working fine.</p>
<h2>Test PHP</h2>
<p>Create a file named <strong>phpinfo.php</strong> in <strong>/var/www/</strong> to check if PHP is working fine.</p>
<p><strong>sudo nano /var/www/phpinfo.php</strong></p>
<p>Enter the content as <strong>&lt;?php phpinfo(); ?&gt;</strong> and save the file by hitting <em><strong>Ctrl + X</strong></em> and then <em><strong>y</strong></em> (for yes) and <em><strong>return</strong></em> key (enter).</p>
<p>Restart Apache webserver by the following command &#8211; <strong>sudo /etc/init.d/apache2 restart</strong></p>
<p>Now open <strong>http://localhost/phpinfo.php</strong> and it will show up a page with lots of php related information, if you can see it, PHP is working fine.</p>
<h2>Install phpMyAdmin</h2>
<p>Enter this command in terminal &#8211; <strong>sudo apt-get install libapache2-mod-auth-mysql phpmyadmin</strong></p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/phpmyadmin-install.png" alt="phpmyadmin-install" /></p>
<p>Select <strong>Apache</strong> as the web server by pressing <strong><em>Space</em></strong> and then <strong><em>Tab</em></strong> key and press <em><strong>enter</strong></em> key.</p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/select-apache.png" alt="select-apache" /></p>
<p>Press <strong>Yes</strong> to configure database for phpmyadmin.</p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/configure-phpmyadmin.png" alt="configure-phpmyadmin" /></p>
<p>Provide password which we set as &#8220;<strong>root</strong>&#8221; earlier.</p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/phpmyadmin1.png" alt="phpmyadmin1" /></p>
<p>Again, enter &#8220;<strong>root</strong>&#8220;.</p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/phpmyadmin2.png" alt="phpmyadmin2" /></p>
<p>Confirm it, and then you are done.</p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/03/phpmyadmin3.png" alt="phpmyadmin3" /></p>
<h2>Test phpMyAdmin</h2>
<p>Now open <strong>http://localhost/phpmyadmin/</strong> in your brower to access phpmyadmin and you can login with <strong>username</strong> and <strong>password</strong> both as <em><strong>root</strong></em>.</p>
<p>Pretty quick &amp; easy!</p>
<p>Everything is done, you have your web root at <strong>/var/www/</strong> where you will need super user permissions to write files, I will do a follow up post on how you can make this easier by keeping your files in your Home directory instead and a bit of extra which will make it totally complete.</p>
<p>Subscribe so that you don&#8217;t miss updates! RSS/Email options are in the sidebar.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/01/connect-ftp-server-ubuntu-without-client/" rel="bookmark">Connect to a FTP server in Ubuntu without any FTP client</a><!-- (19.7)--></li>
		<li><a href="http://blog.ashfame.com/2008/07/compiz-fusion-ultimate-3d-environment/" rel="bookmark">Compiz Fusion &#8211; Unmatched 3D Environment in Linux</a><!-- (16.9)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/ubuntu-notification-system/" rel="bookmark">Using Ubuntu Notification System &#8211; NotifyOSD</a><!-- (15.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/" rel="bookmark">Integrate bbpress forum with your wordpress setup</a><!-- (15.6)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/search-replace-text-multiple-documents-quickly/" rel="bookmark">Search and Replace text in multiple documents quickly</a><!-- (14.7)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/03/quickly-setup-localhost-environment-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Deal with Blog Scrappers getting indexed quicker than the original site</title>
		<link>http://blog.ashfame.com/2011/03/blog-scrappers-getting-indexed-quicker-original-site/</link>
		<comments>http://blog.ashfame.com/2011/03/blog-scrappers-getting-indexed-quicker-original-site/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 20:41:36 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=895</guid>
		<description><![CDATA[Although its not something that one should be worried about as such things often happen, and its actually a sign that you are growing. I would suggest you to just keep going on with the quality content on your site and not to worry about them scrapping your articles. Google does a pretty good job [...]<ul>
		<li><a href="http://blog.ashfame.com/2008/01/promote-blog-site-brand-college-5plus1-ways/" rel="bookmark">5+1 Ways of promoting your Blog/Site/Brand name in your college</a><!-- (27.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/12/vps-hosting-benefits-growing-site/" rel="bookmark">VPS Hosting Benefits for a Growing Site</a><!-- (16.5)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/" rel="bookmark">Add blog feed to Facebook notes</a><!-- (14)--></li>
		<li><a href="http://blog.ashfame.com/2009/10/how-to-start-website-blog/" rel="bookmark">How to start a website or blog</a><!-- (13.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/create-pdf-pages-url-embed-wordpress-blog/" rel="bookmark">Create PDF pages from URL and embed link in WordPress blog</a><!-- (13.3)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Although its not something that one should be worried about as such things often happen, and its actually a sign that you are growing. I would suggest you to just keep going on with the quality content on your site and not to worry about them scrapping your articles. Google does a pretty good job in killing spam blogs. They generally gain traction for a month or so and then they are completely gone.</p>
<p>But sometimes it might happen that the spam blog site might be getting indexed quicker than the original site when your original site is pretty much new, so it can be a temporary hold for your organic traffic growth. In such case, we can deal with them by delaying the feeds for a certain amount of time as all these scrappers work by pulling articles from your feeds and then publishing your articles on their site.</p>
<h2>Delay publishing of WordPress Feeds:</h2>
<p>Here is the snippet with you can delay your feeds for (lets say 15 minutes):</p>
<pre class="brush: php; title: ; notranslate">
/**
 * Publish the content in the feed 15 minutes later
 * $where ist default-var in WordPress (wp-includes/query.php)
 * This function an a SQL-syntax
 */
function publish_later_on_feed($where)
{
	global $wpdb;
	if ( is_feed() )
	{
		// timestamp in WP-format
		$now = gmdate('Y-m-d H:i:s');
		// value for wait; + device
		$wait = '15'; // integer
		// http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff
		$device = 'MINUTE'; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR
		// add SQL-sytax to default $where
		$where .= &quot; AND TIMESTAMPDIFF($device, $wpdb-&gt;posts.post_date_gmt, '$now') &gt; $wait &quot;;
	}
	return $where;
}
add_filter('posts_where', 'publish_later_on_feed');
</pre>
<p>This will delay the feeds for 15 minutes (Line 14 in the code) before any new article appears in it. This is a very good approach in killing those automated blogs. But sometimes it can be the case, that they are not automated. Its humans manually copy-pasting the articles from various sources. In such a case, what you can do is to make your blog ping the crawl bots so that your chances of getting indexed first is maximised.</p>
<h2>Checklist for fast indexing:</h2>
<ul>
<li>Submit a <strong>Sitemap</strong> to <a href="http://www.google.com/webmasters/" target="_blank">Google Webmasters</a>.</li>
<li>Use <a href="http://wordpress.org/extend/plugins/pushpress/" target="_blank">PushPress</a> and <a href="http://wordpress.org/extend/plugins/rsscloud/">RSS Cloud</a> WordPress plugin.</li>
<li>Use WordPress option to ping <strong><em>pinging service</em></strong> and add several multiple pinging service there (less effective now but doing it won&#8217;t harm)</li>
<li>Delay your feeds for a few minutes (Scrappers won&#8217;t be manually monitoring your site every minute)</li>
</ul>
<p>Hope that helps you defeat those blood sucking scrappers. If you have any questions or tip, feel free to leave it in the comments below.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2008/01/promote-blog-site-brand-college-5plus1-ways/" rel="bookmark">5+1 Ways of promoting your Blog/Site/Brand name in your college</a><!-- (27.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/12/vps-hosting-benefits-growing-site/" rel="bookmark">VPS Hosting Benefits for a Growing Site</a><!-- (16.5)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/" rel="bookmark">Add blog feed to Facebook notes</a><!-- (14)--></li>
		<li><a href="http://blog.ashfame.com/2009/10/how-to-start-website-blog/" rel="bookmark">How to start a website or blog</a><!-- (13.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/create-pdf-pages-url-embed-wordpress-blog/" rel="bookmark">Create PDF pages from URL and embed link in WordPress blog</a><!-- (13.3)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/03/blog-scrappers-getting-indexed-quicker-original-site/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Last.fm free Internet Radio hack</title>
		<link>http://blog.ashfame.com/2011/03/last-fm-free-internet-radio-hack/</link>
		<comments>http://blog.ashfame.com/2011/03/last-fm-free-internet-radio-hack/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 18:31:44 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Last.fm]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[proxy-server]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=890</guid>
		<description><![CDATA[Last.fm is a great service which scrobbles (track) what music you listen to and then recommend you new music based on what you like to listen. You can totally keep your music database online and discover new music that you will actually like. It works great. It offers an Internet radio service which is paid [...]<ul>
		<li><a href="http://blog.ashfame.com/2008/10/dual-window-hack-google-chrome-javascript-plugin/" rel="bookmark">Dual Window hack in Google Chrome [Javascript Plugin]</a><!-- (18.9)--></li>
		<li><a href="http://blog.ashfame.com/2008/07/connect-internet-airtel-mobile-office/" rel="bookmark">Connect Internet through AirTel Mobile Office</a><!-- (14.4)--></li>
		<li><a href="http://blog.ashfame.com/2008/09/update-kaspersky-internet-security-2009-offline/" rel="bookmark">Update Kaspersky Internet Security 2009 offline</a><!-- (13.6)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/connect-bsnl-dialup-internet/" rel="bookmark">Connect to BSNL Dialup internet</a><!-- (13.6)--></li>
		<li><a href="http://blog.ashfame.com/2007/10/10-tips-to-make-blogging-stress-free-for-new-bloggers/" rel="bookmark">10 Tips to make blogging stress free for new bloggers</a><!-- (12.7)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.last.fm/" target="_blank">Last.fm</a> is a great service which scrobbles (track) what music you listen to and then recommend you new music based on what you like to listen. You can totally keep your music database online and discover new music that you will actually like. It works great. It offers an Internet radio service which is paid for countries other than US / UK / Germany. So, if you are from any other country, the trick is to use a country based proxy for listening to your Last.fm radio for free.</p>
<p>For the purpose of this post, I assume that you are ready running the Last.fm scrobbler (tool which sends your music statistics to Last.fm). In the menu, select Tools, and then options.</p>
<p style="text-align: center;"><img src="http://blog.ashfame.com/wp-content/uploads/2011/03/last-fm-scrobbler.png" alt="last-fm-scrobbler" /></p>
<p>In options, select Connection from the left. Click on Manual proxy settings and fill in the IP address and port of the proxy server.</p>
<p style="text-align: center;"><img src="http://blog.ashfame.com/wp-content/uploads/2011/03/last-fm-options.png" alt="last-fm-options" /></p>
<p>However note that only US / UK / Germany based proxy will work. Learn how to <strong>find a good and fast</strong> <a title="How to find Proxy servers with IP address and Port number" href="http://blog.ashfame.com/2011/02/find-proxy-servers-ip-address-port/">proxy server IP address &amp; port</a>.</p>
<p>Now you can enjoy free Internet radio without subscribing to their service. But I would suggest if you really enjoy their service, you should subscribe (its only 3USD/month). But I guess their policy of making users pay who are outside of US, UK &amp; Germany sort of turn people off to subscribe. They shouldn&#8217;t discriminate on the basis of geographical locations. After all, its love for music.</p>
<p>If you have any questions, leave a comment below.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2008/10/dual-window-hack-google-chrome-javascript-plugin/" rel="bookmark">Dual Window hack in Google Chrome [Javascript Plugin]</a><!-- (18.9)--></li>
		<li><a href="http://blog.ashfame.com/2008/07/connect-internet-airtel-mobile-office/" rel="bookmark">Connect Internet through AirTel Mobile Office</a><!-- (14.4)--></li>
		<li><a href="http://blog.ashfame.com/2008/09/update-kaspersky-internet-security-2009-offline/" rel="bookmark">Update Kaspersky Internet Security 2009 offline</a><!-- (13.6)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/connect-bsnl-dialup-internet/" rel="bookmark">Connect to BSNL Dialup internet</a><!-- (13.6)--></li>
		<li><a href="http://blog.ashfame.com/2007/10/10-tips-to-make-blogging-stress-free-for-new-bloggers/" rel="bookmark">10 Tips to make blogging stress free for new bloggers</a><!-- (12.7)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/03/last-fm-free-internet-radio-hack/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin to fix Facebook Like Thumbnail</title>
		<link>http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/</link>
		<comments>http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 19:36:56 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=888</guid>
		<description><![CDATA[Today, Facebook pushed live another change which made Like button work similar to what we had known the Share button to do. Just to brush up, Share button was used to show the Title, Description and a screenshot of the page which you shared and the Like button would only show up as a line [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/" rel="bookmark">WordPress plugin Facebook Like Thumbnail Updates</a><!-- (51.4)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/wordpress-plugin-move-comments-between-posts-change-parents/" rel="bookmark">WordPress Plugin to move comments between posts and change parents</a><!-- (22.9)--></li>
		<li><a href="http://blog.ashfame.com/2011/02/kontactr-wordpress-plugin/" rel="bookmark">Kontactr WordPress plugin</a><!-- (22.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/12/add-facebook-video-wordpress/" rel="bookmark">Add Facebook video in WordPress</a><!-- (21.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/keep-online-world-close-facebook/" rel="bookmark">Keep your online world close to Facebook</a><!-- (16)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Today, <a href="http://blog.ashfame.com/tag/facebook">Facebook</a> pushed live another change which made <strong><em>Like</em></strong> button work similar to what we had known the <strong><em>Share</em></strong> button to do. Just to brush up, <strong><em>Share</em></strong> button was used to show the Title, Description and a screenshot of the page which you shared and the <em><strong>Like</strong></em> button would only show up as a line that the <span style="text-decoration: underline;"><em>user</em> liked <em>XYZ Story</em> on <em>ABC site</em></span>. But now after the new change is live, like button functions the same as the Share button.</p>
<p>Here is a screenshot of how the new like would show up on your profile:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/02/facebook-new-like.png" alt="facebook-new-like" /></p>
<p>I don&#8217;t like the move as people tend to like a lot more stuff than what they share. This is going to stuff the stream with lots of noise. After like is not, and can&#8217;t be equivalent to share. I might like a post on Ubuntu tutorial but is that something I would want to share with everyone else. No! But that&#8217;s totally a different story.</p>
<p>Coming back to the point, many sites would show up random image of their page instead of an appropriate image. I have seen this on several blogs including mine, that sometimes an advertisement image would show up (from the sidebar), or a totally unrelated image of my another project (from the footer). so, I took this opportunity today to fix it for everyone.</p>
<p>You can check what thumbnail would Facebook show for a particular page by using their <a href="https://developers.facebook.com/tools/lint/">Lint tool</a>.</p>
<p>The problem can be solved for non-WordPress based or html sites or whatever, by adding this line to their head section.</p>
<pre class="brush: xml; title: ; notranslate">&lt;link rel=&quot;image_src&quot; href=&quot;http://example.com/logo.png&quot; /&gt;</pre>
<p>This will show that image on every page. But in WordPress, we can do a lot more, that&#8217;s because WordPress is a brilliant piece of software.</p>
<p>You can use the plugin to fix the issue. It will display the first image of the post or page you are on. In case someone likes your Category or Tag page, then the first image of the first post in the listing will be used.</p>
<div class="notice"><p><strong><a href='http://wordpress.org/extend/plugins/facebook-like-thumbnail/'>Facebook Like Thumbnail</a></strong> <br/></p><p>Author: <a href="http://blog.ashfame.com/">Ashfame</a>, version: 0.2, updated: April 16, 2011, <br/>Requires WP version: 2.7 or higher, tested up to: 3.1.4.<br/><a href="http://downloads.wordpress.org/plugin/facebook-like-thumbnail.0.2.zip">Download</a> (18 990 hits) <img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/full.png"/><img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/full.png"/><img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/full.png"/><img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/full.png"/><img src="http://blog.ashfame.com/wp-content/plugins/my-wordpress-plugin-info/img/half.png"/> (23 votes)</p></div>
<p>You will need to edit a line which is highlighted in the code below to change the default fallback image to your logo so that whenever, the post doesn&#8217;t have any image in it, your logo will be displayed. If you don&#8217;t edit that line, then my logo will be displayed and I might sue you for that.</p>
<p class="notice">I have added a couple of features in the plugin, so I don&#8217;t recommend you to use the snippet anymore. Using the plugin will make it easier for you to receive updates without touching any code. <a href="http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/">WordPress Facebook Like Thumbnail Plugin v0.2</a></p>
<p><del>In case, you don&#8217;t want to download yet another plugin, you can add the following code in your <a title="Making use of WordPress functions.php" href="http://blog.ashfame.com/2010/11/using-wordpress-functions-php/">functions.php file</a></del> I recommend everyone to use the plugin version instead so that you can receive updates automatically.</p>
<p>Facebook crawls your page every 24 hours (at max), so you may not see the change right away but you would see it instantaneously, if you use the Linter tool once for that page because it updates the thumbnail for that page, right away.</p>
<p>I might add an options page for it to add an image if users request start coming up. Also I will host it on WordPress repositories once I get the time to, as I will need to look into it first.</p>
<p>If you have any question, you can ask in the comments. Also, please like it (not share) to share it with other fellow bloggers.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/" rel="bookmark">WordPress plugin Facebook Like Thumbnail Updates</a><!-- (51.4)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/wordpress-plugin-move-comments-between-posts-change-parents/" rel="bookmark">WordPress Plugin to move comments between posts and change parents</a><!-- (22.9)--></li>
		<li><a href="http://blog.ashfame.com/2011/02/kontactr-wordpress-plugin/" rel="bookmark">Kontactr WordPress plugin</a><!-- (22.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/12/add-facebook-video-wordpress/" rel="bookmark">Add Facebook video in WordPress</a><!-- (21.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/keep-online-world-close-facebook/" rel="bookmark">Keep your online world close to Facebook</a><!-- (16)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/feed/</wfw:commentRss>
		<slash:comments>241</slash:comments>
		</item>
		<item>
		<title>How to find Proxy servers with IP address and Port number</title>
		<link>http://blog.ashfame.com/2011/02/find-proxy-servers-ip-address-port/</link>
		<comments>http://blog.ashfame.com/2011/02/find-proxy-servers-ip-address-port/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 10:03:10 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[hidemyass]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[proxy-server]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=886</guid>
		<description><![CDATA[Proxy servers are used to access Internet by routing your request to a proxy server instead of directly to the server with whom you are communicating with. The proxy server makes a request on your behalf and return the result of the same back to you. It helps in cases of Internet censorship when a [...]<ul>
		<li><a href="http://blog.ashfame.com/2009/12/how-to-find-bluetooth-wlan-mac-address-of-nokia-mobile-device/" rel="bookmark">How to find Bluetooth &amp; WLAN MAC address of Nokia mobile device</a><!-- (30.4)--></li>
		<li><a href="http://blog.ashfame.com/2008/07/fastest-finding-proxy-sites/" rel="bookmark">Fastest way of finding proxy sites</a><!-- (23.2)--></li>
		<li><a href="http://blog.ashfame.com/2007/12/wordpress-bug-fix-categories-shows-incorrect-number-posts-2/" rel="bookmark">WordPress Bug &#038; its Fix : Categories shows incorrect number of posts</a><!-- (16.8)--></li>
		<li><a href="http://blog.ashfame.com/2009/07/lyrster-find-songs-by-lyrics/" rel="bookmark">Lyrster helps you find songs by lyrics</a><!-- (15.9)--></li>
		<li><a href="http://blog.ashfame.com/2007/11/find-guest-bloggers/" rel="bookmark">How to find Guest Bloggers for you?</a><!-- (15.2)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Proxy servers are used to access Internet by routing your request to a proxy server instead of directly to the server with whom you are communicating with. The proxy server makes a request on your behalf and return the result of the same back to you. It helps in cases of Internet censorship when a particular website or web service is banned in your location, be it a country or an office.</p>
<p>What generally people do is to open a proxy site in which they type in the web address or URL they want to access and then the page is displayed in the browser by the proxy server and all the link on the page are converted so that further requests when a user clicks on a link are routed &amp; served by the proxy server only. But some desktop applications can also make use of proxy servers by configuring the options to route their requests to a proxy server for which you need the IP Address and Port number of the proxy server and login credentials (username &amp; password), in case the proxy server is a private server and not open for general public. Example: Web browsers, FTP clients, Torrent clients, Media players etc</p>
<p>And sometimes there is even a need of a country based proxy because services like Last.fm streams free internet radio to users from US, UK &amp; Germany. There can be several examples.</p>
<p>Whenever you need a good and stable proxy server, you can get a list at <a title="Proxy List" href="http://www.hidemyass.com/proxy-list/" target="_blank">HideMyAss.com</a>. The page itself keeps on updating the status of proxy servers.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/02/proxy-server-list.png" alt="proxy-server-list" /></p>
<p>You can filer proxy server listing by based on their location i.e. country, the port they run on (some applications only accept a proxy on a particular port or don&#8217;t let you change it)</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/02/filter-proxy-list.png" alt="filter-proxy-list" /></p>
<h2>How to find a good proxy server?</h2>
<p>If you observe the list, there are a lot of options to choose from. Good thing, but with more options comes the problem of picking up a good one. So, I will give you a quick tip to pick up a fast &amp; speedy proxy server.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/02/find-good-proxy.png" alt="find-good-fast-proxy-server" /></p>
<p>If you see the list, there are two bars which show the health of the proxy server. First one shows the speed and the other shows the connection time. So only look for those which show green state and hence are a good option. But chose those which are not completely green but those which are a little less because they are less likely to get a stream of more users and should sustain for more time before they go busy and stop working for you, hence you will need to make less switches as compared to picking up which is already stuffed by users. Moreover some web services might put up a restriction on users who might be using their service from the same IP (proxy server).</p>
<p>And also I would recommend to avoid using proxy servers for transferring any sensitive data like your gmail accounts, bank accounts etc. You can never be sure what they can do (I mean they are technically feasible of saving what data you pass through them which means your login credentials are exposed. If you have any questions, feel free to give me a shout in the comments.</p>
<p>In case you are a Stumble Upon user, then here is a quick tip (probably fastest method) to <a title="Fastest way of finding proxy sites" href="http://blog.ashfame.com/2008/07/fastest-finding-proxy-sites/">find proxy servers</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2009/12/how-to-find-bluetooth-wlan-mac-address-of-nokia-mobile-device/" rel="bookmark">How to find Bluetooth &amp; WLAN MAC address of Nokia mobile device</a><!-- (30.4)--></li>
		<li><a href="http://blog.ashfame.com/2008/07/fastest-finding-proxy-sites/" rel="bookmark">Fastest way of finding proxy sites</a><!-- (23.2)--></li>
		<li><a href="http://blog.ashfame.com/2007/12/wordpress-bug-fix-categories-shows-incorrect-number-posts-2/" rel="bookmark">WordPress Bug &#038; its Fix : Categories shows incorrect number of posts</a><!-- (16.8)--></li>
		<li><a href="http://blog.ashfame.com/2009/07/lyrster-find-songs-by-lyrics/" rel="bookmark">Lyrster helps you find songs by lyrics</a><!-- (15.9)--></li>
		<li><a href="http://blog.ashfame.com/2007/11/find-guest-bloggers/" rel="bookmark">How to find Guest Bloggers for you?</a><!-- (15.2)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/02/find-proxy-servers-ip-address-port/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Kontactr WordPress plugin</title>
		<link>http://blog.ashfame.com/2011/02/kontactr-wordpress-plugin/</link>
		<comments>http://blog.ashfame.com/2011/02/kontactr-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 12:21:17 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Kontactr]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=880</guid>
		<description><![CDATA[My friend, Shankar Ganesh, is involved with Kontactr which provides an easy way for people to let others contact them. After some talk with my friend about implementing it as a plugin on the WordPress side, today I am going to do a quick post on Kontactr implementation on WordPress. Its very basic at the [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/" rel="bookmark">WordPress plugin Facebook Like Thumbnail Updates</a><!-- (24.5)--></li>
		<li><a href="http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/" rel="bookmark">WordPress Plugin to fix Facebook Like Thumbnail</a><!-- (24)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/wordpress-plugin-move-comments-between-posts-change-parents/" rel="bookmark">WordPress Plugin to move comments between posts and change parents</a><!-- (23)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/bbpress-plugin-remove-meta-generator-tag/" rel="bookmark">[bbPress Plugin] Remove meta generator tag</a><!-- (15.3)--></li>
		<li><a href="http://blog.ashfame.com/2009/10/fix-bb-attachments-plugin-of-bbpress/" rel="bookmark">Fix bb-attachments plugin of bbPress</a><!-- (14.7)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>My friend, <strong>Shankar Ganesh</strong>, is involved with <a href="http://kontactr.com/">Kontactr</a> which provides an easy way for people to let others contact them. After some talk with my friend about implementing it as a plugin on the WordPress side, today I am going to do a quick post on <strong>Kontactr implementation on WordPress</strong>. Its very basic at the moment but I just wanted to show that adapting it to be a WordPress plugin is certainly very easy.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
Plugin Name: Kontactr WordPress Plugin
Plugin URI: http://blog.ashfame.com/?p=880
Description: Provides a shortcode which you can use to embed Kontactr form in your page
Author: Ashfame
Author URI: http://blog.ashfame.com/
License: GPL
Usage: [kontactr id=78523] in a post or page and &lt;?php echo do_shortcode('[kontactr id=78523]'); ?&gt; in your theme anywhere
*/

add_shortcode ( 'kontactr', 'kontactr_handler' );

function kontactr_handler( $atts, $content = null )
{
	extract( shortcode_atts( array(
		&quot;id&quot; =&gt; 0
		), $atts ));

	if ( $id == 0 )
		return;
	else
	{
		$output = '&lt;script type=&quot;text/javascript&quot;&gt; id = '.$id.'; &lt;/script&gt;
			&lt;script type=&quot;text/javascript&quot; src=&quot;http://kontactr.com/wp.js&quot;&gt;&lt;/script&gt;';
		return $output;
	}
}
?&gt;
</pre>
<p>You would need to take your ID from your Kontactr account, and then use it as follows:</p>
<pre class="brush: php; title: ; notranslate"> [kontactr id=78523] </pre>
<p>78523 is my ID. So replace it with your own.</p>
<p>You can also use this shortcode anywhere in the theme as</p>
<pre class="brush: php; title: ; notranslate"> &lt;?php echo do_shortcode('[kontactr id=78523]'); ?&gt; </pre>
<p><a href="http://blog.ashfame.com/wp-content/uploads/2011/02/kontactr-wordpress.php.zip">Download Kontactr WordPress plugin</a></p>
<p>If you have any questions, ask them in the comments section.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/" rel="bookmark">WordPress plugin Facebook Like Thumbnail Updates</a><!-- (24.5)--></li>
		<li><a href="http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/" rel="bookmark">WordPress Plugin to fix Facebook Like Thumbnail</a><!-- (24)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/wordpress-plugin-move-comments-between-posts-change-parents/" rel="bookmark">WordPress Plugin to move comments between posts and change parents</a><!-- (23)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/bbpress-plugin-remove-meta-generator-tag/" rel="bookmark">[bbPress Plugin] Remove meta generator tag</a><!-- (15.3)--></li>
		<li><a href="http://blog.ashfame.com/2009/10/fix-bb-attachments-plugin-of-bbpress/" rel="bookmark">Fix bb-attachments plugin of bbPress</a><!-- (14.7)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/02/kontactr-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show recent comments of a particular user in WordPress</title>
		<link>http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/</link>
		<comments>http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 21:08:37 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=876</guid>
		<description><![CDATA[A friend asked for a help in his project where he required to list all the comments a registered user made on the site. So just for play, I created a small plugin which provides you with a shortcode which you can use on a page link example.com/my-comments/ or whatever. I am zipping it up [...]<ul>
		<li><a href="http://blog.ashfame.com/recent-comments/" rel="bookmark">Recent Comments</a><!-- (33.5)--></li>
		<li><a href="http://blog.ashfame.com/2010/11/add-custom-field-registration-wordpress/" rel="bookmark">Adding a custom user profile field to registration in WordPress</a><!-- (29.1)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/get-comments-category-wordpress/" rel="bookmark">Fetch comments of a specific category in WordPress</a><!-- (27.1)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (25.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (25.2)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>A friend asked for a help in his project where he required to list all the comments a registered user made on the site. So just for play, I created a small plugin which provides you with a shortcode which you can use on a page link example.com/my-comments/ or whatever.</p>
<p>I am zipping it up as a plugin but you can copy paste the code inside your <a href="http://blog.ashfame.com/2010/11/using-wordpress-functions-php/">functions.php file</a> and you should be fine.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
Plugin Name: Show Recent Comments by a particular user
Plugin URI: http://blog.ashfame.com/?p=876
Description: Provides a shortcode which you can use to show recent comments by a particular user
Author: Ashfame
Author URI: http://blog.ashfame.com/
License: GPL
Usage:
*/

add_shortcode ( 'show_recent_comments', 'show_recent_comments_handler' );

function show_recent_comments_handler( $atts, $content = null )
{
	extract( shortcode_atts( array(
		&quot;count&quot; =&gt; 10,
		&quot;pretty_permalink&quot; =&gt; 0
		), $atts ));

	$output = ''; // this holds the output

	if ( is_user_logged_in() )
	{
		global $current_user;
		get_currentuserinfo();

		$args = array(
			'user_id' =&gt; $current_user-&gt;ID,
			'number' =&gt; $count, // how many comments to retrieve
			'status' =&gt; 'approve'
			);

		$comments = get_comments( $args );
		if ( $comments )
		{
			$output.= &quot;&lt;ul&gt;\n&quot;;
			foreach ( $comments as $c )
			{
			$output.= '&lt;li&gt;';
			if ( $pretty_permalink ) // uses a lot more queries (not recommended)
				$output.= '&lt;a href=&quot;'.get_comment_link( $c-&gt;comment_ID ).'&quot;&gt;';
			else
				$output.= '&lt;a href=&quot;'.get_settings('siteurl').'/?p='.$c-&gt;comment_post_ID.'#comment-'.$c-&gt;comment_ID.'&quot;&gt;';
			$output.= $c-&gt;comment_content;
			$output.= '&lt;/a&gt;';
			$output.= &quot;&lt;/li&gt;\n&quot;;
			}
			$output.= '&lt;/ul&gt;';
		}
	}
	else
	{
		$output.= &quot;&lt;h2&gt;You should be logged in to see your comments. Make sense?&lt;/h2&gt;&quot;;
		$output.= '&lt;h2&gt;&lt;a href=&quot;'.get_settings('siteurl').'/wp-login.php?redirect_to='.get_permalink().'&quot;&gt;Login Now &amp;rarr;&lt;/a&gt;&lt;/h2&gt;';
	}
	return $output;
}
?&gt;
</pre>
<p>You can use in a post or page as follows:</p>
<pre class="brush: php; title: ; notranslate">
[show_recent_comments]
</pre>
<p>This will show last 10 comments of the current user.</p>
<pre class="brush: php; title: ; notranslate">
[show_recent_comments count=15]
</pre>
<p>You can change the number of comments you want by providing it with the value of count.</p>
<p>Now, if you notice, they do link to the respective comments but links are not pretty permalinks. I don&#8217;t recommend you do this (because it increases the query count), but if you really want to have pretty permalinks, you can use the shortcode as follows:</p>
<pre class="brush: php; title: ; notranslate">
[show_recent_comments count=15 pretty_permalink=1]
</pre>
<p>or just with the default count of 10 as follows:</p>
<pre class="brush: php; title: ; notranslate">
[show_recent_comments pretty_permalink=1]
</pre>
<p>I should highlight the fact that the current user (registered member) will see the comments he or she has made. If you are not logged in, it asks you to login and after login brings you back on the post or page where you are using this shortcode.</p>
<p>You can use this code to make changes as per your need. You can use this shortcode anywhere in your theme by calling it as follows:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php echo do_shortcode( '[show_recent_comments count=15]' ); ?&gt;
</pre>
<p>And I think if you use it like that outside the loop, it won&#8217;t bring the user back to the previous page. You will need to change the <em>get_permalink()</em> call near the end of the plugin.</p>
<p>Good thing is that it works correctly with cache plugins such as WP Super Cache or W3 Total Cache because logged in users are served live pages instead of cached pages. Correct me if I am wrong.</p>
<p><a href="http://blog.ashfame.com/wp-content/uploads/2011/01/wp-plugin-comments-user.php.zip">Download Show Recent Comments plugin</a></p>
<p>Other than that, if you have any questions, comment section is all yours!</p>
<ul>
		<li><a href="http://blog.ashfame.com/recent-comments/" rel="bookmark">Recent Comments</a><!-- (33.5)--></li>
		<li><a href="http://blog.ashfame.com/2010/11/add-custom-field-registration-wordpress/" rel="bookmark">Adding a custom user profile field to registration in WordPress</a><!-- (29.1)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/get-comments-category-wordpress/" rel="bookmark">Fetch comments of a specific category in WordPress</a><!-- (27.1)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (25.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (25.2)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Connect to a FTP server in Ubuntu without any FTP client</title>
		<link>http://blog.ashfame.com/2011/01/connect-ftp-server-ubuntu-without-client/</link>
		<comments>http://blog.ashfame.com/2011/01/connect-ftp-server-ubuntu-without-client/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 05:12:57 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=858</guid>
		<description><![CDATA[You don&#8217;t need a FTP client to connect to a FTP server in Ubuntu, in fact this seems a lot better than traditional FTP download and upload method, though it is still the same but we don&#8217;t have to do it manually. We mount the FTP space of a server on our system and can [...]<ul>
		<li><a href="http://blog.ashfame.com/2008/07/connect-internet-airtel-mobile-office/" rel="bookmark">Connect Internet through AirTel Mobile Office</a><!-- (19.5)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/filezilla-connect-via-sftp/" rel="bookmark">Using Filezilla to connect via SFTP</a><!-- (19.3)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/know-how-many-sites-are-hosted-on-your-server/" rel="bookmark">Get to know how many sites are hosted on your server</a><!-- (19.2)--></li>
		<li><a href="http://blog.ashfame.com/2007/12/supersify-alternative-sify-client/" rel="bookmark">SuperSify v0.9 &#8211; Alternative Sify Client</a><!-- (18.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/connect-bsnl-dialup-internet/" rel="bookmark">Connect to BSNL Dialup internet</a><!-- (17.9)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>You don&#8217;t need a FTP client to connect to a FTP server in Ubuntu, in fact this seems a lot better than traditional FTP download and upload method, though it is still the same but we don&#8217;t have to do it manually. We mount the FTP space of a server on our system and can work on it locally just like other files. The moment you make any changes, they are uploaded to the server without you doing anything manually. Moreover this way is very efficient for handling multiple files and folder. You can even use it to live edit a site as it works really fast.</p>
<p>The screenshots are that of Ubuntu 10.10 &amp; it should be close to other versions.</p>
<h2>Steps to connect to a FTP server in Ubuntu</h2>
<p>Select <strong>Places</strong> &gt; <strong>Connect to Server</strong>.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/01/connect-server-ubuntu.png" alt="connect-server-ubuntu" /></p>
<p>Select <strong>FTP (with login)</strong> as <strong>Service type</strong>, enter <strong>server name</strong> and <strong>user name</strong>. You can even add it as a bookmark so that next you will only need to click it once to quickly connect to the server again.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/01/ftp-ubuntu.png" alt="ftp-ubuntu" /></p>
<p>Enter the <strong>password</strong> and chose to save it if its your personal computer.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/01/enter-password.png" alt="enter-password" /></p>
<p>That&#8217;s it. You can now browse your FTP content just like how you browse local files.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2011/01/access-ftp.png" alt="access-ftp" /></p>
<p>Have fun with powerful Ubuntu!</p>
<ul>
		<li><a href="http://blog.ashfame.com/2008/07/connect-internet-airtel-mobile-office/" rel="bookmark">Connect Internet through AirTel Mobile Office</a><!-- (19.5)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/filezilla-connect-via-sftp/" rel="bookmark">Using Filezilla to connect via SFTP</a><!-- (19.3)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/know-how-many-sites-are-hosted-on-your-server/" rel="bookmark">Get to know how many sites are hosted on your server</a><!-- (19.2)--></li>
		<li><a href="http://blog.ashfame.com/2007/12/supersify-alternative-sify-client/" rel="bookmark">SuperSify v0.9 &#8211; Alternative Sify Client</a><!-- (18.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/connect-bsnl-dialup-internet/" rel="bookmark">Connect to BSNL Dialup internet</a><!-- (17.9)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2011/01/connect-ftp-server-ubuntu-without-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Import Delicious Bookmarks &amp; Tags</title>
		<link>http://blog.ashfame.com/2010/12/import-delicious-bookmarks-tags/</link>
		<comments>http://blog.ashfame.com/2010/12/import-delicious-bookmarks-tags/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 17:05:42 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Delicious]]></category>
		<category><![CDATA[Diigo]]></category>
		<category><![CDATA[Evernote]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Faviki]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Historious]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[Mister-Wong]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Pinboard]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Xmarks]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=847</guid>
		<description><![CDATA[In case you are just wondering, Delicious future is undecided as it hangs in between of shutting down or being sold, users are very much concerned about their bookmarks and tags that they have saved for several years. Lots of solutions are coming out lately to save delicious bookmarks and tags and I am compiling [...]<ul>
		<li><a href="http://blog.ashfame.com/2008/03/cut-parts-audio-mp3-file/" rel="bookmark">How to cut parts of a audio file</a><!-- (7.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/keep-online-world-close-facebook/" rel="bookmark">Keep your online world close to Facebook</a><!-- (6.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/check-mail-sending-capabilities-webhost/" rel="bookmark">Check mail sending capabilities of your webhost</a><!-- (6.5)--></li>
		<li><a href="http://blog.ashfame.com/2008/08/zoho-quick-easy-online-invoicing/" rel="bookmark">Zoho : Quick &#038; Easy Online Invoicing</a><!-- (6.3)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/reset-change-wordpress-password-manually-phpmyadmin/" rel="bookmark">Reset or Change WordPress password manually via phpMyAdmin</a><!-- (5.2)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>In case you are just wondering, <a href="http://www.delicious.com/">Delicious </a>future is undecided as it hangs in between of shutting down or being sold, users are very much concerned about their bookmarks and tags that they have saved for several years. Lots of solutions are coming out lately to save delicious bookmarks and tags and I am compiling a list of all of them and will try my best to keep this post updated with as much methods I come across.</p>
<p>Some of the methods will require you to export your delicious bookmarks from them and then import the file, while others will directly fetch it from your delicious account. I will mention where the user don’t need to download or export his bookmarks and tags first, from delicious.</p>
<p class="notice"><strong>Quick Summary</strong>: 13 solutions for backing up and keeping your Delicious bookmarks and tags ahead!</p>
<h2>Export Delicious Bookmarks &amp; Tags</h2>
<p>Login into your delicious account and head over to <a href="https://secure.delicious.com/settings/bookmarks/export">Export page</a> from where you can export a file containing all your bookmarks and tags information.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-export" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="421" alt="delicious-export" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousexport.png" width="491" border="0" /></p>
<h2>Import Delicious Bookmarks to your browser</h2>
<p>Importing in browsers will require you to export bookmarks first from your delicious account.</p>
<h3>For Firefox</h3>
<p>Open up the bookmarks manager by pressing <strong>Ctrl + Shift + B</strong> or alternatively going to <strong>Boomarks</strong> menu and select <strong>Organize Bookmarks</strong>. Click on <strong>Import and Backup </strong>&amp; select <strong>Import HTML </strong>option and choose the file you downloaded from delicious.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-firefox" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="212" alt="delicious-firefox" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousfirefox.png" width="310" border="0" /></p>
<h3>For Chrome</h3>
<p>Click on the <strong>settings</strong> icon and select <strong>Bookmark manager</strong>.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-chrome" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="424" alt="delicious-chrome" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciouschrome.png" width="322" border="0" /></p>
<p>In the bookmark manager, click on <strong>Organize</strong> and select <strong>Import Bookmarks</strong> &amp; choose the file you downloaded.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-google-chrome" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="367" alt="delicious-google-chrome" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousgooglechrome.png" width="316" border="0" /></p>
<h3>For Opera</h3>
<p>Open the <strong>Menu</strong>, select <strong>Bookmarks </strong>and then <strong>Bookmarks manager </strong>or alternatively by pressing <strong>Ctrl + Shift + B</strong>.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-opera" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="188" alt="delicious-opera" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousopera.png" width="442" border="0" /></p>
<p>In the Bookmarks manager, click on the <strong>File</strong> menu and select <strong>Import Firefox Bookmarks</strong>. Now choose the file you exported from your delicious account.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-opera-save" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="334" alt="delicious-opera-save" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousoperasave.png" width="287" border="0" /></p>
<h3>For Internet Explorer</h3>
<p>Select the <strong>File</strong> menu and then <strong>Import and Export</strong>. Select <strong>Import from a file</strong>. Click on <strong>Next</strong> and select <strong>Favorites</strong> on the next screen. Click <strong>Next</strong> and select the file you downloaded.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious_ie" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="159" alt="delicious_ie" src="http://blog.ashfame.com/wp-content/uploads/2010/12/delicious_ie.png" width="332" border="0" /></p>
<h2>Import Delicious Bookmarks to Xmarks</h2>
<p><a href="http://www.xmarks.com/">Xmarks </a>provide an easy option but there is a serious limitation with it that it only supports 100 public bookmarks, so your private bookmarks and those which are above 100 won’t be imported. A workaround will be to first save your delicious bookmarks in a browser and then sync those with Xmarks using <a href="http://download.xmarks.com/download">this tool</a>. This method doesn’t require you to download your bookmarks from delicious.</p>
<p style="text-align: center"><img class="aligncenter" title="xmarks_import_delicious" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="208" alt="xmarks_import_delicious" src="http://blog.ashfame.com/wp-content/uploads/2010/12/xmarks_import_delicious.png" width="364" border="0" /></p>
<p>Login to your Xmarks account and go to <a href="http://my.xmarks.com">http://my.xmarks.com</a>. From the <strong>Tools </strong>menu, select <strong>Import Bookmarks from Del.icio.us</strong>. Provide your Delicious username &amp; it will download your bookmarks and then add them to a new folder. Since it doesn’t ask for any password, I guess it works by importing bookmarks from feed and that makes sense as it can only handle public &amp; a limited number of bookmarks.</p>
<h2>Import Delicious Bookmarks to Diigo</h2>
<p><a href="http://www.diigo.com/">Diigo </a>is another option you can use to save your bookmarks. Login to your account and head over to <a href="http://www.diigo.com/import_all/prepare?service=Delicious">import page</a>.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious_import_diigo" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="271" alt="delicious_import_diigo" src="http://blog.ashfame.com/wp-content/uploads/2010/12/delicious_import_diigo.png" width="392" border="0" /></p>
<p>Select the file you downloaded and it will be uploaded and imported in your Diigo account.</p>
<h2>Import Delicious Bookmarks to Evernote</h2>
<p class="update"><strong>Update</strong>: <a href="https://www.evernote.com/">Evernote </a>has released a new version which lets you import delicious bookmarks directly to Evernote seamlessly. It is supposed to come under Settings &gt; Import but since I can&#8217;t see it under my account, I am not sure whether it has not been rolled out completely or is available only to premium members. <a href="http://www.cloudnotes.net/2008/09/new-evernote-release-smartly-done.html">More Details</a>.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-evernote" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="94" alt="delicious-evernote" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousevernote.png" width="175" border="0" /></p>
<p>Dr. Palaniraja wrote a script that will convert your bookmarks in XML format to .enex file format which you can import it in your Evernote account. He has explained the process very well with screenshots, so if you want to import your bookmarks to Evernote, head over to the <a href="http://dr-palaniraja.blogspot.com/2010/12/import-delicious-bookmarks-to-evernote.html">guide</a>.</p>
<p>If you have troubles getting a XML file export of your bookmarks, then head over to <a href="http://deliciousxml.com/">DeliciousXML</a> and easily export them as XML. No pain and no risk as the site uses OAuth and doesn’t ask you for passwords.</p>
<h2>Import Delicious Bookmarks to WordPress</h2>
<p>WordPress can do pretty much anything. Here again, you can use Delicious XML Importer plugin which will let you import your Delicious bookmarks into WordPress as links or posts.</p>
<p>Install and activate the plugin, you will find it under the <strong>Tools </strong>menu. Select <strong>Import</strong> and then <strong>Delicious</strong>.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-wp" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="398" alt="delicious-wp" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciouswp.png" width="407" border="0" /></p>
<p>Get the XML file of your bookmarks from <a href="http://deliciousxml.com/">DeliciousXML</a> and specify whether you want it as posts or links, and there you go.</p>
<p style="text-align: center"><img class="aligncenter" title="delicious-wp-xml" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="277" alt="delicious-wp-xml" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciouswpxml.png" width="500" border="0" /></p>
<p>Now you will have your bookmarks backed up on your own site.</p>
<p>And if you are going to run this on a private WordPress installation, you should check <a href="http://links.aaron.pk/about/">this guide</a> where you can run a delicious-like bookmark website using WordPress created with the help of TwentyTen child theme, Bookmarks post type and the plugin I just mentioned. All 3 things required are available for download. Choice is yours!</p>
<h2>Import Delicious Bookmarks to Google Bookmarks</h2>
<p class="update"><strong>Update</strong>: You can actually import them to Google Bookmarks without having to deal with code. Login into your Google account or Google app account, and use <a href="http://persistent.info/delicious2google/">this tool</a>.</p>
<p>In case you are ready to try out some Ruby code, you can use the downloaded export file from delicious and then use <a href="http://blog.darkhax.com/2010/12/16/import-delicious-to-google-bookmarks">this tutorial</a> to import all of them to Google Bookmarks.</p>
<h2>Import Delicious Bookmarks to Pinboard</h2>
<p style="text-align: center"><img title="delicious-pinboard" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="311" alt="delicious-pinboard" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciouspinboard.png" width="611" border="0" />&#160;</p>
<p><a href="http://pinboard.in/">Pinboard </a>is a new substitute for Delicious which is gaining popularity fastly. One can easily import bookmarks by going to the <strong>Settings</strong> and choosing the <strong>Import </strong>tab and uploading the html file downloaded from Delicious.</p>
<h2>Import Delicious Bookmarks to Mister Wong</h2>
<p><a href="http://www.mister-wong.com/">Mister-Wong</a> offers two options for importing bookmarks. Either from the file you downloaded or from Delicious directly. It even has a sync feature with Delicious account.</p>
<p style="text-align: center"><img title="delicious-mister-wong-choice" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="delicious-mister-wong-choice" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousmisterwongchoice.png" width="268" border="0" /> </p>
<p>Head over to <a href="http://www.mister-wong.com/profil/?profile=import">import bookmarks page</a> to select importing from the two options.</p>
<p style="text-align: center"><img title="delicious-mister-wong" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="265" alt="delicious-mister-wong" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousmisterwong.png" width="440" border="0" /> </p>
<p>If you chose to import the already downloaded file, you can simply upload it.</p>
<h2>Import Delicious Bookmarks to Historio.us</h2>
<p style="text-align: center"><img title="delicious-historious" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="165" alt="delicious-historious" src="http://blog.ashfame.com/wp-content/uploads/2010/12/delicioushistorious.png" width="568" border="0" /> </p>
<p><a href="http://www.historio.us/">Historio.us</a> is another simple, lightweight alternative for keeping your bookmarks. You can simply go to the URL http://yourusername.historio.us/add/ to import the file downloaded from Delicious.</p>
<h2>Import Delicious Bookmarks to Faviki</h2>
<p style="text-align: center"><img title="delicious-faviki" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="195" alt="delicious-faviki" src="http://blog.ashfame.com/wp-content/uploads/2010/12/deliciousfaviki.png" width="304" border="0" /> </p>
<p><a href="http://www.faviki.com/">Faviki</a> is yet another alternative that will ask your Delicious username and password and it will import your bookmarks. Although it gives you much more control on tags than others, but the process is not instantaneous. Faviki will notify you when your bookmarks have been imported.</p>
<p><del>Incase, I find any other good solution, I will update this article.</del> I have updated the article with a solution for importing to Google Bookmarks, updates to Evernote method, more methods of importing to Pinboard, Mister-Wong, Historio.us and Faviki. Still Looking for more!</p>
<p><strong>Note</strong>: Image Credit of Internet Explorer, Xmarks and Diigo goes to <a href="http://techie-buzz.com/how-to/how-to-import-delicious-bookmarks-xmarks-chrome-firefox-ie.html">TechieBuzz</a> and that of Pinboard, Historio.us and Faviki goes to <a href="http://thenextweb.com/lifehacks/2010/12/17/how-to-export-import-and-migrate-delicious-bookmarks/">thenextweb</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2008/03/cut-parts-audio-mp3-file/" rel="bookmark">How to cut parts of a audio file</a><!-- (7.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/keep-online-world-close-facebook/" rel="bookmark">Keep your online world close to Facebook</a><!-- (6.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/check-mail-sending-capabilities-webhost/" rel="bookmark">Check mail sending capabilities of your webhost</a><!-- (6.5)--></li>
		<li><a href="http://blog.ashfame.com/2008/08/zoho-quick-easy-online-invoicing/" rel="bookmark">Zoho : Quick &#038; Easy Online Invoicing</a><!-- (6.3)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/reset-change-wordpress-password-manually-phpmyadmin/" rel="bookmark">Reset or Change WordPress password manually via phpMyAdmin</a><!-- (5.2)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2010/12/import-delicious-bookmarks-tags/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Windows 7 not genuine Error (Screen Turning Black)</title>
		<link>http://blog.ashfame.com/2010/12/windows-7-not-genuine-error-screen-turning-black/</link>
		<comments>http://blog.ashfame.com/2010/12/windows-7-not-genuine-error-screen-turning-black/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 11:30:16 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=917</guid>
		<description><![CDATA[Windows 7 may sometimes been detected as illegal, not genuine,or Pirated despite the operating system has been genuinely bought from market. Then it shows a message immediately after log on, the following Windows Activation window will be displayed: Windows is not genuine Your computer might not be running a counterfeit copy of Windows. 0×80070005 Moreover, [...]<ul>
		<li><a href="http://blog.ashfame.com/2010/03/fix-windows-7-server-2008-r2-bsod-error/" rel="bookmark">Fix Windows 7 or Windows Server 2008 R2 BSOD error</a><!-- (33.9)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/remove-windows-genuine-notification/" rel="bookmark">Remove Windows Genuine Notification</a><!-- (30.8)--></li>
		<li><a href="http://blog.ashfame.com/2008/01/screenshot-screen-saver/" rel="bookmark">How to take a screenshot of the screen saver</a><!-- (20.7)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/download-windows-7-transformation-pack-for-windows-xp/" rel="bookmark">Download Windows 7 Transformation Pack for Windows XP</a><!-- (20.4)--></li>
		<li><a href="http://blog.ashfame.com/2009/12/integrate-skydrive-windows-explorer/" rel="bookmark">Integrate Skydrive in your windows explorer</a><!-- (16.3)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Windows 7 may sometimes been detected as illegal, not genuine,or Pirated despite the operating system has been genuinely bought from market. Then it shows a message immediately after log on, the following Windows Activation window will be displayed:</p>
<blockquote><p>Windows is not genuine<br />
Your computer might not be running a counterfeit copy of Windows.<br />
0×80070005</p>
<p><img src="http://blog.ashfame.com/wp-content/uploads/2010/12/not-genuine.png" alt="not-genuine" width="366" height="249" border="0" /></p></blockquote>
<p>Moreover, the computer desktop background is turned to black, after some time of logging in and the following error message is shown on the bottom right corner of the screen:</p>
<blockquote><p>This copy of Windows is not genuine</p>
<p><img src="http://blog.ashfame.com/wp-content/uploads/2010/12/activate-windows-message.jpg" alt="activation message" width="467" height="223" border="0" /></p></blockquote>
<p>When you try to view the system information in System Properties (Control Panel -&gt; System and Security -&gt; System), the following error message can be seen:</p>
<blockquote><p>You must activate today. Activate Windows now</p></blockquote>
<p>Using slmgr.vbs /dlv or slmgr.vbs /dli in an elevated command prompt with administrator privileges to view the licensing status will return the following message instead:</p>
<blockquote><p>Error: 0×80070005 Access denied: the requested action requires elevated privileges</p></blockquote>
<p>Normally, the suddenly or random deactivation of an activated Windows 7 on genuine platform can be resolved by simply restarting the computer, so thatWindows 7 can re-access the activation status to return the computer to activated status. However, in some cases, where modification has been done to HKU\S-1-5-20 registry key causing the Network Service account to lose and missing full control and read permissions over the registry key, the losing of activated status may happen on Windows 7 too.</p>
<p>Microsoft explains in KB2008385 that the possible cause for the Windows 7 turned pirated error is likely the result of applying a Plug and Play Group Policy object (GPO):</p>
<p>Computer Configuration -&gt; Policies -&gt; Windows Settings -&gt; Security Settings -&gt; System Services -&gt; Plug and Play (Startup Mode: Automatic)</p>
<p>The Windows 7 Licensing service uses Plug and Play to obtain hardware ID information and binds the license to the computer, thus change to the setting can result in an activated system appearing to be out of tolerance. The default permissions of the Plug and Play policy do not grant the Licensing service, which runs under the Network Service account, the appropriate rights to access the Plug and Play service. To fix and resolve the Windows 7 activation lost issue, and make the Windows 7 activated and genuine again, just follow one of the two Methods stated Below:</p>
<p><strong>Method I: Disable the Plug and Play Policy</strong></p>
<ol>
<li>Determine the source of the policy. To do this, follow these steps:</li>
<li>On the client computer experiencing the activation error, run the <strong>Resultant Set of Policy</strong> wizard by clicking <strong>Start</strong> -&gt; <strong>Run</strong> (or press Win+R keys), and entering <strong>rsop.msc</strong> as the command.</li>
</ol>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2010/12/rsop-service.jpg" alt="run rsop service" width="430" height="240" /></p>
<p>3. Visit the following location:</p>
<p><strong>Computer Configuration</strong> -&gt; <strong>Policies</strong> -&gt; <strong>Windows Settings</strong> -&gt;<strong>Security Settings</strong> -&gt; <strong>System Services</strong></p>
<p><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2010/12/policy-set.jpg" alt="policy set" width="650" height="422" /></p>
<blockquote><p>If the Plug and Play service is configured through a Group Policy setting, you see it here with settings other than <strong>Not Defined</strong>. Additionally, you can see which Group Policy is applying this setting.</p></blockquote>
<p>4. Disable the Group Policy settings and force the Group Policy to be reapplied.</p>
<ul>
<li>Edit the Group Policy that is identified in Step 1 and change the setting to “Not Defined.” Or, follow the section below to add the required permissions for the Network Service account.</li>
<li>Force the Group Policy setting to reapply: <strong>gpupdate /force</strong> (a restart of the client is sometimes required).</li>
</ul>
<p><strong>Method II: Edit the permissions of the Group Policy</strong></p>
<ol>
<li>Open the Group Policy that is identified in Method I, Step 1 above, and open the corresponding Group Policy setting.</li>
<li>Click the <strong>Edit Security</strong> button, and then click the <strong>Advanced</strong> button.</li>
<li>In the <strong>Advanced Security Settings for Plug and Play</strong> window click <strong>Add</strong>and then add the SERVICE account. Then, click <strong>OK</strong>.</li>
<li>Select the following permissions in the <strong>Allow</strong> section and then click <strong>OK</strong>:Query template<br />
Query status<br />
Enumerate dependents<br />
Interrogate<br />
User-defined control<br />
Read permissions</li>
<li>Run <strong>gpupdate /force</strong> after applying the permissions to the Group Policy setting.</li>
<li>Verify that the appropriate permissions are applied with the following command:<strong>sc sdshow plugplay</strong><br />
The following are the rights applied to the Plug and Play service in SDDL:D:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)<br />
(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)<br />
(A;;CCLCSWLOCRRC;;;IU)<br />
<strong>(A;;CCLCSWLOCRRC;;;SU)</strong><br />
S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)Note: (A;;CC LC SW LO CR RC ;;;SU is an Access Control Entry (ACE) that allows the following rights to “SU” (SDDL_SERVICE – Service logon user):A: Access Allowed<br />
CC: Create Child<br />
LC: List Children<br />
SW: Self Write<br />
LO: List Object<br />
CR: Control Access<br />
RC: Read Control<br />
SU: Service Logon User</li>
</ol>
<p>If there are no GPO’s in place, then another activity may have changed the default registry permissions. To resolve this problem, perform the following steps:</p>
<ol>
<li>Click Start Menu, Then Run, then enter REGEDIT</li>
<li>Right-click the registry key <strong>HKEY_USERS\S-1-5-20</strong>, and select <strong>Permissions…</strong> button.</li>
<li>If the NETWORK SERVICE is not present, click <strong>Add…</strong> button.</li>
<li>In <strong>Enter the object names to select</strong> type <em>Network Service</em> and then click <strong>Check Names</strong> and <strong>OK</strong>.</li>
<li>Select the NETWORK SERVICE and Grant Full Control and Read permissions.</li>
<li>Restart the computer.</li>
<li>After the restart, the system may require activation. Complete the activation.</li>
</ol>
<ul>
		<li><a href="http://blog.ashfame.com/2010/03/fix-windows-7-server-2008-r2-bsod-error/" rel="bookmark">Fix Windows 7 or Windows Server 2008 R2 BSOD error</a><!-- (33.9)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/remove-windows-genuine-notification/" rel="bookmark">Remove Windows Genuine Notification</a><!-- (30.8)--></li>
		<li><a href="http://blog.ashfame.com/2008/01/screenshot-screen-saver/" rel="bookmark">How to take a screenshot of the screen saver</a><!-- (20.7)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/download-windows-7-transformation-pack-for-windows-xp/" rel="bookmark">Download Windows 7 Transformation Pack for Windows XP</a><!-- (20.4)--></li>
		<li><a href="http://blog.ashfame.com/2009/12/integrate-skydrive-windows-explorer/" rel="bookmark">Integrate Skydrive in your windows explorer</a><!-- (16.3)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2010/12/windows-7-not-genuine-error-screen-turning-black/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Add Facebook video in WordPress</title>
		<link>http://blog.ashfame.com/2010/12/add-facebook-video-wordpress/</link>
		<comments>http://blog.ashfame.com/2010/12/add-facebook-video-wordpress/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 19:25:31 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=822</guid>
		<description><![CDATA[In the last post, I posted about the new Facebook profile layout and I wanted to embed a Facebook video but then I knew Facebook  don&#8217;t support WordPress oEmbeds, so I thought I would just create a WordPress shortcode for embedding videos but then it must have been done already by someone else. I did [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/" rel="bookmark">WordPress Plugin to fix Facebook Like Thumbnail</a><!-- (23)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/" rel="bookmark">WordPress plugin Facebook Like Thumbnail Updates</a><!-- (22.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/post-twitter-updates-tweets-facebook-automatically/" rel="bookmark">Post Twitter updates on Facebook automatically</a><!-- (18.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/view-torrent-video-before-downloading-completely/" rel="bookmark">View torrent video before downloading them completely</a><!-- (18.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/keep-online-world-close-facebook/" rel="bookmark">Keep your online world close to Facebook</a><!-- (18.5)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>In the last post, I posted about the new <a href="http://blog.ashfame.com/2010/12/facebook-new-profile-layout/">Facebook profile layout</a> and I wanted to embed a Facebook video but then I knew Facebook  don&#8217;t support WordPress oEmbeds, so I thought I would just create a WordPress shortcode for embedding videos but then it must have been done already by someone else.</p>
<p>I did some search and found out that most bloggers are pointing out to embed videos by using the following code:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;object width=&quot;400&quot; height=&quot;224&quot; &gt;
&lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot; /&gt;
&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://www.facebook.com/v/xxxxxx&quot; /&gt;
&lt;embed src=&quot;http://www.facebook.com/v/xxxxxx&quot; type=&quot;application/x-shockwave-flash&quot;
allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;400&quot; height=&quot;224&quot;&gt;
&lt;/embed&gt;
&lt;/object&gt;
</pre>
<p>Change the <strong>xxxxxx</strong> in the code to the video id and paste the whole code in a post and it will show up. You can change the width and height values as per your theme.</p>
<p>What if I tell you that there is an easy way that won&#8217;t let you deal with the code all the time and can even avoid the possible issues with embedding the code like in above method? I will be show you how to add a facebook video to WordPress using the power of shortcodes.</p>
<p>Add the following code to your <a href="http://blog.ashfame.com/2010/11/using-wordpress-functions-php/">functions.php file</a> of your theme</p>
<pre class="brush: php; title: ; notranslate">
// Facebook Video Shortcode - Ashfame.com
function ashfame_fbvideo($atts, $content = null) {
   extract(shortcode_atts(array(
      &quot;id&quot; =&gt; '',
   ), $atts));
   return '&lt;object width=&quot;650&quot; height=&quot;364&quot; &gt;
   &lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot; /&gt;
   &lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;
   &lt;param name=&quot;movie&quot; value=&quot;http://www.facebook.com/v/'.$id.'&quot; /&gt;
   &lt;embed src=&quot;http://www.facebook.com/v/'.$id.'&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;650&quot; height=&quot;364&quot;&gt;
   &lt;/embed&gt;
   &lt;/object&gt;';
}
add_shortcode(&quot;fbvideo&quot;, &quot;ashfame_fbvideo&quot;);
</pre>
<p>Just change the width and height values in this code once as per your theme and embed a facebook video in your post or page with the following syntax:</p>
<pre>
[<span style="text-decoration:none;">fbvideo id="xxxxxx"</span>]
</pre>
<h2>Example:</h2>
<p>To embed a facebook video, I will need the value of video id which can be obtained from the address bar when the video is opened in its own page.<br />
After watching a video, click on <strong>Go to Video</strong> link.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.ashfame.com/wp-content/uploads/2010/12/fb-video.png" alt="fb-video" /></p>
<p>Copy the <strong>video id</strong> from the address bar as shown in the screenshot.</p>
<p><img src="http://blog.ashfame.com/wp-content/uploads/2010/12/fb-video-url.png" alt="fb-video-url" /></p>
<p>And paste this in your post or page where you want to embed a video:</p>
<pre>
[<span style="text-decoration:none;">fbvideo id="1598555857571"</span>]
</pre>
<p>And it will show up as</p>
<object width="650" height="364" >
   <param name="allowfullscreen" value="true" />
   <param name="allowscriptaccess" value="always" />
   <param name="movie" value="http://www.facebook.com/v/1598555857571" />
   <embed src="http://www.facebook.com/v/1598555857571" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="650" height="364">
   </embed>
   </object>
<p>If you have any questions, you can ask in the comments.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/02/wordpress-plugin-fix-facebook-like-thumbnail/" rel="bookmark">WordPress Plugin to fix Facebook Like Thumbnail</a><!-- (23)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/wordpress-plugin-facebook-like-thumbnail-updates/" rel="bookmark">WordPress plugin Facebook Like Thumbnail Updates</a><!-- (22.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/post-twitter-updates-tweets-facebook-automatically/" rel="bookmark">Post Twitter updates on Facebook automatically</a><!-- (18.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/view-torrent-video-before-downloading-completely/" rel="bookmark">View torrent video before downloading them completely</a><!-- (18.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/keep-online-world-close-facebook/" rel="bookmark">Keep your online world close to Facebook</a><!-- (18.5)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2010/12/add-facebook-video-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

