Sharing Wireless iMac connection to PS3

My girlfriend won a PS3 at work yesterday. So yeah, Christmas came early for me!  Before I started any gaming I wanted to see what the media centre capabilities were but I ran into some trouble with the wireless setup. Here’s what I did. This is not meant to be a beginners step by step guide but It will point you in the right direction if you run into this problem.

Continue reading

Moved to Slicehost

I completed my move from GoDaddy to Slicehost over the weekend. My move to a grown up host was long overdue. I went with a 256mb slice to start with and Ubuntu 8.04.  I have to say Slicehost are superb and I’d recommend them to anyone, my only problem, though it’s not their fault is that I do notice a small bit of latency when I’m issuing commands over ssh, but hey I’m almost on the other side of the world, what can you do?

I’m now running WordPress 2.7 served up with Nginx and PHP over fast-cgi. I don’t get much traffic but if I ever do I’ll be able to handle it.

That’s all for now. Enjoy the Holidays.

Glen Hansard – Say it to me now

So long since I’ve posted a song of the week. Laziness really, or maybe just lack of songs that I really felt good about. I never really gave Glen Hansard much attention until I watched Once. I can’t stop listening to him now. And this track ‘Say it to me now’ has gone straight into my all-time favourite songs.

Problem installing Rubygems on Ubuntu

I was installing Rubygems 1.2.0 on Ubuntu 7.04 on Friday, something I’ve done many times but for the first time I saw this error when I ran sudo ruby setup.rb

./lib/rubygems/spec_fetcher.rb:1:in `require': no such file to load -- zlib (LoadError)
	from ./lib/rubygems/spec_fetcher.rb:1
	from ./lib/rubygems/source_index.rb:10:in `require'
	from ./lib/rubygems/source_index.rb:10
	from ./lib/rubygems.rb:767:in `require'
	from ./lib/rubygems.rb:767
	from setup.rb:22:in `require'
	from setup.rb:22

Having a look around the web yielded several approaches to solve the problem but no solution so I decided to build Zlib from source, then rebuild Ruby and then install Rubygems. That worked.
Continue reading

Mysql gem on OSX Leopard

Just a quick note on a problem I ran into this morning.

I needed the mysql gem so I ran gem install mysql only to find I got the following error:

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.

The solution was to use the following:
gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

It should work as long as the path to mysql_config is correct, you may need to change the path for your own system. You can check the path to mysql_config with: which mysql_config

Disable active record in Rails 2.1.0

I've had a bit of trouble trying to disable active record in my rails app today.  I set the following in environment.rb as I had done before in rails 2.0.2:

  1. config.frameworks -= [ :active_record ]

However it resulted in the following error:

  1. vendor/rails/activesupport/lib/active_support/dependencies.rb:278:in `load_missing_constant': uninitialized constant ActiveRecord (NameError)

The problem is that [your app]/config/initializers/new_rails_defaults.rb should check to see if ActiveRecord is enabled before it references it. A patch for this has already been checked into the rails codebase but if you don't want to wait for the next release you can get the patch from the link below and apply it yourself:

I made the mistake of applying this patch directly to rails/railties/configs/initializers/new_rails_defaults.rb as the patch does and wondered then why the fix didn't work. It would work for any new rails apps that you create but you'll need to apply it to config/initializers/new_rails_defaults.rb in your rails app in order for this to work.

Michael Fix – Message in a Bottle (cover)

I've finally got around to taking guitar lessons which I started about a month ago. The lessons have been giving me an even greater appreciation for finger-style playing. Actually if anyone is thinking about taking lessons I highly recommend my teacher, check out for more information.

I stumbled across this great great YouTube find this morning and wanted to highlight it. I love The Police and 'Message in a Bottle' is one of my all-time favourite songs. This cover is just brilliant.

Somthing that made me smile.

I was at a wedding over the weekend. One of the readings was quite unusual but truly perfect. I'll never forget it.

The reading was an extract from The Velveteen Rabbit by Margery Williams

"What is REAL?" asked the Rabbit one day, when they were lying side by side near the nursery fender, before Nana came to tidy the room. "Does it mean having things that buzz inside you and a stick-out handle?"

"Real isn't how you are made," said the Skin Horse. "It's a thing that happens to you. When a child loves you for a long, long time, not just to play with, but REALLY loves you, then you become Real."

"Does it hurt?" asked the Rabbit.

"Sometimes," said the Skin Horse, for he was always truthful. "When you are Real you don't mind being hurt."

"Does it happen all at once, like being wound up," he asked, "or bit by bit?"

"It doesn't happen all at once," said the Skin Horse. "You become. It takes a long time. That's why it doesn't happen often to people who break easily, or have sharp edges, or who have to be carefully kept. Generally, by the time you are Real, most of your hair has been loved off, and your eyes drop out and you get loose in the joints and very shabby. But these things don't matter at all, because once you are Real you can't be ugly, except to people who don't understand."

"I suppose you are real?" said the Rabbit. And then he wished he had not said it, for he thought the Skin Horse might be sensitive. But the Skin Horse only smiled.

I thought it was absolutely beautiful and I was very moved by it.  It makes me smile when I think about so I wanted to share it with half dozen people who visit my blog from time to time.

Internal Server Error on post.php after upgrading WordPress

I recently upgraded my copy of wordpress to 2.5.1. All apparently went smoothly until I tried to write a new post. When I pressed 'publish' the page would hang for a while and then return an Internal Server Error.

For those of you experiencing the same trouble. The problem was with the database. I uploaded my mysqldump of the wordpress db via phpMyAdmin on GoDaddy, I had enough grief as it was trying to get the script to go through properly, the problem was that it neglected to assign the AUTO_INCREMENT property to ID fields on all my wordpress tables. So effectively I could not create new rows.

Thanks to Ken for pointing me in the right direction.

Planning a wedding is pain in the ass

I was holidays in Portugal the week before last. I asked my girlfriend Linda to marry me while we were there. So we came back with a wedding to plan. We're not going to do one of those long drawn out engagements so the wedding will be May next year.

A week into the planning and we're already fed up. It's like there's this whole new world of wedding politics that we've stumbled on. It's not that much different from real world politics, it's still full of bullshit and lies and secrets and pissing people off just to keep others happy.

Money is the other thing. It appears to be near impossible to do the whole wedding thing for under 20 grand. Mind you we'll find a way to do it for 10 grand, it just means that there will be a lot of compromise. Both of us think it is idiotic that your first act as a married couple is to sink yourselves in debt to pay for your wedding.

Ah I just needed a little rant, I feel a bit better now.

If anyone knows how to get married abroad in Italy or Portugal with 20 - 25 guests for around 10k, let me know!