<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en-US">
  <id>tag:www.aussiegeek.net,2008:/posts</id>
  <link type="text/html" href="http://www.aussiegeek.net" rel="alternate" />
  
  <title>Aussiegeek.net</title>
  <updated>2009-05-23T10:55:00+10:00</updated>
  <link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" /><link rel="self" href="http://feeds.feedburner.com/alanharper" type="application/atom+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry>
    <id>tag:www.aussiegeek.net,2008:Post/19</id>
    <published>2009-05-23T10:59:33+10:00</published>
    <updated>2009-05-23T10:59:33+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/QzmTGb9B87A/19-Gembox" rel="alternate" />
    <title>Gembox</title>
    <content type="html">I'm always on the lookout for better ways of dealing with documentation, and I started with a bash alias to open the local gem's doc in my browser which was reasonably good

&lt;script src="http://gist.github.com/116446.js"&gt;&lt;/script&gt;

However I still generally like jumping to the docs straight from my browser. I came across Gembox lately, a cool little sinatra app that does exactly what I want, but still required me to manually start it up.

Like many I know, I use passenger on my local machine, so I don't have to actually manually start apps, and I thought why should gembox be any different.

It required a small patch to setup config.ru properly, and is available from "http://github.com/aussiegeek/gembox/tree/master":http://github.com/aussiegeek/gembox/tree/master

Just add it to your apache or nginx config (I set it up at gembox.local), and away you go&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/QzmTGb9B87A" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/19-Gembox</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/18</id>
    <published>2009-02-28T18:34:55+10:00</published>
    <updated>2009-02-28T18:34:55+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/0zZ0zAp6pE8/18-Three-Usage" rel="alternate" />
    <title>Three Usage</title>
    <content type="html">Recently I bought a prepaid mobie modem, which is working out OK, except that the website you have to check your usage on involves putting a username &amp; password (easily sorted with 1password), and then putting your PIN in on a page that requires you to click on numbers instead of typing. Very irritating!

So I chucked together a quick scraper which retreives your usage information. Just 'sudo gem install three-usage', and check the "three-usage":http://three-usage.rubyforge.org site for more info&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/0zZ0zAp6pE8" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/18-Three-Usage</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/17</id>
    <published>2008-12-14T22:08:58+10:00</published>
    <updated>2008-12-14T22:09:54+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/ulo0aSwc4Xk/17-Shoulda-be-Remarkable" rel="alternate" />
    <title>Shoulda be Remarkable</title>
    <content type="html">I've been doing more and more TDD/BDD lately, trying out different toolsets, improving my workflow, you know the usual work cycle refactoring

I like the rspec style tests you get "response.should be_valid", reads quite nicely to me, but still seems like too much typing. Found "shoulda":http://www.thoughtbot.com/projects/shoulda which I found was a lot closer to the mark.

I was mucking around one night and googled "rspec shoulda", and came up with a handy tool... "Remarkable":http://www.nomedojogo.com/2008/11/18/shoulda-for-rspec-is-remarkable/. The only issue I have had is getitng my code to work with the shoulda style, but using the rspec style worked correctly such as:

p(code). it {should require_attributes(:email)}&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/ulo0aSwc4Xk" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/17-Shoulda-be-Remarkable</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/14</id>
    <published>2008-08-10T16:59:58+10:00</published>
    <updated>2008-08-10T16:59:58+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/HFLHMlFnBdU/14-Upgrade-Time" rel="alternate" />
    <title>Upgrade Time</title>
    <content type="html">!http://images.apple.com/au/macbookpro/images/overview_features_img20080226.jpg!

I've been wanting to get a new mac for a bit now, finally ordered a new 15" MacBook Pro, along with a Linksys WAG160N to replace the seperate ADSL modem and wireless access point I've been using, and a Caribee Armour backpack from "Rushfaster":http://rushfaster.com.au/?pLoyaltyRef=23356 

Also updated the code running this blog some more due to the rediculous amount of pharamacy spam I've been getting&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/HFLHMlFnBdU" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/14-Upgrade-Time</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/13</id>
    <published>2008-07-28T17:05:56+10:00</published>
    <updated>2008-07-28T17:05:56+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/8dFHYihoRZY/13-Yes-I-have-an-iPhone" rel="alternate" />
    <title>Yes I have an iPhone</title>
    <content type="html">Like half the country I have a 3G iPhone, got myself a black 16gig, came in on Friday and I'm starting to be used to having it with me all the time. I have joined "Brisbane Cocoaheads":http://www.brisbanecocoaheads.com so I can learn cocoa and iPhone dev&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/8dFHYihoRZY" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/13-Yes-I-have-an-iPhone</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/12</id>
    <published>2008-07-15T14:50:00+10:00</published>
    <updated>2008-07-15T14:50:00+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/XKG4ceUqztc/12-My-Addressbook-Setup" rel="alternate" />
    <title>My Addressbook Setup</title>
    <content type="html">I have gone to the trouble of Australianiseing my Address Book, so phones number actually appear in the correct format here in .au 
