<?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>NewJokeCity</title>
	<atom:link href="http://www.newjokecity.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.newjokecity.com</link>
	<description>TechNews from the city of NewJoke</description>
	<lastBuildDate>Tue, 19 Jul 2011 20:52:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Optimising Magento for Performance</title>
		<link>http://www.newjokecity.com/optimising-magento-for-performance/</link>
		<comments>http://www.newjokecity.com/optimising-magento-for-performance/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 20:52:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=153</guid>
		<description><![CDATA[Keep in mind that this site is used as my personal notepad, just to share what i have found on other sites! So the content is not always mine! &#160; This article is coming from TechPortal, thanks to the original author. Check out our tips on: memcached mod_cache mod_expires Apache KeepAlive APC Alternative session storage [...]]]></description>
			<content:encoded><![CDATA[<p>Keep in mind that this site is used as my personal notepad, just to share what i have found on other sites! So the content is not always mine!</p>
<p>&nbsp;</p>
<p>This article is coming from <a title="TechPortal" href="http://techportal.ibuildings.com/2011/03/08/optimising-magento-for-performance/" target="_blank">TechPortal</a>, thanks to the original author.</p>
<p>Check out our tips on:</p>
<ul>
<li><a href="#memcached">memcached</a></li>
<li><a href="#mod_cache">mod_cache</a></li>
<li><a href="#mod_expires">mod_expires</a></li>
<li><a href="#keepalive">Apache KeepAlive</a></li>
<li><a href="#apc">APC</a></li>
<li><a href="#session">Alternative session storage</a></li>
<li><a href="#gzip">GZip</a></li>
<li><a href="#tuner">MySQLTuner</a></li>
<li><a href="#bonus">and a bonus security tip</a>!</li>
</ul>
<p>&nbsp;<br />
<a name="memcached"></a></p>
<h3>Memcached</h3>
<p><a href="http://memcached.org/">Memcached</a> is a distributed memory caching system that stores data retrieved from the database (or other data source) in memory, allowing repeat reads to retrieve the data from memory rather than needing to query the database again, greatly increasing the speed of web applications.</p>
<p>The first thing to do is install the memcache daemon and client libraries:</p>
<div>
<div>
<pre>root# apt-get update
root# apt-get install memcached php5-memcache</pre>
</div>
</div>
<p>To check if memcache is running, you can use the following command:</p>
<div>
<div>
<pre>root# ps -ef | grep memcached</pre>
</div>
</div>
<p>You should ensure that the localhost has been added to the configuration, this can be done using grep as shown here:</p>
<div>
<div>
<pre>root# grep 127.0.0.1 /etc/memcached.conf</pre>
</div>
</div>
<p>This should output <strong><code>-l 127.0.0.1</code></strong> if localhost is included in the configuration. If not, add this line to the configuration and restart memcached:</p>
<div>
<div>
<pre>root# echo '-l 127.0.0.1' &gt;&gt; /etc/memcached.conf
root# /etc/init.d/memcached restart
root# /etc/init.d/apache2 restart</pre>
</div>
</div>
<p>You need to create a PHP configuration file to include the module, which on a Debian-based system should be in<code>/etc/php5/conf.d/memcache.ini</code>:</p>
<div>
<div>
<pre>extension=memcache.so</pre>
</div>
</div>
<p>Magento itself can also be configured to utilise some memcache optimisations built into the software. The following XML should be added to the <code>/var/www/app/etc/local.xml</code> file once it has been generated:</p>
<div>
<div>
<pre> &lt;config&gt;
     &lt;global&gt;
         ...
         &lt;cache&gt;
             &lt;backend&gt;&lt;![CDATA[memcached]]&gt;&lt;/backend&gt;&lt;!-- apc / memcached / xcache / empty=file --&gt;
             &lt;slow_backend&gt;&lt;![CDATA[database]]&gt;&lt;/slow_backend&gt;
             &lt;memcached&gt;&lt;!-- memcached cache backend related config --&gt;
                 &lt;servers&gt;&lt;!-- any number of server nodes can be included --&gt;
                     &lt;server&gt;
                         &lt;host&gt;&lt;![CDATA[127.0.0.1]]&gt;&lt;/host&gt;
                         &lt;port&gt;&lt;![CDATA[11211]]&gt;&lt;/port&gt;
                         &lt;persistent&gt;&lt;![CDATA[1]]&gt;&lt;/persistent&gt;
                         &lt;weight&gt;&lt;![CDATA[1]]&gt;&lt;/weight&gt;
                         &lt;timeout&gt;&lt;![CDATA[10]]&gt;&lt;/timeout&gt;
                         &lt;retry_interval&gt;&lt;![CDATA[10]]&gt;&lt;/retry_interval&gt;
                         &lt;status&gt;&lt;![CDATA[1]]&gt;&lt;/status&gt;
                     &lt;/server&gt;
                 &lt;/servers&gt;
                 &lt;compression&gt;&lt;![CDATA[0]]&gt;&lt;/compression&gt;
                 &lt;cache_dir&gt;&lt;![CDATA[]]&gt;&lt;/cache_dir&gt;
                 &lt;hashed_directory_level&gt;&lt;![CDATA[]]&gt;&lt;/hashed_directory_level&gt;
                 &lt;hashed_directory_umask&gt;&lt;![CDATA[]]&gt;&lt;/hashed_directory_umask&gt;
                 &lt;file_name_prefix&gt;&lt;![CDATA[]]&gt;&lt;/file_name_prefix&gt;
             &lt;/memcached&gt;
         &lt;/cache&gt;
     &lt;/global&gt;
     ...
 &lt;/config&gt;</pre>
</div>
</div>
<p><a name="mod_cache"></a></p>
<h3>Apache mod_cache</h3>
<p>The <a href="http://httpd.apache.org/docs/2.0/mod/mod_cache.html">Apache mod_cache module</a> allows Apache to cache content on disk or in memory, thus decreasing page load times. Caching for dynamic sites such as ecommerce needs to be approached with some caution; the cache may become invalid and thus customers may receive stale content. To enable mod_cache perform the following steps:</p>
<div>
<div>
<pre>root# a2enmod cache
root# a2enmod disk_cache
root# a2enmod mem_cache</pre>
</div>
</div>
<p>Enable disk caching in the disk_cache.conf configuration file by uncommenting the <strong><code>CacheEnable</code></strong> line in <code>/etc/apache2/mods-available/disk_cache.conf</code>. Make sure you remember to restart apache after doing this.</p>
<p>There is also a utility you can install which will clear the disk cache, the following code sample shows how to install and run it:</p>
<div>
<div>
<pre>root# apt-get install apache2-utils
root# htcacheclean -d30 -n -t -p /var/cache/apache2/mod_disk_cache -l 100M -i</pre>
</div>
</div>
<p>This will clean our cache directory every 30 minutes and make sure that it will not get bigger than 100MB. You can tune these settings to fit your particular site needs.</p>
<p><a name="mod_expires"></a></p>
<h3>Apache mod_expires</h3>
<p>Well-written browser software will keep a cache of the webpages a user visits. Each webpage should have a content expiry header directive that tells the browser when the cache expires. If this header is not correctly set then the browser will re-request the content from source with every page hit. In order to ensure that the Magento pages have the correct content expiry in the header, you can add the following block to Magento’s <code>.htaccess</code> file:</p>
<div>
<div>
<pre>&lt;ifmodule mod_expires.c&gt;
    ExpiresActive On
    ExpiresDefault "access plus 1 month"
&lt;/ifmodule&gt;</pre>
</div>
</div>
<p><a name="keepalive"></a></p>
<h3>Apache KeepAlive</h3>
<p>The <a href="http://httpd.apache.org/docs/2.0/mod/core.html#keepalive">Apache KeepAlive</a> functionality allows the TCP connection between a client and the server to remain open, allowing multiple requests to be served over the same connection. This can decrease page load times particularly on webpages with lots of images since it removes the overhead of having multiple connections opened. To use this functionality, edit the /etc/apache2/apache2.conf, find the KeepAlive entries, and make sure they are enabled as follows:</p>
<div>
<div>
<pre>KeepAlive On
KeepAliveTimeout 2</pre>
</div>
</div>
<p>This will enable the KeepAlive feature; the timeout parameter is in units of seconds.</p>
<p><a name="apc"></a></p>
<h3>PHP APC</h3>
<p>PHP APC is an Alternative PHP Cache that caches the byte-compiled PHP code, which means that repeat requests to the same PHP script should not need to be recompiled before being served, which will increase performance. This is a pear module, but also has some system dependencies, so to install it we run the following:</p>
<div>
<div>
<pre>root# apt-get install apache2-threaded-dev php5-dev php-pear make gpp
root# pecl install apc</pre>
</div>
</div>
<p>The APC configuration file should be created, and on the debian system the path would be <code>/etc/php5/conf.d/apc.ini</code>. We place the following lines into this file:</p>
<div>
<div>
<pre>extension=apc.so
apc.shm_size=256
apc.num_files_hint=10000
apc.user_entries_hint=10000
apc.max_file_size=5M</pre>
</div>
</div>
<p>Also make sure that Magento is using APC for caching by editing <code>/var/www/app/etc/local.xml</code> and add the following somewhere inside the &lt;global&gt; tags:</p>
<div>
<div>
<pre>&lt;config&gt;
        &lt;global&gt;
                …
                &lt;cache&gt;
                        &lt;backend&gt;apc&lt;/backend&gt;
                        &lt;prefix&gt;alphanumeric&lt;/prefix&gt;
                &lt;/cache&gt;
                ….
        &lt;/global&gt;
        ...
&lt;/config&gt;</pre>
</div>
</div>
<p>To verify if APC is installed, we can check if the output of phpinfo includes reference to it, by running the following command from the CLI:</p>
<div>
<div>
<pre>root# php -r 'phpinfo();' | grep 'apc'</pre>
</div>
</div>
<p><a name="session"></a></p>
<h3>Database Session Storage</h3>
<p>Typically, database servers are less utilised than web servers. Performance can usually be improved by moving session handling from the web server filesystem into the database server. Magento asks you whether you prefer a file or database session save type, but this is very easy to change in the XML. Open up <code>/var/www/app/etc/local.xml</code>, locate the &lt;session_save&gt; tags, and change the value so it looks like this (the default is &lt;![CDATA[files]]&gt;):</p>
<div>
<div>
<pre>&lt;session_save&gt;&lt;![CDATA[db]]&gt;&lt;/session_save&gt;</pre>
</div>
</div>
<p>Another alternative is to use memcache for storing the sessions – this isn’t as persistent as the database store, but may be faster:</p>
<div>
<div>
<pre>&lt;session_save&gt;&lt;![CDATA[memcache]]&gt;&lt;/session_save&gt;</pre>
</div>
</div>
<p>You can add details of your memcache server in the session save path:</p>
<div>
<div>
<pre>&lt;session_save_path&gt;&lt;![CDATA[tcp://127.0.0.1:11211?persistent=1&amp;weight;=2&amp;timeout;=10&amp;retry;_interval=10]]&gt;&lt;/session_save_path&gt;</pre>
</div>
</div>
<p><a name="gzip"></a></p>
<h3>GZip Compression</h3>
<p>Web pages can be compressed using <a href="http://www.gzip.org/">GZip</a> between the server and the client, reducing the amount of data that needs to be transferred. Although the act of compressing and decompressing adds a performance overhead there is usually a net gain in reducing the amount of traffic especially for large pages. To use GZip compression, enable the <strong>mod_deflate</strong>module in Apache, and add the following to the vhost for the site:</p>
<div>
<div>
<pre>&lt;ifmodule mod_deflate.c&gt;
        SetOutputFilter DEFLATE
        # Netscape 4.x has some problems...
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        # Netscape 4.06-4.08 have some more problems
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        # MSIE masquerades as Netscape, but it is fine
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
        # Don't compress images
        SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
        # Make sure proxies don't deliver the wrong content
        Header append Vary User-Agent env=!dont-vary
&lt;/ifmodule&gt;</pre>
</div>
</div>
<p><a name="tuner"></a></p>
<h3>MySQLTuner</h3>
<p>A final tool to consider for performance improvement is <a href="http://blog.mysqltuner.com/">MySQLTuner</a>. MySQLTuner is a Perl script which analyses your database and gives recommendations which variables you should adjust in my.cnf to increase performance. This can really help to get the database, often a performance bottleneck for these types of applications, performing as well as possible without needing expensive hardware upgrades. To install and run this utility, simply do:</p>
<div>
<div>
<pre>bash$ wget http://mysqltuner.com/mysqltuner.pl
bash$ perl mysqltuner.pl</pre>
</div>
</div>
<p>You see some recommendations for which variables could be changed to improve performance, it is best to make changes incrementally and one at a time so you can see how they affect the performance of the database</p>
<p><a name="bonus"></a></p>
<h3>Bonus Security Tip: Changing the Admin URL</h3>
<p>Although not an actual performance issue, you can improve security by changing the default URL from ‘admin’ to something more obscure, such as ’5i8FNvHg’. This will decrease the probability that a malicious user will hit upon your admin log-in page by guessing that the admin site is located at yourdomain.com/admin/, or that automated scripts scanning for Magento admin pages will find it.<br />
To change the admin address you first need to stop Apache and clear the cache:</p>
<div>
<div>
<pre>root# /etc/init.d/apache2 stop
root# rm -rf /var/www/var/cache/*
root# rm -rf /var/www/var/session/*</pre>
</div>
</div>
<p>Then open up the <code>/var/www/app/etc/local.xml</code> file, locate the &lt;frontName&gt; tag, and change the ‘admin’ part it to something a lot more random, eg:</p>
<div>
<div>
<pre>              &lt;frontName&gt;&lt;![CDATA[gJpf2VK5]]&gt;&lt;/frontName&gt;</pre>
</div>
</div>
<p>Then set Apache running again (bearing in mind your site will be down for the duration of this operation!):</p>
<div>
<div>
<pre>root# /etc/init.d/apache2 start</pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/optimising-magento-for-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Enable BIND &#8211; Mac OS X&#8217;s Built-in DNS Server</title>
		<link>http://www.newjokecity.com/how-to-enable-bind-mac-os-xs-built-in-dns-server/</link>
		<comments>http://www.newjokecity.com/how-to-enable-bind-mac-os-xs-built-in-dns-server/#comments</comments>
		<pubDate>Sun, 26 Dec 2010 13:44:11 +0000</pubDate>
		<dc:creator>bob</dc:creator>
				<category><![CDATA[MAC]]></category>
		<category><![CDATA[TechNews]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=148</guid>
		<description><![CDATA[Great article about enabling BIND on Mac OS X, it certainly helped me al lot! Read all about it here. Handy Commands As many things in *nix environments tend to be, managing your DNS server may seem just a bit more complicated than necessary. rndc is the DNS control utility, used to reload your DNS [...]]]></description>
			<content:encoded><![CDATA[<p>Great article about enabling BIND on Mac OS X, it certainly helped me al lot!</p>
<p><a title="Enable BIND, Mac OS X" href="http://www.macshadows.com/kb/index.php?title=How_To:_Enable_BIND_-_Mac_OS_X's_Built-in_DNS_Server" target="_blank">Read all about it here.</a></p>
<h3>Handy Commands</h3>
<p>As many things in *nix environments tend to be, managing your DNS server may seem just a bit more complicated than necessary.</p>
<ul>
<li><strong>rndc</strong> is the DNS control utility, used to reload your DNS configuration or restart your DNS server</li>
<li><strong>launchctl</strong> enables you to launch services such as DNS as a <a title="Daemon (page does not exist)" href="http://www.macshadows.com/kb/index.php?title=Daemon&amp;action=edit&amp;redlink=1">daemon</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/how-to-enable-bind-mac-os-xs-built-in-dns-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Remove tax from checkout cart</title>
		<link>http://www.newjokecity.com/magento-remove-tax-from-checkout-cart/</link>
		<comments>http://www.newjokecity.com/magento-remove-tax-from-checkout-cart/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 19:25:33 +0000</pubDate>
		<dc:creator>bob</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=133</guid>
		<description><![CDATA[If you don&#8217;t want to show TAX in the checkout cart, go to app/design/frontend/base/default/template/tax/checkout, and in tax.phtml find the lines: &#60;?php else: ?&#62; &#60;?php echo $this-&#62;getTotal()-&#62;getTitle() ?&#62; &#60;?php endif;?&#62; &#60;/td&#62; &#60;td style=&#8221;&#60;?php echo $_style ?&#62;&#8221; class=&#8221;a-right&#8221;&#62;&#60;?php echo $this-&#62;helper(&#8216;checkout&#8217;)-&#62;formatPrice($_value) ?&#62;&#60;/td&#62; and remove or comment like this: &#60;?php else: ?&#62; &#60;!&#8211; Remove tax from checkout cart &#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.newjokecity.com/wp-content/uploads/2010/10/magento-logo-125-355.jpg"><img class="alignleft size-full wp-image-111" src="http://www.newjokecity.com/wp-content/uploads/2010/10/magento-logo-125-355.jpg" alt="" width="124" height="41" /></a></p>
<p>If you don&#8217;t want to show TAX in the checkout cart, go to app/design/frontend/base/default/template/tax/checkout, and in tax.phtml find the lines:</p>
<div>
<div>&lt;?php else: ?&gt;</div>
<div>&lt;?php echo $this-&gt;getTotal()-&gt;getTitle() ?&gt;</div>
<div>&lt;?php endif;?&gt;</div>
<div>&lt;/td&gt;</div>
<div>&lt;td style=&#8221;&lt;?php echo $_style ?&gt;&#8221; class=&#8221;a-right&#8221;&gt;&lt;?php echo $this-&gt;helper(&#8216;checkout&#8217;)-&gt;formatPrice($_value) ?&gt;&lt;/td&gt;</div>
<div><strong>and remove or comment like this:</strong></div>
<div>
<div>&lt;?php else: ?&gt;</div>
<div>&lt;!&#8211; Remove tax from checkout cart</div>
<div>&lt;?php echo $this-&gt;getTotal()-&gt;getTitle() ?&gt; &#8211;&gt;</div>
<div>&lt;?php endif;?&gt;</div>
<div>&lt;/td&gt;</div>
<div>&lt;!&#8211; Remove tax from checkout cart</div>
<div>&lt;td style=&#8221;&lt;?php echo $_style ?&gt;&#8221; class=&#8221;a-right&#8221;&gt;&lt;?php echo $this-&gt;helper(&#8216;checkout&#8217;)-&gt;formatPrice($_value) ?&gt;&lt;/td&gt; &#8211;&gt;</div>
</div>
<div>Done.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/magento-remove-tax-from-checkout-cart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Show Available Quantities</title>
		<link>http://www.newjokecity.com/magento-show-available-quantities/</link>
		<comments>http://www.newjokecity.com/magento-show-available-quantities/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 13:10:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=131</guid>
		<description><![CDATA[Magento has the ability to globally manage inventory levels for your online store. A number of client’s business model was to sell inventory that they picked up from a distributor and therefore didn’t need to manage all items. They did have situations where they purchased items by the case and wanted to to show how [...]]]></description>
			<content:encoded><![CDATA[<p>Magento has the ability to globally manage inventory levels for your online store. A number of client’s business model was to sell inventory that they picked up from a distributor and therefore didn’t need to manage all items. They did have situations where they purchased items by the case and wanted to to show how many items are left back in stock.</p>
<p>To set and show how many items are left in stock, do the following:</p>
<p>Open app/design/frontend//default/template/catalog/product/view.html</p>
<p>Add the following code to the page where you want to render the available stock message.</p>
<pre><code>&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
	&lt;!--inv-qty--&gt;
	&lt;?php
	$__manStock = $_product-&gt;getStockItem()-&gt;getManageStock();
	$__invAmt = (int)Mage::getModel('cataloginventory/stock_item')-&gt;loadByProduct($_product)-&gt;getQty();
	if ($__manStock &gt; 0)
		{
		echo $this-&gt;__("Only $__invAmt Available in Stock");
		}
?&gt;
	&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;</code></pre>
<p>Make sure to set Magento to not manage inventory. On the individual product under the “Inventory” tab using the “Manage Stock” option, un-check “Use Config Settings” and set it to “Yes”. Remember to set the QTY to the amount you have in stock. Make sure to add to your CSS File the styling you want to for the inventory-qty class</p>
<p>Original post at http://www.studio1909.com/2009/10/18/magento-show-quantities/</p>
<p>It worked excellent for our site!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/magento-show-available-quantities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable the Compare products functionality?</title>
		<link>http://www.newjokecity.com/how-to-disable-the-compare-products-functionality/</link>
		<comments>http://www.newjokecity.com/how-to-disable-the-compare-products-functionality/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 12:19:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[compare]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[products]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=129</guid>
		<description><![CDATA[You can disable the Compare products functionality by following the steps listed below: 1. Edit app/code/core/Mage/Catalog/Helper/Product/Compare.php and change the following code: public function getAddUrl($product) { return $this-&#62;_getUrl(’catalog/product_compare/add’, $this-&#62;_getUrlParams($product)); } to: public function getAddUrl($product) { //return $this-&#62;_getUrl(’catalog/product_compare/add’, $this-&#62;_getUrlParams($product)); return false; } 2. Edit ./app/design/frontend/base/default/layout/catalog.xml (if you are using a different Magento theme, enter its name instead [...]]]></description>
			<content:encoded><![CDATA[<p>You can disable the Compare products functionality by following the steps listed below:</p>
<p>1. Edit app/code/core/Mage/Catalog/Helper/Product/Compare.php and change the following code:</p>
<p>public function getAddUrl($product)<br />
{<br />
return $this-&gt;_getUrl(’catalog/product_compare/add’, $this-&gt;_getUrlParams($product));<br />
}</p>
<p>to:</p>
<p>public function getAddUrl($product)<br />
{<br />
//return $this-&gt;_getUrl(’catalog/product_compare/add’, $this-&gt;_getUrlParams($product));<br />
return false;<br />
}</p>
<p>2. Edit ./app/design/frontend/base/default/layout/catalog.xml (if you are using a different Magento theme, enter its name instead of default) and change the following code:</p>
<p>&lt;block type=&#8221;catalog/product_compare_sidebar&#8221; before=&#8221;cart_sidebar&#8221; name=&#8221;catalog.compare.sidebar&#8221; template=&#8221;catalog/product/compare/sidebar.phtml&#8221;/&gt;</p>
<p>to:</p>
<p>&lt;!&#8211; &lt;block type=&#8221;catalog/product_compare_sidebar&#8221; before=&#8221;cart_sidebar&#8221; name=&#8221;catalog.compare.sidebar&#8221; template=&#8221;catalog/product/compare/sidebar.phtml&#8221;/&gt; &#8211;&gt;</p>
<p>3. Flush the Magento cache from your Magento admin area-&gt;System-&gt;Cache Management.</p>
<p>(http://kb.siteground.com/article/How_to_disable_the_Compare_products_functionality.html)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/how-to-disable-the-compare-products-functionality/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix blank page in JAWStats</title>
		<link>http://www.newjokecity.com/fix-blank-page-in-jawstats/</link>
		<comments>http://www.newjokecity.com/fix-blank-page-in-jawstats/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 19:36:46 +0000</pubDate>
		<dc:creator>bob</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[TechNews]]></category>
		<category><![CDATA[blank page]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[JAWStats]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=125</guid>
		<description><![CDATA[if you got a blank page or a loop, you could have a problem with a special character. let&#8217;s remove them! open clsAWStats.php find @ line ~195 htmlspecialchars(urldecode(trim($arrData[$iIndexItem][$iIndexAttr]))) and add remove_sc &#8230; like this remove_sc(htmlspecialchars(urldecode(trim($arrData[$iIndexItem][$iIndexAttr])))) now go to the end of the file an add this function (before the ?&#62; tag ) function remove_sc($data) { [...]]]></description>
			<content:encoded><![CDATA[<p>if you got a blank page or a loop, you could have a problem with a special character. let&#8217;s remove them!</p>
<p>open clsAWStats.php</p>
<p>find @ line ~195</p>
<p>htmlspecialchars(urldecode(trim($arrData[$iIndexItem][$iIndexAttr])))</p>
<p>and add remove_sc &#8230; like this</p>
<p>remove_sc(htmlspecialchars(urldecode(trim($arrData[$iIndexItem][$iIndexAttr]))))</p>
<p>now go to the end of the file an add this function (before the ?&gt; tag <img src='http://www.newjokecity.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>function remove_sc($data) {<br />
return preg_replace(&#8220;/[^a-zA-Z0-9\:\/.-_:;]/&#8221;,&#8221;,$data);<br />
}</p>
<p>Original post found at http://www.jawstats.com/community/thread119, thanks to the poster, this solutions worked perfect for me!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/fix-blank-page-in-jawstats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add ip to interface (linux)</title>
		<link>http://www.newjokecity.com/add-ip-to-interface-linux/</link>
		<comments>http://www.newjokecity.com/add-ip-to-interface-linux/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 08:49:01 +0000</pubDate>
		<dc:creator>bob</dc:creator>
				<category><![CDATA[TechNews]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=122</guid>
		<description><![CDATA[cd /etc/sysconfig/network-scripts cp ifcfg-eth0 ifcfg-eth0:0 vi ifcfg-eth0:0 DEVICE=eth0:0 &#60;&#8211; ONBOOT=yes BOOTPROTO=static IPADDR=xxx.xxx.xxx.xxx NETMASK=255.255.254.0 GATEWAY=xxx.xxx.xxx.xxx BROADCAST=xxx.xxx.xxx.255 restart network (/etc/init.d/network reload)]]></description>
			<content:encoded><![CDATA[<p>cd /etc/sysconfig/network-scripts<br />
cp ifcfg-eth0 ifcfg-eth0:0<br />
vi ifcfg-eth0:0</p>
<p>DEVICE=eth0:<span style="color: #ff0000"><strong>0</strong></span> <span style="color: #ff0000">&lt;&#8211;</span><br />
ONBOOT=yes<br />
BOOTPROTO=static<br />
IPADDR=xxx.xxx.xxx.xxx<br />
NETMASK=255.255.254.0<br />
GATEWAY=xxx.xxx.xxx.xxx<br />
BROADCAST=xxx.xxx.xxx.255</p>
<p>restart network (/etc/init.d/network reload)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/add-ip-to-interface-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Unordered/Ordered List Working Correctly</title>
		<link>http://www.newjokecity.com/getting-unorderedordered-list-working-correctly/</link>
		<comments>http://www.newjokecity.com/getting-unorderedordered-list-working-correctly/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 10:22:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=119</guid>
		<description><![CDATA[All explained here: http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/css/unordered_list_work_correctly]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.newjokecity.com/wp-content/uploads/2010/10/magento-logo-125-355.jpg"><img class="alignnone size-full wp-image-111" title="magento-logo" src="http://www.newjokecity.com/wp-content/uploads/2010/10/magento-logo-125-355.jpg" alt="" width="124" height="41" /></a></p>
<p>All explained here:</p>
<p><a href="http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/css/unordered_list_work_correctly" target="_blank">http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/css/unordered_list_work_correctly</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/getting-unorderedordered-list-working-correctly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create 301 redirect magento rewrite management</title>
		<link>http://www.newjokecity.com/create-301-redirect-magento-rewrite-management/</link>
		<comments>http://www.newjokecity.com/create-301-redirect-magento-rewrite-management/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 10:18:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[TechNews]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=115</guid>
		<description><![CDATA[From: http://yoursite.com/new.html To: http://yoursite.com/old.html Do the following in Magento to create the appropriate pemanent redirect: Navigate to Catalog &#62; Url Rewrite Management Click the “Add Urlrewrite” button Select “Custom” from the “Create Urlrewrite” drop-down menu The “Urlrewrite Information” form would be: ID Path: new.html Request Path: new.html Target Path: old.html Redirect: Permanent(301)]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.newjokecity.com/wp-content/uploads/2010/10/magento-logo-125-355.jpg"><img class="alignnone size-full wp-image-111" title="magento-logo" src="http://www.newjokecity.com/wp-content/uploads/2010/10/magento-logo-125-355.jpg" alt="" width="124" height="41" /></a></p>
<p>From: <code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">http://yoursite.com/new.html</span></code></p>
<p>To: <code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">http://yoursite.com/old.html</span></code></p>
<p>Do the following in Magento to create the appropriate pemanent redirect:</p>
<ol>
<li>Navigate to Catalog &gt; Url Rewrite Management</li>
<li>Click the “Add Urlrewrite” button</li>
<li>Select “Custom” from the “Create Urlrewrite” drop-down menu</li>
<li>The “Urlrewrite Information” form would be:</li>
</ol>
<p><strong>ID Path: new</strong><code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;"><strong>.html</strong></span></code></p>
<p><strong>Request Path: <code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">new.html</span></code></p>
<p></strong> <strong>Target Path: <code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">old.html</span></code></p>
<p></strong> <strong>Redirect: <code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">Permanent(301)</span></code></p>
<p></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/create-301-redirect-magento-rewrite-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento error: Exception printing is disabled by default for security reasons</title>
		<link>http://www.newjokecity.com/magento-error-exception-printing-is-disabled-by-default-for-security-reasons/</link>
		<comments>http://www.newjokecity.com/magento-error-exception-printing-is-disabled-by-default-for-security-reasons/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 05:26:38 +0000</pubDate>
		<dc:creator>bob</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[TechNews]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[request]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.newjokecity.com/?p=110</guid>
		<description><![CDATA[Magento Error There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 793079871864 Solution If you get the above error in Magento, try the following solution: 1) In your File Manager (or FTP client), or if you are like me on the commandline, go [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.newjokecity.com/wp-content/uploads/2010/10/magento-logo-125-355.jpg"><img class="alignnone size-full wp-image-111" title="magento-logo" src="http://www.newjokecity.com/wp-content/uploads/2010/10/magento-logo-125-355.jpg" alt="" width="124" height="41" /></a></p>
<p><span style="color: #ff0000;"><strong>Magento Error</strong></span><br />
There has been an error processing your request<br />
Exception printing is disabled by default for security reasons.<br />
Error log record number: 793079871864</p>
<p><span style="color: #00ff00;"><strong>Solution</strong></span><br />
If you get the above error in Magento, try the following solution:<br />
1) In your File Manager (or FTP client), or if you are like me on the commandline, go to your Magento folder. (/var/www/errors)<br />
2) Rename file &#8220;errors/local.xml.sample&#8221; to &#8220;errors/local.xml&#8221;.</p>
<p>Now, you will see the detailed error while accessing Magento (instead of the above default error).</p>
<p>It is recommended to rename again to local.xml.sample, when you&#8217;re done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newjokecity.com/magento-error-exception-printing-is-disabled-by-default-for-security-reasons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.newjokecity.com @ 2012-02-06 05:50:16 -->
