<?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>I ticked the wrong box &#187; internet</title>
	<atom:link href="http://hamishrickerby.com/category/internet/feed/" rel="self" type="application/rss+xml" />
	<link>http://hamishrickerby.com</link>
	<description>Computer says...</description>
	<lastBuildDate>Fri, 23 Jul 2010 07:46:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Passenger (Ruby on Rails) + PHP on OSX</title>
		<link>http://hamishrickerby.com/2009/08/15/passenger-ruby-on-rails-php-on-osx/</link>
		<comments>http://hamishrickerby.com/2009/08/15/passenger-ruby-on-rails-php-on-osx/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 10:06:53 +0000</pubDate>
		<dc:creator>Hamish Rickerby</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hamishrickerby.com/?p=391</guid>
		<description><![CDATA[I&#8217;ve spent the last hour or so trying various things out to get passenger and PHP to play nicely together on my mac under OS X (Leopard) and apache2. The situation I was finding was that PHP apps would run, but only if you explicitly call the script (ie index.php) rather than just the directory. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the last hour or so trying various things out to get passenger and PHP to play nicely together on my mac under OS X (Leopard) and apache2.</p>
<p>The situation I was finding was that PHP apps would run, but only if you explicitly call the script (ie <tt>index.php</tt>) rather than just the directory.  If you called the directory, passenger would take over and give me a rails routing error.</p>
<p>The issue was to do with the passenger vhosts configuration.  On my machine I have an number of ruby on rails apps configured with the passenger preferences pane (creating vhost entries within <tt>/private/etc/apache2/passenger_pane_vhosts/</tt>.  I have enabled user_dirs, so that the users of my machine&#8217;s pages (and other apps) are served from their <tt>~username/Sites</tt> directory.</p>
<p>My users configuration info for apache is installed in <tt>/private/etc/apache2/users/</tt>, and the instructions to load the configuration from that directory is stored within <tt>/private/etc/apache2/extra/httpd-userdir.conf</tt> (content below).</p>
<pre class="brush: bash;">
# Settings for user home directories
#
# Required module: mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.  Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir Sites
#
# Users might not be in /Users/*/Sites, so use user-specific config files.
#
Include /private/etc/apache2/users/*.conf
</pre>
<p>To get everything working together nicely, I merely wrapped this inside a vhosts configuration directive, and gave it a ServerName of localhost &#8211; so that this vhost would be the one that responds to requests for localhost, rather than some random passenger vhost assuming it was the boss of everything.  New <tt>/private/etc/apache2/extra/httpd-userdir.conf</tt> below.</p>
<pre class="brush: bash;">
&lt;VirtualHost *:80&gt;
  ServerName localhost
  UserDir Sites
  Include /private/etc/apache2/users/*.conf
&lt;/VirtualHost&gt;
</pre>
<p>Thanks to this, all of my rails apps are served under passenger, and I can have static HTML, PHP and camping apps (previously configured &#8211; nothing to do with the above) all served from within my <tt>~username/Sites</tt> directory.</p>
<p>Hope this helps someone.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2696058307997556";
/* 468x60, created 29/07/09 */
google_ad_slot = "3174546356";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://hamishrickerby.com/2009/08/15/passenger-ruby-on-rails-php-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3.0.3 and 500 Internal Errors with Javascript</title>
		<link>http://hamishrickerby.com/2008/10/26/firefox-303-and-500-internal-errors-with-javascript/</link>
		<comments>http://hamishrickerby.com/2008/10/26/firefox-303-and-500-internal-errors-with-javascript/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 11:20:27 +0000</pubDate>
		<dc:creator>Hamish Rickerby</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hamishrickerby.com/?p=259</guid>
		<description><![CDATA[I had a very confusing situation today with a multipart form that was for uploading a picture to a new web service I&#8217;m working on. In Safari the form upload worked. Even in Internet Explorer 6 the form upload worked (after I fixed the dodgy MIME-type that IE passes through for JPG images &#8211; image/pjpeg for [...]]]></description>
			<content:encoded><![CDATA[<p>I had a very confusing situation today with a multipart form that was for uploading a picture to a new web service I&#8217;m working on.</p>
<p>In Safari the form upload worked. Even in Internet Explorer 6 the form upload worked (after I fixed the dodgy MIME-type that IE passes through for JPG images &#8211; image/pjpeg for those interested).</p>
<p>The form I was trying to submit had the multipart attribute set correctly, and also had some javascript to disable the file selection, form submission button, and show a spinner to indicate that something is happening, and they don&#8217;t try and submit the file twice if they&#8217;re sending in a large image.</p>
<p>My submit tag orginally looked like this (Ruby on Rails)</p>
<pre class="brush: ruby;">

&lt;%= submit_tag 'Upload Photo', :class =&gt; &quot;formbutton&quot;, :id =&gt; &quot;submit-button&quot;, <img src='http://hamishrickerby.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> nClick =&gt; &quot;$('upload-form').submit();Form.disable('upload-form');Effect.toggle('footnote', 'appear', {duration: 0});Effect.toggle('spinner', 'appear', {duration: 0});&quot; %&gt;
</pre>
<p>I was very confused as it did work in those other browsers, but not in Firefox.</p>
<p>The key to fixing this was to add return false; to the end of the javascript statement&#8230;</p>
<pre class="brush: ruby;">

&lt;%= submit_tag 'Upload Photo', :class =&gt; &quot;formbutton&quot;, :id =&gt; &quot;submit-button&quot;, <img src='http://hamishrickerby.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> nClick =&gt; &quot;$('upload-form').submit();Form.disable('upload-form');Effect.toggle('footnote', 'appear', {duration: 0});Effect.toggle('spinner', 'appear', {duration: 0});return false;&quot; %&gt;
</pre>
<p>What I find particularly confusing about this is that everything I read on the &#8220;return false;&#8221; statement leads me to believe that this form should not be submitted &#8211; however &#8211; return true does not work (500 Internal Server Error returned). But what the hey &#8211; it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://hamishrickerby.com/2008/10/26/firefox-303-and-500-internal-errors-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NZ don&#8217;t get no respect!</title>
		<link>http://hamishrickerby.com/2008/09/18/nz-dont-get-no-respect/</link>
		<comments>http://hamishrickerby.com/2008/09/18/nz-dont-get-no-respect/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 15:15:29 +0000</pubDate>
		<dc:creator>Hamish Rickerby</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hamishrickerby.com/?p=252</guid>
		<description><![CDATA[I&#8217;ve recently transferred some funds internationally. To do this I needed a special account code so that the bank I&#8217;m sending money to know which of the accounts they hold should receive it. This number is a conventional looking account number, prefixed with a country code, and a checksum value. There is also a website [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently transferred some funds internationally.  To do this I needed a special account code so that the bank I&#8217;m sending money to know which of the accounts they hold should receive it.  This number is a conventional looking account number, prefixed with a country code, and a checksum value.  There is also a website that checks them &#8211; <a href="http://www.apacs.org.uk/payments_industry/ibans_5.html">http://www.apacs.org.uk/payments_industry/ibans_5.html</a></p>
<p>Putting in a country that they can&#8217;t check the actual account number for causes their little javascript application to unleash a serious dissing.</p>
<p><a href='http://hamishrickerby.com/wp-content/uploads/2008/09/no-respect-for-you1.png' rel="lightbox[252]"><img src="http://hamishrickerby.com/wp-content/uploads/2008/09/no-respect-for-you1.png" alt="" title="NZ gets dissed" width="424" height="147" class="alignleft size-full wp-image-254" /></a></p>
<p>Ouch!</p>
<p>BTW &#8211; Sorry for the Rodney Dangerfield knock-off quote.  He&#8217;s awful.</p>
]]></content:encoded>
			<wfw:commentRss>http://hamishrickerby.com/2008/09/18/nz-dont-get-no-respect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>on getting a site into google.  Abridged.</title>
		<link>http://hamishrickerby.com/2008/09/01/on-getting-a-site-into-google-abridged/</link>
		<comments>http://hamishrickerby.com/2008/09/01/on-getting-a-site-into-google-abridged/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 21:32:23 +0000</pubDate>
		<dc:creator>Hamish Rickerby</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hamishrickerby.com/?p=251</guid>
		<description><![CDATA[me: Countees isn&#8217;t in google yet someone else: You have to put it in there? me: Yes, I have to tell them about it. someone else:Â Don&#8217;t they just find it? me: How would they find it? someone else:Â Google. Â  Â  BTW &#8211; check out countees.co.uk &#8211; wear your UK county on your chest. Â More about [...]]]></description>
			<content:encoded><![CDATA[<p>me: Countees isn&#8217;t in google yet</p>
<p>someone else: You have to put it in there?</p>
<p>me: Yes, I have to tell them about it.</p>
<p>someone else:Â Don&#8217;t they just find it?</p>
<p>me: How would they find it?</p>
<p>someone else:Â Google.</p>
<p>Â </p>
<p> <img src='http://hamishrickerby.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Â </p>
<p>BTW &#8211; check out <a href="http://countees.co.uk" target="_blank">countees.co.uk</a> &#8211; wear your UK county on your chest. Â More about this soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://hamishrickerby.com/2008/09/01/on-getting-a-site-into-google-abridged/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dumb Things Company Websites Dont, But Should Do</title>
		<link>http://hamishrickerby.com/2008/08/20/dumb-things-company-websites-dont-do/</link>
		<comments>http://hamishrickerby.com/2008/08/20/dumb-things-company-websites-dont-do/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 16:34:27 +0000</pubDate>
		<dc:creator>Hamish Rickerby</dc:creator>
				<category><![CDATA[business]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hamishrickerby.com/2008/08/20/dumb-things-company-websites-dont-do/</guid>
		<description><![CDATA[Opening hours. I want them on every physical stores, restaurants, and bars website. They do good store locators in the UK, I guess it&#8217;s because postcodes are everywhere, everyone knows them and they identify a very small area (a street, or part of a street). How come stores, when thinking about the data on their [...]]]></description>
			<content:encoded><![CDATA[<p>Opening hours. I want them on every physical stores, restaurants, and bars website. They do good store locators in the UK, I guess it&#8217;s because postcodes are everywhere, everyone knows them and they identify a very small area (a street, or part of a street). How come stores, when thinking about the data on their store locator, don&#8217;t include opening hours. Address and phone are always there, but when I&#8217;m going home on the train I want to know if my local stores will still be open when I get there.</p>
<p>Oh well, no spending at that particular store tonight.  </p>
]]></content:encoded>
			<wfw:commentRss>http://hamishrickerby.com/2008/08/20/dumb-things-company-websites-dont-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s AJAX Libraries API</title>
		<link>http://hamishrickerby.com/2008/08/05/googles-ajax-libraries-api/</link>
		<comments>http://hamishrickerby.com/2008/08/05/googles-ajax-libraries-api/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 15:01:12 +0000</pubDate>
		<dc:creator>Hamish Rickerby</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hamishrickerby.com/?p=243</guid>
		<description><![CDATA[This might be old news (released end of May, I&#8217;m soooo behind the times), but Google are supporting hosting for popular javascript libraries, and they are promoting people using their copies of the libraries rather than hosting their own.Â  I only just found this out, and I think it&#8217;s pretty cool http://code.google.com/apis/ajaxlibs/ The service supports [...]]]></description>
			<content:encoded><![CDATA[<p>This might be old news (released end of May, I&#8217;m soooo behind the times), but Google are supporting hosting for popular javascript libraries, and they are promoting people using their copies of the libraries rather than hosting their own.Â  I only just found this out, and I think it&#8217;s pretty cool</p>
<p><a href="http://code.google.com/apis/ajaxlibs/" target="_blank">http://code.google.com/apis/ajaxlibs/</a></p>
<p>The service supports either <a href="http://code.google.com/apis/ajax/documentation/" target="_blank">programmatic inclusion</a> using the google jsapi library, or <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#AjaxLibraries" target="_blank">linking directly</a> to their hosted copies.</p>
<p>Good things about this</p>
<ul>
<li>You save bandwidth costs, as your users download the libraries from google</li>
<li>Your users get faster browsing ON OTHER DOMAINS, because the more people that use a single source, the more caching should happen</li>
</ul>
<p>Bad things about this</p>
<ul>
<li>Google have more opportunity to <span style="text-decoration: line-through;">don&#8217;t</span> be evil &#8211; the biggest concern for me is their increased ability to understanding which users use your application, and propensity for understanding <em>how</em> they use it.Â  A malicious individual within the company could put some nasty code in the js to screw with your site, or monitor and transmit back to googlebase what the user is up to.Â  It&#8217;s <em>very</em> unlikely, but it could happen.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hamishrickerby.com/2008/08/05/googles-ajax-libraries-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lost followers on Twitter</title>
		<link>http://hamishrickerby.com/2008/07/24/lost-followers-on-twitter/</link>
		<comments>http://hamishrickerby.com/2008/07/24/lost-followers-on-twitter/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 11:14:24 +0000</pubDate>
		<dc:creator>Hamish Rickerby</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hamishrickerby.com/?p=240</guid>
		<description><![CDATA[Twitter seems to be having some issues, well, more issues than normal.Â  I was surprised to not get any updates on Twitterrific on my iphone today, so though I&#8217;d check out what was going down on their site.Â  It appears that I&#8217;ve lost all of the people I was following, and all of my followers.Â  [...]]]></description>
			<content:encoded><![CDATA[<p>Twitter seems to be having some <a href="http://www.badlydrawntoy.com/2008/07/24/twitter-lost-followers/" target="_blank">issues</a>, well, more issues than normal.Â  I was surprised to not get any updates on <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284540316&amp;mt=8" target="_blank">Twitterrific on my iphone</a> today, so though I&#8217;d check out what was going down on their site.Â  It appears that I&#8217;ve lost all of the people I was following, and all of my followers.Â  A quick check with some of the followers as well, and they&#8217;ve lost all their contacts.</p>
<p>Come on Twitter, what&#8217;s going on?</p>
<p>(and if you want, follow <a href="http://twitter.com/rickerbh" target="_blank">me </a>on Twitter!)</p>
]]></content:encoded>
			<wfw:commentRss>http://hamishrickerby.com/2008/07/24/lost-followers-on-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sneaky old TextDrive</title>
		<link>http://hamishrickerby.com/2007/01/06/sneaky-old-textdrive/</link>
		<comments>http://hamishrickerby.com/2007/01/06/sneaky-old-textdrive/#comments</comments>
		<pubDate>Sat, 06 Jan 2007 20:40:50 +0000</pubDate>
		<dc:creator>Hamish Rickerby</dc:creator>
				<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://hamishrickerby.com/blog/2007/01/06/sneaky-old-textdrive/</guid>
		<description><![CDATA[Well, TextDrive have just confused me! There is an apache_module (I think) that checks for offending strings that are sent to the textdrive servers. I wanted to (in my last post) explain that I used &#8220;wget&#8221; to get the RSS feed from my blogspot account, but I figured out that they didn&#8217;t like me using [...]]]></description>
			<content:encoded><![CDATA[<p>Well, TextDrive have just confused me!  There is an apache_module (I think) that checks for offending strings that are sent to the textdrive servers.  I wanted to (in my last post) explain that I used &#8220;wget&#8221; to get the RSS feed from my blogspot account, but I figured out that they didn&#8217;t like me using the phrase &#8220;wget&#8221; in my previous post.</p>
<p>Explanation (kind of) is available <a href="http://clug.org/?q=node/130">here</a>.  Short answer is that the phrase &#8220;wget&#8221; (minus the quotes) followed by a space is not allowed.  Crazy, huh?</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2696058307997556";
/* 468x60, created 29/07/09 */
google_ad_slot = "3174546356";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://hamishrickerby.com/2007/01/06/sneaky-old-textdrive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