&lt;img src="http://img.skitch.com/20080715-drswh2ebqg74nhdekmprhk6d6y.png" alt="phoneprefs"/&gt;&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/XKG4ceUqztc" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/12-My-Addressbook-Setup</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/11</id>
    <published>2008-07-13T07:40:58+10:00</published>
    <updated>2008-07-13T07:40:58+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/t4B1SHYGNTo/11-iPhone" rel="alternate" />
    <title>iPhone</title>
    <content type="html">Yes, like half the planet, I want the new 3G iPhone, but like a number of people, I missed out on actually getting it on Friday, so I'm on the waiting list, along with many other Aussies.

I've ordered the Black 16GB, hopefully will be here soon&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/t4B1SHYGNTo" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/11-iPhone</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/10</id>
    <published>2008-06-20T08:44:34+10:00</published>
    <updated>2008-06-20T08:44:51+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/sotGgELT1nI/10-Passenger-support-for-Vlad" rel="alternate" />
    <title>Passenger support for Vlad</title>
    <content type="html">I've written a tiny module for Vlad to deploy to Passenger (mod_rails). It's available from "http://github.com/aussiegeek/vlad":http://github.com/aussiegeek/vlad

To use it, just update your Rakefile where Vlad.load is called, and update it like so:

&lt;code&gt;
Vlad.load :app =&gt; 'phusion'
&lt;/code&gt;&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/sotGgELT1nI" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/10-Passenger-support-for-Vlad</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/9</id>
    <published>2008-06-17T14:25:27+10:00</published>
    <updated>2008-06-17T14:25:54+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/iooXk1f6Cm0/9-Rails-2-1-migration" rel="alternate" />
    <title>Rails 2.1 migration</title>
    <content type="html">I've hacked together a simple script for converting timezones from the local timezone to utc for Rails 2.1

&lt;pre&gt;
#!env ruby
class DummyTable
  def initialize(tablename)
    @@tablename=tablename
  end
  def self.method_missing(m, *args); end
  
  def self.datetime(name,options={})
    puts "execute \"UPDATE #{@@tablename} SET #{name}=CONVERT_TZ(#{name},'SYSTEM','+00:00');\""
  end
end

def create_table(tablename,options,*block)
  dummy_table=DummyTable.new(tablename)
  yield DummyTable
end

def add_index(name,fields,options={}); end

class ActiveRecord;end

class ActiveRecord::Schema
  def self.define(options={}, *block)
    yield
  end
end

require 'db/schema.rb'
&lt;/pre&gt;

Drop this file in the root of your project and just run it with plain Ruby. I wrote it this way so I could avoid ActiveRecord, it will spit out a bunch of execute commands ready for plugging in to a migration&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/iooXk1f6Cm0" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/9-Rails-2-1-migration</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/8</id>
    <published>2008-05-16T21:31:48+10:00</published>
    <updated>2008-05-16T21:31:48+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/299EQK7QzXA/8-New-Position" rel="alternate" />
    <title>New Position</title>
    <content type="html">I'm moving on two greener pastures, and starting a new position on Monday. I'm doubling the team with another Mac based rails guy, I think I'll be right at home&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/299EQK7QzXA" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/8-New-Position</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/7</id>
    <published>2008-05-14T09:00:36+10:00</published>
    <updated>2008-05-14T13:15:17+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/h-szk2Zh-0g/7-Haml-Sass-talk-at-Brisbane-rb" rel="alternate" />
    <title>Haml/Sass talk at Brisbane.rb</title>
    <content type="html">I'll be giving an intro to Haml &amp; Sass at the Brisbane Ruby &amp; Rails Brigage on monday night, if anybody is interested&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/h-szk2Zh-0g" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/7-Haml-Sass-talk-at-Brisbane-rb</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/6</id>
    <published>2008-05-14T07:59:07+10:00</published>
    <updated>2008-05-14T13:32:37+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/r52inzs0Jco/6-SSH-keys-on-Debian-Ubuntu" rel="alternate" />
    <title>SSH keys on Debian/Ubuntu</title>
    <content type="html">I seen today a twit that there was a "vulnerability":http://lists.debian.org/debian-security-announce/2008/msg00152.html in the way that Debian &amp; Ubuntu generate ssh keys. On the surface it would seem I'm ok because of old keys, there are numberous ways they could have become comprisied, so lucky me, time for a new set of ssh keys!&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/r52inzs0Jco" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/6-SSH-keys-on-Debian-Ubuntu</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/5</id>
    <published>2008-05-06T09:18:58+10:00</published>
    <updated>2008-05-06T09:18:58+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/7JGHljG4oH0/5-Github-Badge" rel="alternate" />
    <title>Github Badge</title>
    <content type="html">My plan a few weeks ago was to write a badge for GitHub but I see Dr Nic has "beaten me to it":http://github.com/drnic/github-badges/tree/master

