<?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>loonyblurb</title>
	<atom:link href="http://loonyblurb.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://loonyblurb.net</link>
	<description>The random eclecticisms of loonytoons</description>
	<lastBuildDate>Fri, 11 Mar 2011 13:42:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>git error setting certificate verify locations</title>
		<link>http://loonyblurb.net/2011/03/git-error-setting-certificate-verify-locations/</link>
		<comments>http://loonyblurb.net/2011/03/git-error-setting-certificate-verify-locations/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 13:41:09 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=551</guid>
		<description><![CDATA[I came across this error having setup a windows vista machine to clone a github repo using msysgit: error: error setting certificate verify locations: CAfile: /bin/curl-ca-bundle.crt CApath: none It turns out it&#8217;s just a problem with the path, all you need to do is reset this info and it should be alright: git config --system [...]


Related posts:<ol><li><a href='http://loonyblurb.net/2010/07/magento-products-inc-tax-issue/' rel='bookmark' title='Permanent Link: Magento Products Inc Tax Issue'>Magento Products Inc Tax Issue</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I came across this error having setup a windows vista machine to clone a github repo using msysgit:</p>
<pre>error: error setting certificate verify locations:
  CAfile: /bin/curl-ca-bundle.crt
  CApath: none
</pre>
<p>It turns out it&#8217;s just a problem with the path, all you need to do is reset this info and it should be alright:</p>
<pre>git config --system http.sslcainfo /bin/curl-ca-bundle.crt</pre>
<p>If you run got config -l you can check the git configuration to see exactly what all the settings are.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2011%2F03%2Fgit-error-setting-certificate-verify-locations%2F&amp;title=git%20error%20setting%20certificate%20verify%20locations"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://loonyblurb.net/2010/07/magento-products-inc-tax-issue/' rel='bookmark' title='Permanent Link: Magento Products Inc Tax Issue'>Magento Products Inc Tax Issue</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2011/03/git-error-setting-certificate-verify-locations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; product zoom for tall thin images</title>
		<link>http://loonyblurb.net/2010/12/magento-product-zoom-for-tall-thin-images/</link>
		<comments>http://loonyblurb.net/2010/12/magento-product-zoom-for-tall-thin-images/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 15:17:37 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=542</guid>
		<description><![CDATA[Current version : 1.4.2.0 While reworking a 1.3.2.3 magento template to work for magento 1.4, I had an issue on a product page where a tall thin image was not being resized correctly by the product zoom javascript. The script seemed to think that the image was small enough to fit inside the image container [...]


Related posts:<ol><li><a href='http://loonyblurb.net/2009/09/magento-using-jquery/' rel='bookmark' title='Permanent Link: Magento &#8211; using jQuery'>Magento &#8211; using jQuery</a></li>
<li><a href='http://loonyblurb.net/2009/06/jquery-live-livequery/' rel='bookmark' title='Permanent Link: Jquery .live and .livequery'>Jquery .live and .livequery</a></li>
<li><a href='http://loonyblurb.net/2010/10/magento_payment_broken_continue_button/' rel='bookmark' title='Permanent Link: Magento payment broken continue button'>Magento payment broken continue button</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><em>Current version : 1.4.2.0</em></p>
<p>While reworking a 1.3.2.3 magento template to work for magento 1.4, I had an issue on a product page where a tall thin image was not being resized correctly by the product zoom javascript. The script seemed to think that the image was small enough to fit inside the image container and so the image was not shrunk and the zoom in bar was disabled, despite the fact that around a third of the image was hidden behind the zoom bar itself.</p>
<p>Digging into it, it turns out that the width of an image is the main dimension used to calculate if the image is oversized or not. But as my image was tall and thin it was the hieght causing the problem and not the width.</p>
<p>I fixed this by simply amending the javascript in /js/varien/product.js.</p>
<p>In the scale function, which is around line 128, change the line that calculates the variable &#8216;oversize&#8217; from this:</p>
<pre>var overSize = (this.imageDim.width &gt; this.containerDim.width &amp;&amp; this.imageDim.height &gt; this.containerDim.height);</pre>
<p>to this:</p>
<pre>var overSize = (this.imageDim.width &gt; this.containerDim.width || this.imageDim.height &gt; this.containerDim.height);</pre>
<p>This makes sure that an image is marked as oversize if either the width or hieght exceed the container size, rather than both. Then in the if statement below, amend the first if from this:</p>
<pre>if (this.imageDim.width &gt; this.containerDim.width) {
     this.imageEl.style.width = (this.imageZoom*this.containerDim.width)+'px';
}</pre>
<p>to this:</p>
<pre>if (this.imageDim.width &gt; this.containerDim.width) {
     this.imageEl.style.width = (this.imageZoom*this.containerDim.width)+'px';
} else if (this.imageDim.height &gt; this.containerDim.height) {
     this.imageEl.style.height = (this.imageZoom*this.containerDim.height)+'px';
}</pre>
<p>This then resizes the image based on the height of the image if the width is not the reason for the oversize.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F12%2Fmagento-product-zoom-for-tall-thin-images%2F&amp;title=Magento%20%26%238211%3B%20product%20zoom%20for%20tall%20thin%20images"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://loonyblurb.net/2009/09/magento-using-jquery/' rel='bookmark' title='Permanent Link: Magento &#8211; using jQuery'>Magento &#8211; using jQuery</a></li>
<li><a href='http://loonyblurb.net/2009/06/jquery-live-livequery/' rel='bookmark' title='Permanent Link: Jquery .live and .livequery'>Jquery .live and .livequery</a></li>
<li><a href='http://loonyblurb.net/2010/10/magento_payment_broken_continue_button/' rel='bookmark' title='Permanent Link: Magento payment broken continue button'>Magento payment broken continue button</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/12/magento-product-zoom-for-tall-thin-images/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento payment broken continue button</title>
		<link>http://loonyblurb.net/2010/10/magento_payment_broken_continue_button/</link>
		<comments>http://loonyblurb.net/2010/10/magento_payment_broken_continue_button/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 09:32:10 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=530</guid>
		<description><![CDATA[Current magento version: 1.4.1.1 We recently upgraded a magento site to version 1.4.1.1 as part of moving the site to a new server. Everything seemed to run smoothly with no issues, job done. However it didn&#8217;t take long for  the customer to ring up &#8211; &#8216;My site&#8217;s broken, no one can make payments anymore&#8217;. Once [...]


Related posts:<ol><li><a href='http://loonyblurb.net/2009/08/magento-url-functions/' rel='bookmark' title='Permanent Link: Magento &#8211; url functions'>Magento &#8211; url functions</a></li>
<li><a href='http://loonyblurb.net/2009/09/magento-using-jquery/' rel='bookmark' title='Permanent Link: Magento &#8211; using jQuery'>Magento &#8211; using jQuery</a></li>
<li><a href='http://loonyblurb.net/2009/08/introduction-to-magento/' rel='bookmark' title='Permanent Link: Introduction to Magento'>Introduction to Magento</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><em>Current magento version: 1.4.1.1</em></p>
<p>We recently upgraded a magento site to version 1.4.1.1 as part of moving the site to a new server. Everything seemed to run smoothly with no issues, job done.</p>
<p>However it didn&#8217;t take long for  the customer to ring up &#8211; &#8216;My site&#8217;s broken, no one can make payments anymore&#8217;. Once customer had entered their credit card details they found that the continue button did not work at all, they were stuck on the payment screen. Uh oh, time to dig around checking the server setups, looking for any reported issues with authorize.net (the payment engine being used) and checking into the changes made in the magento upgrade.</p>
<p>Amazingly the problem turned out to be that in latest version of magento, they had included a new javascript file for validating the payment variables input by the user and without this file the payment process would just stop at the card input screen and refuse to go any further.</p>
<p>The solution is simple. Just add the following line of code to your themes page.xml (in the layouts folder) and all should be fine:</p>
<pre><code>&lt;action method="addJs"&gt;&lt;script&gt;lib/ccard.js&lt;/script&gt;&lt;/action&gt;</code></pre>
<p>Everything would have been fine if we&#8217;d been using the default theme, or if we hadn&#8217;t had to override the default page.xml with our own version for our theme.</p>
<p>It just makes me wonder if there was some way that developers could be notified when key changes are made to files, especially to theme files that are overwritten in most installs to avoid such head scratching and long periods of debugging in the future. As far as I can tell this wasn&#8217;t even mentioned in the release notes. Do let me know if I&#8217;m wrong though and varien do actually release such useful information!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F10%2Fmagento_payment_broken_continue_button%2F&amp;title=Magento%20payment%20broken%20continue%20button"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://loonyblurb.net/2009/08/magento-url-functions/' rel='bookmark' title='Permanent Link: Magento &#8211; url functions'>Magento &#8211; url functions</a></li>
<li><a href='http://loonyblurb.net/2009/09/magento-using-jquery/' rel='bookmark' title='Permanent Link: Magento &#8211; using jQuery'>Magento &#8211; using jQuery</a></li>
<li><a href='http://loonyblurb.net/2009/08/introduction-to-magento/' rel='bookmark' title='Permanent Link: Introduction to Magento'>Introduction to Magento</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/10/magento_payment_broken_continue_button/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Day Camp For Developers 2010</title>
		<link>http://loonyblurb.net/2010/09/day-camp-for-developers-201/</link>
		<comments>http://loonyblurb.net/2010/09/day-camp-for-developers-201/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 11:56:11 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[Conferences]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=510</guid>
		<description><![CDATA[On the 6th of November there&#8217;s an interesting new online event happening that I wanted to draw your attention to. Day Camp 4 Developers is an event aimed at all programmers regardless of your favoured language of use, as it focuses more on soft skills rather than specific technical ones (which I&#8217;m sure we all [...]


Related posts:<ol><li><a href='http://loonyblurb.net/2009/10/phpnw09-write-up/' rel='bookmark' title='Permanent Link: PHPNW09 write up'>PHPNW09 write up</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-516" title="DayCamp4Developers" src="http://loonyblurb.net/blog/wp-content/uploads/2010/09/day-camp-100x150.png" alt="" width="146" height="64" />On the 6th of November there&#8217;s an interesting new online event happening that I wanted to draw your attention to.</p>
<p>Day Camp 4 Developers is an event aimed at all programmers regardless of your favoured language of use, as it focuses more on soft skills rather than specific technical ones (which I&#8217;m sure we all like to think we rock at anyway). Soft skills often get overlooked though, which is possibly foolish as they can be key factor affecting our career progression and ability to become a valued well-rounded team member.</p>
<p>I&#8217;ve heard most of the speakers speak before and can highly recommend them for their ability to present information in an interesting and engaging way. Even if you can&#8217;t watch them live on the day, the sessions will be available for you to watch anytime at your own convenience, so there&#8217;s really nothing to stop you!</p>
<p>Check out the<a href="http://daycamp4developers.com/sessions/"> sessions here</a> and <a href="http://www.eventbrite.com/event/811017776/DayCamp4Developers/5873239891">book here</a> to reserve your place.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F09%2Fday-camp-for-developers-201%2F&amp;title=Day%20Camp%20For%20Developers%202010"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://loonyblurb.net/2009/10/phpnw09-write-up/' rel='bookmark' title='Permanent Link: PHPNW09 write up'>PHPNW09 write up</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/09/day-camp-for-developers-201/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery slideToggle and ie7</title>
		<link>http://loonyblurb.net/2010/07/jquery-slidetoggle-ie/</link>
		<comments>http://loonyblurb.net/2010/07/jquery-slidetoggle-ie/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 09:00:41 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=504</guid>
		<description><![CDATA[I had an interesting issue where in ie7, the element that I was displaying using the jQuery slideToggle function, would seem to jump out of place once the animation had finished. As I was displaying a list, I first assumed that in ie7 the element was adding in the default list margins and ignoring my [...]


Related posts:<ol><li><a href='http://loonyblurb.net/2009/06/jquery-live-livequery/' rel='bookmark' title='Permanent Link: Jquery .live and .livequery'>Jquery .live and .livequery</a></li>
<li><a href='http://loonyblurb.net/2009/09/magento-using-jquery/' rel='bookmark' title='Permanent Link: Magento &#8211; using jQuery'>Magento &#8211; using jQuery</a></li>
<li><a href='http://loonyblurb.net/2009/05/css-firefox-margins/' rel='bookmark' title='Permanent Link: CSS firefox margins'>CSS firefox margins</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I had an interesting issue where in ie7, the element that I was displaying using the<a href="http://jquery.com" target="_blank"> jQuery</a> slideToggle function, would seem to jump out of place once the animation had finished.</p>
<p>As I was displaying a list, I first assumed that in ie7 the element was adding in the default list margins and ignoring my css. However no amount of fiddling with adding css margins in the slideToggle callback function seemed to sort the problem.</p>
<p>Googling allowed me to find a solution <a href="http://www.justwerks.com/slidetoggle-jquery-ie-7-bug" target="_blank">here</a> that worked, although I have no idea why it works.</p>
<p>Basically I needed to add a min-height of 0px on the parent element, and set the height of the ul that I was trying to display to 100%.</p>
<p>Problem sorted!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F07%2Fjquery-slidetoggle-ie%2F&amp;title=jQuery%20slideToggle%20and%20ie7"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://loonyblurb.net/2009/06/jquery-live-livequery/' rel='bookmark' title='Permanent Link: Jquery .live and .livequery'>Jquery .live and .livequery</a></li>
<li><a href='http://loonyblurb.net/2009/09/magento-using-jquery/' rel='bookmark' title='Permanent Link: Magento &#8211; using jQuery'>Magento &#8211; using jQuery</a></li>
<li><a href='http://loonyblurb.net/2009/05/css-firefox-margins/' rel='bookmark' title='Permanent Link: CSS firefox margins'>CSS firefox margins</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/07/jquery-slidetoggle-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Products Inc Tax Issue</title>
		<link>http://loonyblurb.net/2010/07/magento-products-inc-tax-issue/</link>
		<comments>http://loonyblurb.net/2010/07/magento-products-inc-tax-issue/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 09:07:46 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=502</guid>
		<description><![CDATA[I&#8217;ve recently been working on quite a complex magento setup, that involves a number of different stores based in different countries. A problem was reported where some stores appeared to be adding the tax twice in the shopping cart. The product prices had been setup including tax but the tax was then being added again [...]


Related posts:<ol><li><a href='http://loonyblurb.net/2010/06/php-rounding-issue/' rel='bookmark' title='Permanent Link: PHP Rounding Issue'>PHP Rounding Issue</a></li>
<li><a href='http://loonyblurb.net/2009/08/magento-url-functions/' rel='bookmark' title='Permanent Link: Magento &#8211; url functions'>Magento &#8211; url functions</a></li>
<li><a href='http://loonyblurb.net/2009/08/introduction-to-magento/' rel='bookmark' title='Permanent Link: Introduction to Magento'>Introduction to Magento</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been working on quite a complex magento setup, that involves a number of different stores based in different countries.</p>
<p>A problem was reported where some stores appeared to be adding the tax twice in the shopping cart. The product prices had been setup including tax but the tax was then being added again in the cart, despite the tax settings in the admin clearly stating that the product prices already included tax and the cart subtotal should display excluding tax.</p>
<p>So for a moment I panicked thinking that this was going to be some overly complicated bug that I&#8217;d need to fix (not what I needed on a Friday).</p>
<p>So in a desperate effort to avoid that I looked around and fiddled with as many settings as I could think of, hoping that one of these would solve the problem, meaning that there was no horrible bug but just some obscure settings conflict. This was a good plan!</p>
<p>Although the tax calculation settings seemed to be correct, the &#8216;Default tax destination calculation&#8217; was still set to the default country &#8216;USA&#8217; so I changed this to the correct country for that particular store. I also changed the shipping origin under &#8216;Delivery settings&#8217; to be the country rather than the default of &#8216;USA&#8217; and this is what actually solved the problem.</p>
<p>I know this seems like a really simple thing, but hopefully it&#8217;ll save someone else a lot of searching around. I also thought I&#8217;d better post this incase I come across this problem again and can&#8217;t remember what I did to fix it last time! A blog can be a very useful memory tool!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F07%2Fmagento-products-inc-tax-issue%2F&amp;title=Magento%20Products%20Inc%20Tax%20Issue"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://loonyblurb.net/2010/06/php-rounding-issue/' rel='bookmark' title='Permanent Link: PHP Rounding Issue'>PHP Rounding Issue</a></li>
<li><a href='http://loonyblurb.net/2009/08/magento-url-functions/' rel='bookmark' title='Permanent Link: Magento &#8211; url functions'>Magento &#8211; url functions</a></li>
<li><a href='http://loonyblurb.net/2009/08/introduction-to-magento/' rel='bookmark' title='Permanent Link: Introduction to Magento'>Introduction to Magento</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/07/magento-products-inc-tax-issue/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Rounding Issue</title>
		<link>http://loonyblurb.net/2010/06/php-rounding-issue/</link>
		<comments>http://loonyblurb.net/2010/06/php-rounding-issue/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 09:52:47 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=496</guid>
		<description><![CDATA[So today I came across a wierd rounding issue in PHP, where the round function was just not returning the result that I was expecting. It seemed to be rounding the value down rather than up. Passing a float value of 14.875 (generated by a multiplier calculation) I was expecting the result 14.88 but was [...]


Related posts:<ol><li><a href='http://loonyblurb.net/2010/12/magento-product-zoom-for-tall-thin-images/' rel='bookmark' title='Permanent Link: Magento &#8211; product zoom for tall thin images'>Magento &#8211; product zoom for tall thin images</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>So today I came across a wierd rounding issue in PHP, where the round function was just not returning the result that I was expecting. It seemed to be rounding the value down rather than up.</p>
<p>Passing a float value of 14.875 (generated by a multiplier calculation) I was expecting the result 14.88 but was actually recieving 14.87. Reading around I know that there are a few issues and difficulties when it comes to dealing with float numbers, precision and rounding, though later versions of php may well handle these slightly better (on this project I&#8217;m using php 5.2.6, running on Ubuntu 4.6).</p>
<p>The easiest way that I found to get around the problem was to turn the number that I sent into round into a string, simply by concatenating an empty string on the end, eg round($value.&#8221;). I think that this then makes the value a simple string of 14.875 that can be easily rounded rather than a float that is susceptible to the nuances of precision rounding, though I&#8217;m really not an expert and simply speculating here.</p>
<p>This also may not be the best or most elegant way to sort this problem but it worked for me.</p>
<p>If you know of a better way to get around this then do please let me know, I&#8217;d be really interested to hear how other people have got around this issue.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F06%2Fphp-rounding-issue%2F&amp;title=PHP%20Rounding%20Issue"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://loonyblurb.net/2010/12/magento-product-zoom-for-tall-thin-images/' rel='bookmark' title='Permanent Link: Magento &#8211; product zoom for tall thin images'>Magento &#8211; product zoom for tall thin images</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/06/php-rounding-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rendili Web Writing Tips</title>
		<link>http://loonyblurb.net/2010/03/rendili-web-writing-tips/</link>
		<comments>http://loonyblurb.net/2010/03/rendili-web-writing-tips/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 14:35:14 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=492</guid>
		<description><![CDATA[As my blog has been relatively quiet recently, I thought I&#8217;d take this opportunity to let you know that an article I&#8217;ve written about how to write for the web has just been published on my company&#8217;s website. I work for a small company called Rendili, and you can find my article here. I hope [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>As my blog has been relatively quiet recently, I thought I&#8217;d take this opportunity to let you know that an article I&#8217;ve written about how to write for the web has just been published on my company&#8217;s website.</p>
<p>I work for a small company called <a title="Rendili" href="http://www.rendili.co.uk">Rendili</a>, and you can find <a title="Web Writing Tips" href="http://www.rendili.co.uk/articles/web_writing_tips.html">my article here</a>.</p>
<p>I hope that it&#8217;ll prove useful, and if anyone wants to make any comments or add anything then please feel free to post your comments here on my personal blog.</p>
<p>Thank you!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F03%2Frendili-web-writing-tips%2F&amp;title=Rendili%20Web%20Writing%20Tips"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/03/rendili-web-writing-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ada Lovelace Day 2010</title>
		<link>http://loonyblurb.net/2010/03/ada-lovelace-day-2010/</link>
		<comments>http://loonyblurb.net/2010/03/ada-lovelace-day-2010/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 10:00:42 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=442</guid>
		<description><![CDATA[So today is Ada Lovelace Day, a day organised to highlight the wide-ranging contributions and achievements of women in science and technology. While in general I try to stay away from the whole gender debate surrounding these industries, I don&#8217;t think that anyone can deny that women form a very definite minority in these areas. [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>So today is <a href="http://findingada.com/" target="_blank">Ada Lovelace Day</a>, a day organised to highlight the wide-ranging<strong> </strong>contributions and achievements of women in science and technology.</p>
<div id="attachment_455" class="wp-caption alignright" style="width: 160px"><img class="size-full wp-image-455" title="Ada Lovelace" src="http://loonyblurb.net/blog/wp-content/uploads/2010/03/lovelace.jpg" alt="Ada Lovelace" width="150" height="187" /><p class="wp-caption-text">Ada Lovelace</p></div>
<p>While in general I try to stay away from the whole gender debate surrounding these industries, I don&#8217;t think that anyone can deny that <strong>women form a very definite minority in these areas</strong>. There are a whole host of reasons for this, none of which I particularly want to go into and none of which are going to be that quick and easy to solve. But I believe that <strong>everyone has the ability and opportunity (however small) to help</strong> change mindsets, throw out the old stereotypes and encourage a more open and welcoming atmosphere.</p>
<p>In regards to today&#8217;s post, it can only be a good thing that women are being publicly recognised for the work that they do. This will hopefully lead to them being inspired to keep up with the good work <img src='http://loonyblurb.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  and stand as encouragement for others just starting out or looking to join the profession. One day I hope that we won&#8217;t really need events like these as they&#8217;ll have served their purpose, and our industries will be freed from the stigma and issues that arise from having such a wide gender ratio.</p>
<p>I should also point out that throughout my time working as a developer, I have received a massive amount of help and support from both friends and colleagues, male and female, and I would really like to thank all of you! You&#8217;ve been brilliant!</p>
<p>But in the spirit of <a href="http://findingada.com/">Ada Lovelace Day</a>, I am going to highlight one person in particular who has helped me such a lot in past, both personally and professionally, and to whom I owe a great deal.</p>
<p><span id="more-442"></span></p>
<p><a class="highlight" href="http://lornajane.net" target="_blank">Lornajane</a></p>
<p>While many of you will already know <a href="http://lornajane.net" target="_blank">Lornajane</a> and all the great work that she does. For those of you who may be less familiar here&#8217;s a brief summary of just some of the things that she does:</p>
<p><a href="http://lornajane.net"><img class="alignleft size-full wp-image-474" title="lornajane.net" src="http://loonyblurb.net/blog/wp-content/uploads/2010/03/lorna_logo.png" alt="lornajane.net" width="66" height="99" /></a><span style="color: #333333;">By day she works as a <strong>senior developer</strong> and <strong>trainer</strong> for<strong> <a href="http://www.ibuildings.co.uk/" target="_blank">Ibuildings</a></strong>, as well as being the editor-in-chief of their <a href="http://techportal.ibuildings.com/" target="_blank">techportal</a> blog and heading up their PHP Centre of Expertise. In addition to her busy work schedule she is also rapidly gaining a reputation for being a great <strong>conference speaker,</strong> and as a glutton for pu</span><span style="color: #333333;">nishment has also helped organise a number of these events. Check out her <a href="http://joind.in/user/view/110" target="_blank">feedback ratings</a> on <strong><a href="http://joind.in/" target="_blank">joind.in</a></strong>, which by the way is a project she is also involved in. In between these larger talks, you can often find her speaking at various user groups and other smaller technology related events. And as if t</span><span style="color: #333333;">hat all wasn&#8217;t enough, she is also a key member of<strong> <a href="http://www.phpwomen.org/" target="_blank">PHP Women</a></strong> and works tirelessly aiming to move the group forward as well as give her personal encouragement and support to whoever needs it.</span></p>
<p>Believe me when I say that that was just a summary, and doesn&#8217;t even cover her other more personal passions such as crafting or netball that she also manages to find time for.</p>
<p>As it&#8217;s <a href="http://findingada.com/" target="_blank">Ada Lovelace Day</a>, her work with <strong><a href="http://www.phpwomen.org/" target="_blank">PHP Women</a></strong> should be particularly highlighted. PHP Women is a group that is open to both men and women but that aims to encourage and support women in particular that work (or would like to work) with PHP in whatever they can. There&#8217;s a <a href="http://www.phpwomen.org/forum/index.php" target="_blank">forum</a>, <a href="http://www.phpwomen.org/wordpress/partnerships-with-os-projects" target="_blank">open source partnerships</a> and a <a href="http://www.phpwomen.org/forum/index.php?t=msg&amp;goto=2618&amp;S=c2e0c68d8a65685129ae1bfc0bd2eb98&amp;srch=big+sister#msg_2618" target="_blank">mentorship scheme</a> among other things, and I know many people who have personally benefited from being a member. <strong>Groups like this would not be possible without the hard work put in by people like Lorna</strong>. Maybe now would be a good time to suggest helping them out by <strong><a href="http://www.phpwomen.org/wordpress/delegations" target="_blank">getting involved</a> </strong>and<strong> giving back</strong> to the group yourself? This works for all groups, communities and networks &#8211; while it is great to receive help and support, is it not greater to be able to give your own help and support to others?</p>
<p>Lorna also aims to inspire others by her example. Her conference speaking did not start because she felt a huge desire to stand spotlit on a stage in front of lots of people. Rather she was aware that women are very often under represented in many conference schedules and if she really wanted to do something about that then the best way was to get up on stage herself as an example to others. This way she could also encourage others to do the same and offer advice based on her own experiences.</p>
<p>A real human dynamo, Lorna&#8217;s level of activity alone is often enough to inspire me to get off my arse and just do things! Personally she&#8217;s given me a huge amount of encouragement and support, ranging from quick comments and pep talks which really help when I&#8217;m feeling a bit down or overwhelmed, to letting me crash at her house during a particularly bad time when I had nowhere else to go.</p>
<p>I know I for one shall always be <em>enormously</em> grateful for all the help that she&#8217;s ever given me.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F03%2Fada-lovelace-day-2010%2F&amp;title=Ada%20Lovelace%20Day%202010"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/03/ada-lovelace-day-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intermittent Posting</title>
		<link>http://loonyblurb.net/2010/03/intermittent-posting/</link>
		<comments>http://loonyblurb.net/2010/03/intermittent-posting/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 15:20:20 +0000</pubDate>
		<dc:creator>loonytoons</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://loonyblurb.net/?p=444</guid>
		<description><![CDATA[I&#8217;ve been feeling bad about not posting for a while, but I&#8217;ve just realised how long it&#8217;s been! All I can say is that it&#8217;s testament to how busy I&#8217;ve been recently. I take quite a bit of time tweaking my blog posts until I am happy with them, so as a result I&#8217;ve got [...]


Related posts:<ol><li><a href='http://loonyblurb.net/2010/03/rendili-web-writing-tips/' rel='bookmark' title='Permanent Link: Rendili Web Writing Tips'>Rendili Web Writing Tips</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been feeling bad about not posting for a while, but I&#8217;ve just realised how long it&#8217;s been!</p>
<p>All I can say is that it&#8217;s testament to how busy I&#8217;ve been recently. I take quite a bit of time tweaking my blog posts until I am happy with them, so as a result I&#8217;ve got a few unpublished posts and some ideas that as yet are unwritten, but I just either don&#8217;t have the time to complete them or just can&#8217;t get my head into the right frame of mind for writing.</p>
<p>As such things have been a bit quiet around here recently.</p>
<p>However I shall be taking the opportunity to hopefully kickstart everything again tomorrow, as it&#8217;s <a href="http://findingada.com/" target="_blank">Ada Lovelace Day</a>.</p>
<p>I meant to take part in this last year but couldn&#8217;t quite get everything up together in time. I shall be joining in this year though to help celebrate the contributions and achievements of women in science and technology.</p>
<p>Will you?</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Floonyblurb.net%2F2010%2F03%2Fintermittent-posting%2F&amp;title=Intermittent%20Posting"><img src="http://loonyblurb.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://loonyblurb.net/2010/03/rendili-web-writing-tips/' rel='bookmark' title='Permanent Link: Rendili Web Writing Tips'>Rendili Web Writing Tips</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://loonyblurb.net/2010/03/intermittent-posting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

