digital:pardoe

My Little Piece Of The Internet

rFlickr And Rails 2.0

rFlickr

Any of you that followed my tutorial on setting up rFlickr and have subsequently upgraded to Ruby on Rails 2.0 may have noticed some server errors on your photo pages, this is due to the fact that a single line of code in rFlickr does not work correctly with Rails 2.0.

You can download the hopefully fixed rFlickr from digitalpardoe.co.uk/downloads/rflickr/rflickr.zip. Simply unzip this file into your rails applications ‘vendor/plugins’ directory and restart the application, everything should start working again as expected.

For those of you that are interested line 644 of ‘lib/base.rb’ had to be modified from:

to:

Hope this gets you back on your feet, so to speak. Check back soon.

Update: You may also want to install the updated version of ‘actionwebservice’ because it is no longer bundled with the Rails distribution. Other people have reported rFlickr not working because of a lack of this gem, however, the lack of this gem didn’t affect my setup at all.

Published by digitalpardoe on Tuesday 19 February 2008 at 09:13 PM

Ruby On Rails 2.0

Rails 2.0 has been out for a couple of months now, I had refrained from upgrading to it because I wasn’t sure what it would break. After putting the website under version control I decided it was too easy not to upgrade to Rails 2.0, so here it is, a website that looks and runs exactly like it did and only a few problems to be found.

To go along with the upgrade I have also added a couple of new features to the website, the photography page now links to my Flickr photostream so if you want to post comments on my photos, feel free. I have also added the ability for me to add images from other sources to the blog, not that important but no doubt you’ll notice the change. The largest change at the moment is the addition of social networking sites on the sidebar. If you like what you read to can add the page to Delicious, Digg, reddit or StumbleUpon.

Mainly to test the upgrade, you can admire one of my flickr photos, the most popular of my photos, or check back soon.

Update: Oops, no image. Remember, if you update something to allow longer links, update the database too.

Update: Generally a broken site is a sign of bad testing, that’s true in this case, the archives were broken, now they’re fixed.

Published by digitalpardoe on Tuesday 19 February 2008 at 08:58 PM

Back Online

Just a quick update on the status of the website.

Something has changed with my hosts configuration, they won’t tell me what and I can’t work out what. However it has meant that the website has been down for a day and a half. I have managed to get it back online by reverting from Mongrel to Apache served and running the website on CGI instead of FastCGI. For all the non-techies out there this means the website may respond more slowly than normal, although the caches should keep it moving for the most part and my host may shout at me for increasing the server load. These issues also mean that the uptime of the website is currently unknown, hopefully it will stick around long enough for my host to sort the problem or for me to get a new host.

Check back soon (just to see if I’m still online).

Published by digitalpardoe on Tuesday 29 January 2008 at 11:02 PM

How To Ruin Your Filesystem

It’s been a while since I last posted, and, as my iMac is currently ‘busy’ I thought now would be as good a time as any for my first post of the new year. First of all I have to say, Happy New Year, a bit late I know but better late than never. Now I can get to the true purpose of this post.

This post is a cautionary tale about external hard drives and, what I see as an error in Mac OS, more specifically, Leopard. In my endeavor to keep as many Time Machine backups as possible I have recently retired my old Western Digital My Book Premium 320GB in favor of a Western Digital My Book Studio 1TB. The hard drive itself is great, really quiet, large size. It is due to the large size that I am now in the situation I am in.

Because of all my new found space I realized I could keep Time Machine backups of both my iMac and my PowerBook on the same drive. To keep backups of the PowerBook my idea was to mount the WD drive over AFP on my PowerBook and Time Machine from there, this would have been the sensible thing to do, however backing up over 11GB of the network would have been time consuming so I opted to create a network, temporarily, with firewire, so it would be much faster.

It would appear however that firewire daisy chaining works in mysterious ways, when I connected the iMac and PowerBook with a firewire cable the WD drive was ‘passed through’ to the PowerBook and appeared mounted on both desktops. I thought this was a clever feature of Leopard and used it to my advantage & started the Time Machine backup.

The backup subsequently hung, so I stopped it, decided I couldn’t be bothered and I could live without Time Machine for my laptop. I tried using the drive again on my iMac, first deleting the image created by the PowerBook & received an error. Then after trying to verify the drive and finding it couldn’t be repaired, realized I had found what could be considered to be a bug & a combination of my own stupidity.

I am currently running DiskWarrior and the external drive if full of overlapped files. This is because the ‘pass through’ was not a clever Leopard trick, it was a result of the firewire implementation (that could have been blocked in the OS I am sure), and caused simultaneous writes to my external hard drive to occur.

Fortunately it only appears to have written off my Time Machine backups (it was Time Machine that started up on the iMac whilst the PowerBook was doing the same) and not the other data on the drive, which I managed to salvage (in case DiskWarrior fails) by mounting the drive in read only mode.

Take my advice, think before you do something like this, I should have realized this would happen but I thought Apple were good enough to stop me doing something this stupid.

Check back soon for more useful posts.

Published by digitalpardoe on Monday 21 January 2008 at 10:40 PM

More Western Digital Icons

That’s right, I’m home for Christmas and I’ve added some new icons to the set. Just as I promised. The main additions to the set are icons for the WD My Book World line of drives, both vertical and horizontal as always. Unfortunately there are no Vista variants for now, because I don’t have Vista installed at the moment, but if anyone would like to donate copy of Parallels or Fusion to me, feel free.

There have been a few more requests for icons for the set, the obvious ones are the icons for the new style WD My Book drives, I will, all being well, have those added in the next week. I’ve also had a request for icons for the WD Passport drives, I will see what I can do.

You can download the new icons set from here. Check back soon for more improvements.

Published by digitalpardoe on Monday 24 December 2007 at 11:37 AM