Archive for the ‘Uncategorized’ Category

Spam comments are getting inventive

Wednesday, May 4th, 2011

I check comments that have been caught as spam every now and then. They seem to be getting very inventive… This one caught my eye because it looks like it’s a bit confused about the name of the profession that creates styles. I never realized that lawyers designed web pages!

I enjoy your blog.. pleasant colours & topic. Would you pattern this website by yourself or have you actually hire an attorney to make it work available for you?

Using the output of date_select

Tuesday, August 28th, 2007

Hmmm, after lots of time spent writing things like

item = Item.new
item.date = "#{params[:item]['date(1i)']}-#{params[:item]['date(2i)']}-#{params[:item]['date(3i)']}"

I’ve accidentally found out that Item.new(params[:item]) is clever enough to see these 3 parameters, know that they’re from a date_select, and combine them to form a date.

The Rails API for the date_select method specifies this now. I’m fairly sure it didn’t a while back…

Finally…

Saturday, May 12th, 2007

Got rid of my old, very out-of-date and outdated website and replaced it with a nice blogging system. More stuff should be appearing as I work out how to do things like link in my photos, and so on.