<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/atom10full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
 
  <title>aidanf.net</title>
  <subtitle>Aidan Finn's home page</subtitle>
  
  <link href="http://aidanf.net/" />
  <updated>2008-10-17T14:05:23+01:00</updated>
  <author>
    <name>Aidan Finn</name>
    <email />
  </author>
  <id>http://aidanf.net/</id>
  
  <link rel="self" href="http://feeds.feedburner.com/aidanf" type="application/atom+xml" /><entry>
    <title>Desperately seeking ... AC/DC tickets</title>
    <link href="http://feeds.feedburner.com/~r/aidanf/~3/423670449/desperately-seeking-acdc-tickets.html" />
    <id>tag:aidanf.net,2008-10-17:1224244456</id>
    <updated>2008-10-17T12:54:16+01:00</updated>

    <content type="html">&lt;h3&gt;Desperately seeking ... AC/DC tickets&lt;/h3&gt;

&lt;p&gt;I'm a huge music fan. I own a lot of albums and I've been to a lot of gigs. I've seen most of my favourite bands live. But the one band in the world that I haven't seen live that I really want to are AC/DC.&lt;/p&gt;

&lt;p&gt;They were the first band that really got me into music. I remember seeing &lt;a href="http://www.youtube.com/watch?v=zvoeeq-BH4w"&gt;Thunderstruck&lt;/a&gt; on the beat-box when I was about 12. I wasn't into music much at that stage but I was blown away and I spent all my savings on getting their entire back catalogue. That was the start of a long and expensive interest in collecting music.&lt;/p&gt;

&lt;p&gt;AC/DC announced a couple of days ago that they would play in Dublin in April. I knew these tickets would sell out quickly so I was sitting at my computer at 9am today refreshing the ticket****** website. I managed to get into the queue for tickets but they sold out before I got one. Actually they sold out in &lt;em&gt;less than 2 minutes&lt;/em&gt;. Of myself, my brother and 2 friends who were all trying to get tickets none of us managed to get any.&lt;/p&gt;

&lt;p&gt;So I'm posting this in the slim hope that someone out there has a couple of spare tickets. I'd be eternally grateful and you'd get that warm fuzzy feeling from knowing you helped someone realize one of their lifelong ambitions. If you can help me out please &lt;a href="/contact"&gt;get in touch&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And congratulations to all the lucky fans who got tickets.&lt;/p&gt;

&lt;p&gt;P.S. I hope bad things happen to the scalper scum that bought tickets just for the purposes of selling them at an inflated price. I did a quick web search and some Irish websites are already offering tickets for €300 each. &lt;/p&gt;

&lt;div id="disqus_thread"&gt;&lt;/div&gt;&lt;script type="text/javascript" src="http://disqus.com/forums/aidanf/embed.js"&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href="http://aidanf.disqus.com/?url=ref"&gt;View the discussion thread.&lt;/a&gt;&lt;/noscript&gt;&lt;a href="http://disqus.com" class="dsq-brlink"&gt;blog comments powered by &lt;span class="logo-disqus"&gt;Disqus&lt;/span&gt;&lt;/a&gt;

&lt;img src="http://feeds.feedburner.com/~r/aidanf/~4/423670449" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://aidanf.net/posts/desperately-seeking-acdc-tickets.html</feedburner:origLink></entry>
  
  <entry>
    <title>Archiving a dynamic site as static content</title>
    <link href="http://feeds.feedburner.com/~r/aidanf/~3/422753523/archiving_dynamic_site_with_static_pages.html" />
    <id>tag:aidanf.net,2008-10-16:1224160599</id>
    <updated>2008-10-16T13:36:39+01:00</updated>

    <content type="html">&lt;h3&gt;Archiving a dynamic site as static content&lt;/h3&gt;

&lt;h6&gt;(And making pretty urls for static content)&lt;/h6&gt;

&lt;p&gt;I recently archived &lt;a href="/posts/old_site_archived.html"&gt;archived&lt;/a&gt; my old drupal site by creating a static copy of it. Thus for every url that existed in the old site there now exists a static page in the archive directory with the html extension. &lt;/p&gt;

