<?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>Dave Russell</title>
	<atom:link href="http://daverussell.co.za/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://daverussell.co.za/wordpress</link>
	<description>Helping me remember and hopefully helping others at the same time.</description>
	<lastBuildDate>Mon, 24 May 2010 11:41:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Laser refractive surgery (Lasik)</title>
		<link>http://daverussell.co.za/wordpress/2010/05/21/laser-refractive-surgery-lasik/</link>
		<comments>http://daverussell.co.za/wordpress/2010/05/21/laser-refractive-surgery-lasik/#comments</comments>
		<pubDate>Fri, 21 May 2010 08:58:51 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Out and About]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=187</guid>
		<description><![CDATA[Yesterday, after months of deliberation, investigation and hesitation I willingly allowed Dr John Hill, of the Dr Hill Eye Laser Centre, to perform laser refractive surgery (Lasik) on my less than perfect eyes which where -1.75 and astigmatic. (I say willingly because I had to sign a form just before the procedure that stated that [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 286px"><img class=" " title="Old School" src="http://www.daverussell.co.za/images/glasses.jpg" alt="Do people still use these things?" width="276" height="210" /><p class="wp-caption-text">Do people still use these things?</p></div>
<p>Yesterday, after months of deliberation, investigation and hesitation I willingly allowed Dr John Hill, of the <a title="Genius" href="http://www.eyelaser.co.za/" target="_blank">Dr Hill Eye Laser Centre</a>, to perform laser refractive surgery (Lasik) on my less than perfect eyes which where -1.75 and astigmatic. (I say willingly because I had to sign a form just before the procedure that stated that I have asked all the right questions and understand what I was getting myself into. ) In less than 10 minutes both eyes had been fixed and I found myself back in the reception getting care instructions for my new eyes. I write this post less that 24 hours after the procedure and already my vision is on a par with what I had while wearing lenses.</p>
<p>Just for the record: I am an absolute girl scout and am not the bravest when it comes to needles and men in masks. I must admit I nearly fainted half way through as the thought of what was actually been done to me became a little over whelming. But honestly, the dentist is far worse and I experienced absolutely no pain. My vision was very smokey at first but but the evening was greatly improved and was even better this morning.</p>
<p>The procedure is not cheap (R15000), but having done it I would, without hesitation, recommend it to anyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/05/21/laser-refractive-surgery-lasik/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AWB secretary-general looses the plot during interview</title>
		<link>http://daverussell.co.za/wordpress/2010/04/07/awb-secretary-general-looses-the-plot-during-interview/</link>
		<comments>http://daverussell.co.za/wordpress/2010/04/07/awb-secretary-general-looses-the-plot-during-interview/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 20:31:08 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[awb]]></category>
		<category><![CDATA[etv]]></category>
		<category><![CDATA[visagie]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=185</guid>
		<description><![CDATA[
Seriously? I thought we were over this.
]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/0IVdrJ1zKXk&#038;hl=en_US&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/0IVdrJ1zKXk&#038;hl=en_US&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Seriously? I thought we were over this.</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/04/07/awb-secretary-general-looses-the-plot-during-interview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unhinged: Surviving Joburg</title>
		<link>http://daverussell.co.za/wordpress/2010/03/31/unhinged-surviving-joburg/</link>
		<comments>http://daverussell.co.za/wordpress/2010/03/31/unhinged-surviving-joburg/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 05:59:39 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Out and About]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=179</guid>
		<description><![CDATA[
A brilliant depiction of the vibe in JHB. I grew up there, and its all true. A place that draws you in with the promise of success. A place with as many opportunities as there are dangers.
Can&#8217;t wait to see it, read more here.
]]></description>
			<content:encoded><![CDATA[<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/zbk_3D3-W04&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zbk_3D3-W04&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p>
<p>A brilliant depiction of the vibe in JHB. I grew up there, and its all true. A place that draws you in with the promise of success. A place with as many opportunities as there are dangers.</p>
<p>Can&#8217;t wait to see it, <a href="http://www.thebioscope.co.za/index.php/2010/03/doc-love-31-march-unhinged-surviving-joburg/">read more here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/03/31/unhinged-surviving-joburg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fool climbs speaker stack at Kirstenbosch Goldfish concert</title>
		<link>http://daverussell.co.za/wordpress/2010/03/09/fool-climbs-speaker-stack-at-kirstenbosch-goldfish-concert/</link>
		<comments>http://daverussell.co.za/wordpress/2010/03/09/fool-climbs-speaker-stack-at-kirstenbosch-goldfish-concert/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 09:02:40 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Out and About]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[goldfish]]></category>
		<category><![CDATA[kirstenbosch]]></category>
		<category><![CDATA[nutcase]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=174</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/EoSEpXIDvHw&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/EoSEpXIDvHw&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/03/09/fool-climbs-speaker-stack-at-kirstenbosch-goldfish-concert/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Javascript to validate South African ID Numbers</title>
		<link>http://daverussell.co.za/wordpress/2010/03/02/using-javascript-to-validate-south-african-id-numbers/</link>
		<comments>http://daverussell.co.za/wordpress/2010/03/02/using-javascript-to-validate-south-african-id-numbers/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 13:00:21 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Validation]]></category>
		<category><![CDATA[id number]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=171</guid>
		<description><![CDATA[I have just finished a neat little client side ID number validation script that ensures that the ID number passed is:

Numeric,
is 13 Digits long,
has a valid date with the first 6 characters
and passes the Luhn algorithm test.


function ValidateIDnumber&#40;idnumber&#41; &#123;
//1. numeric and 13 digits
if &#40;isNaN&#40;idnumber&#41; &#124;&#124; &#40;idnumber.length != 13&#41;&#41; &#123; return false; &#125;
//2. first 6 numbers [...]]]></description>
			<content:encoded><![CDATA[<p>I have just finished a neat little client side ID number validation script that ensures that the ID number passed is:</p>
<ul>
<li>Numeric,</li>
<li>is 13 Digits long,</li>
<li>has a valid date with the first 6 characters</li>
<li>and passes the <a title="Luhn Algorithm" href="http://en.wikipedia.org/wiki/Luhn_algorithm" target="_blank">Luhn algorithm</a> test.</li>
</ul>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;"><span class="kw2">function</span> ValidateIDnumber<span class="br0">&#40;</span>idnumber<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="co1">//1. numeric and 13 digits</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span>isNaN<span class="br0">&#40;</span>idnumber<span class="br0">&#41;</span> <span class="sy0">||</span> <span class="br0">&#40;</span>idnumber.<span class="me1">length</span> <span class="sy0">!=</span> 13<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="kw2">false</span><span class="sy0">;</span> <span class="br0">&#125;</span><br />
<span class="co1">//2. first 6 numbers is a valid date</span><br />
<span class="kw2">var</span> tempDate <span class="sy0">=</span> <span class="kw2">new</span> Date<span class="br0">&#40;</span>idnumber.<span class="me1">substring</span><span class="br0">&#40;</span>0<span class="sy0">,</span> 2<span class="br0">&#41;</span><span class="sy0">,</span> idnumber.<span class="me1">substring</span><span class="br0">&#40;</span>2<span class="sy0">,</span> 4<span class="br0">&#41;</span> <span class="sy0">-</span> 1<span class="sy0">,</span> idnumber.<span class="me1">substring</span><span class="br0">&#40;</span>4<span class="sy0">,</span> 6<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span><span class="sy0">!</span><span class="br0">&#40;</span><span class="br0">&#40;</span>tempDate.<span class="me1">getYear</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">==</span> idnumber.<span class="me1">substring</span><span class="br0">&#40;</span>0<span class="sy0">,</span> 2<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">&amp;</span>amp<span class="sy0">;&amp;</span>amp<span class="sy0">;</span> <span class="br0">&#40;</span>tempDate.<span class="me1">getMonth</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">==</span> idnumber.<span class="me1">substring</span><span class="br0">&#40;</span>2<span class="sy0">,</span> 4<span class="br0">&#41;</span> <span class="sy0">-</span> 1<span class="br0">&#41;</span> <span class="sy0">&amp;</span>amp<span class="sy0">;&amp;</span>amp<span class="sy0">;</span> <span class="br0">&#40;</span>tempDate.<span class="me1">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">==</span> idnumber.<span class="me1">substring</span><span class="br0">&#40;</span>4<span class="sy0">,</span> 6<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="kw2">false</span><span class="sy0">;</span> <span class="br0">&#125;</span><br />
<span class="co1">//3. luhn formula</span><br />
<span class="kw2">var</span> tempTotal <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> <span class="kw2">var</span> checkSum <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> <span class="kw2">var</span> multiplier <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br />
<span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> i <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0">&amp;</span>lt<span class="sy0">;</span> <span class="nu0">13</span><span class="sy0">;</span> <span class="sy0">++</span>i<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
tempTotal <span class="sy0">=</span> parseInt<span class="br0">&#40;</span>idnumber.<span class="me1">charAt</span><span class="br0">&#40;</span>i<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">*</span> multiplier<span class="sy0">;</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span>tempTotal <span class="sy0">&amp;</span>gt<span class="sy0">;</span> 9<span class="br0">&#41;</span> <span class="br0">&#123;</span> tempTotal <span class="sy0">=</span> parseInt<span class="br0">&#40;</span>tempTotal.<span class="me1">toString</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">charAt</span><span class="br0">&#40;</span>0<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">+</span> parseInt<span class="br0">&#40;</span>tempTotal.<span class="me1">toString</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">charAt</span><span class="br0">&#40;</span>1<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="br0">&#125;</span><br />
checkSum <span class="sy0">=</span> checkSum <span class="sy0">+</span> tempTotal<span class="sy0">;</span><br />
multiplier <span class="sy0">=</span> <span class="br0">&#40;</span>multiplier <span class="sy0">%</span> 2 <span class="sy0">==</span> 0<span class="br0">&#41;</span> <span class="sy0">?</span> 1 <span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span>checkSum <span class="sy0">%</span> 10<span class="br0">&#41;</span> <span class="sy0">==</span> 0<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">;</span><br />
<span class="kw1">return</span> <span class="kw2">false</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/03/02/using-javascript-to-validate-south-african-id-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selecting all today&#8217;s records</title>
		<link>http://daverussell.co.za/wordpress/2010/02/23/selecting-all-todays-records/</link>
		<comments>http://daverussell.co.za/wordpress/2010/02/23/selecting-all-todays-records/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 07:53:39 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=168</guid>
		<description><![CDATA[Dates can be difficult to work with especially when you are not interested in the time portion. So here&#8217;s a quick snippet that strips the time portion out of the equation, making it easy to get only today&#8217;s records (or any day for that matter).

SELECT Column1,Column2, Datestamp FROM tblExample
WHERE DATEADD&#40;day, DATEDIFF&#40;day, 0, GetDate&#40;&#41;&#41;, 0&#41; = [...]]]></description>
			<content:encoded><![CDATA[<p>Dates can be difficult to work with especially when you are not interested in the time portion. So here&#8217;s a quick snippet that strips the time portion out of the equation, making it easy to get only today&#8217;s records (or any day for that matter).</p>
<div class="codesnip-container" >
<div class="sql codesnip" style="font-family:monospace;"><span class="kw1">SELECT</span> Column1<span class="sy0">,</span>Column2<span class="sy0">,</span> Datestamp <span class="kw1">FROM</span> tblExample<br />
<span class="kw1">WHERE</span> DATEADD<span class="br0">&#40;</span>day<span class="sy0">,</span> DATEDIFF<span class="br0">&#40;</span>day<span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> GetDate<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span> <span class="sy0">=</span> DATEADD<span class="br0">&#40;</span>day<span class="sy0">,</span> DATEDIFF<span class="br0">&#40;</span>day<span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> Datestamp<span class="br0">&#41;</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/02/23/selecting-all-todays-records/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fantastic use of pure css to create animation</title>
		<link>http://daverussell.co.za/wordpress/2010/01/29/fantastic-use-of-pure-css-to-create-animation/</link>
		<comments>http://daverussell.co.za/wordpress/2010/01/29/fantastic-use-of-pure-css-to-create-animation/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:20:14 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=162</guid>
		<description><![CDATA[I like to think I have a fairly good grip on CSS, but this takes it to another level:
Introducing the rolling coke can&#8230;
Consider yourself humbled.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.romancortes.com/ficheros/css-coke.html"><img alt="" src="http://www.daverussell.co.za/wordpress/wp-content/uploads/coke.jpg" class="alignleft" height="150" /></a>I like to think I have a fairly good grip on CSS, but this takes it to another level:<br />
<a href="http://www.romancortes.com/ficheros/css-coke.html" target="_blank">Introducing the rolling coke can&#8230;</a></p>
<p>Consider yourself humbled.</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/01/29/fantastic-use-of-pure-css-to-create-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hitler finds out about the new iPad</title>
		<link>http://daverussell.co.za/wordpress/2010/01/29/hilter-finds-out-about-the-new-ipad/</link>
		<comments>http://daverussell.co.za/wordpress/2010/01/29/hilter-finds-out-about-the-new-ipad/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 09:34:52 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Out and About]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=159</guid>
		<description><![CDATA[I&#8217;m a day late with this, but it is pretty funny stuff.

There are loads of rip off ads and video around already &#8211; check out a classic on cherryflava.
I still want one though&#8230;
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a day late with this, but it is pretty funny stuff.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/sV1v0-kwHwo&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/sV1v0-kwHwo&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>There are loads of rip off ads and video around already &#8211; check out a classic on <a href="http://www.cherryflava.com/cherryflava/2010/01/louis-gossett-jnr-hates-the-ipad-too.html">cherryflava</a>.</p>
<p>I still want one though&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/01/29/hilter-finds-out-about-the-new-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Magento catalog price rules stick.</title>
		<link>http://daverussell.co.za/wordpress/2010/01/21/making-magento-catalog-price-rules-stick/</link>
		<comments>http://daverussell.co.za/wordpress/2010/01/21/making-magento-catalog-price-rules-stick/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 19:20:00 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[ecommerce]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=153</guid>
		<description><![CDATA[I am involved in an ecommerce venture that uses magento commerce to manage sales. For months I have been bugged by the fact that catalog price rules do not stick &#8211; you run the rule from the admin system; all looks great on the site; discounts are applied, but a day later the rule has [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 473px"><a href="http://www.magentocommerce.com"><img title="Magento" src="http://www.daverussell.co.za/wordpress/wp-content/uploads/magento.jpg" alt="Magento" width="463" height="73" /></a><p class="wp-caption-text">Magento</p></div>
<p>I am involved in an <a title="Creeds, Supe Natural Nutrition" href="http://www.creedsonline.co.za" target="_blank">ecommerce venture</a> that uses <a title="Magento" href="http://www.magentocommerce.com" target="_blank">magento commerce</a> to manage sales. For months I have been bugged by the fact that catalog price rules do not stick &#8211; you run the rule from the admin system; all looks great on the site; discounts are applied, but a day later the rule has stopped working and has to be applied again. Very frustrating and not cool.</p>
<p>The good news is I have eventually found <a href="http://magentoexpert.co.uk/tag/cronphp/" target="_blank">a fix to the problem</a>. Basically you need to update near the bottom of the cron.php file to read as follows:</p>
<div class="codesnip-container" >try {<br />
Mage::getConfig()-&gt;init()-&gt;loadEventObservers(’crontab’);<br />
Mage::app()-&gt;addEventArea(’crontab’);<br />
Mage::dispatchEvent(’default’);<br />
$ob = Mage::getModel(’catalogrule/observer’);<br />
$ob-&gt;dailyCatalogUpdate(&#8221;0 1 * * *&#8221;);</div>
<p>Once this is in place you can browse the cron.php file directly and take a deep sigh of relief.</p>
<p>I am still skeptical whether or not the cron job that I set up is actually going to kick this off automatically. Time will tell. I see though that if it does not work, there <a title="CronLess" href="http://cronless.com" target="_blank">are services out there</a> that will run a page on your site at specified intervals.</p>
<p>Holding thumbs.</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/01/21/making-magento-catalog-price-rules-stick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A really really flexible CSS layout</title>
		<link>http://daverussell.co.za/wordpress/2010/01/13/a-really-really-flexible-css-layout/</link>
		<comments>http://daverussell.co.za/wordpress/2010/01/13/a-really-really-flexible-css-layout/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:09:01 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=150</guid>
		<description><![CDATA[This is a really really flexible layout that does not make use of tables and can be used as either a 1,2 or 3 column layout by simply including or omitting the left and right columns. The content is king, so the content comes first in the html followed by the rest. The structure is [...]]]></description>
			<content:encoded><![CDATA[<p>This is a really really flexible layout that does not make use of tables and can be used as either a 1,2 or 3 column layout by simply including or omitting the left and right columns. The content is king, so the content comes first in the html followed by the rest. The structure is controlled via CSS with a little bit of coolness added on thanks to jQuery.</p>
<p>The top banner code is there only to show what is possible, the reason I built this was to have one template that could handle any layout. The interesting thing about the top banner though is that there are two background images on top of each other which creates a lot or flexibility when it comes to banner imagery that overlaps the extents of the 960 by x height banner area.</p>
<p>I have used one jQuery plugin to force equal height columns (1kb) and made use of the cdn for the jquery source.  So this should be really quick as well as flexible.</p>
<p><a title="the really really flexible demo" href="http://www.daverussell.co.za/Demos/FlexibleLayout/index.htm" target="_blank">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/01/13/a-really-really-flexible-css-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
