Ruby random number by day

This is a cool little snippet of code that will return a random number, that changes by day:

def random_by_day(max_value)
  srand Time.now.strftime("%m%d%Y").to_f
  rand(max_value)
end

Rails Log Analyzer (RAWK)

Came across a sweet rails log analyzer. Doesn’t require that you use syslog or anything like the other log parsers that are out there. This one will work right on your development or production log files. Its called RAWK and you can find it here: http://rubyforge.org/frs/?group_id=2517&release_id=15246

%d bloggers like this: