Author Archives: Danny

About Danny

Primarily a Ruby On Rails developer, but I can do other cool stuff too.

Rails3 beta3 Authlogic metaclass error

I noticed this problem when I tried to use authlogic today: undefined method `metaclass’ for Authlogic::Session::Base:Class (NoMethodError) Turns out the fix is pretty simple bpauly posted a comment on http://railsplugins.org with the following: metaclass has been deprecated in favor of … Continue reading

Posted in Development, Patches, Ruby / Rails | Tagged , , | 5 Comments

SRC10 – Breaking things with Ruby talk

Presenter: Rory McCune The breaking things with Ruby session was all about penetration testing and security. It was one of the best sessions I attended while at SRC. A couple of tools and techniques were demonstrated, and the Pen testing … Continue reading

Posted in Conferences, Development, Security, SRC10 | Tagged , , | Leave a comment

Google chrome select and CSS

If you try and set a background image in a select element in Google chrome and you get shading over the top of the element which completely buggers up the element, I think it’s a bug. I’ve managed to get … Continue reading

Posted in Uncategorized | 9 Comments

A couple of funny videos

Best Fails of 2009: http://www.huffingtonpost.com/2010/01/07/best-fails-of-2009-video_n_414549.html Compare the Meerkat: http://film.comparethemeerkat.com/

Posted in Funnies | Leave a comment

Automatically generating a sitemap in rails

I recently had the need to generate a sitemap using a cron job on a regular basis (nightly) for my ruby on rails app. I found the excellent plugin from Chrisian Hellsten at http://github.com/christianhellsten/sitemap-generator. Which did the trick very nicley. … Continue reading

Posted in Development, Ruby / Rails | Leave a comment

Problem with cucumber external selenium testing

I have added a features folder to my wordpress install and got a lovely gem called cucumber-wordpress to write cucumber driven tests for wordpress. I decided to get clever and setup selenium cucumber and normal cucumber webrat profiles. I’ve done … Continue reading

Posted in Uncategorized | Leave a comment

IE fixed width select input bug

IE truncates options within a select if the options are longer than the width of the select control. Somehow EVERY OTHER BROWSER manages to expand the options while keeping the select at the fixed width, another reason why ie sucks!!! … Continue reading

Posted in Development, Javascript | Leave a comment

jQuery storing data in a tag using internals

I had a problem where I needed to store the old name of an input tag so that I could reference what it used to be called. I used the rel attribute to store this (as is common practice) but … Continue reading

Posted in Development, Javascript | Leave a comment

How to make a wordpress plugin

So I had my first exposure to writing a wordpress plugin yesterday. It was such a pleasant and easy experience that I thought I better give a little back. So here’s my step by step guide to creating a very … Continue reading

Posted in Development, PHP, Wordpress | Leave a comment

New Beginnings

Time to get my blog back on the go. Starting fresh, no history just a brand new slice of life, code and adventure (if we’re lucky)

Posted in Uncategorized | Leave a comment