<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Kernow Soul Blog</title>
    <description>The blog of Jamie Dyer</description>
    <link>http://kernowsoul.com/blog</link>
    <item>
      <title>New bars and rubber for the steed</title>
      <description>&lt;p&gt;&lt;img src=&quot;/uploaded/images/bike-iphone.jpg&quot; alt=&quot;Lemond Fillmore with bull horn bars and orange rubber&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;A couple of weeks ago I had to replace the old tires on my Fillmore as I&amp;#8217;d worn through the green ones that came with teh bike. Took a bit of getting used to the orange but it&amp;#8217;s definitely growing on me.&lt;/p&gt;


	&lt;p&gt;This last weekend I managed a puncture the inner tube while pulling the pump off which required a trip to &lt;a href=&quot;http://www.stradacycles.co.uk/&quot;/&gt;Strada Cycles&lt;/a&gt;. I ended up replacing the bars and break callipers so it turned out to be a much more expensive trip than I was expecting. Just shy of &#163;100 got me a new inner tube and I was back on the road again.&lt;/p&gt;</description>
      <pubDate>Mon, 22 Dec 2008 20:17:51 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/12/22/new-bars-and-rubber-for-the-steed</link>
      <guid>http://kernowsoul.com/blog/2008/12/22/new-bars-and-rubber-for-the-steed</guid>
    </item>
    <item>
      <title>javascript_auto_include plugin updated</title>
      <description>&lt;p&gt;I&amp;#8217;ve updated the &lt;a href=&quot;http://kernowsoul.com/page/javascript_auto_include&quot;&gt;javascript_auto_include plugin&lt;/a&gt; to include changes from &lt;a href=&quot;http://github.com/abradburne&quot;&gt;abradburne&lt;/a&gt; and &lt;a href=&quot;http://github.com/jimp79&quot;&gt;jimp79&lt;/a&gt;. Thanks to these guys the plugin now supports nested controllers so you can add javascript to a paths like admin/users and admin/users/show/1 etc.&lt;/p&gt;</description>
      <pubDate>Tue, 02 Dec 2008 16:03:38 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/12/02/javascriptautoinclude-plugin-updated</link>
      <guid>http://kernowsoul.com/blog/2008/12/02/javascriptautoinclude-plugin-updated</guid>
    </item>
    <item>
      <title>MySQL order by rand on large data sets</title>
      <description>&lt;p&gt;More of a note to self than a real post. &lt;a href=&quot;http://www.paperplanes.de/archives/2008/4/24/mysql_nonos_order_by_rand/&quot;&gt;Great solution to extremely slow order by rand() queries&lt;/a&gt; when using large data sets by &lt;a href=&quot;http://www.paperplanes.de&quot;&gt;Paperplanes&lt;/a&gt;. Using this technique a query previously taking nearly 0.2 seconds was reduced to around 0.01 seconds.&lt;/p&gt;</description>
      <pubDate>Mon, 01 Dec 2008 17:49:45 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/12/01/mysql-order-by-rand-on-large-data-sets</link>
      <guid>http://kernowsoul.com/blog/2008/12/01/mysql-order-by-rand-on-large-data-sets</guid>
    </item>
    <item>
      <title>Running Merb on a shared host without compiler permissions</title>
      <description>&lt;p&gt;I ran into a problem earlier today when testing a &lt;a href=&quot;http://merbivore.com&quot;&gt;Merb&lt;/a&gt; application in a shared hosting environment running &lt;a href=&quot;http://www.modrails.com&quot;&gt;Phusion Passenger&lt;/a&gt;. Like most shared hosts access to compilers is not allowed for obvious security reasons, this causes a problem when trying to run a Merb app. Merb makes use of &lt;a href=&quot;http://rubyforge.org/projects/rubyinline/&quot;&gt;RubyInline&lt;/a&gt; which needs to compile a C application in your home folder before it can run so when the user you&#8217;re running Merb under doesn&#8217;t have permission to run C compilers you&#8217;ll get an error similar to:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;sh: /usr/bin/gcc: Permission denied&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;The way to get around this is to have a privileged user compile the C application for you, then copy it to your users home folder. The easiest way to do this is to generate and run a Merb app as the root user:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;merb-gen app tmp-merb
