	
<?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>Gareth Poole</title>
	<atom:link href="http://garethpoole.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://garethpoole.com</link>
	<description>I develop applications for the web &#38; mobile using PHP, MySQL, HTML, CSS, jQuery.</description>
	<lastBuildDate>Mon, 19 Dec 2011 16:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Detecting Retina display with Titanium Appcelerator</title>
		<link>http://garethpoole.com/detecting-retina-display-with-titanium-appcelerator/</link>
		<comments>http://garethpoole.com/detecting-retina-display-with-titanium-appcelerator/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 16:30:14 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[appcelerator]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://garethpoole.com/?p=151</guid>
		<description><![CDATA[Spent a while looking around for this &#8211; turned out to be easier than I imagined! var retina = false; if (Titanium.Platform.model=='iPhone 4'){ retina = true; }]]></description>
			<content:encoded><![CDATA[<p>Spent a while looking around for this &#8211; turned out to be easier than I imagined!<br />
<code>var retina = false;<br />
if (Titanium.Platform.model=='iPhone 4'){<br />
	retina = true;<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://garethpoole.com/detecting-retina-display-with-titanium-appcelerator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending POST data to an API in PHP</title>
		<link>http://garethpoole.com/sending-post-api-php/</link>
		<comments>http://garethpoole.com/sending-post-api-php/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 18:28:46 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://garethpoole.com/?p=129</guid>
		<description><![CDATA[Had a fairly eventful day building an API teamed with a bespoke Codeigniter-driven content management system, and fell into a few problems when POST'ing information from the CMS to my web service. I've put together a quick + dirty function that'll get you started, and I'll publish a more in-depth post later, with a dedicated Codeigniter library.<br /><a class="readmore" href="http://garethpoole.com/sending-post-api-php/">Read post <span class="meta-nav">&#8250;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Had a fairly eventful day building an API teamed with a bespoke Codeigniter-driven content management system, and fell into a few problems when POST&#8217;ing information from the CMS to my web service.</p>
<p>I&#8217;ve put together a quick + dirty function that&#8217;ll get you started, and I&#8217;ll publish a more in-depth post later, with a dedicated Codeigniter library.</p>
<p><code>$url = 'http://webservice.local/data.json';<br />
$data = array("name" =&gt; "Gareth", "email" =&gt; "gareth@mail.com");<br />
<span style="margin-bottom:0px;display:block;">$response = sendPostData($url, $data);</span><br />
function sendPostData($url, $post){<br />
&nbsp;$ch = curl_init($url);<br />
&nbsp;curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br />
&nbsp;curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");<br />
&nbsp;curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));<br />
&nbsp;return curl_exec($ch);<br />
}</code></p>
<p>The JSON encoded string should be stored in $response. Use <em>json_decode()</em> to convert it into a usable StdClass object.</p>
]]></content:encoded>
			<wfw:commentRss>http://garethpoole.com/sending-post-api-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizing images from the CLI</title>
		<link>http://garethpoole.com/resizing-images-from-the-cli/</link>
		<comments>http://garethpoole.com/resizing-images-from-the-cli/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 15:45:46 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[quick tips]]></category>

		<guid isPermaLink="false">http://garethpoole.com/?p=96</guid>
		<description><![CDATA[An easy way to resize images quickly from the command line on your Mac. Navigate to the directory where the images you wish to resize are, using cd. I use a wildcard search (*) to resize all images in a directory, but to resize individual images, just swap *.JPG with the image&#8217;s filename. Here, I&#8217;m setting the maximum dimension (width or height, depending on whether the image is landscape or portrait) to 1920, or 1080p. sips -Z 1920 *.JPG]]></description>
			<content:encoded><![CDATA[<p>An easy way to resize images quickly from the command line on your Mac. Navigate to the directory where the images you wish to resize are, using <b>cd</b>. I use a wildcard search (*) to resize <em>all</em> images in a directory, but to resize individual images, just swap *.JPG with the image&#8217;s filename.</p>
<p>Here, I&#8217;m setting the maximum dimension (width or height, depending on whether the image is landscape or portrait) to 1920, or 1080p.<br />
<code>sips -Z 1920 *.JPG</code></p>
]]></content:encoded>
			<wfw:commentRss>http://garethpoole.com/resizing-images-from-the-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing CRON jobs on a Mac</title>
		<link>http://garethpoole.com/writing-cron-jobs-on-a-mac/</link>
		<comments>http://garethpoole.com/writing-cron-jobs-on-a-mac/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 15:28:12 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://studionorth.local/?p=12</guid>
		<description><![CDATA[Mac OSX is essentially a UNIX distribution, so we have all the cool under-the-bonnet tricks and tools of any operating system with a UNIX backbone. One of the utilities I’ve always found useful in a UNIX OS is the CRON tab. The post describes how you can put together some Cron-jobs on Mac OSX.<br /><a class="readmore" href="http://garethpoole.com/writing-cron-jobs-on-a-mac/">Read post <span class="meta-nav">&#8250;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mac OSX is essentially a UNIX distribution, so we have all the cool under-the-bonnet tricks and tools of any operating system with a UNIX backbone. One of the utilities I&#8217;ve always found useful in a UNIX OS is the CRON tab:</p>
<blockquote><p>&#8220;Cron is a time-based job scheduler in Unix-like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration, though its general-purpose nature means that it can be used for other purposes, such as connecting to the Internet and downloading email.&#8221;</p></blockquote>
<p>To set up a new Cron job, open your Terminal and type:</p>
<p><code>sudo crontab -e</code></p>
<p>You&#8217;ll be prompted for your password, and upon correct submission, will open a blank VI window. The basic format of a Cron is:</p>
<p><code>0 0 * * * sh /directory/script.sh</code></p>
<ol>
<li>The first 0 denotes minutes past the hour (0 is on the hour)</li>
<li>The second 0 denotes the hour of the day (0 is 12:00am)</li>
<li>The first * denotes day of the week (* means every day, 1 is Monday etc)</li>
<li>The second * is the week of the month (* means every week, 1 is the first week of the month)</li>
<li>The final * is the month of the year (* means every month, 1 is the first month of the year)</li>
</ol>
<p>We specify the <b>type</b> of script we wish to execute; in the example above, we&#8217;re executing a basic shell script, and the final parameter details the <b>absolute location of the script you wish to execute</b> at regular intervals.</p>
<p>I often execute daily PHP scripts on my server, an example of a PHP script (backup.php) running every day at 6pm is:</p>
<p><code>0 18 * * * php ~/site/cleanup.php</code></p>
<p>Note the script type is now <b>php</b>, as we&#8217;re executing a php script, not a shell script.</p>
<p>Finally, let&#8217;s write a script that backs up my ssh keys from ~/.ssh to my <a href="http://db.tt/71K95Rl" rel="external">Dropbox</a> directory, once a week, on a Monday at 9:30am.</p>
<p>Using <a href="/hints/terminal/">Terminal.app</a>, open a new file for editing anywhere on your system (I use <b>vi</b>).</p>
<p><code>sudo vi ~/src/backup.sh</code></p>
<p>Copy and paste the script below, write to backup.sh and exit vi.</p>
<p><code>#!/bin/bash<br />
sudo rsync -av --progress --delete --log-file=/Users/*yourmachine*/logs/$(date +%Y%m%d)_rsync.log  /Users/*yourmachine*/.ssh /Users/*yourmachine*/Dropbox</code></p>
<p>The script uses rsync to backup the directory at &#8220;/Users/*yourmachine*/.ssh&#8221; to your <a href="http://db.tt/71K95Rl" rel="external">Dropbox</a> directory at &#8220;/Users/*yourmachine*/Dropbox&#8221;. It&#8217;ll also log the backup in a logs directory in your home directory. Now for the Cron.</p>
<p><code><span class="tip" title="30 minutes past the hour">30</span> <span class="tip" title="At 9am">9</span> <span class="tip" title="Every 1st day of the week (Monday)">1</span> <span class="tip" title="Every week in the month">*</span> <span class="tip" title="Every month in the year">*</span> <span class="tip" title="Execute shell command">sh</span> <span class="tip" title="Execute this script">~/src/backup.sh</span></code></p>
<p>Hopefully this will get you started with using Cron on your OSX system.</p>
]]></content:encoded>
			<wfw:commentRss>http://garethpoole.com/writing-cron-jobs-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Sweet Setup</title>
		<link>http://garethpoole.com/my-sweet-setup/</link>
		<comments>http://garethpoole.com/my-sweet-setup/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 14:50:56 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://studionorth.local/?p=6</guid>
		<description><![CDATA[I thought I'd copy the 'My Sweet Setup' feature from Shawn Blancs blog on my own, and talk about my daily workflow the tools I use to get things done.<br /><a class="readmore" href="http://garethpoole.com/my-sweet-setup/">Read post <span class="meta-nav">&#8250;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d copy the &#8216;My Sweet Setup&#8217; feature from <a href="http://shawnblanc.net/" rel="external">Shawn Blancs blog</a> on my own, and talk about my daily workflow the tools I use to get things done.</p>
<p><img src="http://garethpoole.com/wp-content/uploads/2011/11/macbook-pro-15-matte.jpg" alt="" title="macbook-pro-15-matte" width="420" height="314" class="alignright size-full wp-image-89" /></p>
<p>I currently run a 2010 15&#8243; MacBook Pro 2.66GHz Core i7 running Snow Leopard as my main development machine with 8GB RAM, which is essential since Titanium Studio and Safari 5 seem to consume most of this during the course of the day. Working on a laptop all day is tough on the neck and back so I use a Rain Design mStand, with an Apple Trackpad + full size wired keyboard, with the number pad. I&#8217;ve always preferred to have the number-pad there on the right. The mStand ensures the laptop display is at a comfortable height, and looks pretty cool doing it.</p>
<p>I upgraded the memory to 8GB, and boosted the HDD to a 500GB 5400rpm mechanical drive. The mechanical drive became a massive performance bottleneck, so I installed an MCE Optibay where the (rarely used) DVD drive sat, and installed a 160GB Intel SSD as my primary boot drive. The spinning drive houses my iTunes library, Safari downloads, and other large .dmg&#8217;s.</p>
<p>I have an iPhone 4 &amp; first generation iPad for app and browser testing.</p>
<h2>Why this rig?</h2>
<p>Previously I spent a month with a 27&#8243; iMac, and while the all-in-one form factor was nice to have (quad processor, large hard drive), I longed for the portability of a notebook, which matched the desktop for performance. I exchanged the iMac for my current MacBook Pro, with a bumped i7 processor and hi-res matte display. I couldn&#8217;t imagine going back to a glossy display &#8211; the matte finish on the MacBook Pro is perfect, and the increased screen real estate is good for having multiple apps open in the same window &#8211; I usually have Titanium Studio + a device simulator open side by side.</p>
<h2>What software do you use and for what do you use it?</h2>
<ul>
<li><a href="http://itunes.apple.com/gb/app/coda/id406001464?mt=12" rel="external nofollow">Coda</a> is the main piece of software I use, and use it every single day. I use Coda for local and live web development, the meat and potatoes of my workflow.</li>
<li><a>Titanium Studio</a> for developing native iOS and Android applications.</li>
<li><a href="http://www.pixelmator.com/">Pixelmator</a> for 90% of the image editing and design I do. It&#8217;s unbelievably fast, and has just the right level of flexibility I need as a developer.</li>
<li><a href="http://www.adobe.com/products/fireworks.html">Fireworks CS5</a> for screen mockups and general bits of design work. I don&#8217;t like how slow it feels compared to more native Mac apps, like Pixelmator.</li>
<li><a>Sparrow</a> for e-mail. What Mail.app in Lion should&#8217;ve been.</li>
<li><a>Sequel Pro</a> for local and remote MySQL database management.</li>
<li><a>VMWare Fusion</a> I keep a number of Windows virtual machines for native browser testing.</li>
<li><a>The Hit List</a> for organising tasks that come through from clients. Clients tend to send over bugfixes / additions in bulleted lists in email, I just reformat them in THL so can be checked off when complete.</li>
<li><a href="http://itunes.apple.com/us/app/twitter/id409789998?mt=12">Twitter for Mac</a></li>
<li>Safari for the majority of my surfing. Generally use Firefox for development &#8211; I preferred Webkit&#8217;s old Inspector.</li>
<li><a href="http://evernote.com/">Evernote</a> because it&#8217;s amazing, syncs across all my devices, and free!</li>
</ul>
<h2>How does this setup help you do your best creative work?</h2>
<p>Using a UNIX based operating system like OSX ensures great uptime, security and reliability. Building apps for iOS devices requires a machine running OSX for XCode, and there&#8217;s an Android SDK for OSX too. Having the portability of the notebook allows me to work from anywhere &#8211; I recently put together an app on a return flight from Seoul.</p>
<p>Having my iPhone handy for music &amp; my weekly podcasts keeps me in the zone during a productive day.</p>
<h2>How would your ideal setup look and function?</h2>
<p>I&#8217;ll be moving from life as a freelancer to full time shortly, so I thought of personally &#8216;downsizing&#8217; to a iOS ecosystem, using a Mac Mini Server and iCloud to store + manage my personal digital content, I&#8217;d upgrade my iPad, and I&#8217;m keeping a close eye on Apple&#8217;s TV business in light of <a href="http://news.cnet.com/8301-13579_3-20124761-37/apple-tv-did-steve-jobs-crack-the-code/">comments made by Steve Jobs in his biography</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://garethpoole.com/my-sweet-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Next generation text editors</title>
		<link>http://garethpoole.com/next-generation-text-editors/</link>
		<comments>http://garethpoole.com/next-generation-text-editors/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 14:50:43 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://studionorth.local/?p=4</guid>
		<description><![CDATA[There's been a lot of speculation recently about the next generation of the top text editors us developers are using day to day on our OSX based machines. I share my feature wish list for my editor of choice, Coda.<br /><a class="readmore" href="http://garethpoole.com/next-generation-text-editors/">Read post <span class="meta-nav">&#8250;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been a lot of speculation recently about the next generation of the top text editors us developers are using day to day on our OSX based machines. With both Macromates and Panic announcing version 2.0 of their popular text editor products, Textmate and Coda (respectively), their communities of users have been wagering on the new features, enhancements and optimisations we can expect in their next generation iterations, when they arrive next year.</p>
<p>Although it&#8217;s my editor of choice, I&#8217;ve recently experienced quite a few instances where Coda has left me short-changed in my workflow as it&#8217;s changed this year. Here&#8217;s a few things I&#8217;m expecting of their 2.0 release when it ships in 2012.</p>
<ul>
<li><strong>Git support</strong> &#8211; Panic integrated subversion into Coda 1.5 (IIRC), it&#8217;d be nice to see my source control system of choice baked into 2.0 with similar GUI elements as subversion.</li>
<li><strong>Transmit &#8220;Twin Turbo&#8221; FTP Engine</strong> &#8211; Panic released Transmit 4 this year and it&#8217;s FTP engine is really fast. It&#8217;s kind of a given that their new engine will be built into Coda 2.0.</li>
<li><strong>Better code completion</strong> &#8211; better jQuery and CSS3 support specifically. It&#8217;s also frustrating when an already existing closing tag doesn&#8217;t stop opening a HTML tag from automatically creating another instance of that closing tag. Coda users will know what I mean on that one!</li>
<li><strong>Code folding</strong> &#8211; simple request, let me minimise code within {}&#8217;s.</li>
<li><strong>Sites archive</strong> &#8211; when I&#8217;m done with a site, I&#8217;d like to be able to &#8216;archive&#8217; it, and not clutter my growing &#8216;Sites&#8217; window when I launch Coda. It&#8217;d be nice to just see projects I&#8217;m currently working on.</li>
<li><strong>Site Export</strong> &#8211; It&#8217;d be cool to be able to export an encrypted password-protected version of a site&#8217;s settings, and share that with my Coda-using peers instead of sending FTP/SSH details in emails etc.</li>
<li><strong>iCloud support</strong> &#8211; I&#8217;d love Coda to utilize Apple&#8217;s iCloud service to backup my site configurations and preferences to the cloud, so they&#8217;re there waiting for me when I decide to reinstall my OS, or switch machines.</li>
<li><strong>64 Bit + performance bump</strong> &#8211; Coda&#8217;s one of the last remaining apps I use that hasn&#8217;t been written in pure 64-bit Cocoa. I&#8217;ve got 8GB of memory waiting to be addressed! I&#8217;m not sure the app&#8217;s leveraging new tech introduced in Snow Leopard, like Grand Central Dispatch or OpenCL, but I&#8217;d like to see more performance in the 2.0 release.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://garethpoole.com/next-generation-text-editors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watching BBC iPlayer content abroad</title>
		<link>http://garethpoole.com/bbc-iplayer-abroad-ubuntu-server/</link>
		<comments>http://garethpoole.com/bbc-iplayer-abroad-ubuntu-server/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 10:05:29 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://garethpoole.com/?p=118</guid>
		<description><![CDATA[I figured out a way to use my UK based Ubuntu server to act as a proxy, forwarding packets from services like BBC iPlayer and TVCatchup to my MacBook Pro in our flat in Suji. This post will show you how you can use Squid3 to easily setup a proxy so you can stream content from the UK.<br /><a class="readmore" href="http://garethpoole.com/bbc-iplayer-abroad-ubuntu-server/">Read post <span class="meta-nav">&#8250;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I spent a lot of time working from Seoul this year, and squandered a lot of my evenings trying to decipher Korean soaps, to questionable success. Eventually I figured out a way to use my UK based Ubuntu server to act as a proxy, forwarding packets from services like BBC iPlayer and TVCatchup to my MacBook Pro in our flat in Suji.</p>
<p>After an hour or two trying different methods, I discovered <a href="http://blog.coull.net/2009/02/how-to-watch-bbc-iplayer-from-abroad.html">this article</a> which describes the complete procedure. It took a while to hunt down the article, so I&#8217;m hoping it didn&#8217;t take you too long to find this post!</p>
<p><strong>Requirements</strong>: Ubuntu 8.04 or above installed on your dedicated <a href="http://www.linode.com/?r=28760b2ba8646fada90f088ef4ff2f28a2495042">UK based server</a>. I recommend <a href="http://www.linode.com/?r=28760b2ba8646fada90f088ef4ff2f28a2495042">Linode.com</a> (be sure to choose the facility in London). You&#8217;ll need root access to your server. If you&#8217;ll be watching lots of video, it&#8217;s a good idea to check you have sufficient network transfer.</p>
<p><em style="border: 1px solid #e6e4e5; padding: 6px; display: block; font-size: 11px;">Note: this post assumes you&#8217;re ok logging in/out of your server with SSH. If not, there&#8217;s <a rel="nofollow external" href="http://blog.coull.net/2009/02/how-to-watch-bbc-iplayer-from-abroad.html">more information here</a>.</em></p>
<h3>Setup your server</h3>
<ol>
<li><strong>Firewall</strong> &#8211; I use the <a rel="external" href="https://help.ubuntu.com/community/UFW">Uncomplicated Firewall</a> on my server to allow/deny ports and services. We&#8217;ll need to allow access to port <strong>3128</strong>. Issue the command <code>sudo ufw allow 3128/tcp</code></li>
<li><strong>Install packages</strong> &#8211; Type:<br />
<code>sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get install fail2ban<br />
sudo apt-get install squid3<br />
sudo apt-get update<br />
sudo apt-get upgrade</code></li>
<li><strong>Limit access to your local machine</strong> (the computer you&#8217;re using abroad!) You need to know what IP address your local machine is using, (this may change; you can add / remove IP addresses to the Squid configuration as and when required). If you don&#8217;t know your IP address, visit <a rel="external nofollow" href="http://whatismyipaddress.com/">http://whatismyipaddress.com/</a>.<br />
Before we edit Squid3&#8242;s configuration, we&#8217;ll create a backup of squid.conf. Type<br />
<code>sudo cp /etc/squid3/squid.conf /etc/squid3/squid.conf.bak</code><br />
To edit the file, we&#8217;ll use VI. Type:<br />
<code>sudo vi +/'INSERT YOUR OWN RULE' /etc/squid3/squid.conf</code><br />
This should take you to the right line in the file. Below this line, add:<br />
<code>acl myIP src [your IP address]<br />
http_access allow myIP</code><br />
Save the file (<code>:wq</code>); now your server will only accept connections from your computer.</li>
<li><strong>Restart Squid3</strong> &#8211; issue the following commands:<br />
<code>sudo /etc/init.d/squid3 restart</code></li>
</ol>
<h3>Setup your client</h3>
<ol>
<li>Install <a href="http://www.mozilla.com/en-US/firefox/new/" rel="external nofollow">Firefox</a>.</li>
<li>Install the Firefox<a href="https://addons.mozilla.org/en-US/firefox/addon/2464" rel="nofollow external">Foxyproxy</a> add-on</li>
<li>You need to set up Foxyproxy to &#8216;<strong>use proxies based on their pre-defined patterns and priorities</strong>&#8216;.</li>
<li>Click on &#8216;add new proxy&#8217; in the options and enter the proxy details (the IP address of your dedicated server and the port number 3128).</li>
<li style="clear:both;">Close the options box and you should see the blue foxyproxy icon in the bottom right of the browser.</li>
<li>Open up <a href="http://tvcatchup.com" rel="external">TV catchup</a> or any other UK based services; hopefully now you&#8217;ll be able to stream the video/audio content!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://garethpoole.com/bbc-iplayer-abroad-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

