-
Archives
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- November 2009
- October 2009
- September 2009
- July 2009
- May 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2005
-
Meta
Category Archives: Code
Blog Move 1: Getting WordPress data to Ruby using XML
Step 1 in the “Moving my blog” process is “Extract the current site’s data into a manageable format” Frankly, that’s easy! WordPress has a functionality to export the site’s content to a single XML file containing all the published Categories, … Continue reading
Ruby on Rails: Get some random records
EDIT AGAIN: Much better.. To get a ‘num_reqd’ array of random objects, you can use something like this. named_scope :large, :conditions => ['image_file_name IS NOT ?', nil] named_scope :small, :conditions => ['small_image_file_name IS NOT ?', nil] def self.get(num_reqd,features_arr=[],size=”large”) if size==”small” … Continue reading
Posted in Code, blog, learning, rails
Leave a comment
Harry Ferguson Memorial CMS choice – Textpattern
The last few days I’ve been putting the finishing touches to the CMS behind Harry Ferguson Memorial.com. Initially completely in hand-coded HTML (to get it looking right without distracting myself hacking around in a CMS template styling system), it was … Continue reading
Posted in Code
Tagged cms, harry ferguson memorial, northern ireland., textpattern, web design, yab_blog
2 Comments