<?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>W3 Helper</title>
	<atom:link href="http://www.w3helper.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.w3helper.com</link>
	<description>Help Central for Webmasters</description>
	<lastBuildDate>Sun, 09 Dec 2012 13:53:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>[Solved]: jQuery scrollTop not working in Chrome &amp; Safari</title>
		<link>http://www.w3helper.com/solved-jquery-scrolltop-not-working-in-chrome-safari.html</link>
		<comments>http://www.w3helper.com/solved-jquery-scrolltop-not-working-in-chrome-safari.html#comments</comments>
		<pubDate>Sun, 19 Feb 2012 17:47:32 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[body]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[scrollTop]]></category>
		<category><![CDATA[solved]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=218</guid>
		<description><![CDATA[The vertical scroll position is the same as the number of pixels that are hidden from view above the scrollable area. If the scroll bar is at the very top or if the element is not scrollable, this number will be 0. If you&#8217;re using jQuery&#8217;s scro buying viagra uk llTop (usually it&#8217;s used to [...]]]></description>
				<content:encoded><![CDATA[<p>
The vertical scroll position is the same as the number of pixels that are hidden from view above the scrollable area. If the scroll bar is at the very top or if the element is not scrollable, this number will be 0.</p>
<p>If you&#8217;re using jQuery&#8217;s scro
<div style="display: none"><a href='http://buyingviagrainuk.com/' title='buying viagra uk'>buying viagra uk</a></div>
<p>llTop (usually it&#8217;s used to scroll to the top of the page), It may work fine in Firefox but you may have problem in Chrome &amp; Safari.</p>
<p><span id="more-218"></span><br />
<strong>Problematic Code</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;html&quot;</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> scrollTop<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: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><strong>Following code will solve the problem and work fine in chrome &amp; safari too</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;html,body&quot;</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> scrollTop<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: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Hope this helped! <img src='http://www.w3helper.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/solved-jquery-scrolltop-not-working-in-chrome-safari.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel/Linux: How to Suspend / Unsuspend an Account via SSH</title>
		<link>http://www.w3helper.com/cpanel-linux-how-to-suspend-unsuspend-an-account-via-ssh.html</link>
		<comments>http://www.w3helper.com/cpanel-linux-how-to-suspend-unsuspend-an-account-via-ssh.html#comments</comments>
		<pubDate>Wed, 23 Nov 2011 17:53:20 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[suspendacct]]></category>
		<category><![CDATA[unsuspend]]></category>
		<category><![CDATA[unsuspendacct]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=206</guid>
		<description><![CDATA[If you want to suspend/unsuspend an account via SSH instead of doing it through WHM web interface. following commands may be helpful for you. Suspend an Account from SSH root@hostname [~]# /scripts/suspe&#60;div style=&#34;display: none&#34;&#62;&#60;a href='http://www.libertydining.net/' title='best work from home'&#62;best work from home&#60;/a&#62; &#60;/div&#62;ndacct &#60;accountname&#62; &#60;accountname&#62; should be your account name, mostly your cpanel username. Suspend [...]]]></description>
				<content:encoded><![CDATA[<p>
If you want to suspend/unsuspend an account via SSH instead of doing it through WHM web interface. following commands may be helpful for you.</p>
<h4>Suspend an Account from SSH</h4>
<p><span id="more-206"></span></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">root@hostname [~]# /scripts/suspe&lt;div style=&quot;display: none&quot;&gt;&lt;a href='http://www.libertydining.net/' title='best work from home'&gt;best work from home&lt;/a&gt; &lt;/div&gt;ndacct &lt;accountname&gt;</pre></td></tr></table></div>

<p>&lt;accountname&gt; should be your account name, mostly your cpanel username.</p>
<h4>Suspend an Account from SSH (Prevent Resellers from Unsuspending) </h4>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">root@hostname [~]# /scripts/suspendacct &lt;accountname&gt; &quot;Reason to Suspend&quot; 1</pre></td></tr></table></div>

<p>&#8220;Reason to Suspend&#8221; you can add the reason that why you&#8217;re suspending the account.<br />
While 1 at the end is to prevent resellers from unsuspending the account.</p>
<h4>Unsuspend an Account from SSH</h4>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">root@hostname [~]# /scripts/unsuspendacct &lt;accountname&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/cpanel-linux-how-to-suspend-unsuspend-an-account-via-ssh.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Cannot Delete Files from a Directory /bin/rm: Argument list too long</title>
		<link>http://www.w3helper.com/linux-cannot-delete-files-from-a-directory-binrm-argument-list-too-long.html</link>
		<comments>http://www.w3helper.com/linux-cannot-delete-files-from-a-directory-binrm-argument-list-too-long.html#comments</comments>
		<pubDate>Tue, 15 Nov 2011 00:50:26 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[argument]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bin]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=202</guid>
		<description><![CDATA[If you&#8217;re trying to delete files from a directory that have too many files and over sized then simply rm command will not work and you will get error /bin/rm: Argument list too long root@hostname [~]# cd &#60;div style=&#34;display: none&#34;&#62;&#60;a href='http://buycheapviagraonline.org/' title='Buy Cheap Viagra'&#62;Buy Cheap Viagra&#60;/a&#62;&#60;/div&#62;mydir root@hostname [~]# rm -f * -bash: /bin/rm: Argument list [...]]]></description>
				<content:encoded><![CDATA[<p>
If you&#8217;re trying to delete files from a directory that have too many files and over sized then simply <em>rm</em> command will not work and you will get error /bin/rm: Argument list too long<br />
<span id="more-202"></span></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">root@hostname [~]# cd &lt;div style=&quot;display: none&quot;&gt;&lt;a href='http://buycheapviagraonline.org/' title='Buy Cheap Viagra'&gt;Buy Cheap Viagra&lt;/a&gt;&lt;/div&gt;mydir
root@hostname [~]# rm -f *
-bash: /bin/rm: Argument list too long.</pre></td></tr></table></div>

<p>In this case following command will be handy instead of <em>rm</em> and is much faster too.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">root@hostname [~]# find . -type f -delete</pre></td></tr></table></div>

<p>above command will delete all files from the directory you&#8217;re in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/linux-cannot-delete-files-from-a-directory-binrm-argument-list-too-long.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFMPEG-PHP: make: *** [ffmpeg_frame.lo] Error 1</title>
		<link>http://www.w3helper.com/ffmpeg-php-make-ffmpeg_frame-lo-error-1.html</link>
		<comments>http://www.w3helper.com/ffmpeg-php-make-ffmpeg_frame-lo-error-1.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 20:27:22 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[ffmpeg-php]]></category>
		<category><![CDATA[ffmpeg_frame]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[mv]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=191</guid>
		<description><![CDATA[While compiling ffmpeg-php from source with make command you may get the following error terminating your making process; make: *** [ffmpeg_frame.lo] Error 1 Cause The erro No prescription cialis r occurs due to a missing file &#8216;ffmpeg_frame.lo&#8216; in the ffmpeg-php source, while your ffmpeg-php source may contain the file named &#8216;ffmpeg_frame.loT&#8216;. Solution The solution is [...]]]></description>
				<content:encoded><![CDATA[<p>
While compiling ffmpeg-php from source with <em><strong>make</strong></em> command you may get the following error terminating your making process;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">make: *** [ffmpeg_frame.lo] Error 1</pre></td></tr></table></div>

<p><span id="more-191"></span></p>
<h3>Cause</h3>
<p>The erro
<div style="display: none"><a href='http://buycialisonlinewithoutprescription.net/' title='No prescription cialis'>No prescription cialis</a></div>
<p>r occurs due to a missing file &#8216;<strong>ffmpeg_frame.lo</strong>&#8216; in the ffmpeg-php source, while your ffmpeg-php source may contain the file named &#8216;<strong>ffmpeg_frame.loT</strong>&#8216;. </p>
<h3>Solution</h3>
<p>The solution is that simply rename &#8216;<strong>ffmpeg_frame.loT</strong>&#8216; to &#8216;<strong>ffmpeg_frame.lo</strong>&#8216; and <em><strong>make</strong></em> again, You may follow the steps below to do so;</p>
<p>First navigate to the ffmpeg-php source directory (if you&#8217;re not there)<br />
<em>Note: your ffmpeg-php version may be different, i am using 0.6.0</em></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">[root@myhost ~]# cd /path/to/ffmpeg-php-0.6.0</pre></td></tr></table></div>

<p>Now rename or copy the &#8216;<strong>ffmpeg_frame.loT</strong>&#8216; to &#8216;<strong>ffmpeg_frame.lo</strong>&#8216;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">[root@myhost ~]# mv ffmpeg_frame.loT ffmpeg_frame.lo</pre></td></tr></table></div>

<p>Once you have successfully renamed/copied the file to <strong>&#8216;ffmpeg_frame.lo&#8217;</strong>, you should compile it again with <em><strong>make</strong></em> command.</p>
<p>Did this work for you? share your experience in comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/ffmpeg-php-make-ffmpeg_frame-lo-error-1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: How to Add a Sticky Widget on Sidebar</title>
		<link>http://www.w3helper.com/wordpress-how-to-add-a-sticky-widget-on-sidebar.html</link>
		<comments>http://www.w3helper.com/wordpress-how-to-add-a-sticky-widget-on-sidebar.html#comments</comments>
		<pubDate>Sun, 30 Oct 2011 14:38:02 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[removeClass]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[scrollTop]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[sticky]]></category>
		<category><![CDATA[subscribe]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[window]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=181</guid>
		<description><![CDATA[I needed to add a fixed position widget on the side bar so that it stays at it&#8217;s position no matter page scroll or not, I have searched around to find a plugin to do that but cannot find any good solution, i have achieved that by playing a bit wit cheap levitra online h [...]]]></description>
				<content:encoded><![CDATA[<p>
I needed to add a fixed position widget on the side bar so that it stays at it&#8217;s position no matter page scroll or not, I have searched around to find a plugin to do that but cannot find any good solution, i have achieved that by playing a bit wit
<div style="display: none"><a href='http://buycheaplevitraonlinerx.com/' title='cheap levitra online'>cheap levitra online</a></div>
<p>h CSS and Jquery, so here is how to do it, </p>
<p>If you need to add a fixed position (Sticky) widget on the WordPress sidebar, You may follow the steps below.<br />
<span id="more-181"></span><br />
Before proceeding you may like to view a demo, Go to &#8220;<a href="http://www.glamzzle.com" title="The Glamorous Magazine" target="_blank">The Glamorous Magazine</a>&#8221; and scroll to notice the position of &#8220;<strong>Subscribe for Daily Email Updates</strong>&#8221; widget on sidebar.</p>
<p>No more essays <img src='http://www.w3helper.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  lets see how to do it.<br />
Lets suppose that widget have a CSS class &#8220;<em>subscribe</em>&#8220;. as my widget wrapping code looks like this;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;widget subscribe&quot;&gt;
&lt;!-- rest of the widget code goes here --&gt;
&lt;/div&gt;</pre></td></tr></table></div>

<p>Now first step, Add a <em>.fixed</em> class for the the div into your style sheet probably <em>style.css</em></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#sidebar</span> <span style="color: #6666ff;">.subscribe</span><span style="color: #6666ff;">.fixed</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">fixed</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* you may change the top position according to your theme */</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Now finally add the following Jquery code in your page, adding javascript in footer is recommended.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000066; font-weight: bold;">var</span> msie6 <span style="color: #339933;">=</span> $.<span style="color: #660066;">browser</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'msie'</span> <span style="color: #339933;">&amp;&amp;</span> $.<span style="color: #660066;">browser</span>.<span style="color: #660066;">version</span> <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">7</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>msie6<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">var</span> top <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.subscribe'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">offset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">top</span> <span style="color: #339933;">-</span> parseFloat<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.subscribe'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'margin-top'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/auto/</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">scroll</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #006600; font-style: italic;">// what the y position of the scroll is</span>
      <span style="color: #000066; font-weight: bold;">var</span> y <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;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>y <span style="color: #339933;">&gt;=</span> top<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">// if so, ad the fixed class</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.subscribe'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'fixed'</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>
        <span style="color: #006600; font-style: italic;">// otherwise remove it</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.subscribe'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'fixed'</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: #009900;">&#41;</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: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Note1: </p>
<blockquote><p>If your widget&#8217;s class is different than &#8220;subscribe&#8221; then change the code accordingly.</p></blockquote>
<p>Note2: </p>
<blockquote><p>Make sure you have included Jquery.js in your page, You can download jquery library from <a href="http://www.jquery.com" target="_blank">Jquery&#8217;s official site</a></p></blockquote>
<p>Note:3</p>
<blockquote><p>If you&#8217;re using some caching plugin like wp-supercache or total cache, Please clear your cache contents.</p></blockquote>
<p><strong>Working Demo:</strong> Go to <a href="http://www.glamzzle.com" title="The Glamorous Magazine" target="_blank">http://www.glamzzle.com</a> and scroll the page to notice the position of &#8220;Subscribe for Daily Email Updates&#8221; on sidebar.</p>
<p>That&#8217;s all.<br />
Now refresh your wordpress site page and you will have a sticky widget there. <img src='http://www.w3helper.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/wordpress-how-to-add-a-sticky-widget-on-sidebar.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jquery: How to Check If a Checkbox is Checked</title>
		<link>http://www.w3helper.com/jquery-how-to-check-if-a-checkbox-is-checked.html</link>
		<comments>http://www.w3helper.com/jquery-how-to-check-if-a-checkbox-is-checked.html#comments</comments>
		<pubDate>Thu, 27 Oct 2011 14:18:22 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[checkbox]]></category>
		<category><![CDATA[checked]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[validate]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[verify]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=173</guid>
		<description><![CDATA[If you want to validate if a checkbox is checked using jquery (javascript framework), here is the code snippet for the purpose. We&#8217;ll use :checked selector for the purpose. e.g. Your checkbox name is &#8216;mychkbox&#8217; if&#40;!$&#40;'#mychkbox'&#41;.is&#40;':checked'&#41;&#41;&#123; // You may write the code here to run if checkbox is not check, e.g. below; alert&#40;'Your alert message [...]]]></description>
				<content:encoded><![CDATA[<p>If you want to validate if a checkbox is checked using jquery (javascript framework), here is the code snippet for the purpose.</p>
<p>We&#8217;ll use <em>:checked</em> selector for the purpose.<br />
<span id="more-173"></span><br />
e.g. Your checkbox name is &#8216;mychkbox&#8217;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#mychkbox'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">is</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':checked'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #006600; font-style: italic;">// You may write the code here to run if checkbox is not check, e.g. below;</span>
alert<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Your alert message will go here.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/jquery-how-to-check-if-a-checkbox-is-checked.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Uncompress Multiple .zip, .gz or .bz2 Files on Linux (Centos)</title>
		<link>http://www.w3helper.com/how-to-uncompress-multiple-zip-gz-or-bz2-files-on-linux-centos.html</link>
		<comments>http://www.w3helper.com/how-to-uncompress-multiple-zip-gz-or-bz2-files-on-linux-centos.html#comments</comments>
		<pubDate>Tue, 25 Oct 2011 13:22:11 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[.bz2]]></category>
		<category><![CDATA[.tar.gz]]></category>
		<category><![CDATA[.zip]]></category>
		<category><![CDATA[bunzip2]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[for]]></category>
		<category><![CDATA[gunzip]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[nullglob]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[uncompress]]></category>
		<category><![CDATA[uncompressed]]></category>
		<category><![CDATA[unzip]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=160</guid>
		<description><![CDATA[In situations while using SSH you may want to unzip/uncompress/extract multiple compressed files, you may follow the followings; To unzip multiple zipped .zip files; for file in *.zip; do unzip &#34;${file}&#34;; done To unzip multiple zipped .gz files; gunzip *.gz To unzip multiple zipped .bz2 files; bunzip2 *.bz2 To extract multiple .tar.gz files; for file [...]]]></description>
				<content:encoded><![CDATA[<p>In situations while using SSH you may want to unzip/uncompress/extract multiple compressed files, you may follow the followings;</p>
<p>To unzip multiple zipped .zip files;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="ssh" style="font-family:monospace;">for file in *.zip; do unzip &quot;${file}&quot;; done</pre></td></tr></table></div>

<p><span id="more-160"></span><br />
To unzip multiple zipped .gz files;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="ssh" style="font-family:monospace;">gunzip *.gz</pre></td></tr></table></div>

<p>To unzip multiple zipped .bz2 files;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="ssh" style="font-family:monospace;">bunzip2 *.bz2</pre></td></tr></table></div>

<p>To extract multiple .tar.gz files;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="ssh" style="font-family:monospace;">for file in *.tar.gz; do tar zxf &quot;${file}&quot;; done</pre></td></tr></table></div>

<p>To extract multiple .tar.bz2 files;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="ssh" style="font-family:monospace;">for file in *.tar.bz2; do tar jxf &quot;${file}&quot;; done</pre></td></tr></table></div>

<h2>When Using Shell Script</h2>
<p>When using one of the snippets that uses a <em>for loop</em> in a script with an arbitrary number of archives, you may want to set the shell to use &#8220;nullglobs&#8221;. For instance, normally *.tar.gz will evaluate to *.tar.gz when no files were found that match this wildcard, rather than evaluating to an empty string. As a result &#8216;tar&#8217; is executed with this string as a parameter. To avoid this, you can request that the shell uses nullglobs with:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="ssh" style="font-family:monospace;">shopt -s nullglob</pre></td></tr></table></div>

<p>If no matches were found, the shell will return an empty string, and the for loop is terminated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/how-to-uncompress-multiple-zip-gz-or-bz2-files-on-linux-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript/Jquery: Email Address Validation Using Regexp</title>
		<link>http://www.w3helper.com/javascriptjquery-email-address-validation-using-regexp.html</link>
		<comments>http://www.w3helper.com/javascriptjquery-email-address-validation-using-regexp.html#comments</comments>
		<pubDate>Sat, 22 Oct 2011 19:15:20 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=152</guid>
		<description><![CDATA[Email address is mostly the essential form field and to make sure that user entered a valid email address you may need to validate user input before processing. To validate an email address using javascript/Jquery you may use the following code snippet, that validate in email address using regex. function isEmail&#40;emailid&#41; &#123; var RegexpRule = [...]]]></description>
				<content:encoded><![CDATA[<p>Email address is mostly the essential form field and to make sure that user entered a valid email address you may need to validate user input before processing. To validate an email address using javascript/Jquery you may use the following code snippet, that validate in email address using regex.<br />
<span id="more-152"></span></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">function</span> isEmail<span style="color: #009900;">&#40;</span>emailid<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">var</span> RegexpRule <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/^((&quot;[\w-+\s]+&quot;)|([\w-+]+(?:\.[\w-+]+)*)|(&quot;[\w-+\s]+&quot;)([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">return</span> RegexpRule.<span style="color: #660066;">test</span><span style="color: #009900;">&#40;</span>emailid<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>After defining function you may use it as below;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">var</span> useremail<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;user@domain.com&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>isEmail<span style="color: #009900;">&#40;</span>useremail<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
alert<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Invalid Email Address'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// You may perform other operations instead of alert.</span>
 <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
<span style="color: #006600; font-style: italic;">// You may perform operations here if email address is valid.</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/javascriptjquery-email-address-validation-using-regexp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel: How To Disable Email Service Only For a Domain</title>
		<link>http://www.w3helper.com/cpanel-how-to-disable-email-service-only-for-a-domain.html</link>
		<comments>http://www.w3helper.com/cpanel-how-to-disable-email-service-only-for-a-domain.html#comments</comments>
		<pubDate>Fri, 21 Oct 2011 17:47:26 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[enable]]></category>
		<category><![CDATA[execute]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=140</guid>
		<description><![CDATA[Some time you may need to disable a domain&#8217;s email service only, e.g. you have some non-payment issue with a client and you want to secretly disable email only without suspending the account/site or for some purpose you want to let the site running and just to disable emails. I have searched a lot about [...]]]></description>
				<content:encoded><![CDATA[<p>Some time you may need to disable a domain&#8217;s email service only, e.g. you have some non-payment issue with a client and you want to secretly disable email only without suspending the account/site or for some purpose you want to let the site running and just to disable emails.</p>
<p>I have searched a lot about the solution but couldn&#8217;t find when needed, then i did a trick that worked so thought to share with you guys.<br />
<span id="more-140"></span><br />
The trick is that change the <em>mail</em> directory permissions for the domain (withdraw the read &#038; execute permissions). </p>
<p>Login to SSH and navigate to user&#8217;s home directory (mostly cPanel servers are configured to store users data in /home/ directory, if this is not in your case please follow your paths), following are the commands that you can use;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">root@host [~]# cd /home/username/
root@host [/home/username]#</pre></td></tr></table></div>

<p>Now to withdraw the read and execute permissions from the mail directory.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">root@host [/home/username]# chmod -rx mail</pre></td></tr></table></div>

<p>Now once above command is successful, If you will try to check mails (even via webmail or outlook) of that domain, you will get error in login that means you cannot access the emails.</p>
<p>To revert the permissions and enable the emails for the domain, add read &#038; execute permissions again, you may use the following command;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">root@host [/home/username]# chmod +rx mail</pre></td></tr></table></div>

<blockquote><p>Please note paths may be different on your server so follow accordingly;</p></blockquote>
<p>Hopefully you will find it useful, Please share your experience using the comments form below if you have tried it;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/cpanel-how-to-disable-email-service-only-for-a-domain.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Automatically Expire Posts After Specific Date/Time</title>
		<link>http://www.w3helper.com/wordpress-automatically-expire-posts-after-specific-datetime.html</link>
		<comments>http://www.w3helper.com/wordpress-automatically-expire-posts-after-specific-datetime.html#comments</comments>
		<pubDate>Thu, 20 Oct 2011 18:00:23 +0000</pubDate>
		<dc:creator>helper</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[exclude]]></category>
		<category><![CDATA[expire]]></category>
		<category><![CDATA[expiry]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[promotion]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.w3helper.com/?p=128</guid>
		<description><![CDATA[Some time you may not want to keep a post published on your wordpress blog e.g. announcing some promotion, events etc. Instead of permanently deleting that post you may hide/expire that from your articles. For the purpose you can replace the existing posts looping code with the following in your posts page (where it&#8217;s looping [...]]]></description>
				<content:encoded><![CDATA[<p>Some time you may not want to keep a post published on your wordpress blog e.g. announcing some promotion, events etc. Instead of permanently deleting that post you may hide/expire that from your articles. </p>
<p>For the purpose you can replace the existing posts looping code with the following in your posts page (where it&#8217;s looping the posts usually index.php, archive.php etc.)<br />
<span id="more-128"></span></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>have_posts<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: #b1b100;">while</span><span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$expiry_date_time</span> <span style="color: #339933;">=</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'expiry'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$expiry_date_time</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$expiry_str</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$expiry_date_time</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$remaining_time</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$expiry_date_time</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$remaining_time</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>To make above code working, you will need to add a custom field while adding the post, make sure custom field&#8217;s key is &#8220;<strong>expiry</strong>&#8221; and the value date/time format is &#8220;<strong>MM/DD/YYYY 00:00:00</strong>&#8220;.</p>
<blockquote><p><strong>&#8220;Please note, this will not delete your post/article but it will only exclude/hide it from readers.&#8221;</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.w3helper.com/wordpress-automatically-expire-posts-after-specific-datetime.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