&lt;p&gt;So the page that once existed at &lt;code&gt;/rails&lt;/code&gt; now exists at &lt;code&gt;/archive/rails.html&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Getting a html static archive of your site is fairly easy. If your blogging software uses a static page cache, then you can use the contents of that page cache and hammer your site with wget to generate the cache for every page. Mephisto does this caching by default. For drupal the &lt;a href="http://drupal.org/project/boost"&gt;boost module&lt;/a&gt; will implement a static page cache. Most good blogging platforms have a way of generating a static cache of the site. Alternatively you could do it yourself using &lt;code&gt;wget -mirror&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Once you have a static archive generated you need to ensure that these files are served for all the urls that are associated with your old site. The easiest way to do this is to check if the archive contains a file with the requested path and a html extension and if so, serve it up.&lt;/p&gt;

&lt;p&gt;Below is an set of apache rewrite rules for doing this.&lt;/p&gt;

&lt;p&gt;This works by checking each request for an archived file:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If there exists a document that matches the requested path with .html appended serve that. This catches all unarchived content that is statically cached.&lt;/li&gt;
&lt;li&gt;If there exists a document in the archive directory that matches the requested path with .html appended serve that. This catches all the archived html pages.&lt;/li&gt;
&lt;li&gt;If there exists an item in the archive directory that matches the requested path then serve that. This catches archived images, css, pdfs etc.&lt;/li&gt;
&lt;/ol&gt;


&lt;div class="CodeRay"&gt;&lt;pre&gt;        RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI}.html -f
RewriteRule ^(.*)$ /$1.html [L]

RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI}.html !-f
RewriteCond %{DOCUMENT_ROOT}/archive/%{REQUEST_URI}.html -f
RewriteRule ^(.*)$ /archive/$1.html [L]

RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}/archive/%{REQUEST_URI} -f
RewriteRule ^(.*)$ /archive/$1 [L]

&lt;/pre&gt;&lt;/div&gt;

&lt;div id="disqus_thread"&gt;&lt;/div&gt;&lt;script type="text/javascript" src="http://disqus.com/forums/aidanf/embed.js"&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href="http://aidanf.disqus.com/?url=ref"&gt;View the discussion thread.&lt;/a&gt;&lt;/noscript&gt;&lt;a href="http://disqus.com" class="dsq-brlink"&gt;blog comments powered by &lt;span class="logo-disqus"&gt;Disqus&lt;/span&gt;&lt;/a&gt;

&lt;img src="http://feeds.feedburner.com/~r/aidanf/~4/422753523" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://aidanf.net/posts/archiving_dynamic_site_with_static_pages.html</feedburner:origLink></entry>
  
  <entry>
    <title>Top posts from the archive</title>
    <link href="http://feeds.feedburner.com/~r/aidanf/~3/415836175/old_site_archived.html" />
    <id>tag:aidanf.net,2008-10-09:1223549143</id>
    <updated>2008-10-09T11:45:43+01:00</updated>

    <content type="html">&lt;h3&gt;Top posts from the archive&lt;/h3&gt;

&lt;p&gt;I've in the process of moving to a new blogging setup (and a new server). If you notice any bugs with the site please &lt;a href="/contact"&gt;let me know&lt;/a&gt;. Rather than migrate all my old posts over I've just archived them as static pages. You can browse the &lt;a href="/archive"&gt;archive&lt;/a&gt; of the old site &lt;a href="/archive"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Since I'm archiving all these pages I had a look at my google analytics stats for the last couple of years. Here are the top ten posts from the archive.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="http://aidanf.net/rails_user_authentication_tutorial"&gt;Basic User Authentication in Rails&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net/adding-a-rich-text-editor-to-your-rails-application"&gt;Adding a Rich Text Editor to your Rails Application&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net//rails/creating-your-own-generators-in-rails"&gt;Creating your own generators in rails&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net//blog/a-list-of-interesting-erlang-links"&gt;A list of interesting Erlang links&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net//clearwire-broadband-in-ireland-its-getting-worse"&gt;Clearwire Broadband in Ireland - It's getting worse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net//blog/2007/11/22/moving-subversion-git-revision-control"&gt;Moving from Subversion to Git for revision control&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net//deploying-rails-on-a-clean-ubuntu-slicehost-vps"&gt;Deploying rails on a clean ubuntu slicehost VPS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net//blog/learning-erlang"&gt;Learning Erlang&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net//miscellaneous/installing-drupal-on-freebsd"&gt;Installing Drupal on FreeBSD&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://aidanf.net//tools-and-tips-for-completing-a-postgraduate-degree-in-computer-science"&gt;Tools and tips for completing a postgraduate degree in Computer Science&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;div id="disqus_thread"&gt;&lt;/div&gt;&lt;script type="text/javascript" src="http://disqus.com/forums/aidanf/embed.js"&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href="http://aidanf.disqus.com/?url=ref"&gt;View the discussion thread.&lt;/a&gt;&lt;/noscript&gt;&lt;a href="http://disqus.com" class="dsq-brlink"&gt;blog comments powered by &lt;span class="logo-disqus"&gt;Disqus&lt;/span&gt;&lt;/a&gt;

