<?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>XPC Design &#187; Programming</title>
	<atom:link href="http://www.xpcdesign.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xpcdesign.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 02:55:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Reducing the Size of Your Magento Install</title>
		<link>http://www.xpcdesign.com/2010/04/reducing-the-size-of-your-magento-install/</link>
		<comments>http://www.xpcdesign.com/2010/04/reducing-the-size-of-your-magento-install/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 22:55:32 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[magento]]></category>
		<guid isPermaLink="false">http://www.xpcdesign.com/?p=425</guid>
		<description><![CDATA[Quoting a Magento Professional Partner nicknamed &#8220;Crucial&#8221;: Yes, it’s safe to delete that data. I always clear it out after an upgrade: rm -rf downloader/pearlib/cache/* ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.magentocommerce.com/boards/viewthread/28177/#t93080">Quoting</a> a Magento Professional Partner nicknamed &#8220;Crucial&#8221;:</p>
<blockquote><p>Yes, it’s safe to delete that data. I always clear it out after an  upgrade:</p>
<p><strong>rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*</strong></p></blockquote>
<p>Basically when you are upgrading and installing, your downloader folder will become very large, and you are safe to clean out the two following folders:</p>
<ul>
<li>/downloader/pearlib/cache</li>
<li>/downloader/pearlib/download</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2010/04/reducing-the-size-of-your-magento-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install mod_security 2 on CentOS/RedHat</title>
		<link>http://www.xpcdesign.com/2009/08/install-mod_security-2-on-centosredhat/</link>
		<comments>http://www.xpcdesign.com/2009/08/install-mod_security-2-on-centosredhat/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 23:32:49 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[web hosting]]></category>
		<guid isPermaLink="false">http://www.xpcdesign.com/?p=311</guid>
		<description><![CDATA[This is a translation from Spanish to English, but still the best guide I&#8217;ve used so far. Modified slightly to help others but could use ]]></description>
			<content:encoded><![CDATA[<p>This is a translation from Spanish to English, but still the best guide I&#8217;ve used so far. Modified slightly to help others but could use more work.</p>
<p><span style="color: red;">Important:</span> ModSecurity blocks lots of UNIX commands. I had to add dots to them. They are colored red so you know to change them.</p>
<blockquote><p>This article assumes that you have installed a RedHat Enterprise or CentOS and not guaranteed to work, although we have tested on several CentOS 4.5 with success.<span id="more-311"></span></p>
<p>The first thing is make sure we have installed the <em>libxml2</em> library, for it only have to do a search on our system, if installed normally. <strong>(XPC Note: Try &#8220;yum install libxml2-devel&#8221;)</strong></p>
<p>You can check if it is installed with the command:</p>
<p>rpm -q libxml2</p>
<p>To compile <strong>ModSecurity</strong> install and need some additional packages, then you can uninstall it because it is not necessary.</p>
<p>The packages needed are:</p>
<p><em>httpd-devel</em> <em>httpd-devel</em> <em></em></p>
<p><em></em> <em>apr-devel</em> <em>apr-devel</em> <em></em></p>
<p><em></em> <em>apr-util-devel</em> <em>apr-util-devel</em> <em></em></p>
<p><em></em> <em>pcre-devel</em> <em>pcre-devel</em></p>
<p>In case you miss some package for CentOS can install as follows:</p>
<p>yum install libxml2</p>
<p>yum install httpd-devel</p>
<p>Now go on the mod_security, for this visit the <a href="http://www.modsecurity.org/">official website ModSecurity</a> to download the latest version. The example shows the version available today, we have to unzip, I recommend downloading everything in <em>/ usr / local / share /,</em> for example:</p>
<p><span style="color: red;">C.D</span> /usr/local/share/</p>
<p><span style="color: red;">W.G.E.T</span> http://www.modsecurity.org/download/modsecurity-apache_2.1.3.tar.gz</p>
<p>tar zxf modsecurity-apache_2.1.3.tar.gz</p>
<p>Now we have once unzipped edit the <em>Makefile</em> in the directory will be apache2 file just unzip.</p></blockquote>
<p><strong>(XPC Note: After unzipping go to /apache2 and follow the instructions &#8220;<a href="http://www.modsecurity.org/documentation/modsecurity-apache/2.5.9/html-multipage/installation.html">Run the configure script to generate a Makefile.</a>&#8221; on the ModSecurity documentation.</strong></p>
<blockquote><p>In this file we must change the line to tell where we have indicated the Apache installed with the development package <em>(httpd-devel)</em> installed before.</p>
<p>top_dir = /usr/lib/httpd</p>
<p>We are now ready to compile and install ModSecurity with the following commands</p>
<p>make</p>
<p>service httpd stop</p>
<p>make install</p>
<p>now in the Apache configuration in <em>/ etc / httpd / conf / editing httpd.conf</em> with your favorite editor, I would do this:</p>
<p>joe /etc/httpd/conf/httpd.conf</p>
<p>and look for the module loading area, looking for <em>&#8220;LoadModule&#8221;</em> (Control + K + F <em>joe).</em></p>
<p>At the beginning of this section adds:</p>
<p>LoadFile /usr/lib/libxml2.so</p>
<p>And then at the end of this section of apache module loading added:</p>
<p>LoadModule security2_module modules/mod_security2.so</p>
<p>Include conf/modsecurity/*.conf</p>
<p>and immediately made this policy must be updated by doing the following configuration:</p>
<p><span style="color: red;">M.K.D.I.R</span> /etc/httpd/conf/modsecurity;<span style="color: red;">C.D</span> /etc/httpd/conf/modsecurity</p>
<p><span style="color: red;">W.G.E.T</span> http://www.modsecurity.org/download/modsecurity-core-rules_2.1-1.4.3.tar.gz</p>
<p>tar zxf modsecurity-core-rules_2.1-1.4.3.tar.gz</p>
<p>rm -f modsecurity-core-rules_2.1-1.4.3.tar.gz</p>
<p>And now you have the default policies, remember  that you can adapt them by editing the configuration files you  installed for ModSecurity.</p>
<p>Do not forget to restart apache with:</p>
<p>service httpd restart</p>
<p>and of course remove the package that may no longer need to:</p>
<p>rpm -e httpd-devel</p>
<p>rpm -e apr-util-devel</p>
<p>rpm -e apr-devel</p>
<p>rpm -e pcre-devel</p>
<p>Congratulations, now you have <em><strong>mod_security</strong></em> installed on your Apache2 server with CentOS and Plesk panel.</p>
<p><strong>VERY IMPORTANT:</strong> If you do not know please delegate this task to your provider or system administrator preferred.</p></blockquote>
<p>Source: <a href="http://carrero.es/instalar-modsecurity-2-en-plesk/1374">carrero.es</a> (Translated from Spanish to English with Google)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2009/08/install-mod_security-2-on-centosredhat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Edit the Magento Invoice PDF Templates</title>
		<link>http://www.xpcdesign.com/2008/12/edit-the-magento-invoice-pdf-templates/</link>
		<comments>http://www.xpcdesign.com/2008/12/edit-the-magento-invoice-pdf-templates/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 18:23:29 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[magento]]></category>
		<guid isPermaLink="false">http://www.xpcdesign.com/?p=237</guid>
		<description><![CDATA[Code Location /app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php /app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php Changing the font size Change the font size in the two files: /app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php (line 487-507) /app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php (line 255-274) Change the invoice ]]></description>
			<content:encoded><![CDATA[<p><strong>Code Location</strong></p>
<ul>
<li>/app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php</li>
<li>/app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php</li>
</ul>
<p><strong>Changing the font size</strong></p>
<p>Change the font size in the two files:</p>
<ul>
<li>/app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php  (line 487-507)</li>
<li>/app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php (line 255-274)</li>
</ul>
<p><strong>Change the invoice logo</strong></p>
<ul>
<li>Admin -&gt; Configuration -&gt; Sales -&gt; Invoice and Packing Slip Design</li>
</ul>
<p><strong>More info</strong></p>
<ul>
<li>Changing the invoice size from A4 to letter</li>
<li>Changing the font from Libertine to Helvetica</li>
<li>Read up <a href="http://www.magentocommerce.com/wiki/how-to/editing_an_invoice_pdf">here</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/12/edit-the-magento-invoice-pdf-templates/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Remove the Store View from the Magento Meta Title Tag</title>
		<link>http://www.xpcdesign.com/2008/11/remove-the-store-view-from-the-magento-meta-title-tag/</link>
		<comments>http://www.xpcdesign.com/2008/11/remove-the-store-view-from-the-magento-meta-title-tag/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 23:20:45 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[seo]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=183</guid>
		<description><![CDATA[Having problems with the word &#8221; &#8211; English&#8221; showing up on all your meta titles? Here&#8217;s the solution: Open the following file: /app/design/frontend/your_interface/your_theme/template/page/html/head.phtml Change: &#60;title&#62;&#60;?php ]]></description>
			<content:encoded><![CDATA[<p>Having problems with the word &#8221; &#8211; English&#8221; showing up on all your meta titles? Here&#8217;s the solution:<span id="more-183"></span></p>
<p>Open the following file:</p>
<p><strong>/app/design/frontend/your_interface/your_theme/template/page/html/head.phtml</strong></p>
<p>Change:</p>
<div class="codesnip-container" >&lt;title&gt;&lt;?php echo $this-&gt;getTitle() ?&gt;&lt;/title&gt;</div>
<p>To:<strong></strong></p>
<div class="codesnip-container" >&lt;title&gt;&lt;?php echo str_replace(&#8221; &#8211; English &#8220;, &#8220;&#8221;, $this-&gt;getTitle()) ?&gt;&lt;/title&gt;</div>
<p>Don&#8217;t forget to change &#8220;English&#8221; to the name of your store view, if you&#8217;ve changed it!</p>
<p>Also watch out, my blog turns quotes into typographers quotes (slanted &#8221; symbols). You might need replace them.</p>
<p>All credit goes to <a href="http://www.magentocommerce.com/boards/member/20898/">mischah</a> on the Magento forums.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/11/remove-the-store-view-from-the-magento-meta-title-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>osCommerce Error: Unable to determine the page link</title>
		<link>http://www.xpcdesign.com/2008/10/oscommerce-error-unable-to-determine-the-page-link/</link>
		<comments>http://www.xpcdesign.com/2008/10/oscommerce-error-unable-to-determine-the-page-link/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 01:12:21 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technical Issues]]></category>
		<category><![CDATA[oscommerce]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=137</guid>
		<description><![CDATA[This is a simple PHP4 -&#62; PHP5 error. Make sure the following is in your .htaccess file. php_flag register_globals On php_value register_long_arrays On]]></description>
			<content:encoded><![CDATA[<p>This is a simple PHP4 -&gt; PHP5 error. Make sure the following is in your .htaccess file.</p>
<div class="codesnip-container" >php_flag register_globals On<br />
php_value register_long_arrays On</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/10/oscommerce-error-unable-to-determine-the-page-link/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Work on sites before the DNS has rolled over (by editing the hosts file)</title>
		<link>http://www.xpcdesign.com/2008/09/work-on-sites-before-the-dns-has-rolled-over-by-editing-the-hosts-file/</link>
		<comments>http://www.xpcdesign.com/2008/09/work-on-sites-before-the-dns-has-rolled-over-by-editing-the-hosts-file/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 21:48:04 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[rollover]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=126</guid>
		<description><![CDATA[Important: This does not work if you are behind a proxy, which includes antivirus firewalls and such. Right click on the hosts file in C:\Windows\System32\drivers\etc ]]></description>
			<content:encoded><![CDATA[<p><strong>Important: This does not work if you are behind a proxy, which includes antivirus firewalls and such.</strong></p>
<ul>
<li>Right click on the <strong>hosts</strong> file in <strong>C:\Windows\System32\drivers\etc</strong></li>
<li>Go to properties, turn off &#8220;<strong>read-only</strong>&#8220;</li>
<li>Open the file using Notepad or any text editor</li>
<li>Add a line to the bottom of the file with the IP and domain</li>
<li>When you are done, don&#8217;t forget to turn read-only back on again</li>
</ul>
<p>Ex.</p>
<div class="codesnip-container" >200.200.200.200  thedomain.com</div>
<p>Use the IP of the new server and then the domain you want that IP to resolve to.</p>
<p>Now you can browse to that domain and it will resolve to the new IP even though the DNS hasn&#8217;t been updated yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/09/work-on-sites-before-the-dns-has-rolled-over-by-editing-the-hosts-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display code in the browser</title>
		<link>http://www.xpcdesign.com/2008/09/display-code-in-the-browser/</link>
		<comments>http://www.xpcdesign.com/2008/09/display-code-in-the-browser/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 20:26:28 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[html]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=116</guid>
		<description><![CDATA[Use &#38;lt; instead of &#8220;&#60;&#8221; and &#38;gt; instead of &#8220;&#62;&#8221;. Or if you&#8217;re pasting code into a WYSIWYG editor, just paste into the design view ]]></description>
			<content:encoded><![CDATA[<p>Use &amp;lt; instead of &#8220;&lt;&#8221; and &amp;gt; instead of &#8220;&gt;&#8221;.</p>
<p>Or if you&#8217;re pasting code into a WYSIWYG editor, just paste into the design view and not the source view. It should automatically convert the characters for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/09/display-code-in-the-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Estimate Shipping and Tax box from Magento checkout</title>
		<link>http://www.xpcdesign.com/2008/09/remove-estimate-shipping-and-tax-box-from-magento-checkout/</link>
		<comments>http://www.xpcdesign.com/2008/09/remove-estimate-shipping-and-tax-box-from-magento-checkout/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 20:21:32 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[magento]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=109</guid>
		<description><![CDATA[Open the file /app/design/frontend/default/default/layout/checkout.xml Remember if you are using a different theme the path to that file will be slightly different. Remove this line: &#60;block ]]></description>
			<content:encoded><![CDATA[<p>Open the file /app/design/frontend/default/default/layout/checkout.xml</p>
<p>Remember if you are using a different theme the path to that file will be slightly different.</p>
<p>Remove this line:</p>
<div class="codesnip-container" >&lt;block type=&#8221;checkout/cart_shipping&#8221; name=&#8221;checkout.cart.shipping&#8221; as=&#8221;shipping&#8221; template=&#8221;checkout/cart/shipping.phtml&#8221;/&gt;</div>
<p><a href="http://www.magentocommerce.com/boards/viewthread/14745/">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/09/remove-estimate-shipping-and-tax-box-from-magento-checkout/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Canada Post module for Magento now available</title>
		<link>http://www.xpcdesign.com/2008/09/canada-post-module-for-magento-now-available/</link>
		<comments>http://www.xpcdesign.com/2008/09/canada-post-module-for-magento-now-available/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 08:10:06 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[magento]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=105</guid>
		<description><![CDATA[After this module is installed you can request quotes from the Canada Post Sell Online system. Feature list Storage of sellonline information Easy setup process ]]></description>
			<content:encoded><![CDATA[<p>After this module is installed you can request quotes from the Canada Post Sell Online system.</p>
<p><span style="text-decoration: underline;">Feature list</span></p>
<ul>
<li>Storage of sellonline information</li>
<li>Easy setup process</li>
<li>Easy configuration / setup process</li>
<li>Add ability to view number of boxes to ship and contents of each box</li>
<li>Orders from backend may use &#8220;Free&#8221; shipping method</li>
</ul>
<p>Get it <a href="http://www.magentocommerce.com/extension/525/canada-post-shipping">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/09/canada-post-module-for-magento-now-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Make your WordPress site faster (easily)</title>
		<link>http://www.xpcdesign.com/2008/09/make-your-wordpress-site-faster/</link>
		<comments>http://www.xpcdesign.com/2008/09/make-your-wordpress-site-faster/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 07:27:39 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=101</guid>
		<description><![CDATA[What: There&#8217;s a feature called &#8220;gzip&#8221; that&#8217;s installed by default on most web servers. Modifying your site to make use of it can really speed ]]></description>
			<content:encoded><![CDATA[<p><strong>What:</strong><br />
There&#8217;s a feature called &#8220;gzip&#8221; that&#8217;s installed by default on most web servers. Modifying your site to make use of it can really speed up the performance.</p>
<p><strong>How much faster?</strong><br />
Try the quick and easy <a href="http://www.whatsmyip.org/mod_gzip_test/">mod_gzip tester</a> by <a href="http://www.whatsmyip.org">WhatsMyIP.org</a>. Just enter the URL and it will tell you how much faster it would be.</p>
<p><strong>How to enable it in WordPress:</strong><br />
It&#8217;s easy! Just grab the plugin called <a href="http://wordpress.org/extend/plugins/gzippy/">Gzippy</a> and install it. Run the gzip tester again to see it in action.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/09/make-your-wordpress-site-faster/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/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 25/41 queries in 0.015 seconds using disk: basic

Served from: www.xpcdesign.com @ 2012-02-05 00:44:21 -->
