<?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>Philip Roche &#187; philroche</title>
	<atom:link href="http://www.philroche.net/archives/author/philroche/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philroche.net</link>
	<description>All things Geek</description>
	<lastBuildDate>Sat, 05 Jun 2010 15:24:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Synching Thunderbird/Lightning or Windows Calendar with Nokia PC Suite in Windows 7</title>
		<link>http://www.philroche.net/archives/synching-thunderbirdlightning-or-windows-calendar-with-nokia-pc-suite-in-windows-7/</link>
		<comments>http://www.philroche.net/archives/synching-thunderbirdlightning-or-windows-calendar-with-nokia-pc-suite-in-windows-7/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 15:15:08 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[Frank Smyth]]></category>
		<category><![CDATA[Guest Blog]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[nokia]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/synching-thunderbirdlightning-or-windows-calendar-with-nokia-pc-suite-in-windows-7/</guid>
		<description><![CDATA[Guest blog post from my buddy Frank Smyth
Nokia only plays nice with Microsoft products.
That didn’t bother me for years because I used Outlook for email and calendar and Nokia PC Suite got along fine. Then one day I decided to migrate my email to IMAP and the problems began. The first problem was that Outlook [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><em>Guest blog post from my buddy Frank Smyth</em></p>
<p class="MsoNormal"><span lang="EN-IE">Nokia only plays nice with Microsoft products.</span></p>
<p class="MsoNormal"><span lang="EN-IE">That didn’t bother me for years because I used Outlook for email and calendar and Nokia PC Suite got along fine. Then one day I decided to migrate my email to IMAP and the problems began. The first problem was that Outlook handles IMAP very poorly. You can’t get rid of your “personal folder” that you don’t use, and everything that you delete has to go into your local deleted items rather than your IMAP one (I could go on). So I moved to Thunderbird which is much more friendly towards IMAP and installed its Lighning calendar plugin. So far so good.</span></p>
<p class="MsoNormal"><span lang="EN-IE">Then I discovered that Nokia PC Suite doesn’t play ball with Thunderbird/Lightning. I was running Vista at the time and found a surprisingly elegant solution to this problem…..Windows calendar. PC Suite recognises and plays nicely with it and because both lightning and windows calendar use the .ics format you can tell lightning to use your Windows Calendar file (stored under Users-&gt;AppData-&gt;Local-&gt;Windows Calendar I think). So Windows Calendar acts as an unwitting middle man between PC Suite and Lightning and you never have to think about it. It works a treat.</span></p>
<p class="MsoNormal"><span lang="EN-IE">So you will understand my dismay when I discovered that Windows Calendar has been removed from Windows 7. This is all part of the shift towards “the cloud”. Microsoft now offers the calendar within their Live suite and everything is stored online. (Incidently, Nokia are also trialling a similar idea with Ovi Calendar which is in Beta at the moment.) So I was back to square one, with no way to sync my Nokia to my Thunderbird calendar.</span></p>
<p class="MsoNormal"><span lang="EN-IE">The solution is a bit of a hack to make PC Suite think it is working with Vista (and hence Windows Calendar) when actually it is working with Lightning and Windows 7.</span></p>
<p class="MsoNormal"><span lang="EN-IE">These are the steps I took. It’s likely that not all steps are required.</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list: l0 level1 lfo1" class="MsoNoSpacing"><strong style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-family:Calibri" lang="EN-IE"><span style="mso-list:Ignore">1.<span style='font:7.0pt "Times New Roman"'>    </span></span></span></strong> <strong style="mso-bidi-font-weight:normal"><span lang="EN-IE">Get Windows Calendar working on Windows 7.</span></strong></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE">This is very straightforward. Follow the link below. Run it once to generate the .ics file (<a href="http://www.addictivetips.com/windows-tips/install-windows-calendar-in-windows-7/">http://www.addictivetips.com/windows-tips/install-windows-calendar-in-windows-7/</a>)</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list: l0 level1 lfo1" class="MsoNoSpacing"><strong style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-family:Calibri" lang="EN-IE"><span style="mso-list:Ignore">2.<span style='font:7.0pt "Times New Roman"'>    </span></span></span></strong> <strong style="mso-bidi-font-weight:normal"><span lang="EN-IE">Tell Lightning to use Windows Calendar’s .ics file</span></strong></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE">In Thunderbird, go to calendar view, right click on calendar listed on the left hand side and select properties….change its default file to point to your Windows Calendar File (C:\Users\<em style="mso-bidi-font-style:normal">name</em>\AppData\Local\Microsoft\Windows Calendar\Calendars\<em style="mso-bidi-font-style:normal">Your Calendar</em>.ics)</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list: l0 level1 lfo1" class="MsoNoSpacing"><strong style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-family:Calibri" lang="EN-IE"><span style="mso-list:Ignore">3.<span style='font:7.0pt "Times New Roman"'>    </span></span></span></strong> <strong style="mso-bidi-font-weight:normal"><span lang="EN-IE">Uninstall software that may complicate things</span></strong></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE">If they are installed, uninstall Nokia PC Suite, Nokia Ovi Suite and Microsoft Outlook.</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list: l0 level1 lfo1" class="MsoNoSpacing"><strong><span style="mso-bidi-font-family: Calibri" lang="EN-IE"><span style="mso-list:Ignore">4.<span style='font:7.0pt "Times New Roman"'>    </span></span></span> </strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-IE">Make the following registry</span></strong> <span lang="EN-IE">changes (messing with the registry can wreck your operating system. Don’t do it unless you know what you’re doing. I take no responsibility etc etc etc)</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list: l0 level1 lfo1" class="MsoNoSpacing"><span lang="EN-IE">Thanks to “Classic” on this german forum (and Google Translate) for this bit</span></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE"><a href="http://www.winfuture-forum.de/index.php?showtopic=174635">http://www.winfuture-forum.de/index.php?showtopic=174635</a></span></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE">Open regedit.exe, navigate to Hkey Local Machine -&gt; Software and add a new key called Windows Calendar. In that key add the following string values:</span></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE"><a href="http://www.winfuture-forum.de/index.php?s=c1afe7229fa2613d26a1b82c604c879a&amp;act=attach&amp;type=post&amp;id=34809">http://www.winfuture-forum.de/index.php?s=c1afe7229fa2613d26a1b82c604c879a&amp;act=attach&amp;type=post&amp;id=34809</a> </span></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE">Reboot</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list: l0 level1 lfo1" class="MsoNoSpacing"><strong><span style="mso-bidi-font-family: Calibri" lang="EN-IE"><span style="mso-list:Ignore">5.<span style='font:7.0pt "Times New Roman"'>    </span></span></span> </strong><strong style="mso-bidi-font-weight:normal"><span lang="EN-IE">Install PC Suite</span></strong> <span lang="EN-IE">(compatibility mode may help, I tried it a few different ways but in the end I don’t think it matters)</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list: l0 level1 lfo1" class="MsoNoSpacing"><strong style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-family:Calibri" lang="EN-IE"><span style="mso-list:Ignore">6.<span style='font:7.0pt "Times New Roman"'>    </span></span></span></strong> <strong style="mso-bidi-font-weight:normal"><span lang="EN-IE">Tell PCSuite that its running on Vista</span></strong></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list: l0 level1 lfo1" class="MsoNoSpacing"><span lang="EN-IE"> Go back into the registry</span></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE">Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Nokia.PCSync.Windows7PIM.ISynchAppU</span></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE">Create an exact replica of this key (including its contents) but call it HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Nokia.PCSync.VISTAPIM.ISynchAppU</span></p>
<p style="margin-left:36.0pt" class="MsoNoSpacing"><span lang="EN-IE">(It’s likely that you could just rename Windows7PIM to VISTAPIM but I created the replica key)</span></p>
<p class="MsoNormal">
<p class="MsoNormal"><span lang="EN-IE">That’s it. You should now be able to sync your Nokia phone calendar with Thunderbird/Lightning (or Windows Calendar if you prefer) within Windows 7.</span></p>
<p class="MsoNormal"><span lang="EN-IE">11 years Nokia and you nearly lost me…shape up.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/synching-thunderbirdlightning-or-windows-calendar-with-nokia-pc-suite-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Run-A-Muck Challenge &#8230; awesome fun</title>
		<link>http://www.philroche.net/archives/run-a-muck-challenge-awesome-fun/</link>
		<comments>http://www.philroche.net/archives/run-a-muck-challenge-awesome-fun/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 12:29:30 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[Ireland]]></category>
		<category><![CDATA[running]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/run-a-muck-challenge-awesome-fun/</guid>
		<description><![CDATA[After being coaxed into it by a mate on the football team I partook in the inaugural Run-A-Muck Challenge in Clonkeeran House, Co. Kildare. It was probably the most fun race I have ever "competed" in. It was just like when myself and my brother went mountain running in Norway except there was a shit [...]]]></description>
			<content:encoded><![CDATA[<p>After being coaxed into it by a mate on <a href="http://kilbridegfc.com/">the football team</a> I partook in the inaugural <a href="http://www.runamuckchallenge.com/website/index.">Run-A-Muck Challenge</a> in Clonkeeran House, Co. Kildare. It was probably the most fun race I have ever "competed" in. It was just like when myself and my brother went mountain running in Norway except there was a shit loads more mud and 748 more people!</p>
<p>It was a 9km race around fields through ditches, swamps, under bridges, woods and over purpose built obstacles. I got in a awful state running around but managed to come in 6th position which is my highest race position to date.</p>
<p><img title="RunAMuck" src="http://www.philroche.net/wp-content/uploads/2010/03/APL_0674_20100313_small.jpg" alt="RunAMuck" /></p>
<p><img title="RunAMuck" src="http://www.philroche.net/wp-content/uploads/2010/03/APL_1368_20100313_small.jpg" alt="RunAMuck" /></p>
<p><img title="RunAMuck" src="http://www.philroche.net/wp-content/uploads/2010/03/APL_1374_20100313_small.jpg" alt="RunAMuck" /></p>
<p>There are some more photos @ <a href="http://www.actionphotography.ie/galleries/2010-03-13-RAM/events-RAM2010.html">actionphotography.ie</a> and on <a href="http://www.flickr.com/photos/40084026@N05/">flickr</a> too. A very well organised event - I'll definitely be doing it again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/run-a-muck-challenge-awesome-fun/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Spotify Singles Chart playlists</title>
		<link>http://www.philroche.net/archives/spotify-singles-chart-playlists/</link>
		<comments>http://www.philroche.net/archives/spotify-singles-chart-playlists/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 19:22:07 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[spotify]]></category>

		<guid isPermaLink="false">http://www.philroche.net/?p=1037</guid>
		<description><![CDATA[I've been using Spotify premium for a few months and I've been loving it. There are tons of sites with Spotify playlists but none for listing the current UK or US charts. I decided to write a playlist generator which parsed RSS feeds of the singles chart and then created a Spotify playlist based on [...]]]></description>
			<content:encoded><![CDATA[<p>I've been using <a href="http://www.spotify.com/en/">Spotify</a> premium for a few months and I've been loving it. There are <a href="http://www.spotify.com/en/about/resources/">tons of sites with Spotify playlists</a> but none for listing the current UK or US charts. I decided to write a playlist generator which parsed RSS feeds of the singles chart and then created a Spotify playlist based on them. The script also queries <a href="https://developer.spotify.com/en/metadata-api/overview/">Spotify's Metadata API</a> to make sure the track exists (queries based on song name on chart list so it's not 100% yet). Currently I am using <a href="http://www.billboard.com/">Billboard.com</a> feeds for the US and UK charts, the <a href="http://www.theofficialchartsfeed.com/">official UK Top 40 Chart</a> - see <a href="http://philroche.net/WorldSpotifyList/BillboardHot100Chart.html">Billboard Hot 100</a>, <a href="http://philroche.net/WorldSpotifyList/BillboardUnitedKingdomSongsChart.html">Billboard United Kingdom Songs Chart</a> and <a href="http://philroche.net/WorldSpotifyList/OfficialUKTop40SinglesChart.html">Official UK Top 40 Singles Chart</a>. I also plan to use <a href="http://github.com/jberkel/spotify-api/">spotify-api</a> to create an actual playlist based on the tracks found.</p>
<p>I'll be uploading the source soon once I have some encoding issues sorted. If you know of any RSS feeds with any song charts - let me know and I'll generate a playlist for them.</p>
<p>Update -</p>
<ul>
<li><a href="http://philroche.net/WorldSpotifyList/BillboardEuropeanAlbumsChart.html">European Hot 100</a> added</li>
<li><a href="http://philroche.net/WorldSpotifyList/BillboardFranceAlbumsChart.html">French albums chart</a> added</li>
<li><a href="http://philroche.net/WorldSpotifyList/BillboardGermanyAlbumsChart.html">German albums chart</a> added</li>
</ul>
<p>Further Update -integration with <a href="http://github.com/jberkel/spotify-api/">spotify-api</a> now working so full Spotify playlists are now generated</p>
<ul>
<li><a href="spotify:user:philroche:playlist:4C0ZaeDy0EgexUG9BwwxQ5">Billboard European Albums Chart</a> - <a href="http://philroche.net/WorldSpotifyList/BillboardEuropeanAlbumsChart.html">full track listing</a></li>
<li><a href="spotify:user:philroche:playlist:4N8cZQOotNMDCjcCl6VTx0">Billboard France Albums Chart</a> - <a href="http://philroche.net/WorldSpotifyList/BillboardFranceAlbumsChart.html">full track listing</a></li>
<li><a href="spotify:user:philroche:playlist:0nxVJDrEGq7to97PO9BWEw">Billboard Germany Albums Chart</a> - <a href="http://philroche.net/WorldSpotifyList/BillboardGermanyAlbumsChart.html">full track listing</a></li>
<li><a href="spotify:user:philroche:playlist:5EtPIrBNtCKtA2eDlflaZb">Billboard Hot 100 Chart</a> - <a href="http://philroche.net/WorldSpotifyList/BillboardHot100Chart.html">full track listing</a></li>
<li><a href="spotify:user:philroche:playlist:2MgepuTwEsD67ubToKmLsx">Billboard United Kingdom Songs Chart</a> - <a href="http://philroche.net/WorldSpotifyList/BillboardUnitedKingdomSongsChart.html">full track listing</a></li>
<li><a href="spotify:user:philroche:playlist:47LOQGfhfWrYr3T4y8Y9Wn">Official UK Top 40 Singles Chart</a> - <a href="http://philroche.net/WorldSpotifyList/OfficialUKTop40SinglesChart.html">full track listing</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/spotify-singles-chart-playlists/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple Django install on Amazon EC2</title>
		<link>http://www.philroche.net/archives/simple-django-install-on-amazon-ec2/</link>
		<comments>http://www.philroche.net/archives/simple-django-install-on-amazon-ec2/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:12:21 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.philroche.net/?p=1032</guid>
		<description><![CDATA[I set up an amazon ec2 instance this weekend and as I knew I'd bedoing it again I noted the steps performed. Hopefully they'll be of use to someone.
Firstly you need to set up an EC2 account. I'd also recommend downloading ElasticFox(XPIinstaller) which makes it easier to manages instances, volumes andelastic IPs. Also install the [...]]]></description>
			<content:encoded><![CDATA[<p>I set up an amazon ec2 instance this weekend and as I knew I'd bedoing it again I noted the steps performed. Hopefully they'll be of use to someone.</p>
<p>Firstly you need to set up an EC2 account. I'd also recommend downloading <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=609&amp;categoryID=88">ElasticFox</a>(<a href="http://s3.amazonaws.com/ec2-downloads/elasticfox.xpi">XPIinstaller</a>) which makes it easier to manages instances, volumes andelastic IPs. Also install the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=88">EC2API command line tools</a> so you can start and stop instances etc.</p>
<p>The following guide is what I did to set up an Ubuntu 9.10 instance with EBS volume attached and a basic django install running. Bear the following in mind when reading the guide: </p>
<ul>
<li>References to 79.125.24.49 are to my elastic IP address that I set up using Elasticfox so it will be different for you. </li>
<li>"philroche" is the username I use so I'd hope you'd be changing that. </li>
<li>pk-XXXXXXXXXX.pem is the private key from the x509 certificate that was generated when creating my account </li>
<li>cert-XXXXXXXXXX.pem is the certificate file from the x509certificate that was generated when creating my account </li>
<li>i-d820f7af is the instance ID assigned to my instance - this will be different for you </li>
<li>ec2-79-125-24-49.eu-west-1.compute.amazonaws.com is the public DNS for the instance I created. This will also be different for you. </li>
<li>philrocheEC2Europe.pem is the private key for the generated key pair which was generated during account set up </li>
<li>The AMI I used (ami-97e4cfe3) has a user "ubuntu" already created that is used for initial login </li>
<li>djangoreporting (<a href="http://code.google.com/p/django-reporting/">http://code.google.com/p/django-reporting/</a>)is a simple django app that I used to test the set up. </li>
</ul>
<p><strong>Seting up Ubuntu 9.10 django install on EC2</strong></p>
<ul>
<li>AMI id = ami-97e4cfe3 </li>
<li>instance id = i-d820f7af </li>
<li>ip address = 79.125.24.49 - I created an elastic IP and assigned it to my instance</li>
<li> public dns name =ec2-79-125-24-49.eu-west-1.compute.amazonaws.com </li>
<li>login = ssh -i philrocheEC2Europe.pem ubuntu@79.125.24.49 (philrocheEC2Europe.pem is private key generated key pair) </li>
<li>enable root user = sudo passwd root</li>
<li>change to root user = su </li>
<li>add new user = adduser philroche </li>
<li>add philroche to sudoers list = visudo </li>
<li>add the following to file = philroche ALL=(ALL) NOPASSWD:ALLcheck </li>
<li>Disable Password-based Login = nano /etc/ssh/sshd_config
<ul>
<li>check for PasswordAuthentication no</li>
</ul>
</li>
<li>check root login is disabled
<ul>
<li>PermitRootLogin no</li>
<li>AllowUsers philroche ubuntu</li>
</ul>
</li>
<li>restart sshd to take affect = /etc/init.d/ssh restart</li>
<li>create .ssh directory for philroche user to store public key =mkdir /home/philroche/.ssh</li>
<li>generate key pair LOCALLY in your users' .ssh directory = ssh-keygen -b 1024 -f philroche -t dsa</li>
<li>make temp directory to upload public key = mkdir /home/philroche/tmp
<ul>
<li>chmod 777 /home/philroche/tmp</li>
</ul>
</li>
<li>upload public key from LOCAL .ssh directory = scp -i philrocheEC2Europe.pem /home/philroche/.ssh/philroche.pub ubuntu@79.125.24.49:/home/philroche/tmp</li>
<li>login again and authorize this key = ssh -i philrocheEC2Europe.pem ubuntu@79.125.24.49</li>
<li>authorize the philroche user with uploaded public key = cat/home/philroche/tmp/philroche.pub &gt;&gt; /home/philroche/.ssh/authorized_keys
<ul>
<li>chown philroche:philroche /home/philroche/.ssh</li>
<li>chmod 700 /home/philroche/.ssh</li>
<li>chown philroche:philroche /home/philroche/.ssh/authorized_keys</li>
<li>chmod 600 /home/philroche/.ssh/authorized_keys</li>
</ul>
</li>
<li>Delete the tmp directory = rm -rf /home/philroche/tmp</li>
<li>Now login as new user (philroche) = ssh philroche@79.125.24.49</li>
<li>Install require software = su
<ul>
<li>apt-get update</li>
<li>apt-get install apache2 python2.5 mysql-server mysql-client libapache2-mod-wsgi python-mysqldb python-setuptools subversion</li>
<li>NOTE - You will be prompted for mysql root password</li>
</ul>
</li>
<li>enable the modules
<ul>
<li>a2enmod rewrite</li>
<li>a2enmod wsgi</li>
</ul>
</li>
<li>make sure wsgi is using python2.5
<ul>
<li>rm /usr/lib/apache2/modules/mod_wsgi.so</li>
<li>ln -s /usr/lib/apache2/modules/mod_wsgi.so-2.5 /usr/lib/apache2/modules/mod_wsgi.so</li>
</ul>
</li>
<li>add virtual hosts by name support to apache
<ul>
<li>nano /etc/apache2/apache2.conf</li>
<li>make sure 'NameVirtualHost *' is present</li>
</ul>
</li>
<li>install django = easy_install-2.5 django</li>
<li>Setting up sample app
<ul>
<li>nano /etc/apache2/sites-available/djangoreporting</li>
<li>a2ensite djangoreporting</li>
<li>mv /home/philroche/Sites/djangoreporting/reporting /usr/lib/python2.5/site-packages</li>
<li>echo '/home/philroche/Sites/djangoreporting' &gt;&gt; /usr/lib/python2.5/site-packages/people_example.pth</li>
<li>mysql --user="root" --password="%Your root password%"
<ul>
<li>create database djangoreporting;</li>
<li>CREATE USER 'djangoreporting'@'localhost' IDENTIFIED BY 'djangoreporting';</li>
<li>GRANT ALL ON djangoreporting.* TO 'djangoreporting'@'localhost';</li>
<li>exit</li>
</ul>
</li>
</ul>
</li>
<li>LOCALLY nano /etc/hosts - add 79.125.24.49 djangoreporting</li>
<li>/etc/init.d/apache2 restart python2.5 manage.py syncdb --noinput</li>
<li>To manage your instance
<ul>
<li>export EC2_HOME=$HOME/Applications/ec2-api-tools-1.3-46266/</li>
<li>export PATH=$PATH:$EC2_HOME/bin</li>
<li>export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.15/</li>
<li>exportEC2_PRIVATE_KEY=/home/philroche/EC2InstanceSetUp/pk-XXXXXXXXXX.pem</li>
<li>exportEC2_CERT=/home/philroche/EC2InstanceSetUp/cert-XXXXXXXXXX.pem</li>
<li>sh ec2-describe-instances --region eu-west-1</li>
<li>sh ec2-stop-instances --region eu-west-1 i-d820f7af</li>
<li>sh ec2-start-instances --region eu-west-1 i-d820f7af</li>
<li>NOTE - when stoppped and restarted you have to re-associate the IP address </li>
</ul>
</li>
</ul>
<p>Mapping "djangoreporting" to 79.125.24.49 in my hosts file lets methe test the server by accessing http://djangoreporting/</p>
<p>Links of interest:</p>
<ul>
<li><a href="http://4sysops.com/archives/amazon-ec2-boot-from-amazon-ebs-volumes/">AmazonEC2 - Boot from EBS volumes </a></li>
<li><a href="http://4sysops.com/archives/amazon-ec2-aws-management-console-bundling-amis/">AmazonEC2 AWS Management Console - Bundling AMIs </a></li>
<li><a href="http://4sysops.com/archives/amazon-ec2-aws-management-console-amazons-cloud-management-tool-reviewed/">AmazonEC2 AWS Management Console - Amazon's cloud management tool reviewed </a></li>
<li><a href="http://www.haughin.com/2009/02/12/a-quick-overview-of-amazon-ec2/">AQuick Overview of Amazon EC2</a></li>
<li><a href="http://www.powercram.com/2009/09/view-ec2-instances-via-command-line.html">ViewEC2 Instances via Command Line Using ec2-describe-instances</a></li>
<li><a href="http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/index.html">CommandLine Tools Reference</a></li>
<li><a href="http://aws.amazon.com/ec2/instance-types/%20EC2%20pricing%20http://aws.amazon.com/ec2/#pricing">EC2instance types</a></li>
<li><a href="http://spenthil.com/2009/04/11/backing-up-an-ec2-instance-to-s3/">BackingUp an EC2 instance to S3</a></li>
<li><a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=88">AmazonEC2 API Tools</a></li>
<li><a href="http://docs.amazonwebservices.com/AWSEC2/2007-08-29/GettingStartedGuide/?ref=get-started">AmazonElastic Compute Cloud Getting Started Guide </a></li>
<li><a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=609">ElasticfoxFirefox Extension for Amazon EC2</a></li>
<li><a href="http://bitnami.org/tutorials/amazon_machine_images">BitNamiAmazon Machine Image</a></li>
<li><a href="http://developer.amazonwebservices.com/connect/entry%21default.jspa?categoryID=100&amp;externalID=1233&amp;fromSearchPage=true">Tipsfor Securing Your EC2 Instance </a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/simple-django-install-on-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dublin- Clare in just over 2 hours</title>
		<link>http://www.philroche.net/archives/dublin-clare-in-just-over-2-hours/</link>
		<comments>http://www.philroche.net/archives/dublin-clare-in-just-over-2-hours/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 14:36:49 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ireland]]></category>

		<guid isPermaLink="false">http://www.philroche.net/?p=1028</guid>
		<description><![CDATA[The new motorway between Dublin and Galway is now complete and open all the way down now. Because of this I managed to get down from Dublin to my Dad's place near Ballyvaughan in just over two hours. Only a few years ago the journey used to take over 4 hours. For once I saw [...]]]></description>
			<content:encoded><![CDATA[<p>The new motorway between Dublin and Galway is now complete and open all the way down now. Because of this I managed to get down from Dublin to my Dad's place near Ballyvaughan in just over two hours. Only a few years ago the journey used to take over 4 hours. For once I saw the justification of my road tax.</p>
<p><img class="size-full wp-image-1029 alignnone" title="Gleninagh Quay" src="http://www.philroche.net/wp-content/uploads/2010/01/IMG_0289.jpg" alt="Gleninagh Quay" width="600" height="400" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/dublin-clare-in-just-over-2-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django project dependency management and deployment</title>
		<link>http://www.philroche.net/archives/django-project-dependency-management-and-deployment/</link>
		<comments>http://www.philroche.net/archives/django-project-dependency-management-and-deployment/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 13:30:49 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/django-project-dependency-management-and-deployment/</guid>
		<description><![CDATA[I'm not our server admin here at Ticket-Text but the whole issue of project dependency management and deployment does interest me. As such I've been looking at ways to help and have compiled the following list of what I have found most useful. I admit I have not read all of these yet but Fabric [...]]]></description>
			<content:encoded><![CDATA[<p>I'm not our server admin here at <a href="http://ticket-text.com/">Ticket-Text</a> but the whole issue of project dependency management and deployment does interest me. As such I've been looking at ways to help and have compiled the following list of what I have found most useful. I admit I have not read all of these yet but <a href="http://docs.fabfile.org/1.0a/">Fabric</a> and <a href="http://pypi.python.org/pypi/virtualenvvirtualenv">virtualenv</a> do definitely seem to be standard now for any <a href="http://www.djangoproject.com/">django</a> project and they could save alot of work. I'll let you know how we get on. </p>
<ul>
<li><a href="http://docs.fabfile.org/1.0a/">Fabric Homepage</a></li>
<li><a href="https://edge.launchpad.net/django-fabric">django-fabric project</a></li>
<li><a href="http://ryanwilliams.org/2009/jun/09/deploying-django-sites-fabric-pip-and-virtualenv/">Deploying Django sites with Fabric, Pip and virtualenv</a></li>
<li><a href="http://209.85.229.132/search?q=cache:AEw0xmrZy-EJ:lethain.com/entry/2008/nov/04/deploying-django-with-fabric/+deploying-django-with-fabric&cd=1&hl=en&ct=clnk&gl=ie&client=firefox-a">Deploying Django with Fabric</a>: </li>
<li><a href="http://clemesha.org/blog/2009/jul/05/modern-python-hacker-tools-virtualenv-fabric-pip/">Tools of the Modern Python Hacker: Virtualenv, Fabric and Pip</a></li>
<li><a href="http://yml-blog.blogspot.com/2009/09/fabric-factory.html">Fabric factory</a> (project to manage fabric file deployment)</li>
<li><a href="http://iamzed.com/2009/05/07/a-primer-on-virtualenv/A Primer on virtualenv">A Primer on virtualenv</a></li>
<li><a href="http://www.doughellmann.com/projects/virtualenvwrapper/">virtualenvwrapper</a></li>
<li><a href="http://pypi.python.org/pypi/virtualenv">virtualenv Homepage</a></li>
</ul>
<p>Some <a href="http://www.djangocon.org/">Djangocon 2009</a> videos that might be of interest (I have the videos in mp3 format if anybody wants them). The slides are also available @ <a href="http://djangocon.pbworks.com/Slides">http://djangocon.pbworks.com/Slides</a>.</p>
<ul>
<li><a href="http://djangocon.blip.tv/file/3040031/">Deploying Django</a></li>
<li><a href="http://djangocon.blip.tv/file/3041279/">Scaling Django Web Applications</a></li>
<li><a href="http://djangocon.blip.tv/file/3041063/">How-To: use virtualenv and pip to install stuff</a></li>
<li><a href="http://djangocon.blip.tv/posts?view=archive&nsfw=dc">All Djangocon videos</a></li>
</ul>
<p>If you're looking for a simpler way to deploy SVN changesets check out my python script <a href="http://www.philroche.net/archives/archive-of-an-svn-changeset/">SVNArchiveByChangeset</a> which still works a treat for packaging SVN changesets as a zip or tar file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/django-project-dependency-management-and-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encoding all files in a directory using ffmpeg</title>
		<link>http://www.philroche.net/archives/encoding-all-files-in-a-directory-using-ffmpeg/</link>
		<comments>http://www.philroche.net/archives/encoding-all-files-in-a-directory-using-ffmpeg/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 18:48:43 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.philroche.net/?p=1022</guid>
		<description><![CDATA[The wonderful folks in the Django community have uploaded all the videos from Djangocon 2009. I've downloaded them but needed to convert them to mp3 so I could listen to them on my commute.
I used the ever awesome ffmpeg
for f in *.ogv; do ffmpeg -i "$f" -acodec libmp3lame -ab 256k "${f%.ogv}.mp3"; done
]]></description>
			<content:encoded><![CDATA[<p>The wonderful folks in the <a href="http://www.djangoproject.com/">Django</a> community have uploaded all the<a href="http://djangocon.blip.tv/"> videos from Djangocon 2009</a>. I've downloaded them but needed to convert them to mp3 so I could listen to them on my commute.</p>
<p>I used the ever awesome <a href="http://ffmpeg.org/">ffmpeg</a></p>
<p>for f in *.ogv; do ffmpeg -i "$f" -acodec libmp3lame -ab 256k "${f%.ogv}.mp3"; done</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/encoding-all-files-in-a-directory-using-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ran out space on virtual machine (Virtual Box)</title>
		<link>http://www.philroche.net/archives/ran-out-spce-on-virtual-machine-virtual-box/</link>
		<comments>http://www.philroche.net/archives/ran-out-spce-on-virtual-machine-virtual-box/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 09:40:34 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/ran-out-spce-on-virtual-machine-virtual-box/</guid>
		<description><![CDATA[I use VirtualBox OSE for my virtual machines and really love it. I tried to change to the non-free VirtualBox (so I could use USB) but moving from one to the other in Ubuntu was not a simple process and eventually I rolled back (thank Christ for CloneZilla).
I've got a Win XP virtual machine with [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://www.virtualbox.org/wiki/Editions">VirtualBox OSE</a> for my virtual machines and really love it. I tried to change to the non-free <a href="http://www.virtualbox.org/wiki/Editions">VirtualBox</a> (so I could use USB) but moving from one to the other in Ubuntu was not a simple process and eventually I rolled back (thank Christ for <a href="http://clonezilla.org/">CloneZilla</a>).</p>
<p>I've got a Win XP virtual machine with a 10GB hard disk which was getting full so I needed to expand it. The simplest way I found was to use the excellent <a href="http://forum.virtualbox.org/viewtopic.php?f=6&amp;t=22422">CloneVDI</a> tool. The tool runs perfectly under wine so I was able to double the size of the disk.</p>
<p>This did not however increase the size of the C drive in Win XP so I installed <a href="http://en.wikipedia.org/wiki/PartitionMagic">Partition Magic</a> and resized C to take all available space. Now I've got a Win XP virtual machine with tons and tons of space <img src='http://www.philroche.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/ran-out-spce-on-virtual-machine-virtual-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bloggy mcBlog Blog</title>
		<link>http://www.philroche.net/archives/bloggy-mcblog-blog/</link>
		<comments>http://www.philroche.net/archives/bloggy-mcblog-blog/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 10:50:17 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/bloggy-mcblog-blog-2/</guid>
		<description><![CDATA[Happy New Year fockers!!!!

In the wake of the interest surrounding http://project52.info/ and Matt's return to the blogging world, I'm going to try and get blogging a bit more (I know I've said it before). I've alot going on at the moment - work, GAA starting back, Kettle Bell and my Masters so surely I have [...]]]></description>
			<content:encoded><![CDATA[<p>Happy New Year fockers!!!!</p>
<p><a href="http://halfviking.com/christmas2009/"><img src="http://www.philroche.net/wp-content/uploads/2010/01/Christmas2009Robin.jpg" title="Christmas 2009 Robin" alt="Christmas 2009 Robin" /></a></p>
<p>In the wake of the interest surrounding <a href="http://project52.info/">http://project52.info/</a> and <a href="http://mattwilcox.net/">Matt</a>'s return to the blogging world, I'm going to try and get blogging a bit more (I know I've said it before). I've alot going on at the moment - <a href="http://ticket-text.com/">work</a>, <a href="http://kilbridegfc.com/" title="Kilbride GFC">GAA</a> starting back, <a href="http://www.morningfitness.net/kettlebell.php">Kettle Bell</a> and my <a href="http://www.csi.ucd.ie/content/msc-advanced-software-engineering">Masters</a> so surely I have something interesting to write about. </p>
<p>My main dev machine is now a linux machine (<a href="http://www.ubuntu.com/">Ubuntu 9.10</a>) and to say I've learned alot in setting it up as I want is an understatement. I know more about raid arrays now than I ever have and still I can't keep them in sync. I also plan on doing a bit of work with <a href="http://aws.amazon.com/ec2/">Amazon EC2</a> which should be very interesting. </p>
<p>My mum is currently taking two art courses, one of them in NCAD, so for christmas myself and my bro bought her a <a href="http://www.canon-europe.com/For_Home/Product_Finder/Cameras/Digital_SLR/EOS_500D/index.asp">Canon 500D</a> which I reckon I will be "borrowing" quite a bit. It's amazing the difference in photos between it and my Olympus compact. I've uploaded my <a href="http://halfviking.com/christmas2009/">Christmas</a>, <a href="http://halfviking.com/oz2009/">OZ</a> and <a href="http://halfviking.com/my30th/">30th</a> photos already and I aim to keep the gallery up to date. I also plan on moving from photoshop elements to another application but I can't find any that I like that also supports video and that I can hack to support my <a href="http://sourceforge.net/projects/peaexport/">export script</a>. Any recommendations? </p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/bloggy-mcblog-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Movember madness</title>
		<link>http://www.philroche.net/archives/movember-madness/</link>
		<comments>http://www.philroche.net/archives/movember-madness/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 10:13:15 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[Charity]]></category>
		<category><![CDATA[Movember]]></category>

		<guid isPermaLink="false">http://www.philroche.net/?p=1008</guid>
		<description><![CDATA[Just signed up for Movember - I'll be looking for donations soon http://ie.movember.com/mospace/20370 You've been warned!
]]></description>
			<content:encoded><![CDATA[<p>Just signed up for <a href="http://www.movember.com">Movember</a> - I'll be looking for donations soon <a href="http://ie.movember.com/mospace/20370">http://ie.movember.com/mospace/20370</a> You've been warned!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/movember-madness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
