<?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/"
	>

<channel>
	<title>StaringIntoSpace.co.uk &#187; Simon</title>
	<atom:link href="http://www.staringintospace.co.uk/author/Simon/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.staringintospace.co.uk</link>
	<description>I'm not sad, I'm just thinking</description>
	<pubDate>Thu, 12 Aug 2010 18:39:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Shaken: Saw a road traffic accident in Southall</title>
		<link>http://www.staringintospace.co.uk/2010/08/shaken-saw-a-road-traffic-accident-in-southall/</link>
		<comments>http://www.staringintospace.co.uk/2010/08/shaken-saw-a-road-traffic-accident-in-southall/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 19:16:01 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=140</guid>
		<description><![CDATA[I was riding home tonight and I hit traffic as usual coming into Southall town centre. I weaved through stationary traffic and at the head of the queue was an HGV (just the cab). It had its hazards on and just as I pulled up behind it I thought it had been in a crash. [...]]]></description>
			<content:encoded><![CDATA[<p>I was riding home tonight and I hit traffic as usual coming into Southall town centre. I weaved through stationary traffic and at the head of the queue was an HGV (just the cab). It had its hazards on and just as I pulled up behind it I thought it had been in a crash. I saw some debris in the road a few feet behind the truck.</p>
<p>As I drew up beside the debris I saw it was a walking stick. Just then I saw the driver of the lorry climbing out of the truck clutching a mobile phone to his ear. He looked as white as a sheet. I thought he&#8217;s probably embarrassed about breaking down and across two lanes of rush hour traffic. </p>
<p>As I slowly passed the lorry I saw him. Under the passenger wheel was an Asian man. He didn&#8217;t look old, he had jet black hair. He was still and blood was pooling around his head. From the brief glimpse I got as I passed he looked like he was pinned under the front wheel. </p>
<p>I must admit I panicked at that point. My usual response is someone else will deal will it. I knew the driver was probably on the phone to emergency services and there looked to be lots of bystanders, </p>
<p>All this flashed through my mind briefly as I moved past the accident. However not 30 feet from the site is Southall police station. It crossed my mind that the Police have better first aid training than me, so I slewed the bike into their car park and ran into reception. </p>
<p>The officer behind the glass screen was talking to a customer, but after some slight banging on the door, she came out to ask what was wrong. I told her about the accident and she dropped all of her her clients and with a colleague, ran out of the police station. </p>
<p>I don&#8217;t know what happened to the guy under the truck. I don&#8217;t know why I&#8217;m writing this apart from it&#8217;s part of my life and it&#8217;s slightly cathartic. </p>
<p>Made me think about life a bit anyway<br />
Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/08/shaken-saw-a-road-traffic-accident-in-southall/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress on Nginx Permalinks giving you 403?</title>
		<link>http://www.staringintospace.co.uk/2010/08/wordpress-on-nginx-permalinks-giving-you-403/</link>
		<comments>http://www.staringintospace.co.uk/2010/08/wordpress-on-nginx-permalinks-giving-you-403/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 16:17:12 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=138</guid>
		<description><![CDATA[I am running Magento and a Wordpress blog on Nginx. URL rewriting was working fine on Magento, but whenever I added a location block for /blog/ with the rewrite rule in it, I got a 403 error for the blod directory. 
It turns out that this is because you have redeclare the default files for [...]]]></description>
			<content:encoded><![CDATA[<p>I am running Magento and a Wordpress blog on Nginx. URL rewriting was working fine on Magento, but whenever I added a location block for /blog/ with the rewrite rule in it, I got a 403 error for the blod directory. </p>
<p>It turns out that this is because you have redeclare the default files for this directoy, then do the rewrite, like so:</p>
<blockquote><p>		location /blog/ {<br />
		index index.html index.php;<br />
		expires 30d;<br />
		if (!-e $request_filename) {<br />
		rewrite . /blog/index.php last;<br />
		}<br />
		}
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/08/wordpress-on-nginx-permalinks-giving-you-403/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Importing a Magento DB backup</title>
		<link>http://www.staringintospace.co.uk/2010/07/importing-a-magento-db-backup/</link>
		<comments>http://www.staringintospace.co.uk/2010/07/importing-a-magento-db-backup/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 19:16:13 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=136</guid>
		<description><![CDATA[Very public not to self:
It seems importing a Magento backup into MySQL via the command line you have to do it from a regular command prompt, not a MySQL prompt. 
Drop and create a fresh DB
mysql> drop database shop;
mysql> create database shop;
Then exit and do this from a command prompt
[root@]# mysql -uroot -ppasswordgoeshere shop < [...]]]></description>
			<content:encoded><![CDATA[<p>Very public not to self:</p>
<p>It seems importing a Magento backup into MySQL via the command line you have to do it from a regular command prompt, not a MySQL prompt. </p>
<p><strong>Drop and create a fresh DB</strong><br />
mysql> drop database shop;<br />
mysql> create database shop;</p>
<p><strong>Then exit and do this from a command prompt</strong><br />
[root@]# mysql -uroot -ppasswordgoeshere shop < backup-20100713182416.sql;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/07/importing-a-magento-db-backup/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cheap Mobile Phone for Holiday</title>
		<link>http://www.staringintospace.co.uk/2010/03/cheap-mobile-phone-for-holiday/</link>
		<comments>http://www.staringintospace.co.uk/2010/03/cheap-mobile-phone-for-holiday/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 15:10:51 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=129</guid>
		<description><![CDATA[This is a good idea. You can buy a mini mobile phone that&#8217;s SIM free for only £19.99. 
You could get a PAYG SIM for it too if you&#8217;re afraid of losing the phone. 
Check the deal out here
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.mymemory.co.uk/images/product_shots/23647_1267110894.jpg" alt="mini mobile holiday phone" style="float:left"/>This is a good idea. You can buy a mini mobile phone that&#8217;s SIM free for only £19.99. </p>
<p>You could get a PAYG SIM for it too if you&#8217;re afraid of losing the phone. </p>
<p><a href="http://www.awin1.com/cread.php?awinmid=1152&#038;awinaffid=81226&#038;clickref=staring&#038;p=http%3A%2F%2Fwww.mymemory.co.uk%2FSIM-Free-Mobile-Phones%2FGeneric%2FVX1i-Mini-Mobile-Phone">Check the deal out here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/03/cheap-mobile-phone-for-holiday/feed/</wfw:commentRss>
		</item>
		<item>
		<title>This is how I want to go</title>
		<link>http://www.staringintospace.co.uk/2010/03/this-is-how-i-want-to-go/</link>
		<comments>http://www.staringintospace.co.uk/2010/03/this-is-how-i-want-to-go/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 10:37:18 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=126</guid>
		<description><![CDATA[This a real story out of the Hastings Observer. It seems this man decided to commit suicide by stabbing himself in the groin with a giant souvenir pencil. 

And here&#8217;s me with a really giant pencil. Wish my groin was this big. 

]]></description>
			<content:encoded><![CDATA[<p>This a real story out of the Hastings Observer. It seems this man decided to commit suicide by stabbing himself in the groin with a giant souvenir pencil. </p>
<p><a href="http://farm5.static.flickr.com/4036/4420431940_0144d1a377_b.jpg"><img src="http://farm5.static.flickr.com/4036/4420431940_0144d1a377_b.jpg" width=450/></a></p>
<p>And here&#8217;s me with a really giant pencil. Wish my groin was this big. </p>
<p><img src="http://farm2.static.flickr.com/1154/1411284653_42ab08e9a2_o.jpg"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/03/this-is-how-i-want-to-go/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sharon Osbourne Takes Plastic Surgery Too Far</title>
		<link>http://www.staringintospace.co.uk/2010/03/sharon-osbourne-takes-plastic-surgery-too-far/</link>
		<comments>http://www.staringintospace.co.uk/2010/03/sharon-osbourne-takes-plastic-surgery-too-far/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 16:48:34 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=123</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.staringintospace.co.uk/wp-content/uploads/2010/03/sharon-osbourne-g2.jpg" alt="Sharon Osbourne G2" title="Sharon Osbourne G2" width="546" height="746" class="alignleft size-full wp-image-124" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/03/sharon-osbourne-takes-plastic-surgery-too-far/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Air Fresheners - Fresh Ideas</title>
		<link>http://www.staringintospace.co.uk/2010/02/air-fresheners-fresh-ideas/</link>
		<comments>http://www.staringintospace.co.uk/2010/02/air-fresheners-fresh-ideas/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 13:53:54 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=111</guid>
		<description><![CDATA[Me and the girlfriend were talking about how air fresheners seem to be the most innovative sector of all fast moving consumer goods. As you do. 
Everytime we see a new advert for air fresheners we groan, wondering what they have done now to make me want a new air freshener. 
In recent years we [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_115" class="wp-caption alignleft" style="width: 310px"><img src="http://www.staringintospace.co.uk/wp-content/uploads/2010/02/usb-air-freshener-300x300.jpg" alt="USB Air Freshener" title="USB Ait Freshener" width="300" height="300" class="size-medium wp-image-115" /><p class="wp-caption-text">USB Air Freshener</p></div>Me and the girlfriend were talking about how air fresheners seem to be the most innovative sector of all fast moving consumer goods. As you do. </p>
<p>Everytime we see a new advert for air fresheners we groan, wondering what they have done now to make me want a new air freshener. </p>
<p>In recent years we have seen:</p>
<ul>
<li><a href="http://www.glade.com/productDetailPage.aspx?productId=23">motioned trigger air fresheners</a></li>
<li><a href="http://www.airwick.co.uk/product-electrical-plug-diffuser.php">power point plugin air fresheners</a></li>
<li><a href="http://www.airwick.co.uk/product-symphonia.php">dual scent air fresheners</a></li>
<li>air fresheners disguised as pebbles</li>
<li><a href="http://www.glade.com/productDetailPage.aspx?productId=22">air fresheners disguised as candles</a></li>
<li><a href="http://www.youtube.com/watch?v=9wn74xAS3Mo">air fresheners for toilets</a></li>
<li><a href="http://www.feliway.com/gb">air fresheners for cats</a></li>
<p>Anyway, I was wondering where the air freshener industry was going to take us next. Here&#8217;s my best guess at the future of air de-odourisation solutions. </p>
<p><strong>Aromatherapy Air Fresheners</strong><br />
These will pump our peppy citrus smells in the morning and calming lavender scents in the evening</p>
<p><strong>Fan Driven Smell Dispersal</strong><br />
A squirt of scent only permeates so far into the home. What we need is a squirt, then a huge gust of air to waft the smell into all the nooks and crannies. </p>
<p><strong>Home Selling Air Fresheners</strong><br />
They say that when you are showing potential homebuyers around a home you should bake a loaf of bread at the same time. It makes the house seem more homely. Why not let a air freshener make your house smell like a freshly baked loaf. </p>
<p><strong>Personal Air Fresheners</strong><br />
This would be a pendant you wear that contains a motion sensor. Every time you stop still - it releases a puff of pleasant scent. Great if you&#8217;re visiting public toilets. </p>
<p><strong>Air Fresheners Disguised as Flowers</strong><br />
Flowers are meant to smell nice aren&#8217;t they? These definitely will as they are filled with lab produced chemicals. </p>
<p><strong>Film &#038; TV Licensed Air Fresheners</strong><br />
If you are watching a film like avatar at home on your HD TV - you want it to be as immersive as possible. Why not get an Avatar air freshener that for 3 hours pumps out the smell of Pandora&#8217;s forests. </p>
<p><strong>Remember Scents</strong><br />
Smells are often linked very closely with memories because the <a href="http://en.wikipedia.org/wiki/Olfactory_bulb">olfactory bulb</a> in the brain has intimate access to the amygdala, which processes emotion, and the hippocampus, which is responsible for associative learning.</p>
<p>Why don&#8217;t companies release scents of the 80s (brut &#038; bubblegum) or scents of the 90s (sweat and mdma)? </p>
<p>These would take us back to a simpler time when we didn&#8217;t have to worry so much about what our house fucking smelt like. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/02/air-fresheners-fresh-ideas/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Search Blog Name Suggestions</title>
		<link>http://www.staringintospace.co.uk/2010/02/search-blog-name-suggestions/</link>
		<comments>http://www.staringintospace.co.uk/2010/02/search-blog-name-suggestions/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:10:25 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=109</guid>
		<description><![CDATA[At work recently we were recently asked for naming suggestions for the blog. Here&#8217;s mine. 
Search Box
The entry into the search World
Search Monkey General’s Amazing Tales
You’ve got to read it to believe it. 
Canine Fatty Lumps
Or any other random search term (apart from dogging in Bridgeport)
No Results Found
Not something on our search – because we’ll [...]]]></description>
			<content:encoded><![CDATA[<p>At work recently we were recently asked for naming suggestions for the blog. Here&#8217;s mine. </p>
<p><strong>Search Box</strong><br />
The entry into the search World</p>
<p><strong>Search Monkey General’s Amazing Tales</strong><br />
You’ve got to read it to believe it. </p>
<p><strong>Canine Fatty Lumps</strong><br />
Or any other random search term (apart from dogging in Bridgeport)</p>
<p><strong>No Results Found</strong><br />
Not something on our search – because we’ll return any old shit</p>
<p><strong>iRelevance</strong><br />
Relevance is the key to search. </p>
<p><strong>Query Deary!</strong><br />
Going after the pink searches</p>
<p><strong>Al Go-rhythm</strong><br />
A blog under a witty pseudonym</p>
<p><strong>Crush Google</strong><br />
A blog that outlines our ultimate goal</p>
<p><strong>Telescope</strong><br />
We search the Sky</p>
<p><strong>Stop and Search</strong><br />
Because  you look suspicious</p>
<p><strong>Crazy Search Science &#038; Stats</strong><br />
Nice alliteration and it says what it does on the tin</p>
<p><strong>SearchLight</strong><br />
Casting light on searches</p>
<p><strong>Vanity Search</strong><br />
A vanity search is when you search for your own name. </p>
<p><strong>3 Searches</strong><br />
There are 3 types of search. Navigational, Informational and Transactional (pr0n fits into all 3)</p>
<p><strong>10 QPS</strong><br />
10 queries per second is what we do at peak times (maybe). </p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/02/search-blog-name-suggestions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Magento: Use Integrated Labels</title>
		<link>http://www.staringintospace.co.uk/2010/02/magento-use-integrated-labels/</link>
		<comments>http://www.staringintospace.co.uk/2010/02/magento-use-integrated-labels/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 19:56:18 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=105</guid>
		<description><![CDATA[We wanted to use the excellent integrated labels with Magento.
We worked out that we needed to:
Copy Abstract.php from app\code\core\Mage\Sales\Model\Order\Pdf to  app\code\local\Mage\Sales\Model\Order\Pdf
Add the following to around line 233
/* Print shipping address for postage label */
$this-&#62;_setFontBold($page);
$this-&#62;y = 170;
foreach ($shippingAddress as $label){
if ($label!==&#8221;) {
$page-&#62;drawText(strip_tags(ltrim($label)), 70, $this-&#62;y, &#8216;UTF-8&#8242;);
$this-&#62;y -=10;
}
}

This printed the shipping address fine. However we noticed that it [...]]]></description>
			<content:encoded><![CDATA[<p>We wanted to use the excellent <a href="http://www.integratedlabels.co.uk/ ">integrated labels</a> with Magento.</p>
<p>We worked out that we needed to:<br />
Copy Abstract.php from<em> app\code\core\Mage\Sales\Model\Order\Pdf</em> to  <em>app\code\local\Mage\Sales\Model\Order\Pdf</em></p>
<p>Add the following to around line 233</p>
<blockquote><p>/* Print shipping address for postage label */<br />
$this-&gt;_setFontBold($page);<br />
$this-&gt;y = 170;<br />
foreach ($shippingAddress as $label){<br />
if ($label!==&#8221;) {<br />
$page-&gt;drawText(strip_tags(ltrim($label)), 70, $this-&gt;y, &#8216;UTF-8&#8242;);<br />
$this-&gt;y -=10;<br />
}<br />
}
</p></blockquote>
<p>This printed the shipping address fine. However we noticed that it was printing out the customer&#8217;s phone number on the label too.</p>
<p>To remove this you have to go to app\code\core\Mage\Customer\etc\config.xml [make a backup first] and remove the references to a telephone number from within the &lt;pdf translate=&#8221;title&#8221; module=&#8221;customer&#8221;&gt; block.</p>
<p>Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/02/magento-use-integrated-labels/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Removing Columns In Magento PDF Invoice</title>
		<link>http://www.staringintospace.co.uk/2010/02/removing-columns-in-magento-pdf-invoice/</link>
		<comments>http://www.staringintospace.co.uk/2010/02/removing-columns-in-magento-pdf-invoice/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 20:11:15 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.staringintospace.co.uk/?p=103</guid>
		<description><![CDATA[Taken me age to figure out how to remove the Tax column from the magento PDF invoice.
I&#8217;ve made all my changes in a local version of the Magento core code as described here.
The two files you need to edit are:

To remove headers: /app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php
To rmove the tax from each individual line item /app/code/local/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php

Hope that helps
Simon
]]></description>
			<content:encoded><![CDATA[<p>Taken me age to figure out how to remove the Tax column from the magento PDF invoice.</p>
<p>I&#8217;ve made all my changes in a local version of the Magento core code <a href="http://www.magentocommerce.com/wiki/how-to/editing_an_invoice_pdf">as described here</a>.</p>
<p>The two files you need to edit are:</p>
<ol>
<li>To remove headers: /app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php</li>
<li>To rmove the tax from each individual line item /app/code/local/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php</li>
</ol>
<p>Hope that helps</p>
<p>Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.staringintospace.co.uk/2010/02/removing-columns-in-magento-pdf-invoice/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