&lt;img src="http://feeds.feedburner.com/~r/aidanf/~4/415836175" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://aidanf.net/posts/old_site_archived.html</feedburner:origLink></entry>
  
  <entry>
    <title>Site update</title>
    <link href="http://feeds.feedburner.com/~r/aidanf/~3/415836176/new_site.html" />
    <id>tag:aidanf.net,2008-10-09:1223552743</id>
    <updated>2008-10-09T12:45:43+01:00</updated>

    <content type="html">&lt;h3&gt;Site update&lt;/h3&gt;

&lt;p&gt;I'm rejigging this site. &lt;/p&gt;

&lt;p&gt;Step 1: New minimalist theme.&lt;/p&gt;

&lt;p&gt;Step 2: New server and new blogging software setup.&lt;/p&gt;

&lt;p&gt;Step 3: &lt;strike&gt;Profit&lt;/strike&gt;, Start blogging again.&lt;/p&gt;

&lt;p&gt;I'm still working through the kinks so in the meantime check out the &lt;a href="http://www.aidanf.net/archive"&gt;archive&lt;/a&gt; and the &lt;a href="/posts/old_site_archived.html"&gt;top posts from the archive&lt;/a&gt;.&lt;/p&gt;

&lt;div id="disqus_thread"&gt;&lt;/div&gt;&lt;script type="text/javascript" src="http://disqus.com/forums/aidanf/embed.js"&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href="http://aidanf.disqus.com/?url=ref"&gt;View the discussion thread.&lt;/a&gt;&lt;/noscript&gt;&lt;a href="http://disqus.com" class="dsq-brlink"&gt;blog comments powered by &lt;span class="logo-disqus"&gt;Disqus&lt;/span&gt;&lt;/a&gt;

&lt;img src="http://feeds.feedburner.com/~r/aidanf/~4/415836176" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://aidanf.net/posts/new_site.html</feedburner:origLink></entry>
  
  <entry>
    <title>Disabling genre in iTunes</title>
    <link href="http://feeds.feedburner.com/~r/aidanf/~3/422485692/disable-genre-in-itunes.html" />
    <id>tag:aidanf.net,2008-10-16:1224148501</id>
    <updated>2008-10-16T10:15:01+01:00</updated>

    <content type="html">&lt;h3&gt;Disabling genre in iTunes&lt;/h3&gt;
&lt;p&gt;
  I find the genre tab in the iTunes browser useless so I don't use it. There was a setting in preferences to prevent it being displayed. But after updating to the latest version of iTunes I found that the genre tab is showing up again in the browser and there is way of disabling it in the iTunes preferences.
&lt;/p&gt;
&lt;p&gt;
  As usual, the command line comes to the rescue. Enter the command below and restart iTunes.
&lt;/p&gt;
&lt;code&gt;&lt;/code&gt;
&lt;div class="CodeRay"&gt;&lt;pre&gt;defaults write com.apple.itunes show-genre-when-browsing -bool FALSE
&lt;/pre&gt;&lt;/div&gt;&lt;div id="disqus_thread"&gt;&lt;/div&gt;&lt;script type="text/javascript" src="http://disqus.com/forums/aidanf/embed.js"&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href="http://aidanf.disqus.com/?url=ref"&gt;View the discussion thread.&lt;/a&gt;&lt;/noscript&gt;&lt;a href="http://disqus.com" class="dsq-brlink"&gt;blog comments powered by &lt;span class="logo-disqus"&gt;Disqus&lt;/span&gt;&lt;/a&gt;
&lt;img src="http://feeds.feedburner.com/~r/aidanf/~4/422485692" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://aidanf.net/posts/disable-genre-in-itunes.html</feedburner:origLink></entry>
  
</feed>
