<?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; Tricks</title>
	<atom:link href="http://www.xpcdesign.com/category/other/tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xpcdesign.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Jul 2010 19:13:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Slow Windows Load Time</title>
		<link>http://www.xpcdesign.com/2008/10/slow-windows-load-time/</link>
		<comments>http://www.xpcdesign.com/2008/10/slow-windows-load-time/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 17:03:07 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Technical Issues]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[xp]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=162</guid>
		<description><![CDATA[I&#8217;m trying to solve a problem where my computer at work takes forever to become usable after logging onto windows. Edit: For lazy people, the end result was mapped drives were slowing boot time significantly. The following tweaks helped only with the delay between logging in and seeing the taskbar. First thing I tried was [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to solve a problem where my computer at work takes forever to become usable after logging onto windows.</p>
<p>Edit: <em>For lazy people, the end result was mapped drives were slowing boot time significantly. The following tweaks helped only with the delay between logging in and seeing the taskbar.</em></p>
<p>First thing I tried was various <a href="http://www.tweakxp.com/performance_tweaks.aspx">performance tweaks</a> from <a href="http://www.tweakxp.com">TweakXP</a>.</p>
<p><span id="more-162"></span></p>
<p>What I&#8217;ve applied so far:</p>
<ul>
<li><a href="http://www.tweakxp.com/article36992.aspx">Correcting System Hang at  Startup</a></li>
<li><a href="http://www.tweakxp.com/article37022.aspx">Speed up boot by disabling unused ports</a></li>
<li><a href="http://www.tweakxp.com/article36994.aspx">Very Slow boot when networking</a></li>
</ul>
<p>Related to the issue but wasn&#8217;t possible for me to use:</p>
<ul>
<li><a href="http://www.tweakxp.com/article37026.aspx">Speed-up log-in tremendously!</a> (The field he said to remove was already cleared for me)</li>
</ul>
<p>What I&#8217;ve done on my own that <strong>didn&#8217;t</strong> solve the issue:</p>
<ul>
<li>Defrag</li>
<li>Registry Repair</li>
<li>Registry Defrag</li>
<li>Disabling unneeded startup apps with msconfig</li>
</ul>
<p>End result:</p>
<p>I no longer have to wait so long staring at the wallpaper before windows starts to load. However I judge performance on how soon it takes to open firefox as soon as I can click on it, and it still seems pretty slow. I definately sped up the login process, but the opening firefox part is slower than it should be still. I have a feeling it has to do with my ATI drivers or something. I will try the bootvis tool that I heard about to see if that tells me what&#8217;s slowing things down.</p>
<p>Update:</p>
<p>Upon further investigation I noticed that mup.sys was using up the most boot time. I researched it and determine it&#8217;s related to mapped drives. There is one share that I have mapped to my PC and it connects to a computer that is always offline in the mornings when I turn on my computer. Bootvis has referenced that share specifically and told me that it was slowing the boot time down.</p>
<p>Also it said the Acrotray (Acrobat Speed Launcher I believe) took a chunk of time away from startup as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/10/slow-windows-load-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful hMailServer Tips &amp; Tricks</title>
		<link>http://www.xpcdesign.com/2008/10/useful-hmailserver-tips-tricks/</link>
		<comments>http://www.xpcdesign.com/2008/10/useful-hmailserver-tips-tricks/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 17:35:57 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Technical Issues]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[mail]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=153</guid>
		<description><![CDATA[Tricks Using TrendMicro Security Server Speedup downloading large attachments in Thunderbird Use hMailServer to share email across a home network Spam Installing ASSP with hMailServer Use ASSP with hMailServer Add ASSP multiple report buttons in Microsoft Outlook Dealing with Problems Very large mailbox crashes hmailserver]]></description>
			<content:encoded><![CDATA[<p>Tricks</p>
<ul>
<li><a class="topictitle" title="Posted: 2008-07-24 11:29" href="http://www.hmailserver.com/forum/viewtopic.php?f=12&amp;t=12700">Using TrendMicro Security Server</a></li>
<li><a class="topictitle" title="Posted: 2005-08-02 20:41" href="http://www.hmailserver.com/forum/viewtopic.php?f=12&amp;t=2331">Speedup downloading large attachments in Thunderbird</a></li>
<li><a class="topictitle" title="Posted: 2007-01-13 12:03" href="http://www.hmailserver.com/forum/viewtopic.php?f=12&amp;t=7335">Use hMailServer to share email across a home network</a></li>
</ul>
<p>Spam</p>
<ul>
<li><a class="topictitle" title="Posted: 2007-09-30 07:06" href="http://www.hmailserver.com/forum/viewtopic.php?f=12&amp;t=10607">Installing ASSP with hMailServer</a></li>
<li><a class="topictitle" title="Posted: 2005-05-25 03:06" href="http://www.hmailserver.com/forum/viewtopic.php?f=12&amp;t=1881">Use ASSP with hMailServer</a></li>
<li><a class="topictitle" title="Posted: 2006-02-16 12:46" href="http://www.hmailserver.com/forum/viewtopic.php?f=12&amp;t=3812">Add ASSP multiple report buttons in Microsoft Outlook</a></li>
</ul>
<p>Dealing with Problems</p>
<ul>
<li><a href="http://www.hmailserver.com/forum/viewtopic.php?f=7&amp;t=12170&amp;p=66760&amp;hilit=large+folder#p66760">Very <span class="posthilit">large</span> mailbox crashes hmailserver</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/10/useful-hmailserver-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</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 Go to properties, turn off &#8220;read-only&#8220; Open the file using Notepad or any text editor Add a line to the bottom of the file with the IP and domain When [...]]]></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>Speed up Magento by ~235%</title>
		<link>http://www.xpcdesign.com/2008/09/speed-up-magento-by-235/</link>
		<comments>http://www.xpcdesign.com/2008/09/speed-up-magento-by-235/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 19:10:50 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[performance]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=92</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 up the performance. How much faster? Try the quick and easy mod_gzip tester by WhatsMyIP.org. Just enter the URL and it will tell you how much faster it would be. How [...]]]></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 for Magento</strong></p>
<blockquote><p>One of the drawbacks of Magento is currently its speed if default configuration is used. There are certain ways of making it run faster. The best one is to enable GZip compression by changing .htaccess file a little. You just need to uncomment part of the code. In my case, the speed increase was exactly <strong>235%</strong>.<span id="more-92"></span></p>
<p>Find the following lines in your Magento .htaccess file and replace them with the following code.</p>
<p><em>(You just have to uncomment the lines so it looks like the following)</em></p>
<div class="codesnip-container" >############################################<br />
## enable apache served files compression<br />
## http://developer.yahoo.com/performance/rules.html#gzip</p>
<p># Insert filter<br />
SetOutputFilter DEFLATE</p>
<p># Netscape 4.x has some problems…<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html</p>
<p># Netscape 4.06-4.08 have some more problems<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip</p>
<p># MSIE masquerades as Netscape, but it is fine<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br />
# Don’t compress images<br />
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary</p>
<p># Make sure proxies don’t deliver the wrong content<br />
Header append Vary User-Agent env=!dont-vary</p></div>
</blockquote>
<p>Source: <a href="http://inchoo.net/ecommerce/magento/boost-the-speed-of-your-magento/">inchoo.net</a></p>
<p><strong>UPDATE: You need to uncomment the following as well:</strong></p>
<div class="codesnip-container" >############################################<br />
## enable resulting html compression</p>
<p>php_flag zlib.output_compression on</p></div>
<p>Thanks to <a href="http://www.atomsplash.com/">Reno</a> for pointing this out! It made a huge difference for me!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/09/speed-up-magento-by-235/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Replacing your main hard drive is actually really easy</title>
		<link>http://www.xpcdesign.com/2008/02/replacing-your-main-hard-drive-is-actually-really-easy/</link>
		<comments>http://www.xpcdesign.com/2008/02/replacing-your-main-hard-drive-is-actually-really-easy/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 00:08:08 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[hard drives]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=50</guid>
		<description><![CDATA[I recently had to swap out a hard drive on a perfectly good computer here at work. I needed to do this quickly, so I found out about Acronis True Image. This program lets you make a bootable disc that lets you clone one hard drive to another (so you can then remove the old [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to swap out a hard drive on a perfectly good computer here at work. I needed to do this quickly, so I found out about Acronis True Image. This program lets you make a bootable disc that lets you clone one hard drive to another (so you can then remove the old and leave the new in), or you can backup in windows and then restore via boot cd.</p>
<p>The boot cd restore process is quite nice. You can even browse your network to find the backup files on another computer! So if you were thinking of upgrading your Windows (or whatever) drive with a Raptor or something, this would make it extremely painless.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/02/replacing-your-main-hard-drive-is-actually-really-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Windows Explorer Tweak</title>
		<link>http://www.xpcdesign.com/2008/02/easy-windows-explorer-tweak/</link>
		<comments>http://www.xpcdesign.com/2008/02/easy-windows-explorer-tweak/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 01:27:22 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[windows explorer]]></category>
		<category><![CDATA[xp]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=49</guid>
		<description><![CDATA[You can make Windows Explorer start in whatever folder or drive you want! I always found it really annoying how it would start in &#8220;My Documents&#8221;, which after a while has so many subfolders in it that you have to scroll and find My Computer, and the drive you want to get to, etc. This [...]]]></description>
			<content:encoded><![CDATA[<p>You can make Windows Explorer start in whatever folder or drive you want! I always found it really annoying how it would start in &#8220;My Documents&#8221;, which after a while has so many subfolders in it that you have to scroll and find My Computer, and the drive you want to get to, etc.</p>
<p>This is EASY.</p>
<ol>
<li>Right click on the shortcut you use for Windows Explorer and go to properties.</li>
<li>In the &#8220;Target path:&#8221; field on the &#8220;Shortcut&#8221; tab, add the following to the end of whatever is there: /e,c:\</li>
</ol>
<p>Your end result should look something like this:</p>
<div class="codesnip-container" >%SystemRoot%\explorer.exe /e,c:\</div>
<p>Note: Change the c:\ to whatever path you want Windows Explorer to start at.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/02/easy-windows-explorer-tweak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup solution with WinRAR and a batch file</title>
		<link>http://www.xpcdesign.com/2008/01/backup-solution-with-winrar-and-a-batch-file/</link>
		<comments>http://www.xpcdesign.com/2008/01/backup-solution-with-winrar-and-a-batch-file/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 00:10:04 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[winrar]]></category>
		<guid isPermaLink="false">http://www.cougardesign.ca/?p=42</guid>
		<description><![CDATA[I wanted to make the perfect manual backup solution in a batch file, so here&#8217;s the code. Just make a file called backup.bat and paste this text into it. You might have to change a few of the file paths and stuff though. What it does: - Offers to make an exact copy of what [...]]]></description>
			<content:encoded><![CDATA[<p> I wanted to make the perfect manual backup solution in a batch file, so here&#8217;s the code. Just make a file called backup.bat and paste this text into it. You might have to change a few of the file paths and stuff though.</p>
<p>What it does:<br />
- Offers to make an exact copy of what files exist now, or lets you continue and add new files that aren&#8217;t in the backup archive yet (assuming it&#8217;s you&#8217;ve ran it before)<br />
- Lets you pick a file name once at the top rather than having to type it in multiple places.<br />
- Uses a password protected archive.<br />
- Will make another copy the backup file to another location by default for added safety.</p>
<p>Note: I think I had to make a %path% variable (or whatever those are called) to the WinRAR folder, and I don&#8217;t exactly remember what I did. It was really easy though.</p>
<div class="codesnip-container" >@ECHO off<br />
SET varFileName=EnterFilenameHere</p>
<p>cls<br />
:start<br />
ECHO *********************************************************<br />
ECHO *         Start a fresh backup? Press Y or N.           *<br />
ECHO *                                                       *<br />
ECHO *      You should do this every once and a while,       *<br />
ECHO *                but not all the time.                  *<br />
ECHO *********************************************************<br />
ECHO.<br />
set choice=<br />
set /p choice=Choice:<br />
if not &#8216;%choice%&#8217;==&#8221; set choice=%choice:~0,1%<br />
if &#8216;%choice%&#8217;==&#8217;y&#8217; goto yes<br />
if &#8216;%choice%&#8217;==&#8217;n&#8217; goto no<br />
ECHO &#8220;%choice%&#8221; is not valid please try again<br />
ECHO.<br />
goto start</p>
<p>:yes<br />
ECHO ******************** Fresh Backup ***********************<br />
ECHO.<br />
DEL D:\Backup\&#8221;%varFileName%&#8221;.rar<br />
goto end</p>
<p>:no<br />
ECHO *********************** Update **************************<br />
goto end</p>
<p>:end<br />
ECHO.<br />
ECHO                Cougar Design Backup Wizard<br />
ECHO.<br />
ECHO *********************************************************<br />
ECHO *                                                       *<br />
ECHO *        Choose your password for the archive.          *<br />
ECHO *                                                       *<br />
ECHO *********************************************************<br />
ECHO.<br />
rar a -u -r -rr10 -rv20 -s -hp -m1 D:\Backup\&#8221;%varFileName%&#8221;.rar @C:\Backup\&#8221;%varFileName%&#8221;.lst<br />
ECHO.<br />
ECHO *********************************************************<br />
ECHO *              Time to make a 2nd backup!               *<br />
ECHO *********************************************************<br />
ECHO.<br />
xcopy D:\Backup\&#8221;%varFileName%&#8221;.rar E:\Backup\&#8221;%varFileName%&#8221;.rar /y /i<br />
ECHO.<br />
ECHO *********************************************************<br />
ECHO *                       Complete!                       *<br />
ECHO *        This will close when you press any key.        *<br />
ECHO *********************************************************<br />
ECHO.<br />
PAUSE</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2008/01/backup-solution-with-winrar-and-a-batch-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shorter nested IF statements in Excel</title>
		<link>http://www.xpcdesign.com/2007/11/shorter-nested-if-statements-in-excel/</link>
		<comments>http://www.xpcdesign.com/2007/11/shorter-nested-if-statements-in-excel/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 20:31:37 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[excel]]></category>
		<guid isPermaLink="false">http://blog.cougardesign.ca/?p=6</guid>
		<description><![CDATA[This code checks to see if A1 equals the letters K, H or L. Instead of using: =IF(A1=&#34;K&#34;,TRUE,IF(A1=&#34;H&#34;,TRUE,IF(A1=&#34;L&#34;,TRUE,FALSE))) You can use: =IF(OR(A1=&#34;K&#34;,A1=&#34;H&#34;,A1=&#34;L&#34;),TRUE,FALSE) As you can see, it&#8217;s a lot shorter and makes a lot more sense. Especially if you need to add more to it in the future.]]></description>
			<content:encoded><![CDATA[<p>This code checks to see if A1 equals the letters K, H or L.</p>
<p>Instead of using:</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;">=IF(A1=&quot;K&quot;,TRUE,IF(A1=&quot;H&quot;,TRUE,IF(A1=&quot;L&quot;,TRUE,FALSE)))</div>
</div>
<p>You can use:</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;">=IF(OR(A1=&quot;K&quot;,A1=&quot;H&quot;,A1=&quot;L&quot;),TRUE,FALSE)</div>
</div>
<p>As you can see, it&#8217;s a lot shorter and makes a lot more sense. Especially if you need to add more to it in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2007/11/shorter-nested-if-statements-in-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy stylesheets with basic PHP</title>
		<link>http://www.xpcdesign.com/2007/11/easy-stylesheets-with-basic-php/</link>
		<comments>http://www.xpcdesign.com/2007/11/easy-stylesheets-with-basic-php/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 18:58:48 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://blog.cougardesign.ca/?p=5</guid>
		<description><![CDATA[Create a file called stylesheet.php and link to it in you&#8217;re page. Then play with this code: &#60;?php header&#40;&#8216;Content-type: text/css&#8217;&#41;; // Colour scheme $primary &#160; &#160;= &#34;#44749d&#34;; $secondary &#160;= &#34;#c6d4e1&#34;; $tertiary &#160; = &#34;#ffffff&#34;; $quaternary = &#34;#ebe7e0&#34;; $quinary &#160; &#160;= &#34;#bdb8ad&#34;; ?&#62; BODY { background: &#60;?php echo $tertiary ?&#62;; color: #000000; margin: 0px; }]]></description>
			<content:encoded><![CDATA[<p>Create a file called stylesheet.php and link to it in you&#8217;re page. Then play with this code:</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="kw2">&lt;?php</span><br />
<a href="http://www.php.net/header"><span class="kw3">header</span></a><span class="br0">&#40;</span><span class="st_h">&#8216;Content-type: text/css&#8217;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p><span class="co1">// Colour scheme</span><br />
<span class="re0">$primary</span> &nbsp; &nbsp;<span class="sy0">=</span> <span class="st0">&quot;#44749d&quot;</span><span class="sy0">;</span><br />
<span class="re0">$secondary</span> &nbsp;<span class="sy0">=</span> <span class="st0">&quot;#c6d4e1&quot;</span><span class="sy0">;</span><br />
<span class="re0">$tertiary</span> &nbsp; <span class="sy0">=</span> <span class="st0">&quot;#ffffff&quot;</span><span class="sy0">;</span><br />
<span class="re0">$quaternary</span> <span class="sy0">=</span> <span class="st0">&quot;#ebe7e0&quot;</span><span class="sy0">;</span><br />
<span class="re0">$quinary</span> &nbsp; &nbsp;<span class="sy0">=</span> <span class="st0">&quot;#bdb8ad&quot;</span><span class="sy0">;</span><br />
<span class="sy1">?&gt;</span></p>
<p>BODY {<br />
background: <span class="kw2">&lt;?php</span> <span class="kw1">echo</span> <span class="re0">$tertiary</span> <span class="sy1">?&gt;</span>;<br />
color: #000000;<br />
margin: 0px;<br />
}</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2007/11/easy-stylesheets-with-basic-php/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 17/32 queries in 0.009 seconds using disk

Served from: www.xpcdesign.com @ 2010-07-30 02:45:41 -->