The plan was to add his version to my site today but looks like some bugs involving prototype.js that I need to look at&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/7JGHljG4oH0" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/5-Github-Badge</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/4</id>
    <published>2008-04-22T10:46:48+10:00</published>
    <updated>2008-05-16T21:27:40+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/IJg_xzWa0Oo/4-mod-rails" rel="alternate" />
    <title>mod_rails</title>
    <content type="html">I've just migrated the server that runs my blog, and some internal apps to "mod_rails":http://www.modrails.org.
                        
      It is extremely simple to deploy compared to apache+mongrel like I was using previously, and more memory effecient for the seldom used apps I keep on this server.
                        
      I was warned of some potential gotchas in regards to rewrite rules, but no issues here, altough I am only using rewrites to redirect feed requests to FeedBurner.
                        
      My config for this virtual host in all its gory detail:
                        
      &lt;pre&gt;
      &lt;VirtualHost *&gt;
      ServerName aussiegeek.net
      DocumentRoot /srv/www/alanblog/current/public
                        
      RewriteEngine On
                        
      RewriteCond %{HTTP_USER_AGENT} !FeedBurner
                        
      RewriteRule ^/posts\.xml$ http://feeds.feedburner.com/alanharper [R=301,L]
      &lt;/VirtualHost&gt;
      &lt;/pre&gt;
      Yes, thats all. Good work guys!
                        &lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/IJg_xzWa0Oo" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/4-mod-rails</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/3</id>
    <published>2008-03-23T01:10:41+10:00</published>
    <updated>2008-03-23T01:11:07+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/0bl0R3XNElw/3-Snippets-for-Sass-Bundle" rel="alternate" />
    <title>Snippets for Sass Bundle</title>
    <content type="html">I use Sass (&amp; Haml), where its an option for producing sites, as I like the 'cleanliness' of it. I have been missing being able to use the snippets of the TextMate CSS bundle, so I have ported them over to a Sass bundle, with the syntax from "http://sporkmonger.com/2007/12/24/sass-textmate-bundle":http://sporkmonger.com/2007/12/24/sass-textmate-bundle.
      
      I have published it at "http://github.com/aussiegeek/ruby-sass-tmbundle/tree/from-css-bundle":http://github.com/aussiegeek/ruby-sass-tmbundle/tree/from-css-bundle&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/0bl0R3XNElw" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/3-Snippets-for-Sass-Bundle</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/2</id>
    <published>2008-03-20T10:17:44+10:00</published>
    <updated>2008-03-20T10:17:44+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/szGkuiyKZU8/2-Home-Directory" rel="alternate" />
    <title>Home Directory</title>
    <content type="html">I log on to a lot of various unix like machines (mainly Mac &amp; Linux), and I have setup my environment for things such as autotest, vim, and my bash prompt in my own useful way.

I used to store this in a private subversion repository, but I figured in the process of converting it to git, that I should share it. It is on "github":http://github.com/aussiegeek/homedir/tree/master for all to see.

Recent addition was adding the current git branch to the bash prompt as mentioned on "Simplistic Complexity":http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/szGkuiyKZU8" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/2-Home-Directory</feedburner:origLink></entry>
  <entry>
    <id>tag:www.aussiegeek.net,2008:Post/1</id>
    <published>2008-03-18T10:19:05+10:00</published>
    <updated>2008-03-18T10:19:05+10:00</updated>
    <link type="text/html" href="http://feedproxy.google.com/~r/alanharper/~3/IcjN0Cv4TTQ/1-Git-for-Rails" rel="alternate" />
    <title>Git for Rails</title>
    <content type="html">Last night I ran a presentation on using Git, and very briefly how to start a rails project in git for the Brisbane Ruby &amp; Rails Brigade&lt;img src="http://feeds.feedburner.com/~r/alanharper/~4/IcjN0Cv4TTQ" height="1" width="1"/&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  <feedburner:origLink>http://www.aussiegeek.net/posts/1-Git-for-Rails</feedburner:origLink></entry>
</feed>
