<?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>Blog &#187; Web</title>
	<atom:link href="http://blog.marcuscobden.co.uk/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.marcuscobden.co.uk</link>
	<description>Reflections of a compulsive engineer</description>
	<lastBuildDate>Wed, 01 Sep 2010 10:05:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Apache versions and .htaccess files</title>
		<link>http://blog.marcuscobden.co.uk/2010/06/apache-versions-and-htaccess-files/</link>
		<comments>http://blog.marcuscobden.co.uk/2010/06/apache-versions-and-htaccess-files/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 14:21:31 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.marcuscobden.co.uk/?p=34</guid>
		<description><![CDATA[I was looking into a problem someone was reporting with an apache RewriteRule, only to conclude that it was using features of the Regex library which weren't available in their version of apache.
Using the mod_version module allows you to write htaccess files which can fall back to other rules for older versions of apache.]]></description>
			<content:encoded><![CDATA[<p>The other day I was looking into a problem someone was reporting with an <a title="Apache mod_rewrite RewriteRule directive documentation" href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#RewriteRule">Apache RewriteRule</a>, only to conclude that it was using features of  the Regex library which weren&#8217;t available in their version of Apache.</p>
<p>I found a means of  detecting the different versions of Apache using the <a title="Apache mod_version documentation" href="http://httpd.apache.org/docs/2.2/en/mod/mod_version.html">mod_version module</a>. This allows you to write htaccess files which can fall back to other rules for older versions of Apache.</p>
<p>Unfortunately it&#8217;s only been available since version 2.0.56, but given that this was before the first release of version 2 it&#8217;s fairly safe to assume that anything without mod_version will be running Apache 1.</p>
<p>I will concede that this sounds very obvious, but there was a surprising  lack of results in google for any of the keywords that I thought to try. For the benefit of anyone searching for this; below is an example of how you can use mod_version in practice:</p>
<pre>&lt;IfModule !mod_version.c&gt;
	# Earlier than version 2.0.56, so almost certainly 1.x
	# as 2.0.63 was the first release of version 2.
&lt;/IfModule&gt;
&lt;IfModule mod_version.c&gt;
	# Version 2.0.56 or later
	&lt;IfVersion &lt; 2.2&gt;
		# Before version 2.2
	&lt;/IfVersion&gt;
	&lt;IfVersion &gt;= 2.2&gt;
		# Version 2.2 or later
	&lt;/IfVersion&gt;
&lt;/IfModule&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.marcuscobden.co.uk/2010/06/apache-versions-and-htaccess-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not your regular TI-83</title>
		<link>http://blog.marcuscobden.co.uk/2008/11/not-your-regular-ti-83/</link>
		<comments>http://blog.marcuscobden.co.uk/2008/11/not-your-regular-ti-83/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 18:05:00 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://newblog.marcuscobden.co.uk/?p=11</guid>
		<description><![CDATA[Over a couple of days I put together a <a href="http://www.marcuscobden.co.uk/stuff/2008-10/plot" title="Javascript &#38; Canvas equation plotter">Javascript powered equation plotter</a>, with much the same functionality as my old <a href="http://en.wikipedia.org/wiki/TI-83" title="TI-83 series calculator">TI-83</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve only ever owned one graphical calculator, a <a href="http://en.wikipedia.org/wiki/TI-83" title="TI-83 series calculator">TI-83</a>, which was bought for me around when I started Secondary School. It was the device on which I broke my programming teeth, making crummy games and utilities to make maths exercises less tedious.</p>
<p>The other week I was experimenting with the HTML <a href="http://en.wikipedia.org/wiki/Canvas_tag" title="HTML Canvas tag">Canvas element</a> for another little side-project of mine when I was reminded of the Graph Plot screen which my old calculator has. Essentially it lets you enter a Cartesian equation which it will then plot on the screen.</p>
<p>Subsequently, over a couple of days I put together a <a href="http://www.marcuscobden.co.uk/stuff/2008-10/plot" title="Javascript &amp; Canvas equation plotter"><strong>Javascript powered equation plotter</strong></a>, with much the same functionality as my TI-83. Oh and in the process I found a <a href="https://bugs.webkit.org/show_bug.cgi?id=21888">bug in the WebKit nightly</a>, which they swiftly fixed.</p>
<p>You&#8217;re free to use the <a href="http://www.marcuscobden.co.uk/stuff/2008-10/plot/js/graphPlot.js" title="Javascript equation plotter source code">source</a> to the how you wish, if you&#8217;re that way inclined (it&#8217;s a client-side web script so it&#8217;s practically open source off the bat). Under the hood it makes use of the <a href="http://mootools.net/" title="MooTools - a compact javascript framework">MooTools</a> javascript framework, though I&#8217;ve not made use of its features extensively, so It would only be a matter of an evening&#8217;s work to remove this dependancy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.marcuscobden.co.uk/2008/11/not-your-regular-ti-83/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making the most of Pandora.com</title>
		<link>http://blog.marcuscobden.co.uk/2008/01/making-the-most-of-pandora-com/</link>
		<comments>http://blog.marcuscobden.co.uk/2008/01/making-the-most-of-pandora-com/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 22:08:00 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://newblog.marcuscobden.co.uk/?p=4</guid>
		<description><![CDATA[Pandora.com is pretty cool, it&#8217;s been around for a while now but I just went back to it for some easy listening background music to work to. Supposedly they&#8217;ve begun to use IP filtering to limit the audience to the US. Either this is no longer in place or they&#8217;ve made a mistake in a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pandora.com/">Pandora.com</a> is pretty cool, it&#8217;s been around for a while now but I just went back to it for some easy listening background music to work to.</p>
<p>Supposedly they&#8217;ve begun to use IP filtering to limit the audience to the US. Either this is no longer in place or they&#8217;ve made a mistake in a regex somewhere, as this is definitely not the US.</p>
<p>I&#8217;d forgotten about the limit to the unpaid service, which stops playback after so many songs, but it was quite a while before I actually encountered it.<br />
This may be a Mac OS X bug in the flash implementation, but it seems that if you keep the Firefox window containing the player minimised in the Dock, the music doesn&#8217;t stop playing!<br />
Of course this does get in the way of the whole feedback system slightly, but I&#8217;m sure there are those who won&#8217;t mind too much.</p>
<p>Once I did encounter the limit I couldn&#8217;t just refresh the page and go back to listening again as they&#8217;re smart enough to stop you doing that.</p>
<p>But not <span style="font-style: italic;">that</span> smart.</p>
<p>To completely stop this you would require either some heinous DRM-spawn system describable as cookies which you can&#8217;t delete, or some kind of unique client ID, effectively voiding all browser privacy. So to be fair, from the technologies they had to work with, they&#8217;ve done the best they could. ;)</p>
<p>So once you&#8217;ve been shut out of the Pandora player try the following:</p>
<ol>
<li>Delete your cookies from their domains.</li>
<li>Delete any data stored within Adobe Flash for their domain.</li>
</ol>
<p>The latter can be achieved by opening the Adobe Flash client settings and changing the data limit for the domain to 0KB, which will take effect upon refreshing the page, upon which the flash applet will request to store data in your browser again, and you&#8217;re back listening, but without any of your stations.</p>
<h3>Update:</h3>
<p>It appears that the region filtering will go live on January 15th, not quite yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.marcuscobden.co.uk/2008/01/making-the-most-of-pandora-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
