Scott Rutherford

Life on and off the Rails

 

I have just completed (well apart from moving any assets over) the switch from Typo to Mephisto. It was fairly painless. There was one :dependent declaration that needed fixing in the converter code and other than that pretty much everything I needed to know was in these two posts.

How I converted Type to Mephisto

Finally switched to Mephisto

The solution given for fixing your routes found in the later of these I found also needed this line:

Mephisto::Routing.redirect '/articles' => '/'

to get all my permalinks to work. The result on my memory usage is pretty dramatic and hopefully I won’t get as much spam…..

Facebook Friend Invites

November 27th, 2007

I have been messing around with Facebook apps recently and I found a couple of articles to be very helpful:

Tutorial On Developing A Facebook Platform Application With Ruby on Rails

Continuing Facebook Applications With Ruby on Rails

Fist in your Facebook

Read the rest of this entry

Trackback Nightmare

November 20th, 2007

Further to the DDOS attack turns out that they had managed to create 43,046 trackbacks before it was stopped – so much for Akismet, or is it Typo – actually thats probably a little unfair considering I haven’t updated in a while!!

Anyway its still going on, I’ve just turned them off on the blog and set the server to deny all access to any url containing ‘trackback’. What a pain in the arse these bots / people are.

DDOS Attack

November 16th, 2007

Apologies to anyone who found this blog down over the last couple of days. For some reason I was subject to a DDOS attack!!! Wouldn’t really of thought of myself as a entertaining target really, but there you go…..

FCKeditor Plugin 0.4.2 Released

November 16th, 2007

I have released a new version of the FCKeditor plugin, it contains a few fixes, a couple of new features and the 2.5 beta version of the editor itself. I chose to use that version as it comes with support for Safari!!

One of the changes is a new rake task (based on code from David Jones over at Resolve Digital. This provides the ability to download and install any version of the editor you like (including the nightly builds). Simply run

rake fckeditor:download VERSION='2.4.3'

VERSION can be any of the existing versions (2.5b, 2.4.2, etc) or if left blank the nightly build will be installed. The version printed out of the currently installed version of the editor is actually hardcoded (I realised having created the release!!) so please ignore that for now.

Other fixes include fixing the file upload to check for StringIO as well as Tempfiles, and a load of tiding and some fixes (including the basis of the code to allow the use of the text area helper without instantiating an object) from Hongli Lai. There are a couple of issues I have noticed with the editor itself but I will post them a little later.

The plugin is available from Ruby Forge or by doing this:

ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor

There is also a demo

This blog used the Shay theme as a base and is powered by Mephisto