Posted
19 Feb 2008 @ 21:13

Categories
,

Comments
None

Author
Alex

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:

def from_xml(xml,photo=nil)

to:

def self.from_xml(xml,photo=nil)

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.

Posted
29 Jul 2007 @ 16:55

Categories
, , ,

Comments
None

Author
Alex

More Java & TextMate [Updated]

TextMate Bundle

Update: Unfortunately this doesn’t seem to work any more, I’ll update it soon.

A while ago I wrote a short post (here) about some additions that I had made to TextMate in order to improve it’s compiling of Java applications, I had made the changes because I had started programming in Java at university and wasn’t happy with the way that TextMate handled the files. In the post I promised a follow up post detailing some other improvements I had made to the Java bundle, finally, that post is here, sort of.

I’ve made so many changes to various bundles and themes it has become to difficult / long winded to document the changes in a post so instead, I have decided to release the changes as a small download from the website. You can find the files you will need on the relevant software page (this does not work anymore, read the update at the bottom of the page). The main changes are some slight tweaks of the Blackboard theme, the main theme I use and the addition of some new snippets, the compiling shortcuts from my previous post & some menu reordering in the Java bundle.

Make sure that you follow the instructions on the download page or in the README file when installing the files, I don’t want you to go breaking your computer now.

Sorry for the delay in this one, hope it satisfies you appetite, check back soon.