merb
Ctrl+C&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Then copy the RubyInline C application to the users home folder:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;cp -R /root/.ruby_inline /home/&amp;lt;username&amp;gt;&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Make sure the file ownership is set correctly:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;chown -R &amp;lt;username&amp;gt;:&amp;lt;username&amp;gt; /home/&amp;lt;username&amp;gt;/.ruby_inline&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;After this you should be able to run Merb as expected. If you are still getting errors after doing this relating to file permissions you&#8217;ll need to combine this fix with from &lt;a href=&quot;http://www.viget.com/extend/rubyinline-in-shared-rails-environments/&quot;&gt;Vignet&lt;/a&gt; and put the .ruby_inline folder in a place accessible to both the apache user and the user running the Merb app, I&#8217;ve not tested this but it should work.&lt;/p&gt;</description>
      <pubDate>Fri, 21 Nov 2008 13:54:07 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/11/21/running-merb-on-a-shared-host-without-compiler-permissions</link>
      <guid>http://kernowsoul.com/blog/2008/11/21/running-merb-on-a-shared-host-without-compiler-permissions</guid>
    </item>
    <item>
      <title>Updating RubyGems on OSX</title>
      <description>&lt;p&gt;Slightly late to the show I updated to RubyGems 1.3.0 today, the upgrade isn&amp;#8217;t as straight forward as usual on &lt;span class=&quot;caps&quot;&gt;OSX 10&lt;/span&gt;.5 and requires a little extra work.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://rails.wincent.com&quot;&gt;wincent.com&lt;/a&gt; posted up some &lt;a href=&quot;http://rails.wincent.com/wiki/Updating_to_RubyGems_1.3.0_on_Mac_OS_X_Leopard_10.5.4&quot;&gt;instructions on how to upgrade to RubyGems 1.3.0&lt;/a&gt; which are useful for anyone having issues.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; It looks like this issue is not specific to &lt;span class=&quot;caps&quot;&gt;OSX&lt;/span&gt;, I was updating a couple of Linux servers and had to follow the same procedure.&lt;/p&gt;</description>
      <pubDate>Sat, 18 Oct 2008 12:50:17 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/10/18/updating-rubygems-on-osx</link>
      <guid>http://kernowsoul.com/blog/2008/10/18/updating-rubygems-on-osx</guid>
    </item>
    <item>
      <title>Colour profiles in Photoshop for web design</title>
      <description>&lt;p&gt;While getting the photo of my &lt;a href=&quot;http://kernowsoul.com/blog/2008/09/26/my-new-business-cards-have-arrived&quot;&gt;new business card&lt;/a&gt; ready for the web I fired up Photoshop on the laptop. I soon realised I&amp;#8217;d not used Photoshop on the laptop before, when I hit the save for web button my lovely photo changed into something hideously washed out. As someone who rarely uses Photoshop any more I always forget how to set-up colour profiles and remember spending quite some time doing this on the desktop machine.&lt;/p&gt;


	&lt;p&gt;To my amazement a quick google search and a couple of minutes later I was all set-up and exported my photo exactly how I wanted it. Thanks &lt;a href=&quot;http://www.usabilitypost.com&quot;&gt;Usability Post&lt;/a&gt; for your amazingly simple and accurate &lt;a href=&quot;http://www.usabilitypost.com/2008/07/30/photoshop-color-profiles-for-web-images/&quot;&gt;guide to setting up colour profiles for web design&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Fri, 26 Sep 2008 18:03:43 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/09/26/colour-profiles-in-photoshop-for-web-design</link>
      <guid>http://kernowsoul.com/blog/2008/09/26/colour-profiles-in-photoshop-for-web-design</guid>
    </item>
    <item>
      <title>My new business cards have arrived</title>
      <description>&lt;p&gt;I&amp;#8217;ve been making do with some terrible old business card for the last few years and thought it was about time for some nice new ones. I wanted to go for something nice, clean and simple so designed them with just a little type, a bit of custom kerning then shot them off to the &lt;a href=&quot;http://moo.com&quot;&gt;nice little moo bot&lt;/a&gt; to print. I have to say I do quite like the playful tone and nice little touches moo uses in their communications, it makes you feel happy.&lt;/p&gt;


	&lt;p&gt;&lt;img src=&quot;/uploaded/images/business-card.jpg&quot; alt=&quot;Jamie Dyer business card&quot; /&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 26 Sep 2008 17:53:52 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/09/26/my-new-business-cards-have-arrived</link>
      <guid>http://kernowsoul.com/blog/2008/09/26/my-new-business-cards-have-arrived</guid>
    </item>
    <item>
      <title>Is anyone else excited about Merb 1.0?</title>
      <description>&lt;p&gt;I certainly am, Merb 1.0 is due to be announced at &lt;a href=&quot;http://www.merbcamp.com&quot;&gt;MerbCamp&lt;/a&gt; on the 11th October. Right now the guys are hard at work polishing the knobs and working on documentation.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ve been following &lt;a href=&quot;http://merbivore.com&quot;&gt;Merb&lt;/a&gt; with interest ever since I first heard about it. One of the things I found hard to keep up with-just dipping into it now and then-was the speed of development and change. Every time I had a few minutes to play with it everything had changed. Its a bit like having the rug pulled out from under you every time you manage to get to your knees.&lt;/p&gt;


	&lt;p&gt;With the 1.0 release Merb should be far more stable, and with some decent documentation I hope it will start taking off quickly. The barrier to entry will be greatly lowered. Even though I won&amp;#8217;t be at MerbCamp I&amp;#8217;ll certainly be following it closely.&lt;/p&gt;


	&lt;p&gt;I wonder if the 1.0 release will be promptly followed by a 1.0.1 release as is tradition.&lt;/p&gt;</description>
      <pubDate>Fri, 26 Sep 2008 00:03:23 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/09/26/is-anyone-else-excited-about-merb-10</link>
      <guid>http://kernowsoul.com/blog/2008/09/26/is-anyone-else-excited-about-merb-10</guid>
    </item>
    <item>
      <title>UK does it better... I agree</title>
      <description>&lt;p&gt;So the rain has backed off for the first sustained period since I moved back to the UK, I&amp;#8217;ve taken the opportunity to lay on the grass in the sun and read a book I picked up the other day, &lt;a href=&quot;http://punkmarketing.com&quot;&gt;Punk Marketing&lt;/a&gt;. Not that far in and I&amp;#8217;m allready enjoying it, who would have thought a book on marketing could be entertaining!&lt;/p&gt;


	&lt;p&gt;I came across a quote I thought I would share&amp;#8230; &amp;#8220;Go to a multiplex, sit through the ads, and see how abused you feel by the start of the movie. Then to to a cinema in the UK and motive that most peole turn up to view those commercials. Because they are actually fun-sensible and intriguing and full of messages that make people applaud.Yes, shout out with glee! These are entertaining, funny, well-produced, and cool. Four terms you&amp;#8217;d never use to describe an ad at movies in the US of A today.&amp;#8221;&lt;/p&gt;


	&lt;p&gt;I couldn&amp;#8217;t agree more, those poor Canadians are force fed the majority the &lt;span class=&quot;caps&quot;&gt;USA&lt;/span&gt;&amp;#8217;s crappy ads. What&amp;#8217;s probably worse is that often the product or service isn&amp;#8217;t even available to them! I digress, having suffered with the Canadians for the last three years I can say I would gladly watch several hours of English commercials than a single US ad break.&lt;/p&gt;


	&lt;p&gt;In closing&amp;#8230; Well done Britain, we produce some of the best ads in the world.&lt;/p&gt;</description>
      <pubDate>Sun, 21 Sep 2008 14:43:18 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/09/21/uk-does-it-better-i-agree</link>
      <guid>http://kernowsoul.com/blog/2008/09/21/uk-does-it-better-i-agree</guid>
    </item>
    <item>
      <title>javascript_auto_include plugin has a new home</title>
      <description>&lt;p&gt;After floating around without a proper home the javascript_auto_include plugin now has a nice cosy permanent home on my website. I&amp;#8217;ve also added an update for Rails 2.x compatibility submitted by &lt;a href=&quot;http://github.com/davidsch/javascript_auto_include/tree/master&quot;&gt;davidsch&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;You can find the official plugin page under the Rails Plugins heading on the right. Or visit the &lt;a href=&quot;http://kernowsoul.com/page/javascript_auto_include&quot;&gt;javascript_auto_include&lt;/a&gt; page link.&lt;/p&gt;</description>
      <pubDate>Fri, 19 Sep 2008 16:04:50 +0000</pubDate>
      <link>http://kernowsoul.com/blog/2008/09/19/javascriptautoinclude-plugin-has-a-new-home</link>
      <guid>http://kernowsoul.com/blog/2008/09/19/javascriptautoinclude-plugin-has-a-new-home</guid>
    </item>
  </channel>
</rss>
