<?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>Saeid Zebardast&#039;s Blog &#187; howto</title> <atom:link href="http://zebardast.ir/en/category/howto/feed/" rel="self" type="application/rss+xml" /><link>http://zebardast.ir/en</link> <description></description> <lastBuildDate>Sun, 23 Oct 2011 18:18:07 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator><image><title>Saeid Zebardast&#039;s Blog</title> <url>http://0.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc.png?s=48</url><link>http://zebardast.ir/en</link> </image> <item><title>How to find IP locations using MySQL</title><link>http://zebardast.ir/en/how-to-find-ip-locations-using-mysql/</link> <comments>http://zebardast.ir/en/how-to-find-ip-locations-using-mysql/#comments</comments> <pubDate>Mon, 14 Mar 2011 15:18:59 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[MySQL]]></category><guid isPermaLink="false">http://zebardast.ir/en/?p=198</guid> <description><![CDATA[Introduction Here we learn how to use MySQL for locating an IP address. At first we create a table that contains the name of the country and its IP address range. Then define a function to find country name of IP Address. What&#8217;s Ip Address? Quoting from the &#8220;IP address&#8221; page in Wikipedia: An Internet [...] No related posts.]]></description> <content:encoded><![CDATA[<p><strong>Introduction</strong><br /> Here we learn how to use MySQL for locating an IP address. At first we create a table that contains the name of the country and its IP address range. Then define a function to find country name of IP Address.</p><p><strong>What&#8217;s Ip Address?</strong></p><p>Quoting from the &#8220;<a href="http://en.wikipedia.org/wiki/IP_address">IP address</a>&#8221; page in Wikipedia:</p><blockquote><p> An Internet Protocol address (IP address) is a usually numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: host or network interface identification and location addressing. Its role has been characterized as follows: &#8220;A name indicates what we seek. An address indicates where it is. A route indicates how to get there.&#8221;</p></blockquote><p><strong>Table (database)</strong><br /> I created the ip_location table to save countries and IP Address ranges. Enter the following command:</p><pre class="brush: sql; title: ; notranslate">
CREATE TABLE `ip_location` (
  `from_ip` int(15) DEFAULT NULL,
  `to_ip` int(15) DEFAULT NULL,
  `country` varchar(32) DEFAULT NULL,
  KEY `from_ip` (`from_ip`,`country`),
  KEY `to_ip` (`to_ip`,`country`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
</pre><p>Then you need to import ip_location data. I exported my table with data via <a href="http://blog.datispars.com/import-and-export-in-mysql/">mysqldump</a>. You should download it and use <a href="http://blog.datispars.com/import-and-export-in-mysql/">mysql command</a> to restore it.<br /> • <a href='http://zebardast.ir/wp-content/uploads/2011/02/ip_location.sql_.zip'>Download ip_location.sql.zip</a> (165KB)</p><p><strong>getIpCountry() function</strong><br /> Now you need to create the function to extract country name:</p><pre class="brush: sql; title: ; notranslate">
DELIMITER $$
CREATE FUNCTION getIpCountry(ip varchar(15)) RETURNS varchar(64)
BEGIN
 declare a tinyint unsigned;
 declare b tinyint unsigned;
 declare c tinyint unsigned;
 declare d tinyint unsigned;
 declare total bigint;
 declare result varchar(64);
 select substring_index(ip, '.', 1 ) into a;
 select substring_index(substring_index(ip , '.', 2 ),'.',-1) into b;
 select substring_index(substring_index(ip , '.', -2 ),'.',1) into c;
 select substring_index(ip, '.', -1 ) into d;
 set total := (a*256*256*256) + (b*256*256) + (c*256) + d;
 select SQL_CACHE country into result from ip_location where total between from_ip and to_ip limit 1;
 if (result is null) or (result = '') then
 set result := 'unknown';
 end if;
 return result;
 END$$
DELIMITER ;
</pre><p>And done! You just need to use select command in MySQL <abbr title="Command-line interface">cli</abbr>:</p><pre class="brush: sql; title: ; notranslate">
mysql&gt; SELECT getIpCountry('79.175.165.171');
+--------------------------------+
| getIpCountry('79.175.165.171') |
+--------------------------------+
| IRAN (ISLAMIC REPUBLIC OF)     |
+--------------------------------+
1 row in set (0.03 sec)

mysql&gt; SELECT getIpCountry('4.2.2.4');
+-------------------------+
| getIpCountry('4.2.2.4') |
+-------------------------+
| UNITED STATES           |
+-------------------------+
1 row in set (0.00 sec)
</pre><p>Let me know if you have other way <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:sa&#101;id&#46;&#122;&#101;&#98;&#97;&#114;&#100;a&#115;t&#64;gma&#105;&#108;.co&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-find-ip-locations-using-mysql%2F&amp;linkname=How%20to%20find%20IP%20locations%20using%20MySQL" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-find-ip-locations-using-mysql%2F&amp;linkname=How%20to%20find%20IP%20locations%20using%20MySQL" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-find-ip-locations-using-mysql%2F&amp;linkname=How%20to%20find%20IP%20locations%20using%20MySQL" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-find-ip-locations-using-mysql%2F&amp;title=How%20to%20find%20IP%20locations%20using%20MySQL" id="wpa2a_2"><span style='display:none'>Share</span></a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/how-to-find-ip-locations-using-mysql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to get pure content from HTML page in Java via Regex</title><link>http://zebardast.ir/en/how-to-get-pure-content-from-html-page-in-java-via-regex/</link> <comments>http://zebardast.ir/en/how-to-get-pure-content-from-html-page-in-java-via-regex/#comments</comments> <pubDate>Wed, 19 Jan 2011 14:19:00 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[html]]></category> <category><![CDATA[Regex]]></category><guid isPermaLink="false">http://zebardast.ir/en/?p=177</guid> <description><![CDATA[Introduction I&#8217;ve written a web crawler while I was developing a search engine a few weeks ago. It extracts the contents and saves them onto the database. The HTML tags aren&#8217;t so important to most of the search engines. So, I removed them successfully. To do the same, follow below steps: 1- Remove the script [...] No related posts.]]></description> <content:encoded><![CDATA[<p><strong>Introduction</strong><br /> I&#8217;ve written a web crawler while I was developing a search engine a few weeks ago. It extracts the contents and saves them onto the database. The HTML tags aren&#8217;t so important to most of the search engines. So, I removed them successfully. To do the same, follow below steps:<br /> 1- Remove the script tags and inclusive content:</p><pre class="brush: java; title: ; notranslate">
// htmlContent is full content of page with HTML codes.

String content;
Pattern pattern;

pattern = Pattern.compile(&quot;&lt;script.*?&gt;.*?&lt;/script&gt;&quot;, Pattern.DOTALL | Pattern.CASE_INSENSITIVE);
content = pattern.matcher(htmlContent).replaceAll(&quot;&quot;);
</pre><p><strong>Note:</strong> In dotall mode, the expression &lt;tt&gt;.&lt;/tt&gt; matches any character, including a line terminator. By default this expression does not match line terminators.</p><p>2- Remove the style tags and inclusive content:</p><pre class="brush: java; title: ; notranslate">
String content;
Pattern pattern;

pattern = Pattern.compile(&quot;&lt;style.*?&gt;.*?&lt;/style&gt;&quot;, Pattern.DOTALL | Pattern.CASE_INSENSITIVE);
content = pattern.matcher(content).replaceAll(&quot;&quot;);
</pre><p>3- Remove all HTML tags without inclusive content.</p><pre class="brush: java; title: ; notranslate">
pattern = Pattern.compile(&quot;&lt;[^&gt;]*&gt;&quot;);
content = pattern.matcher(content).replaceAll(&quot;&quot;);
</pre><p>4- Replace new lines, tabs and multiple spaces with a single space.</p><pre class="brush: java; title: ; notranslate">
content = content.replaceAll(&quot;\n+&quot;, &quot; &quot;);
content = content.replaceAll(&quot;\t+&quot;, &quot; &quot;);
content = content.replaceAll(&quot;(  )+&quot;, &quot;&quot;);
</pre><p>And you have a pure content now <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><strong>Links</strong><br /> <a href="http://en.wikipedia.org/wiki/Regular_expression">Regular expression</a><br /> <a href="http://www.infernodevelopment.com/how-write-html-parser-java">How to Write an HTML Parser in Java</a><br /> <a href="http://www.regular-expressions.info/" title="Regex Tutorial, Examples and Reference">Regular-Expressions.info</a></p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:&#115;&#97;&#101;&#105;d&#46;z&#101;&#98;&#97;&#114;d&#97;s&#116;&#64;gmai&#108;.c&#111;&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-get-pure-content-from-html-page-in-java-via-regex%2F&amp;linkname=How%20to%20get%20pure%20content%20from%20HTML%20page%20in%20Java%20via%20Regex" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-get-pure-content-from-html-page-in-java-via-regex%2F&amp;linkname=How%20to%20get%20pure%20content%20from%20HTML%20page%20in%20Java%20via%20Regex" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-get-pure-content-from-html-page-in-java-via-regex%2F&amp;linkname=How%20to%20get%20pure%20content%20from%20HTML%20page%20in%20Java%20via%20Regex" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-get-pure-content-from-html-page-in-java-via-regex%2F&amp;title=How%20to%20get%20pure%20content%20from%20HTML%20page%20in%20Java%20via%20Regex" id="wpa2a_4"><span style='display:none'>Share</span></a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/how-to-get-pure-content-from-html-page-in-java-via-regex/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fetch full posts content of FeedWordPress feeds</title><link>http://zebardast.ir/en/fetch-full-posts-content-of-feedwordpress-feeds/</link> <comments>http://zebardast.ir/en/fetch-full-posts-content-of-feedwordpress-feeds/#comments</comments> <pubDate>Mon, 05 Jul 2010 03:57:59 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[FeedWordPress]]></category> <category><![CDATA[wordpress]]></category><guid isPermaLink="false">http://zebardast.ir/en/?p=115</guid> <description><![CDATA[Hi I use WordPress and FeedWordPress plugin to create a planet. It&#8217;s great plugin. Some bloggers don&#8217;t show full post content on their feeds. If you like to get the full content of posts, you can contact to blogger and ask his/her to enable full content on the feed or continue to read this article. [...] No related posts.]]></description> <content:encoded><![CDATA[<p>Hi <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>I use <a href="http://wordpress.org/">WordPress</a> and <a href="http://feedwordpress.radgeek.com/">FeedWordPress</a> plugin to create a <a href="Planet (software)?phpMyAdmin=0OE6BojXhWUIhS49ohu1lcDd6Ab">planet</a>. It&#8217;s great plugin. Some bloggers don&#8217;t show full post content on their feeds. If you like to get the full content of posts, you can contact to blogger and ask his/her to enable full content on the feed or continue to read this article.<br /> I create functions to get full content of posts.</p><p><strong>Requirement</strong></p><ul><li>PHP with cURL support (Client URL Library)</li><li>Permissions to modify theme files</li><li>Text editor</li><li>basic php programming skills</li></ul><p><strong>Step 1 &#8211; Where is post content?</strong><br /> It&#8217;s easy. just open the web page and see the page source.<br /> For example, open <a href="http://zebardast.ir/en/linux-and-unix-bash-shell-aliases/">http://zebardast.ir/en/linux-and-unix-bash-shell-aliases/</a> (Single post with full content) and see the page source.<br /> On the page source you can see the content which is started by below code:</p><pre>&lt;div  class="postBody"&gt;</pre><p>and ended by  :</p><pre>			&lt;/div&gt; 

						&lt;div class="postFooter"&gt;</pre><p>* It&#8217;s not ended only by &lt;/div&gt; because there is some divs on post content. So I add some html code after &lt;/div&gt; which is unique.</p><p><strong>Step 2 &#8211; Add started and ended code to `Custom Feed Settings`</strong><br /> Open the wordpress administration panel and go to the `Feed and Update Settings` page. Select the feed from  drop down menu (Here `Saeid Zebardast&#8217;s Blog`).<br /> Add started and ended code to `Custom Feed Settings`:</p><div class="autocap aligncenter" style="width: 300px;"><div><a href="http://zebardast.ir/en/wp-content/uploads/2010/07/Add-started-and-ended-code-to-Custom-Feed-Settings.png"><img src="http://zebardast.ir/en/wp-content/uploads/2010/07/Add-started-and-ended-code-to-Custom-Feed-Settings-300x131.png" alt="" title="Add started and ended code to `Custom Feed Settings`" width="300" height="131" class=" size-medium wp-image-116" /></a><p class="autocap-text"><span class="hide">— </span>Add started and ended code to `Custom Feed Settings`</p></div></div><p><strong>Step 3 &#8211; Fetch full content from source and update post on wordpress</strong><br /> Open functions.php in text editor and add the below codes to the end of it:</p><pre>
&lt;?php
function validLink($link) {
    if(preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $link)) {
        return true;
    } else {
        return false;
    }
}

/**
 * Get a web file (HTML, XHTML, XML, image, etc.) from a URL.  Return an
 * array containing the HTTP server response header fields and content.
 */
function get_web_page( $url )
{
    $options = array(
        CURLOPT_RETURNTRANSFER => true,     // return web page
        CURLOPT_HEADER         => false,    // don't return headers
        CURLOPT_FOLLOWLOCATION => false,     // follow redirects
        CURLOPT_ENCODING       => "",       // handle all encodings
        CURLOPT_USERAGENT      => "ayy.ir spider", // who am i
        CURLOPT_AUTOREFERER    => true,     // set referer on redirect
        CURLOPT_CONNECTTIMEOUT => 120,      // timeout on connect
        CURLOPT_TIMEOUT        => 120,      // timeout on response
        CURLOPT_MAXREDIRS      => 10,       // stop after 10 redirects
    );

    $ch      = curl_init( $url );
    curl_setopt_array( $ch, $options );
    $content = curl_exec( $ch );
    $err     = curl_errno( $ch );
    $errmsg  = curl_error( $ch );
    $header  = curl_getinfo( $ch );
    curl_close( $ch );

    $header['errno']   = $err;
    $header['errmsg']  = $errmsg;
    $header['content'] = $content;
    return $header;
}

function before ($this, $inthat)
{
    return substr($inthat, 0, strpos($inthat, $this));
}; 

function after ($this, $inthat)
{
    if (!is_bool(strpos($inthat, $this)))
    return substr($inthat, strpos($inthat,$this)+strlen($this));
}; 

function multi_between($this, $that, $inthat)
{
   $counter = 0;
   while ($inthat)
   {
      $counter++;
      $elements[$counter] = before($that, $inthat);
      $elements[$counter] = after($this, $elements[$counter]);
      $inthat = after($that, $inthat);
   }
   return $elements;
} 

function strbet($inputStr, $delimeterLeft, $delimeterRight, $debug=false) {
    $posLeft=strpos($inputStr, $delimeterLeft);

    if ( $debug ) {
    	echo $posLeft;
    }

    if ( $posLeft===false ) {
        if ( $debug ) {
            echo "Warning: left delimiter '{$delimeterLeft}' not found";
        }
        return false;
    }
    $posLeft+=strlen($delimeterLeft);
    $posRight=strpos($inputStr, $delimeterRight, $posLeft);
    if ( $posRight===false ) {
        if ( $debug ) {
            echo "Warning: right delimiter '{$delimeterRight}' not found";
        }
        return false;
    }

    if ( $debug ) {
    	echo $posLeft;
    	echo $posRight;
    }

    return substr($inputStr, $posLeft, $posRight-$posLeft);
} 

?&gt;
</pre><p>Close functions.php and open single.php in text editor. Add the below codes after `&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;`:</p><pre>
&lt;?php
	 $my_content = get_the_content();
	 if (is_syndicated()) :

      	$syndication_permalink = get_post_meta(get_the_ID(),"syndication_permalink", true);
      	$syndication_source = get_post_meta(get_the_ID(),"syndication_source", true);
      	$syndication_source_uri = get_post_meta(get_the_ID(),"syndication_source_uri", true);

      	if (!validLink($syndication_permalink) &#038;&#038; validLink($syndication_source_uri)) {
      		$syndication_permalink = $syndication_source_uri . "/" . $syndication_permalink;
      	}

	 		$post_updated = get_post_meta(get_the_ID(),"post_updated", true);
	 		if (empty($post_updated) || $post_updated == false)  {

		      $start_content = get_feed_meta('start_content');
		      $end_content = get_feed_meta('end_content');

		      if (!empty ($start_content) &#038;&#038; !empty($end_content)) {
		      	$result = get_web_page($syndication_permalink);
		      	$my_page = $result['content'];

		      	if (!empty($my_page)) {
		      		$valid_texts = array();
		      		$valid_texts = strbet($my_page, $start_content, $end_content);
				if (is_array($valid_texts)) {
					$valid_texts = $valid_texts[0];
				}

		      		if (!empty($valid_texts)) {
		      			$my_post = array();
		      			$my_post['ID'] = get_the_ID();
		      			$my_post['post_content'] = $valid_texts;
		      			$my_content = $valid_texts;
		      			wp_update_post($my_post);
		      			update_post_meta(get_the_ID(), 'post_updated', true);
		      		}
		      	}
		      }
	 		}

	 endif; //is_syndicated()
  ?&gt;
</pre><p>After it, replace `the_content()` with:</p><pre> echo $my_content; </pre><p>Close text editor and Upload functions.php and single.php to your theme folder. Now go to the single post and see the full content.<br /> <em>Just try it!</em></p><p><strong>See also</strong><br /> • <a href="http://feedwordpress.radgeek.com/wiki/how-do-i-get-feedwordpress-include-full-content-posts-instead-just-short-summary-or-excerpt-tex">How do I get FeedWordPress to include the full content of posts, instead of just a short summary or excerpt of the text?</a></p><p><strong>External links</strong><br /> • <a href="http://wordpress.org/">WordPress</a><br /> • <a href="http://feedwordpress.radgeek.com/">FeedWordPress</a> (Homepage)<br /> • <a href="http://wordpress.org/extend/plugins/feedwordpress/">FeedWordPress</a> (WordPress plugin directory)<br /> • <a href="http://www.php.net/manual/en/book.curl.php">Client URL Library</a></p><p>Good luck <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:sa&#101;&#105;&#100;.&#122;&#101;bard&#97;s&#116;&#64;&#103;&#109;&#97;&#105;&#108;.&#99;&#111;&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffetch-full-posts-content-of-feedwordpress-feeds%2F&amp;linkname=Fetch%20full%20posts%20content%20of%20FeedWordPress%20feeds" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffetch-full-posts-content-of-feedwordpress-feeds%2F&amp;linkname=Fetch%20full%20posts%20content%20of%20FeedWordPress%20feeds" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffetch-full-posts-content-of-feedwordpress-feeds%2F&amp;linkname=Fetch%20full%20posts%20content%20of%20FeedWordPress%20feeds" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Ffetch-full-posts-content-of-feedwordpress-feeds%2F&amp;title=Fetch%20full%20posts%20content%20of%20FeedWordPress%20feeds" id="wpa2a_6"><span style='display:none'>Share</span></a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/fetch-full-posts-content-of-feedwordpress-feeds/feed/</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>How to find hardware information from command line on Linux</title><link>http://zebardast.ir/en/find-and-show-hardware-information-from-command-line-on-linux/</link> <comments>http://zebardast.ir/en/find-and-show-hardware-information-from-command-line-on-linux/#comments</comments> <pubDate>Mon, 01 Mar 2010 14:25:26 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[GNU/Linux]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[Terminal]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[hardware]]></category><guid isPermaLink="false">http://zebardast.ir/en/?p=94</guid> <description><![CDATA[— linux Hi In this post you can see some useful command to find and show hardware information on Linux. Default commands ALL devices dmesg dmesg will show you the kernel messages which can show you all the devices the kernel has found (hard disks,cdroms,etc) CPU # cat /proc/cpuinfo Memory # cat /proc/meminfo $ free [...] Related posts:<ol><li><a href='http://zebardast.ir/en/linux-and-unix-bash-shell-aliases/' rel='bookmark' title='Linux and UNIX bash shell aliases'>Linux and UNIX bash shell aliases</a></li><li><a href='http://zebardast.ir/en/how-to-posting-to-identica-from-the-cli/' rel='bookmark' title='How to posting to Identi.ca from the CLI'>How to posting to Identi.ca from the CLI</a></li><li><a href='http://zebardast.ir/en/how-to-get-special-lines-data-from-file-linux/' rel='bookmark' title='How to get special lines data from file (Linux)'>How to get special lines data from file (Linux)</a></li></ol>]]></description> <content:encoded><![CDATA[<div style="float:right"><div class="autocap " style="width: 48px;"><div><img class=" size-full wp-image-873" width="48" height="48" title="linux" alt="linux" src="http://zebardast.ir/wp-content/uploads/2009/11/linux48.gif"/><p class="autocap-text"><span class="hide">— </span>linux</p></div></div></div><p>Hi</p><p>In this post you can see some useful command to find and show hardware information on Linux.</p><h3>Default commands</h3><h4>ALL devices</h4><pre>dmesg</pre><p>dmesg will show you the kernel messages which can show you all the devices the kernel has found (hard disks,cdroms,etc)</p><h4>CPU</h4><pre># cat /proc/cpuinfo</pre><h4>Memory</h4><pre># cat /proc/meminfo
$ free
</pre><h4>PCI (including usb bridges,agp cards etc)</h4><pre>$ lspci</pre><h4>USB devices (mice,etc)</h4><pre>$ lsusb</pre><h4>Hard drives</h4><pre># fdisk -l
$ df -h
</pre><h3>Additional Command</h3><h4>lshw</h4><p>lshw is a Linux command which provides details of all the hardware in your PC. The details provided by the lshw command run the gamut of processors, memory, slots, onboard sound, video chipset and more.</p><h5>Install lshw</h5><p>Arch:</p><pre># pacman -S lshw</pre><p>Debain, Ubuntu or any of its derivatives:</p><pre>$ sudo aptitude install lshw</pre><p>Redhat, fedora, CentOS:</p><pre># yum install lshw</pre><p>Gentoo:</p><pre># emerge lshw</pre><h5>Run lshw</h5><pre># lshw
# lshw -short</pre><p>To get the output in HTML, you use the -html option as follows:</p><pre># lshw -html > hardware-info.html</pre><p>• See <a href="http://linuxandfriends.com/2009/02/23/lshw-command-list-hardware-information-in-linux/">lshw command – List hardware information in Linux </a></p><h4>dmidecode</h4><p>dmidecode command reads the system DMI table to display hardware and BIOS information of the server. Apart from getting current configuration of the system, you can also get information about maximum supported configuration of the system using dmidecode. For example, dmidecode gives both the current RAM on the system and the maximum RAM supported by the system.<br /> dmidecode is installed by default on many linux distribution like debain, ubuntu and fedora.<br /> • See <a href="http://www.thegeekstuff.com/2008/11/how-to-get-hardware-information-on-linux-using-dmidecode-command/">How To Get Hardware Information On Linux Using dmidecode Command</a></p><p>have a good time <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:&#115;&#97;ei&#100;&#46;zeb&#97;r&#100;as&#116;&#64;&#103;m&#97;i&#108;.co&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffind-and-show-hardware-information-from-command-line-on-linux%2F&amp;linkname=How%20to%20find%20hardware%20information%20from%20command%20line%20on%20Linux" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffind-and-show-hardware-information-from-command-line-on-linux%2F&amp;linkname=How%20to%20find%20hardware%20information%20from%20command%20line%20on%20Linux" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffind-and-show-hardware-information-from-command-line-on-linux%2F&amp;linkname=How%20to%20find%20hardware%20information%20from%20command%20line%20on%20Linux" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Ffind-and-show-hardware-information-from-command-line-on-linux%2F&amp;title=How%20to%20find%20hardware%20information%20from%20command%20line%20on%20Linux" id="wpa2a_8"><span style='display:none'>Share</span></a></p><p>Related posts:<ol><li><a href='http://zebardast.ir/en/linux-and-unix-bash-shell-aliases/' rel='bookmark' title='Linux and UNIX bash shell aliases'>Linux and UNIX bash shell aliases</a></li><li><a href='http://zebardast.ir/en/how-to-posting-to-identica-from-the-cli/' rel='bookmark' title='How to posting to Identi.ca from the CLI'>How to posting to Identi.ca from the CLI</a></li><li><a href='http://zebardast.ir/en/how-to-get-special-lines-data-from-file-linux/' rel='bookmark' title='How to get special lines data from file (Linux)'>How to get special lines data from file (Linux)</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/find-and-show-hardware-information-from-command-line-on-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Synchronizing Google Tools with Kontact</title><link>http://zebardast.ir/en/synchronizing-google-tools-with-kontact/</link> <comments>http://zebardast.ir/en/synchronizing-google-tools-with-kontact/#comments</comments> <pubDate>Mon, 16 Nov 2009 08:34:12 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[Kubuntu]]></category> <category><![CDATA[akonadi]]></category> <category><![CDATA[google]]></category> <category><![CDATA[KDE]]></category> <category><![CDATA[kmail]]></category> <category><![CDATA[korganizer]]></category> <category><![CDATA[Synchronization]]></category><guid isPermaLink="false">http://zebardast.ir/en/?p=82</guid> <description><![CDATA[Hello Introduction Using online tools has many advantages. One of the most important of them is the information is accessible from anywhere and at any time. One need that was occurred after using this tools is Synchronizing information with other applications and devices. such as Synchronizing contacts between Mobile, Web and PC. * The following [...] No related posts.]]></description> <content:encoded><![CDATA[<p>Hello <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><strong>Introduction</strong><br /> Using online tools has many advantages. One of the most important of them is the information is accessible from anywhere and at any time.<br /> One need that was occurred after using this tools is Synchronizing information with other applications and devices. such as Synchronizing contacts between Mobile, Web and PC.</p><p><em>* The following guide is tested on Kubuntu 9.10 with KDE 4.3.3 environment.</em></p><p><strong>Synchronizing Google Tools with Kontact</strong><br /> <em>Step 1</em><br /> Installing akonadi-kde-resource-googledata package. The package is available in Ubuntu 9.10 and Debian repositories.</p><pre>sudo aptitude install akonadi-kde-resource-googledata</pre><p><em>Step 2</em><br /> After installing akonadi-kde-resource-googledata package, you need to add Google resources to Akonadi. Open Akonadi Console:</p><pre>akonadiconsole</pre><p>Click Add on Agents tab. Add a `Akonadi Google Calendar Resource` for Google Calendar  and add `Akonadi Google Contacts Resource` for Google Contacts.</p><div class="autocap " style="width: 300px;"><div><a href="http://zebardast.ir/wp-content/uploads/2009/11/akonadi-console-google-resource.png"><img class="size-medium wp-image-904" title="Add Google Resources to Akonadi Console" src="http://zebardast.ir/wp-content/uploads/2009/11/akonadi-console-google-resource-300x196.png" alt="Add Google Resources to Akonadi Console" width="300" height="196" /></a><p class="autocap-text"><span class="hide">— </span>Add Google Resources to Akonadi Console</p></div></div><p>Enter your username without `@gmail.com`  in the next window.</p><div class="autocap aligncenter" style="width: 300px;"><div><a href="http://zebardast.ir/wp-content/uploads/2009/11/akonadi-console-google-resource-2.png"><img class=" size-medium wp-image-907" title="Enter your username" src="http://zebardast.ir/wp-content/uploads/2009/11/akonadi-console-google-resource-2-300x170.png" alt="Enter your username" width="300" height="170" /></a><p class="autocap-text"><span class="hide">— </span>Enter your username</p></div></div><p><em>Step 3</em><br /> After adding a resources open Kontact application :</p><pre>kontact</pre><p><strong>Add Contacts</strong><br /> Go to Contact section and add `Akonadi Google Resource` to address books:</p><div class="autocap aligncenter" style="width: 300px;"><div><a href="http://zebardast.ir/wp-content/uploads/2009/11/akonadi-console-google-resource-address-book.png"><img class=" size-medium wp-image-909" title="Add `Akonadi Google Resource` to Address Books" src="http://zebardast.ir/wp-content/uploads/2009/11/akonadi-console-google-resource-address-book-300x196.png" alt="Add `Akonadi Google Resource` to Address Books" width="300" height="196" /></a><p class="autocap-text"><span class="hide">— </span>Add `Akonadi Google Resource` to Address Books</p></div></div><p><strong>Add Calendar</strong><br /> Go to Calendar section and add `Akonadi Google Resource` to calendars:</p><div class="autocap aligncenter" style="width: 300px;"><div><a href="http://zebardast.ir/wp-content/uploads/2009/11/akonadi-console-google-resource-calendar.png"><img class=" size-medium wp-image-910" title="Add `Akonadi Google Resource` to calendars" src="http://zebardast.ir/wp-content/uploads/2009/11/akonadi-console-google-resource-calendar-300x197.png" alt="Add `Akonadi Google Resource` to calendars" width="300" height="197" /></a><p class="autocap-text"><span class="hide">— </span>Add `Akonadi Google Resource` to calendars</p></div></div><p>done <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p><p><strong>P.S.</strong><br /> <a href="http://wiki.ubuntu.ir/KarmicKoalaReleaseParty">Ubuntu 9.10 release party held in Tehran, Iran</a>.</p><p>Have a good time <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:saeid.&#122;e&#98;&#97;&#114;&#100;&#97;s&#116;&#64;g&#109;ai&#108;&#46;&#99;om" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fsynchronizing-google-tools-with-kontact%2F&amp;linkname=Synchronizing%20Google%20Tools%20with%20Kontact" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fsynchronizing-google-tools-with-kontact%2F&amp;linkname=Synchronizing%20Google%20Tools%20with%20Kontact" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fsynchronizing-google-tools-with-kontact%2F&amp;linkname=Synchronizing%20Google%20Tools%20with%20Kontact" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Fsynchronizing-google-tools-with-kontact%2F&amp;title=Synchronizing%20Google%20Tools%20with%20Kontact" id="wpa2a_10"><span style='display:none'>Share</span></a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/synchronizing-google-tools-with-kontact/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to extract embedded images from .xls, .ods or .odt</title><link>http://zebardast.ir/en/how-to-extract-embedded-images-from-xls-ods-or-odt/</link> <comments>http://zebardast.ir/en/how-to-extract-embedded-images-from-xls-ods-or-odt/#comments</comments> <pubDate>Thu, 14 May 2009 12:50:29 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[ods]]></category> <category><![CDATA[odt]]></category> <category><![CDATA[openoffice.org]]></category> <category><![CDATA[xls]]></category><guid isPermaLink="false">http://zebardast.wordpress.com/?p=57</guid> <description><![CDATA[Hi It&#8217;s simple. Just 4 steps: Save a copy of the file as ODS (OpenOffice.org Spreadsheet). Change the filetype of the copy to ZIP (for example rename File.xls to File.zip). Open the ZIP. In the directory called Pictures will be the images, just as in the original. About Saeid ZebardastI'm Senior software engineer with 5+ [...] No related posts.]]></description> <content:encoded><![CDATA[<p><img src="http://zebardast.files.wordpress.com/2009/05/icon_openoffice.png" alt="icon_openoffice" title="icon_openoffice" width="48" height="48" class="alignright size-full wp-image-58" /><br /> Hi <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>It&#8217;s simple. Just 4 steps:</p><ol><li>Save a copy of the file as ODS (OpenOffice.org Spreadsheet).</li><li>Change the filetype of the copy to ZIP (for example rename File.xls to File.zip).</li><li>Open the ZIP.</li><li>In the directory called Pictures will be the images, just as in the original.</li></ol><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:s&#97;&#101;i&#100;&#46;&#122;e&#98;a&#114;d&#97;&#115;t&#64;&#103;m&#97;i&#108;.co&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-extract-embedded-images-from-xls-ods-or-odt%2F&amp;linkname=How%20to%20extract%20embedded%20images%20from%20.xls%2C%20.ods%20or%20.odt" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-extract-embedded-images-from-xls-ods-or-odt%2F&amp;linkname=How%20to%20extract%20embedded%20images%20from%20.xls%2C%20.ods%20or%20.odt" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-extract-embedded-images-from-xls-ods-or-odt%2F&amp;linkname=How%20to%20extract%20embedded%20images%20from%20.xls%2C%20.ods%20or%20.odt" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-extract-embedded-images-from-xls-ods-or-odt%2F&amp;title=How%20to%20extract%20embedded%20images%20from%20.xls%2C%20.ods%20or%20.odt" id="wpa2a_12"><span style='display:none'>Share</span></a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/how-to-extract-embedded-images-from-xls-ods-or-odt/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to posting to Identi.ca from the CLI</title><link>http://zebardast.ir/en/how-to-posting-to-identica-from-the-cli/</link> <comments>http://zebardast.ir/en/how-to-posting-to-identica-from-the-cli/#comments</comments> <pubDate>Mon, 16 Feb 2009 13:30:13 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[Terminal]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[identi.ca]]></category><guid isPermaLink="false">http://zebardast.wordpress.com/?p=48</guid> <description><![CDATA[Hi Identi.ca is an open source social networking and micro-blogging service. I like Ideni.ca. It&#8217;s good service. I use CLI (command line) everyday. I like to dented from it. It&#8217;s simple. Just install cURL: $ sudo apt-get install curl And type: $ curl -u username:password -d status="message" http://identi.ca/api/statuses/update.xml You will receive a response containing the [...] No related posts.]]></description> <content:encoded><![CDATA[<p><img src="http://zebardast.files.wordpress.com/2007/12/terminal_icon_48_48.jpg" alt="terminal - cli" align="right" /><br /> Hi <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><a href="http://identi.ca">Identi.ca</a> is an open source social networking and micro-blogging service.<br /> I like <a href="http://identi.ca">Ideni.ca</a>. It&#8217;s good service.</p><p>I use <abbr title="Command Line Interpreter">CLI</abbr> (command line) everyday. I like to dented from it. It&#8217;s simple.<br /> Just install <a href="http://curl.haxx.se/">cURL</a>:</p><pre>$ sudo apt-get install curl</pre><p>And type:</p><pre>$ curl -u username:password -d status="message" http://identi.ca/api/statuses/update.xml</pre><p>You will receive a response containing the XML coding for your post which acts as a confirmation that your post was submitted.</p><p><strong>Also you can create a shell file for this</strong><br /> Open a new text document and add the following, save it as identica.sh (or anything ending in sh):</p><pre>#!/bin/bash
curl -u username:password -d status=&#8243;$1" http://identi.ca/api/statuses/update.xml</pre><p>Make sure you change the chmod to 777 using the following command.</p><pre>$ chmod 777 /path/to/file/</pre><p>When you located the file (or add a bash prompt) it makes it simplier to identi.ca the rules. For example you can type the following to command to link to the file.</p><pre>$ ./path/to/idetica.sh "Message"</pre><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:saei&#100;&#46;ze&#98;&#97;&#114;&#100;a&#115;t&#64;&#103;&#109;ail&#46;co&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-posting-to-identica-from-the-cli%2F&amp;linkname=How%20to%20posting%20to%20Identi.ca%20from%20the%20CLI" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-posting-to-identica-from-the-cli%2F&amp;linkname=How%20to%20posting%20to%20Identi.ca%20from%20the%20CLI" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-posting-to-identica-from-the-cli%2F&amp;linkname=How%20to%20posting%20to%20Identi.ca%20from%20the%20CLI" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Fhow-to-posting-to-identica-from-the-cli%2F&amp;title=How%20to%20posting%20to%20Identi.ca%20from%20the%20CLI" id="wpa2a_14"><span style='display:none'>Share</span></a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/how-to-posting-to-identica-from-the-cli/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Install Oracle Instant Client and PHP OCI8 module</title><link>http://zebardast.ir/en/install-oracle-instant-client-and-php-oci8-module/</link> <comments>http://zebardast.ir/en/install-oracle-instant-client-and-php-oci8-module/#comments</comments> <pubDate>Sun, 10 Aug 2008 04:52:15 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[Oracle]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[oci]]></category> <category><![CDATA[oci8]]></category><guid isPermaLink="false">http://zebardast.wordpress.com/?p=21</guid> <description><![CDATA[If you want to connect to an Oracle database with PHP, you can use Oracle&#8217;s Instant Client and the oci8 module from pear. Download the Basic and the SDK packages from oracle.com. At the time of this writing, the filenames are instantclient-basic.zip and instantclient-sdk.zip. Unzip these files in a new directory, e.g. /opt/oracle/instantclient. Code: The [...] Related posts:<ol><li><a href='http://zebardast.ir/en/how-to-install-gos-on-ubuntu-gutsy-gibbon/' rel='bookmark' title='How to install gOS on Ubuntu Gutsy Gibbon'>How to install gOS on Ubuntu Gutsy Gibbon</a></li></ol>]]></description> <content:encoded><![CDATA[<p>If you want to connect to an Oracle database with PHP, you can use Oracle&#8217;s Instant Client and the oci8 module from pear.</p><p>Download the Basic and the SDK packages from <a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html">oracle.com</a>. At the time of this writing, the filenames are instantclient-basic.zip and instantclient-sdk.zip.</p><p>Unzip these files in a new directory, e.g. /opt/oracle/instantclient.</p><p>Code:</p><pre class="brush: bash; title: ; notranslate">
sudo su
mkdir -p /opt/oracle/instantclient
cd /opt/oracle/instantclient
unzip instantclient-basic.zip
unzip instantclient-sdk.zip
echo /opt/oracle/instantclient &amp;gt;&amp;gt; /etc/ld.so.conf
ldconfig
</pre><p>The previous two lines are supposed to create symlinks named libclntsh.so and libocci.so which we will need later. In my case these symlinks were not created by ldconfig, so I created them manually.</p><p>Code:</p><pre class="brush: bash; title: ; notranslate">
ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so
</pre><p>In the next step we will download the oci8 module with pear. Pear is in the php-pear package.</p><p>Code:</p><pre class="brush: bash; title: ; notranslate">
apt-get install php-pear
</pre><p>Also, you need php5-dev and build-essential packages for compiling oci8 module.</p><p>Code:</p><pre class="brush: bash; title: ; notranslate">
apt-get install php-pear php5-dev build-essential
</pre><p>&#8220;Normally&#8221; we should be able to just use <em>pecl install oci8</em> now, but apparently pear is not able to figure out where the instantclient libraries are. So we will just download the oci8 module and build it on our own.</p><p>Code:</p><pre class="brush: bash; title: ; notranslate">
mkdir -p /usr/local/src
cd /usr/local/src
pecl download oci8
tar xzf oci8-1.3.4.tgz
cd oci8-1.3.4
phpize
./configure --with-oci8=shared,instantclient,/opt/oracle/instantclient
make
make install
</pre><p>The oci8-1.3.4.tgz filename will of course change for newer releases.</p><p>To enable the oci8 module in the php.ini (/etc/php5/apache2/php.ini and /etc/php5/cli/php.ini), add a line<br /> Code:</p><pre class="brush: plain; title: ; notranslate">
extension=oci8.so
</pre><p>(put this line after the examples starting with ;extension).</p><p>Now stop and start Apache. You should see the oci8 module in the output of phpinfo().</p><p>Good luck</p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:&#115;&#97;eid&#46;&#122;e&#98;&#97;&#114;d&#97;s&#116;&#64;&#103;m&#97;i&#108;&#46;&#99;o&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Finstall-oracle-instant-client-and-php-oci8-module%2F&amp;linkname=Install%20Oracle%20Instant%20Client%20and%20PHP%20OCI8%20module" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Finstall-oracle-instant-client-and-php-oci8-module%2F&amp;linkname=Install%20Oracle%20Instant%20Client%20and%20PHP%20OCI8%20module" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Finstall-oracle-instant-client-and-php-oci8-module%2F&amp;linkname=Install%20Oracle%20Instant%20Client%20and%20PHP%20OCI8%20module" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Finstall-oracle-instant-client-and-php-oci8-module%2F&amp;title=Install%20Oracle%20Instant%20Client%20and%20PHP%20OCI8%20module" id="wpa2a_16"><span style='display:none'>Share</span></a></p><p>Related posts:<ol><li><a href='http://zebardast.ir/en/how-to-install-gos-on-ubuntu-gutsy-gibbon/' rel='bookmark' title='How to install gOS on Ubuntu Gutsy Gibbon'>How to install gOS on Ubuntu Gutsy Gibbon</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/install-oracle-instant-client-and-php-oci8-module/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Nested X11 environment session</title><link>http://zebardast.ir/en/nested-x11-environment-session/</link> <comments>http://zebardast.ir/en/nested-x11-environment-session/#comments</comments> <pubDate>Mon, 07 Apr 2008 19:15:28 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[GNU/Linux]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[KDE]]></category> <category><![CDATA[Kubuntu]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[X11]]></category><guid isPermaLink="false">http://zebardast.wordpress.com/?p=18</guid> <description><![CDATA[Hi Instead of using a full-blown new virtual X for developing software you can use Xephyr to embed your KDE 4 session into your working KDE 3 or other X11 environment. If you want to get a minimal KDE session up and running, just launch Xephyr (available in Kubuntu as xserver-xephyr; Gentoo users compile x11-base/xorg-server [...] No related posts.]]></description> <content:encoded><![CDATA[<p><img src="http://itpencil.files.wordpress.com/2008/01/kde.png" align="right" /><br /> Hi <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Instead of using a full-blown new virtual X for developing software you can use Xephyr to embed your KDE 4 session into your working KDE 3 or other X11 environment.</p><p align="center"><a href='http://itpencil.files.wordpress.com/2008/04/nested-kde-x11-xephyr.png'><img src="http://itpencil.files.wordpress.com/2008/04/nested-kde-x11-xephyr-small.png" alt="" width="400" height="250" class="aligncenter size-medium wp-image-481" /></a></p><p>If you want to get a minimal KDE session up and running, just launch Xephyr (available in Kubuntu as xserver-xephyr; Gentoo users compile x11-base/xorg-server with USE=&#8221;kdrive&#8221;):</p><pre>Xephyr :1 -extension GLX &amp;</pre><p>You can now launch KDE:</p><pre>export DISPLAY=:1
/path/to/kde4/bin/startkde &amp;</pre><p>For other X11 environment just change /path/to/kde4 like:</p><pre>/usr/bin/startx &amp;</pre><p>or</p><pre>/usr/bin/startkde &amp;</pre><p>or</p><pre>/usr/bin/startxfce&amp;</pre><p>You can use &#8220;locate&#8221; command to find paths like:</p><pre>locate startkde</pre><p><strong>Appendix</strong><br /> • <a href="http://en.wikipedia.org/wiki/Norouz">Happy Nowruz 1387</a> (Iranian new year holiday)</p><p>Good Luck</p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:sae&#105;&#100;&#46;&#122;&#101;&#98;ar&#100;&#97;&#115;t&#64;g&#109;ail&#46;co&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fnested-x11-environment-session%2F&amp;linkname=Nested%20X11%20environment%20session" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fnested-x11-environment-session%2F&amp;linkname=Nested%20X11%20environment%20session" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fnested-x11-environment-session%2F&amp;linkname=Nested%20X11%20environment%20session" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Fnested-x11-environment-session%2F&amp;title=Nested%20X11%20environment%20session" id="wpa2a_18"><span style='display:none'>Share</span></a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/nested-x11-environment-session/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Webmin, Installing on Ubuntu Gutsy Gibbon (7.10)</title><link>http://zebardast.ir/en/webmin-installing-on-ubuntu-gutsy-gibbon-710/</link> <comments>http://zebardast.ir/en/webmin-installing-on-ubuntu-gutsy-gibbon-710/#comments</comments> <pubDate>Tue, 22 Jan 2008 19:48:10 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[Webmin]]></category><guid isPermaLink="false">http://zebardast.wordpress.com/2008/01/22/webmin-installing-on-ubuntu-gusty-gibbon-810/</guid> <description><![CDATA[Hi I wrote post about Webmin in ITPencil. My Persian friend like it. I decide to write post about Webmin and how to installing it on Ubuntu Gutsy Gibbon (7.10). It&#8217;s very good for newbie. from webmin.com: Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup [...] Related posts:<ol><li><a href='http://zebardast.ir/en/how-to-install-gos-on-ubuntu-gutsy-gibbon/' rel='bookmark' title='How to install gOS on Ubuntu Gutsy Gibbon'>How to install gOS on Ubuntu Gutsy Gibbon</a></li><li><a href='http://zebardast.ir/en/root-terminal-in-ubuntu/' rel='bookmark' title='Root Terminal in Ubuntu'>Root Terminal in Ubuntu</a></li></ol>]]></description> <content:encoded><![CDATA[<p><img src="http://itpencil.files.wordpress.com/2008/01/webmin_48.png" alt="Webmin" align="right" /><br /> Hi <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br /> I wrote post about <a href="http://webmin.com">Webmin</a> in <a href="http://itpencil.wordpress.com/2008/01/15/webmin-%d8%a7%d8%a8%d8%b2%d8%a7%d8%b1-%d9%85%d8%af%db%8c%d8%b1%db%8c%d8%aa%db%8c-%d8%b3%db%8c%d8%b3%d8%aa%d9%85/">ITPencil</a>.  My Persian friend like it. I decide to write post about Webmin and how to installing it on Ubuntu Gutsy Gibbon (7.10).<br /> It&#8217;s very good for newbie.</p><p>from <a href="http://webmin.com">webmin.com</a>:</p><blockquote><p>Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.</p></blockquote><p><strong>Installing Webmin On Ubuntu Gutsy Gibbon (7.10)</strong><br /> Webmin has some dependency package.<br /> <em>Install dependencies:</em></p><pre>
sudo aptitude install bash perl libnet-ssleay-perl openssl \
libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
</pre><p>After install dependencies, you can download and install Webmin. Last version of Webmin is 1.390.<br /> <em>Download Webmin:</em></p><pre>
sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.390_all.deb
</pre><p><em>Install Webmin:</em></p><pre>
sudo dpkg -i webmin*.deb
</pre><p><em>Log in and use it:</em><br /> Copy this URL into your web browser: <a href="https://localhost:10000">https://localhost:10000</a><br /> <span id="more-14"></span><br /> <strong>Screenshots</strong><br /> • Grub Boot Loader</p><p align="center"> <a href='http://itpencil.files.wordpress.com/2008/01/webmin_grub_boot_loader_screenshot.png' title='webmin_grub_boot_loader_screenshot.png'><img src='http://itpencil.files.wordpress.com/2008/01/webmin_grub_boot_loader_screenshot.thumbnail.png' alt='webmin_grub_boot_loader_screenshot.png' /></a></p><p>• Apache Webserver</p><p align="center"> <a href='http://itpencil.files.wordpress.com/2008/01/webmin_apache_webserver.png' title='webmin_apache_webserver.png'><img src='http://itpencil.files.wordpress.com/2008/01/webmin_apache_webserver.thumbnail.png' alt='webmin_apache_webserver.png' /></a></p><p>• System Documentation</p><p align="center"> <a href='http://itpencil.files.wordpress.com/2008/01/webmin_system_documentation.png' title='webmin_system_documentation.png'><img src='http://itpencil.files.wordpress.com/2008/01/webmin_system_documentation.thumbnail.png' alt='webmin_system_documentation.png' /></a></p><p>• Scheduled Cron jobs</p><p align="center"> <a href='http://itpencil.files.wordpress.com/2008/01/webmin_scheduled_cron_jobs.png' title='webmin_scheduled_cron_jobs.png'><img src='http://itpencil.files.wordpress.com/2008/01/webmin_scheduled_cron_jobs.thumbnail.png' alt='webmin_scheduled_cron_jobs.png' /></a></p><p>• Software Packages</p><p align="center"> <a href='http://itpencil.files.wordpress.com/2008/01/webmin_software_packages.png' title='webmin_software_packages.png'><img src='http://itpencil.files.wordpress.com/2008/01/webmin_software_packages.thumbnail.png' alt='webmin_software_packages.png' /></a></p><p>Check out the <a href="http://www.webmin.com/demo.html">screenshots</a>.</p><p><strong>External links</strong><br /> • <a href="http://www.webmin.com">Official Webmin website</a><br /> • <a href="http://doxfer.com/Webmin">Webmin documentation wiki</a></p><p>Good luck</p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:&#115;a&#101;id.&#122;&#101;&#98;ar&#100;&#97;st&#64;&#103;&#109;&#97;il&#46;c&#111;&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fwebmin-installing-on-ubuntu-gutsy-gibbon-710%2F&amp;linkname=Webmin%2C%20Installing%20on%20Ubuntu%20Gutsy%20Gibbon%20%287.10%29" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fwebmin-installing-on-ubuntu-gutsy-gibbon-710%2F&amp;linkname=Webmin%2C%20Installing%20on%20Ubuntu%20Gutsy%20Gibbon%20%287.10%29" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fwebmin-installing-on-ubuntu-gutsy-gibbon-710%2F&amp;linkname=Webmin%2C%20Installing%20on%20Ubuntu%20Gutsy%20Gibbon%20%287.10%29" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Fwebmin-installing-on-ubuntu-gutsy-gibbon-710%2F&amp;title=Webmin%2C%20Installing%20on%20Ubuntu%20Gutsy%20Gibbon%20%287.10%29" id="wpa2a_20"><span style='display:none'>Share</span></a></p><p>Related posts:<ol><li><a href='http://zebardast.ir/en/how-to-install-gos-on-ubuntu-gutsy-gibbon/' rel='bookmark' title='How to install gOS on Ubuntu Gutsy Gibbon'>How to install gOS on Ubuntu Gutsy Gibbon</a></li><li><a href='http://zebardast.ir/en/root-terminal-in-ubuntu/' rel='bookmark' title='Root Terminal in Ubuntu'>Root Terminal in Ubuntu</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/webmin-installing-on-ubuntu-gutsy-gibbon-710/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 41/108 queries in 0.035 seconds using disk: basic
Object Caching 4266/4377 objects using disk: basic

Served from: zebardast.ir @ 2012-02-10 11:08:59 -->
