<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8980614889565070563</id><updated>2024-08-28T21:29:02.022-07:00</updated><category term="Magento"/><category term="Linux"/><category term="PHP"/><category term="Jquery"/><title type='text'>Mini snippets</title><subtitle type='html'>About Magento, Linux, Jquery, PHP ... and other!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-6597693534764690130</id><published>2011-06-21T06:30:00.001-07:00</published><updated>2011-06-22T01:01:23.644-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Revert all modified files in an SVN repo</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div class=&quot;line&quot; title=&quot;Click to select this command&quot;&gt;                         &lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;&lt;div class=&quot;command&quot;&gt;svn st | grep -e &amp;#39;^M&amp;#39; | awk &amp;#39;{print $2}&amp;#39; | xargs svn revert&lt;/div&gt; &lt;/blockquote&gt;         &lt;/div&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/6597693534764690130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2011/06/revert-all-modified-files-in-svn-repo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6597693534764690130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6597693534764690130'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2011/06/revert-all-modified-files-in-svn-repo.html' title='Revert all modified files in an SVN repo'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-1711009103220601814</id><published>2011-06-10T07:28:00.001-07:00</published><updated>2011-06-22T01:01:23.653-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Replace in string : preg_replace</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;        $pattern = &amp;#39;/(\d+),(\w+)/i&amp;#39;;&lt;br&gt;        $replacement = &amp;#39;&amp;lt;strong&amp;gt;${1}&amp;lt;/strong&amp;gt;,$2&amp;#39;;&lt;br&gt;        return  Mage::log( $this-&amp;gt;getQuote()-&amp;gt;getStore()-&amp;gt;formatPrice($price , true) );&lt;br&gt;         return preg_replace($pattern, $replacement, Mage::log( $this-&amp;gt;getQuote()-&amp;gt;getStore()-&amp;gt;formatPrice($price , false) ) );&lt;br clear=&quot;all&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;i style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;span style=&quot;color: rgb(153, 153, 153); font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/i&gt;&lt;br&gt; &lt;br style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/div&gt;&lt;br&gt; &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/1711009103220601814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2011/06/replace-in-string-pregreplace.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/1711009103220601814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/1711009103220601814'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2011/06/replace-in-string-pregreplace.html' title='Replace in string : preg_replace'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-5105565836112143455</id><published>2011-03-31T10:46:00.001-07:00</published><updated>2011-06-22T01:01:23.657-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Find folder</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;find / -name &amp;quot;test_*&amp;quot; -type d -print&lt;/blockquote&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;i style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;span style=&quot;color: rgb(153, 153, 153); font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/i&gt;&lt;br style=&quot;color: rgb(153, 153, 153);&quot;&gt; &lt;/div&gt;&lt;br&gt; &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/5105565836112143455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2011/03/find-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/5105565836112143455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/5105565836112143455'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2011/03/find-folder.html' title='Find folder'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-2232627092118084765</id><published>2011-02-18T06:57:00.000-08:00</published><updated>2011-06-22T01:01:23.661-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Symbolic link</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;&lt;pre&gt;ln -s /etc/apache2/sites-available/&lt;a href=&quot;http://phpmyadmin.domain.net&quot;&gt;phpmyadmin.domain.net&lt;/a&gt; /etc/apache2/sites-enabled/&lt;a href=&quot;http://phpmyadmin.domain.net&quot;&gt;phpmyadmin.domain.net&lt;/a&gt;&lt;/pre&gt; &lt;/blockquote&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/2232627092118084765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2011/02/symbolic-link.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/2232627092118084765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/2232627092118084765'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2011/02/symbolic-link.html' title='Symbolic link'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-4019176636594152585</id><published>2011-01-20T09:31:00.001-08:00</published><updated>2011-01-21T01:29:52.047-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>[PHP] Difference betwen tow date</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;public function _getDiffInHours( $date ){&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$usDate = str_replace ( &quot;/&quot; , &quot;-&quot; ,$date);&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$now = strtotime(&quot;now&quot;);&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$nextDate = strtotime ( $usDate );&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(! is_numeric( $nextDate ) || ! is_numeric( $now ) || $nextDate &amp;lt;&amp;nbsp; $now ){&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return floor( ($nextDate-$now) / (60*60));&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/blockquote&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/4019176636594152585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2011/01/php-difference-betwen-tow-date.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/4019176636594152585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/4019176636594152585'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2011/01/php-difference-betwen-tow-date.html' title='[PHP] Difference betwen tow date'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-2920281564048205706</id><published>2011-01-07T03:42:00.001-08:00</published><updated>2011-01-21T01:29:09.757-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Log in other file that system.log</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;    public function _log($msg){&lt;br&gt;        $nameFile = &amp;#39;other-file-&amp;#39;.date ( &amp;quot;Y-m-d-H&amp;quot; ).&amp;#39;.log&amp;#39;;&lt;br&gt;         Mage::log($msg, null, $nameFile );&lt;br&gt;    }&lt;/blockquote&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/2920281564048205706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2011/01/log-in-other-file-that-systemlog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/2920281564048205706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/2920281564048205706'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2011/01/log-in-other-file-that-systemlog.html' title='Log in other file that system.log'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-5349210774258399538</id><published>2011-01-05T01:39:00.001-08:00</published><updated>2011-01-21T01:29:09.763-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Replace accented characters</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;    public function normaliza ($string){&lt;br&gt;        $a = &amp;#39;ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ&amp;#39;;    &lt;br&gt;         $b = &amp;#39;aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr&amp;#39;;&lt;br&gt;        $string = utf8_decode($string);    &lt;br&gt;        $string = strtr($string, utf8_decode($a), $b);&lt;br&gt;        $string = strtolower($string);&lt;br&gt;         return  utf8_encode($string) ;&lt;br&gt;    }      &lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/5349210774258399538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2011/01/replace-accented-characters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/5349210774258399538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/5349210774258399538'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2011/01/replace-accented-characters.html' title='Replace accented characters'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-4410395310272861951</id><published>2010-12-28T12:05:00.001-08:00</published><updated>2011-01-04T00:34:43.457-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Date Magento in any format</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;Mage::app()-&amp;gt;getLocale()-&amp;gt;date(strtotime($Model-&amp;gt;getCreatedAt()), null, null, false)-&amp;gt;toString(&amp;#39;dd/MM/yyyy&amp;#39;)&lt;br clear=&quot;all&quot;&gt; &lt;/blockquote&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/div&gt; &lt;br&gt; &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/4410395310272861951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/12/date-magento-in-any-format.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/4410395310272861951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/4410395310272861951'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/12/date-magento-in-any-format.html' title='Date Magento in any format'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-4960346403851923007</id><published>2010-12-20T07:31:00.001-08:00</published><updated>2011-01-04T01:11:55.796-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Catalog Search Index refresh</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;wp_syntax&quot; style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;php&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt;
require_once &#39;app/Mage.php&#39;;
umask( 0 );
Mage :: app( &quot;default&quot; );
Mage::log(&quot;Started Rebuilding Search Index At: &quot; . date(&quot;d/m/y h:i:s&quot;));
$sql = &quot;truncate catalogsearch_fulltext;&quot;;
$mysqli = Mage::getSingleton(&#39;core/resource&#39;)-&amp;gt;getConnection(&#39;core_write&#39;);
$mysqli-&amp;gt;query($sql);
$process = Mage::getModel(&#39;index/process&#39;)-&amp;gt;load(7);
$process-&amp;gt;reindexAll();
Mage::log(&quot;Finished Rebuilding Search Index At: &quot; . date(&quot;d/m/y h:i:s&quot;));&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/4960346403851923007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/12/catalog-search-index-refresh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/4960346403851923007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/4960346403851923007'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/12/catalog-search-index-refresh.html' title='Catalog Search Index refresh'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-4270128360090706872</id><published>2010-12-17T10:58:00.001-08:00</published><updated>2011-01-04T00:34:43.469-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>How to add days, weeks, months to any date ?</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $date = date(&amp;quot;Y-m-d&amp;quot;);// current date&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $date = strtotime(date(&amp;quot;Y-m-d&amp;quot;, strtotime($date)) . &amp;quot; +1 day&amp;quot;);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $date = strtotime(date(&amp;quot;Y-m-d&amp;quot;, strtotime($date)) . &amp;quot; +1 week&amp;quot;);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $date = strtotime(date(&amp;quot;Y-m-d&amp;quot;, strtotime($date)) . &amp;quot; +2 week&amp;quot;);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $date = strtotime(date(&amp;quot;Y-m-d&amp;quot;, strtotime($date)) . &amp;quot; +1 month&amp;quot;);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $date = strtotime(date(&amp;quot;Y-m-d&amp;quot;, strtotime($date)) . &amp;quot; +30 days&amp;quot;);&lt;/blockquote&gt; &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/4270128360090706872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/12/how-to-add-days-weeks-months-to-any.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/4270128360090706872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/4270128360090706872'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/12/how-to-add-days-weeks-months-to-any.html' title='How to add days, weeks, months to any date ?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-6133599125466314384</id><published>2010-12-14T00:34:00.000-08:00</published><updated>2010-12-14T00:34:12.805-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>/var/empty/sshd must be owned by root and not group or world-writable</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;Check the ownership and permissions on /var/empty and /var/empty/sshd. &lt;/div&gt;&lt;div&gt;They must be owned by root (chown root /var/empty; chown root /var/empty/sshd) and not be writable by anyone except root.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: #ccc 1px solid; margin: 0px 0px 0px 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;chmod go-w /var/empty/sshd; &lt;/div&gt;&lt;div&gt;chmod go-w /var/empty&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/6133599125466314384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/12/varemptysshd-must-be-owned-by-root-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6133599125466314384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6133599125466314384'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/12/varemptysshd-must-be-owned-by-root-and.html' title='/var/empty/sshd must be owned by root and not group or world-writable'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-67107750357957412</id><published>2010-11-12T09:59:00.001-08:00</published><updated>2010-11-22T08:52:45.688-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento: Use cache</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;$cacheKey = &amp;#39;CODE_CODE&amp;#39;.Mage::app()-&amp;gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;getStore()-&amp;gt;getId();&lt;br&gt;        if (Mage::app()-&amp;gt;useCache(&amp;#39;config&amp;#39;) &amp;amp;&amp;amp; $collection = Mage::app()-&amp;gt;loadCache($cacheKey)) {&lt;br&gt;             $prod = unserialize($collection);&lt;br&gt;         } else {&lt;br&gt;            $prod = Mage::getModel()-&amp;gt;getCollection;&lt;br&gt;            ....&lt;br&gt;            &lt;br&gt;            if (Mage::app()-&amp;gt;useCache(&amp;#39;config&amp;#39;)) {&lt;br&gt;                Mage::app()-&amp;gt;saveCache(serialize($prod), $cacheKey, array(&amp;#39;config&amp;#39;));&lt;br&gt;              }&lt;br&gt;        }&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/67107750357957412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/11/magento-use-cache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/67107750357957412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/67107750357957412'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/11/magento-use-cache.html' title='Magento: Use cache'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-7067986792676597104</id><published>2010-10-29T11:08:00.001-07:00</published><updated>2010-10-29T11:26:00.011-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento: Get url stores</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;$stores = Mage::getModel(&amp;#39;core/store&amp;#39;)-&amp;gt;getCollection();&lt;br&gt;foreach(  $stores as $store ){&lt;br&gt;             $url = Mage::getModel(&amp;#39;core/url&amp;#39;) -&amp;gt;setStore($store)-&amp;gt;getUrl(&amp;#39;&amp;#39;);&lt;br&gt;            echo $url.&amp;quot;\n&amp;quot;;&lt;br&gt;}&lt;/blockquote&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/7067986792676597104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-get-url-stores.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7067986792676597104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7067986792676597104'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-get-url-stores.html' title='Magento: Get url stores'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-7060863302803133527</id><published>2010-10-29T10:31:00.001-07:00</published><updated>2010-10-29T11:26:00.011-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento: Request to do in case of duplication in the flat catalog</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;SELECT entity_id, count( * ) &lt;br&gt;     FROM catalog_category_flat_store_&lt;b&gt;x&lt;/b&gt;&lt;br&gt;     GROUP BY entity_id&lt;br&gt;     ORDER BY count( * ) DESC &lt;br&gt;     LIMIT 0 , 30&lt;/blockquote&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/7060863302803133527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-request-to-do-in-case-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7060863302803133527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7060863302803133527'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-request-to-do-in-case-of.html' title='Magento: Request to do in case of duplication in the flat catalog'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-8979555229855970291</id><published>2010-10-29T10:25:00.001-07:00</published><updated>2010-10-29T11:26:10.132-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP: 301 redirect</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote&gt;&lt;span class=&quot;defaultfont&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;defaultfont&quot;&gt; Header( &quot;HTTP/1.1 301 Moved Permanently&quot; ); &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;defaultfont&quot;&gt; Header( &quot;Location: &lt;a href=&quot;http://www.new-url.com/&quot;&gt;http://www.new-url.com&lt;/a&gt;&quot; ); &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;defaultfont&quot;&gt; ?&amp;gt; &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/8979555229855970291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/php-301-redirect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/8979555229855970291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/8979555229855970291'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/php-301-redirect.html' title='PHP: 301 redirect'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-1755971286314563340</id><published>2010-10-27T11:05:00.001-07:00</published><updated>2010-10-27T11:13:34.999-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>fileclass: cannot open &#39;/etc/mail/local-host-names sendmail</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;fileclass: cannot open &amp;#39;/etc/mail/local-host-names sendmail  					 						&lt;div class=&quot;postbody&quot;&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;problem&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;sendmail  is not working. Giving the error &amp;#39;/etc/mail/&lt;a href=&quot;http://sendmail.cf&quot;&gt;sendmail.cf&lt;/a&gt;: line 91:  fileclass: cannot open &amp;#39;/etc/mail/local-host-names&amp;#39;: World writable  directory&amp;#39;.&lt;br&gt;&lt;br&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Solution&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;1).  Edit the file /etc/mail/&lt;a href=&quot;http://sendmail.cf&quot;&gt;sendmail.cf&lt;/a&gt; and add -o (&amp;#39;oh&amp;#39;) to line 91 and  588 that is change Fw/etc/mail/local-host-names to Fw-o  /etc/mail/local-host-names. &lt;br&gt;&lt;br&gt;2). Similarly edit  /etc/mail/&lt;a href=&quot;http://submit.cf&quot;&gt;submit.cf&lt;/a&gt; and add -o to line 544( i think it may differ) that  is change Ft/etc/mail/trusted-users to Ft-o /etc/mail/trusted-users.&lt;br&gt;&lt;br&gt;3). save both files and restart sendmail&lt;/div&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/1755971286314563340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/fileclass-cannot-open-etcmaillocal-host.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/1755971286314563340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/1755971286314563340'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/fileclass-cannot-open-etcmaillocal-host.html' title='fileclass: cannot open &#39;/etc/mail/local-host-names sendmail'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-7321465138679508718</id><published>2010-10-26T02:46:00.001-07:00</published><updated>2010-10-26T02:47:40.651-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Centos: Restore Root password</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;span id=&quot;result_box&quot; class=&quot;long_text&quot; lang=&quot;en&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);&quot; title=&quot;&quot;&gt;1. &lt;/span&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;Start your computer&lt;br&gt;&lt;/span&gt;&lt;span title=&quot;&quot;&gt;2. &lt;/span&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;At the GRUB prompt, choose the line on your linux and press &lt;b&gt;e&lt;/b&gt;&lt;br&gt; &lt;/span&gt;&lt;span title=&quot;&quot;&gt;3. &lt;/span&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;Select the second line (the one that starts with kernel ...) with the cursor and press &lt;b&gt;e&lt;/b&gt; again to edit it also.&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;4. &lt;/span&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;Go  to the end of the line and add the word single (this also works with  the letter &lt;b&gt;s&lt;/b&gt; or the number &lt;b&gt;1&lt;/b&gt; on most distributions, the choice is yours)&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span title=&quot;&quot;&gt;5. &lt;/span&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;Press &lt;b&gt;b&lt;/b&gt; to boot with these new parameters&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;The system will boot into single user mode and offer you a command prompt as root without asking any password.&lt;br&gt; &lt;br&gt;&lt;/span&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;You can then choose a new password and reboot the &lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;result_box&quot; class=&quot;long_text&quot; lang=&quot;en&quot;&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;computer.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/7321465138679508718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/centos-restore-root-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7321465138679508718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7321465138679508718'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/centos-restore-root-password.html' title='Centos: Restore Root password'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-7015521157415024851</id><published>2010-10-20T03:36:00.001-07:00</published><updated>2010-10-20T16:29:16.708-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento: Use Filter template</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;            $filter = Mage::getModel(&amp;#39;core/email_template_filter&amp;#39;);&lt;br&gt;             $vars = array( &amp;#39;value&amp;#39;=&amp;gt;&amp;#39;toto&amp;#39;);&lt;br&gt;            $filter-&amp;gt;setVariables( $vars );&lt;br&gt;            $filterdResult = $filter-&amp;gt;filter( &amp;#39;  Text Text Text Text Text {{var value}} Text Text Text Text   &amp;#39; );&lt;br&gt; &lt;/blockquote&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/7015521157415024851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-use-filter-template.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7015521157415024851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7015521157415024851'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-use-filter-template.html' title='Magento: Use Filter template'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-7742094196903633220</id><published>2010-10-19T04:24:00.003-07:00</published><updated>2010-10-19T04:26:04.348-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento: .htaccess 301 Redirect</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;Redirect 301 /oldpage.html &lt;a href=&quot;http://www.yoursite.com/redirectpage.html&quot;&gt;http://www.yoursite.com/redirectpage.html&lt;/a&gt;&lt;br&gt; Redirect 301 /redirectpage2.html &lt;a href=&quot;http://www.yoursite.com/folder/&quot;&gt;http://www.yoursite.com/folder/&lt;/a&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/7742094196903633220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-htaccess-301-redirect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7742094196903633220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/7742094196903633220'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-htaccess-301-redirect.html' title='Magento: .htaccess 301 Redirect'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-6417740046645508275</id><published>2010-10-19T04:24:00.001-07:00</published><updated>2010-10-19T04:26:04.359-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento: RESET MAGENTO FILE PERMISSIONS VIA SSH</title><content type='html'>&lt;blockquote&gt;&lt;div dir=&quot;ltr&quot;&gt;find . -type f -exec chmod 644 {} \;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; find . -type d -exec chmod 755 {} \;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; chmod o+w var var/.htaccess includes includes/config.php app/etc&lt;br /&gt;
&amp;nbsp;&amp;nbsp; chmod 550 pear&lt;br /&gt;
&amp;nbsp;&amp;nbsp; chmod -R o+w med&lt;/div&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/6417740046645508275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-reset-magento-file-permissions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6417740046645508275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6417740046645508275'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-reset-magento-file-permissions.html' title='Magento: RESET MAGENTO FILE PERMISSIONS VIA SSH'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-6278746014702183109</id><published>2010-10-19T04:15:00.001-07:00</published><updated>2010-10-19T04:26:04.369-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento : How to show cart total</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div style=&quot;font-family: arial,helvetica,sans-serif;&quot; class=&quot;container&quot;&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;&lt;code&gt;&lt;font size=&quot;2&quot;&gt;&lt;font style=&quot;font-family: arial,helvetica,sans-serif;&quot; size=&quot;2&quot;&gt;&amp;lt;?php getQuote();&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;br&gt; &lt;code&gt;&lt;font size=&quot;2&quot;&gt;&lt;font style=&quot;font-family: arial,helvetica,sans-serif;&quot; size=&quot;2&quot;&gt;$total = $quote-&amp;gt;getGrandTotal();&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;br&gt;&lt;code&gt;&lt;font size=&quot;2&quot;&gt;&lt;font style=&quot;font-family: arial,helvetica,sans-serif;&quot; size=&quot;2&quot;&gt;// format total in order to have a user friendly price&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;br&gt; &lt;code&gt;&lt;font size=&quot;2&quot;&gt;&lt;font style=&quot;font-family: arial,helvetica,sans-serif;&quot; size=&quot;2&quot;&gt;$total = $this-&amp;gt;helper(&amp;#39;checkout&amp;#39;)-&amp;gt;formatPrice($total); ?&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;br&gt;&lt;code&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;/div&gt; &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/6278746014702183109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-how-to-show-cart-total.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6278746014702183109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6278746014702183109'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/magento-how-to-show-cart-total.html' title='Magento : How to show cart total'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-2748787309181416874</id><published>2010-10-18T09:23:00.001-07:00</published><updated>2010-10-19T04:26:04.379-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Function to download file with Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;In the controller use this function&lt;br&gt;&lt;br&gt;&lt;blockquote style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;    protected function _sendFile($pdfPath) {&lt;br&gt;         if (! is_file ( $pdfPath ) || ! is_readable ( $pdfPath )) {&lt;br&gt;            throw new Exception ( );&lt;br&gt;        }&lt;br&gt;        $this-&amp;gt;getResponse ()&lt;br&gt;                    -&amp;gt;setHttpResponseCode ( 200 )&lt;br&gt;                    -&amp;gt;setHeader ( &amp;#39;Pragma&amp;#39;, &amp;#39;public&amp;#39;, true )&lt;br&gt;                     -&amp;gt;setHeader ( &amp;#39;Cache-Control&amp;#39;, &amp;#39;must-revalidate, post-check=0, pre-check=0&amp;#39;, true )&lt;br&gt;                    /* View in browser */&lt;br&gt;                    //-&amp;gt;setHeader ( &amp;#39;Content-type&amp;#39;, &amp;#39;application/pdf&amp;#39;, true )&lt;br&gt;                     /*  Download */ &lt;br&gt;                    -&amp;gt;setHeader ( &amp;#39;Content-type&amp;#39;, &amp;#39;application/force-download&amp;#39; )&lt;br&gt;                    -&amp;gt;setHeader ( &amp;#39;Content-Length&amp;#39;, filesize($pdfPath) )&lt;br&gt;                     -&amp;gt;setHeader (&amp;#39;Content-Disposition&amp;#39;, &amp;#39;inline&amp;#39; . &amp;#39;; filename=&amp;#39; . basename($pdfPath) );&lt;br&gt;        $this-&amp;gt;getResponse ()-&amp;gt;clearBody ();&lt;br&gt;        $this-&amp;gt;getResponse ()-&amp;gt;sendHeaders ();&lt;br&gt;         readfile ( $pdfPath );&lt;br&gt;        //exit(0);&lt;br&gt;    }&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;The passed parameter is the path of the File ( here i used this function to download a PDF file ) &lt;br&gt;&lt;/div&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/2748787309181416874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/function-to-download-file-with-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/2748787309181416874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/2748787309181416874'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/function-to-download-file-with-magento.html' title='Function to download file with Magento'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-102008548023689554</id><published>2010-10-15T08:18:00.001-07:00</published><updated>2010-10-15T08:30:23.021-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Instalers: CGV Model</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;This instaler is used to create a new CGV ( General Sales Conditions ) : &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $text = &amp;lt;&amp;lt;&amp;lt;TXT&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; text here&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; TXT;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $model = Mage::getModel(&amp;#39;checkout/agreement&amp;#39;);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $model-&amp;gt;setName ();&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $model-&amp;gt;setContent ( $text );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; //$model-&amp;gt;setContentHeight ();&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $model-&amp;gt;setCheckboxText ();&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $model-&amp;gt;setIsActive (1);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $model-&amp;gt;setIsHtml (1);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; $model-&amp;gt;save();&lt;/blockquote&gt;&lt;br&gt; &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/102008548023689554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/instalers-cgv-model.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/102008548023689554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/102008548023689554'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/instalers-cgv-model.html' title='Instalers: CGV Model'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-6129246582212494641</id><published>2010-10-15T01:41:00.001-07:00</published><updated>2010-10-15T08:30:23.029-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>[URL] Current and home Url</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;To get the current url with his parameters use: &lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; Mage::helpet(&amp;#39;core/url&amp;#39;)-&amp;gt;getCurrentUrl()&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Fo the home, use: &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt; Mage::helpet(&amp;#39;core/url&amp;#39;)-&amp;gt;getHomeUrl()&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt; &lt;/div&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/6129246582212494641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/url-current-and-home-url.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6129246582212494641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6129246582212494641'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/url-current-and-home-url.html' title='[URL] Current and home Url'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8980614889565070563.post-6328604067782618264</id><published>2010-10-12T07:18:00.000-07:00</published><updated>2010-10-12T07:18:47.557-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Show / Hiden rows of table (Jquery)</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;For show hidden rows of a table, the toggle function of Jquery fream&lt;span style=&quot;background-color: white;&quot;&gt;work &lt;/span&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot; title=&quot;&quot;&gt;can be used like this&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jQuery(&quot;.link-view&quot;).toggle(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function () {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Show treatment &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function () {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // hidden treatment&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/blockquote&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://minisnip.blogspot.com/feeds/6328604067782618264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://minisnip.blogspot.com/2010/10/show-hiden-rows-of-table-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6328604067782618264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980614889565070563/posts/default/6328604067782618264'/><link rel='alternate' type='text/html' href='http://minisnip.blogspot.com/2010/10/show-hiden-rows-of-table-jquery.html' title='Show / Hiden rows of table (Jquery)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>