Archive for the 'learning' Category

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 ...

Simple Thinking Sphinx on Dreamhost

*** Please note - this will probably not work (at all) (for more than a day of light use) without Cron use. And isn't at ...

Ruby Uninitialized Constant Error (Mental Note)

The reason I always get initialized constant errors occurring in Ruby is accidentally naming models the plural form of the database table name and not ...

Sony Ericsson Phone Mac Crash Bug

Courtesy of this fella http://www-users.kawo2.rwth-aachen.de/~razzfazz/k750igrabber/ and thanks to this fella (via google search) http://www.mattheweaves.co.uk/2005/10/25/sony-ericsson-k750i-quickshare-mobile-phone-mac-osx-104-tiger-kernal-panic-crash-fix/ it appears there is indeed a way to stop my k800i crashing whenever ...

Getting around QOL (aka JavaScript execution in Safari)

QOL is Queen's University Belfast's student intranet system which allows centralised delivery of lecture content and course material to enrolled students. Unsurprisingly it doesn't work ...