<?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>Ruben Sargsyan</title>
	<atom:link href="http://rubensargsyan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubensargsyan.com</link>
	<description>Personal Website</description>
	<lastBuildDate>Tue, 27 Jul 2010 17:41:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress plugin &#8220;Most Commenting Visitors&#8221; new 1.3 version</title>
		<link>http://rubensargsyan.com/wordpress-plugin-most-commenting-visitors-new-1-3-version/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-most-commenting-visitors-new-1-3-version/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 17:41:15 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[new version]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[visitors]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=392</guid>
		<description><![CDATA[The new version of Wordpress plugin &#8220;Most Commenting Visitors&#8221; 1.3. is created. The following updates have been done in this version:
1. Now you can set the start date from which the plugin will count the numbers of comments.
Plugin Homepage
]]></description>
			<content:encoded><![CDATA[<p>The new version of Wordpress plugin &#8220;Most Commenting Visitors&#8221; 1.3. is created. The following updates have been done in this version:<span id="more-392"></span></p>
<p>1. Now you can set the start date from which the plugin will count the numbers of comments.</p>
<p><a href="http://rubensargsyan.com/wordpress-plugin-most-commenting-visitors/">Plugin Homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-most-commenting-visitors-new-1-3-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Countdown Clock</title>
		<link>http://rubensargsyan.com/countdown-clock/</link>
		<comments>http://rubensargsyan.com/countdown-clock/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 12:09:20 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[countdown]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=390</guid>
		<description><![CDATA[This script is an example of countdown clock. You can set seconds and start countdown.

&#60;html&#62;
&#160;
&#60;head&#62;
  &#60;title&#62;Countdown Clock&#60;/title&#62;
&#160;
  &#60;script type=&#34;text/javascript&#34;&#62;
  function convert&#40;&#41;&#123;
    var seconds = document.getElementById&#40;&#34;inputted_seconds&#34;&#41;.value;
&#160;
    if&#40;isNaN&#40;seconds&#41;&#41;&#123;
        alert&#40;&#34;Please enter a valid number.&#34;&#41;;
    &#125;else&#123;
     [...]]]></description>
			<content:encoded><![CDATA[<p>This script is an example of countdown clock. You can set seconds and start countdown<span id="more-390"></span>.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;html&gt;
&nbsp;
&lt;head&gt;
  &lt;title&gt;Countdown Clock&lt;/title&gt;
&nbsp;
  <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #003366; font-weight: bold;">function</span> convert<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> seconds <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;inputted_seconds&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>isNaN<span style="color: #009900;">&#40;</span>seconds<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Please enter a valid number.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
        document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;inputted_seconds&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;start&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003366; font-weight: bold;">var</span> days <span style="color: #339933;">=</span> seconds<span style="color: #339933;">/</span><span style="color: #CC0000;">60</span><span style="color: #339933;">/</span><span style="color: #CC0000;">60</span><span style="color: #339933;">/</span><span style="color: #CC0000;">24</span><span style="color: #339933;">;</span>
        days <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>days.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        seconds <span style="color: #339933;">=</span> seconds <span style="color: #339933;">-</span> days<span style="color: #339933;">*</span><span style="color: #CC0000;">24</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003366; font-weight: bold;">var</span> hours <span style="color: #339933;">=</span> seconds<span style="color: #339933;">/</span><span style="color: #CC0000;">60</span><span style="color: #339933;">/</span><span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>
        hours <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>hours.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        seconds <span style="color: #339933;">=</span> seconds <span style="color: #339933;">-</span> hours<span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003366; font-weight: bold;">var</span> minutes <span style="color: #339933;">=</span> seconds<span style="color: #339933;">/</span><span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>
        minutes <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>minutes.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        seconds <span style="color: #339933;">=</span> seconds <span style="color: #339933;">-</span> minutes<span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>
&nbsp;
        document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;countdown_clock&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> days<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;d &quot;</span><span style="color: #339933;">+</span>hours<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;h &quot;</span><span style="color: #339933;">+</span>minutes<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;m &quot;</span><span style="color: #339933;">+</span>seconds<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;s&quot;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
        t <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;start_countdown(&quot;</span><span style="color: #339933;">+</span>days<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;,&quot;</span><span style="color: #339933;">+</span>hours<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;,&quot;</span><span style="color: #339933;">+</span>minutes<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;,&quot;</span><span style="color: #339933;">+</span>seconds<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;)&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #003366; font-weight: bold;">function</span> start_countdown<span style="color: #009900;">&#40;</span>days<span style="color: #339933;">,</span>hours<span style="color: #339933;">,</span>minutes<span style="color: #339933;">,</span>seconds<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>seconds<span style="color: #339933;">==-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            minutes<span style="color: #339933;">--;</span>
            seconds <span style="color: #339933;">=</span> <span style="color: #CC0000;">59</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>minutes<span style="color: #339933;">==-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            hours<span style="color: #339933;">--;</span>
            minutes <span style="color: #339933;">=</span> <span style="color: #CC0000;">59</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>hours<span style="color: #339933;">==-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>days<span style="color: #339933;">&gt;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                days<span style="color: #339933;">--;</span>
                hours <span style="color: #339933;">=</span> <span style="color: #CC0000;">23</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;countdown_clock&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> days<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;d &quot;</span><span style="color: #339933;">+</span>hours<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;h &quot;</span><span style="color: #339933;">+</span>minutes<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;m &quot;</span><span style="color: #339933;">+</span>seconds<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;s&quot;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>days<span style="color: #339933;">==</span><span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> hours<span style="color: #339933;">==</span><span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> minutes<span style="color: #339933;">==</span><span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> seconds<span style="color: #339933;">==</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Countdown is finished.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;inputted_seconds&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;start&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;countdown_clock&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Countdown is finished.&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
            seconds<span style="color: #339933;">--;</span>
            t <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;start_countdown(&quot;</span><span style="color: #339933;">+</span>days<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;,&quot;</span><span style="color: #339933;">+</span>hours<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;,&quot;</span><span style="color: #339933;">+</span>minutes<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;,&quot;</span><span style="color: #339933;">+</span>seconds<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;)&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
&lt;/head&gt;
&nbsp;
&lt;body&gt;
&nbsp;
&lt;label for=&quot;inputted_seconds&quot;&gt;Input Seconds&lt;/label&gt; &lt;input type=&quot;text&quot; id=&quot;inputted_seconds&quot; /&gt; &lt;input type=&quot;button&quot; id=&quot;start&quot; value=&quot;Start Countdown&quot; onclick=&quot;convert();&quot; /&gt;
&nbsp;
&lt;div id=&quot;countdown_clock&quot;&gt;&lt;/div&gt;
&nbsp;
&lt;/body&gt;
&nbsp;
&lt;/html&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/countdown-clock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically put words for autocompleting</title>
		<link>http://rubensargsyan.com/automatically-put-words-for-autocompleting/</link>
		<comments>http://rubensargsyan.com/automatically-put-words-for-autocompleting/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 11:30:27 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[texts]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=384</guid>
		<description><![CDATA[While I was looking through a site about migrate sharepoint, I saw a search field with autocompleting and the first idea I have is to develop a code that will automatically put those words for autocompleting that are more often happen in the texts.

&#60;?php
function get_words&#40;$texts&#41;&#123;
    if&#40;!empty&#40;$texts&#41;&#41;&#123;
       [...]]]></description>
			<content:encoded><![CDATA[<p>While I was looking through a site about <a href="http://www.itransition.com/sharepoint/" target="_blank">migrate sharepoint</a>, I saw a search field with autocompleting and the first idea I have is to develop a code that will automatically put those words for autocompleting that are more often happen in the texts<span id="more-384"></span>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> get_words<span style="color: #009900;">&#40;</span><span style="color: #000088;">$texts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$words</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$words_count</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/\w{2,}/i&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #000088;">$matches</span><span style="color: #339933;">,</span> PREG_SET_ORDER<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$matches</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$word</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                <span style="color: #000088;">$word_found</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                    <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;word&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #000088;">$word</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                            <span style="color: #000088;">$words</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;count&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">++;</span>
                            <span style="color: #000088;">$word_found</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
                            <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
                        <span style="color: #009900;">&#125;</span>
                    <span style="color: #009900;">&#125;</span>
                <span style="color: #009900;">&#125;</span>
&nbsp;
                <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$word_found</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                    <span style="color: #000088;">$words</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$words_count</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;word&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$word</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                    <span style="color: #000088;">$words</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$words_count</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;count&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
                    <span style="color: #000088;">$words_count</span><span style="color: #339933;">++;</span>
                <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
                    <span style="color: #000088;">$word_found</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$words</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> sort_by_words_count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$word1</span><span style="color: #339933;">,</span><span style="color: #000088;">$word2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$word1_count</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$word1</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;count&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$word2_count</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$word2</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;count&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$word1_count</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$word2_count</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$word1_count</span><span style="color: #339933;">==</span><span style="color: #000088;">$word2_count</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$text1</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;If you would like to have your running line on your Wordpress blog, so this plugin is just for you! It gives you the possibility to show one of the posts from your chosen category by the running line. So download and enjoy!&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$text2</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;This plugin is used when there are words, words expressions or sentences to be explained in the posts or pages of your wordpress blog. This plugin will help the visitors to read the explanations of the words (words expressions,sentences) you need via tooltips.&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$text3</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Any occasion to receive greetings? So, this plugin is just for you! This Widget plugin shows a greeting image which would be uploaded for the occasion and a pop up form for receiving the greetings. It is possible to show the greetings in any post or page.&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$text4</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;This plugin adds links after the posts for subscribing to the post author's posts feed via RSS. So if there are several authors in the blog, but a visitor wishes to subscribe just an author posts feed, this plugin gives that possibility to do it.&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$text5</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;This is a widget plugin which helps to display the visitors who left the most number of comments in the Wordpress blog.&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$texts</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$text1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text2</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text3</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text4</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$all_words</span> <span style="color: #339933;">=</span> get_words<span style="color: #009900;">&#40;</span><span style="color: #000088;">$texts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">usort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$all_words</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sort_by_words_count'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$autocompleting_words_count</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Autocompleting words count</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$autocompleting_words_count</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$autocompleting_words</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$all_words</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;word&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$autocompleting_words</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$autocompleting_words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;html&gt;
&lt;head&gt;
  &lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
  &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
&nbsp;
  &lt;script&gt;
  $(document).ready(function() {
    $(&quot;input#autocomplete&quot;).autocomplete({
    source: [<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$autocompleting_words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>]
});
  });
  &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&nbsp;
&lt;input id=&quot;autocomplete&quot; /&gt;
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/automatically-put-words-for-autocompleting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress plugin &#8220;Running Line&#8221; new 1.2 version</title>
		<link>http://rubensargsyan.com/wordpress-plugin-running-line-new-1-2-version/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-running-line-new-1-2-version/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 16:38:20 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[running line]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=381</guid>
		<description><![CDATA[The new version of Wordpress plugin &#8220;Running Line&#8221; 1.2. is created. The following updates have been done in this version:
1. Added new events on running line: running line is stopped when the mouse moved over it and starts when the mouse is out of the running line, if you click on the running line it [...]]]></description>
			<content:encoded><![CDATA[<p>The new version of Wordpress plugin &#8220;Running Line&#8221; 1.2. is created. The following updates have been done in this version:<span id="more-381"></span></p>
<p>1. Added new events on running line: running line is stopped when the mouse moved over it and starts when the mouse is out of the running line, if you click on the running line it moves to the post page.</p>
<p><a href="http://rubensargsyan.com/wordpress-plugin-running-line/">Plugin Homepage</a></p>
<p><i>Special thanks to Jerry for developing this version of the plugin.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-running-line-new-1-2-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically set permalink custom structure after Wordpress installation</title>
		<link>http://rubensargsyan.com/automatically-set-permalink-custom-structure-after-wordpress-installation/</link>
		<comments>http://rubensargsyan.com/automatically-set-permalink-custom-structure-after-wordpress-installation/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 16:28:23 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[permalink structure]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=374</guid>
		<description><![CDATA[For setting the permalink structure that you want to be set automatically after Wordpress installation, open the file schema.php from the directory /wp-admin/includes/ and set the value of permalink_structure of the array $options of the function populate_options that structure which you want to be set. Then open the file upgrade.php from the same directory and [...]]]></description>
			<content:encoded><![CDATA[<p>For setting the permalink structure that you want to be set automatically after Wordpress installation, open the file<span id="more-374"></span> schema.php from the directory /wp-admin/includes/ and set the value of permalink_structure of the array $options of the function populate_options that structure which you want to be set. Then open the file upgrade.php from the same directory and add $wp_rewrite->set_permalink_structure(get_option(&#8220;permalink_structure&#8221;)); just before $wp_rewrite->flush_rules(); in the function wp_install.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/automatically-set-permalink-custom-structure-after-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move JavaScript codes from a file to an other file</title>
		<link>http://rubensargsyan.com/move-javascript-codes-from-a-file-to-an-other-file/</link>
		<comments>http://rubensargsyan.com/move-javascript-codes-from-a-file-to-an-other-file/#comments</comments>
		<pubDate>Wed, 26 May 2010 09:06:26 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[matching]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=365</guid>
		<description><![CDATA[An example to move the JavaScript codes from a file to an other file:

&#60;?php
function moveJavascriptCodes&#40;$fromFile,$toFile&#41;&#123;
    $fileText = file_get_contents&#40;$fromFile&#41;;
&#160;
    preg_match_all&#40;&#34;#&#60;script\b[^&#62;]*&#62;(.*?)&#60;/script&#62;#si&#34;,$fileText,$javascriptCodes,PREG_SET_ORDER&#41;;
&#160;
    $codes = array&#40;&#41;;
&#160;
    foreach&#40;$javascriptCodes as $javascriptCode&#41;&#123;
        $codes&#91;&#93; = $javascriptCode&#91;1&#93;;
    &#125;
&#160;
    if&#40;file_put_contents&#40;$toFile,implode&#40;&#34;\n&#34;,$codes&#41;&#41;===false&#41;&#123;
 [...]]]></description>
			<content:encoded><![CDATA[<p>An example to move the JavaScript codes from a file to an other file:<span id="more-365"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> moveJavascriptCodes<span style="color: #009900;">&#40;</span><span style="color: #000088;">$fromFile</span><span style="color: #339933;">,</span><span style="color: #000088;">$toFile</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$fileText</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fromFile</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#&lt;script\b[^&gt;]*&gt;(.*?)&lt;/script&gt;#si&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$fileText</span><span style="color: #339933;">,</span><span style="color: #000088;">$javascriptCodes</span><span style="color: #339933;">,</span>PREG_SET_ORDER<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$codes</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$javascriptCodes</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$javascriptCode</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$codes</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$javascriptCode</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$toFile</span><span style="color: #339933;">,</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$codes</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">===</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$fromFile</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;totalCode.php&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//The file from which JavaScript code will be got</span>
<span style="color: #000088;">$toFile</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;javascriptCode.js&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//The file into which JavaScript code will be set</span>
&nbsp;
moveJavascriptCodes<span style="color: #009900;">&#40;</span><span style="color: #000088;">$fromFile</span><span style="color: #339933;">,</span><span style="color: #000088;">$toFile</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/move-javascript-codes-from-a-file-to-an-other-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>News slideshow effect by jQuery</title>
		<link>http://rubensargsyan.com/news-slideshow-effect-by-jquery/</link>
		<comments>http://rubensargsyan.com/news-slideshow-effect-by-jquery/#comments</comments>
		<pubDate>Sat, 15 May 2010 11:41:17 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=350</guid>
		<description><![CDATA[Recently I have found out a website of one software company that I do like a lot with its properly created structure and great effects.
Here is a feature of that website that I am pleased to introduce for anyone who would like to use it for yourself:

&#60;html&#62;
&#160;
&#60;head&#62;
&#160;
&#60;style&#62;
.news p&#123;
    width: 800px;
   [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have found out a website of one <a href="http://www.eldev.com" target="_blank">software company</a> that I do like a lot with its properly created structure and great effects.<span id="more-350"></span><br />
Here is a feature of that website that I am pleased to introduce for anyone who would like to use it for yourself:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>style<span style="color: #339933;">&gt;</span>
.<span style="color: #660066;">news</span> p<span style="color: #009900;">&#123;</span>
    width<span style="color: #339933;">:</span> 800px<span style="color: #339933;">;</span>
    left<span style="color: #339933;">:</span> 310px<span style="color: #339933;">;</span>
    position<span style="color: #339933;">:</span> relative<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://code.jquery.com/jquery-1.4.2.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> liItem <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.newsItem&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        liItem.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>liItem.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        liItem<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&lt;p&gt;&quot;</span><span style="color: #339933;">+</span>liItem<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> startSlideshow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>x<span style="color: #339933;">==</span>liItem.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        x <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.news&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.news&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span>liItem<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    x<span style="color: #339933;">++;</span>
    $strip <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.news p&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $strip.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
        <span style="color: #009900;">&#123;</span>
            left<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        <span style="color: #CC0000;">300</span><span style="color: #339933;">,</span>
        <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
                <span style="color: #009900;">&#123;</span>
                    left<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span>
                <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
                <span style="color: #CC0000;">5000</span><span style="color: #339933;">,</span>
                <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
                        <span style="color: #009900;">&#123;</span>
                            opacity<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;hide&quot;</span>
                        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
                        <span style="color: #CC0000;">700</span><span style="color: #339933;">,</span>
                        <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                            startSlideshow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
                        <span style="color: #009900;">&#125;</span>
                    <span style="color: #009900;">&#41;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $strip.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span>
        <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
              <span style="color: #009900;">&#123;</span>
                  opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span>
              <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
              <span style="color: #CC0000;">100</span>
          <span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
                <span style="color: #009900;">&#123;</span>
                    opacity<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;hide&quot;</span>
                <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
                <span style="color: #CC0000;">700</span><span style="color: #339933;">,</span>
                <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                    startSlideshow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span>
    <span style="color: #3366CC;">&quot;load&quot;</span><span style="color: #339933;">,</span>
    <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        startSlideshow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;news&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;newsItem&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://rubensargsyan.com/new-updated-version-of-the-website-art-works-expo/&quot;</span><span style="color: #339933;">&gt;</span>New updated version of the website <span style="color: #3366CC;">&quot;Art Works Expo&quot;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;newsItem&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-4-version/&quot;</span><span style="color: #339933;">&gt;</span>Wordpress plugin <span style="color: #3366CC;">&quot;Explanatory Dictionary&quot;</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #CC0000;">1.4</span> version<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;newsItem&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://rubensargsyan.com/automatic-activating-plugins-after-wordpress-installation/&quot;</span><span style="color: #339933;">&gt;</span>Automatic activating plugins after Wordpress installation<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;newsItem&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://rubensargsyan.com/wordpress-plugin-most-commenting-visitors-new-1-2-version/&quot;</span><span style="color: #339933;">&gt;</span>Wordpress plugin <span style="color: #3366CC;">&quot;Most Commenting Visitors&quot;</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #CC0000;">1.2</span> version<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;newsItem&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://rubensargsyan.com/search-text-in-the-directory-files/&quot;</span><span style="color: #339933;">&gt;</span>Search text <span style="color: #000066; font-weight: bold;">in</span> the directory files<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/news-slideshow-effect-by-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New updated version of the website &#8220;Art Works Expo&#8221;</title>
		<link>http://rubensargsyan.com/new-updated-version-of-the-website-art-works-expo/</link>
		<comments>http://rubensargsyan.com/new-updated-version-of-the-website-art-works-expo/#comments</comments>
		<pubDate>Mon, 03 May 2010 18:37:44 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Art Works Expo]]></category>
		<category><![CDATA[new version]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=347</guid>
		<description><![CDATA[This is a notification that the website &#8220;Art Works Expo&#8221; is newly updated. Now you can show your professional and non-professional skills in art works (painting, drawing, sculpturing, knitting, etc). You can be as a visitor to view and rate for the works of the others. You can also leave your comment or opinion on [...]]]></description>
			<content:encoded><![CDATA[<p>This is a notification that the website &#8220;<a href="http://artworksexpo.com" target="_blank">Art Works Expo</a>&#8221; is newly updated.<span id="more-347"></span> Now you can show your professional and non-professional skills in art works (painting, drawing, sculpturing, knitting, etc). You can be as a visitor to view and rate for the works of the others. You can also leave your comment or opinion on any kind of work. It is a good chance for sharing your ideas and practice.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/new-updated-version-of-the-website-art-works-expo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress plugin &#8220;Explanatory Dictionary&#8221; new 1.4 version</title>
		<link>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-4-version/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-4-version/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 18:29:01 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[explanatory dictionary]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[new version]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=338</guid>
		<description><![CDATA[The new version of Wordpress plugin &#8220;Explanatory Dictionary&#8221; 1.4. is created. The following updates have been done in this version:
1. You can add words (words expressions, sentences) which are already existed in the words (words expressions, sentences) you added before.
2. You can edit the explanations of the dictionary.
3. The problem with posts images captions is [...]]]></description>
			<content:encoded><![CDATA[<p>The new version of Wordpress plugin &#8220;Explanatory Dictionary&#8221; 1.4. is created. The following updates have been done in this version:<span id="more-338"></span></p>
<p>1. You can add words (words expressions, sentences) which are already existed in the words (words expressions, sentences) you added before.<br />
2. You can edit the explanations of the dictionary.<br />
3. The problem with posts images captions is solved.</p>
<p><a href="http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/">Plugin Homepage</a></p>
<p><i>Special thanks to Nick Asenov for developing this version of the plugin.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-4-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic activating plugins after Wordpress installation</title>
		<link>http://rubensargsyan.com/automatic-activating-plugins-after-wordpress-installation/</link>
		<comments>http://rubensargsyan.com/automatic-activating-plugins-after-wordpress-installation/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 10:15:54 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[activate]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=334</guid>
		<description><![CDATA[To activate the plugins that you want to be activated automatically after Wordpress installation, copy those plugins to the /wp-content/plugins/ directory, then open the file schema.php from the directory /wp-admin/includes/ and add the plugins main files names in the active_plugins array which is in the $options array of the function populate_options.
Example:
&#8230;
&#8216;active_plugins&#8217; => array(&#8220;explanatory-dictionary/explanatory-dictionary.php&#8221;,&#8221;most-commenting-visitors/most-commenting-visitors.php&#8221;,&#8221;greetings/greetings.php&#8221;,&#8221;running-line/running-line.php&#8221;,&#8221;subscribe-to-author-posts-feed/subscribe-to-author-posts-feed.php&#8221;),
&#8230;
]]></description>
			<content:encoded><![CDATA[<p>To activate the plugins that you want to be activated automatically after Wordpress installation, copy those plugins to the /wp-content/plugins/ directory, then<span id="more-334"></span> open the file schema.php from the directory /wp-admin/includes/ and add the plugins main files names in the active_plugins array which is in the $options array of the function populate_options.</p>
<p>Example:<br />
&#8230;<br />
&#8216;active_plugins&#8217; => array(&#8220;explanatory-dictionary/explanatory-dictionary.php&#8221;,&#8221;most-commenting-visitors/most-commenting-visitors.php&#8221;,&#8221;greetings/greetings.php&#8221;,&#8221;running-line/running-line.php&#8221;,&#8221;subscribe-to-author-posts-feed/subscribe-to-author-posts-feed.php&#8221;),<br />
&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/automatic-activating-plugins-after-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
