Archive

Archive for November, 2008

[Cool Sites] A great meal planner with shopping list

November 27th, 2008 Dante Regis 1 comment

Starting the series of cool sites you should visit, there’s a meal planner with shopping list building and recipes from great chefs, all with reviews and nice pictures called Tasty Planner. Very cool, worth a visit.

Categories: Uncategorized Tags:

Factory Girl and has_many / has_many :through associations

November 19th, 2008 Dante Regis 7 comments

If you want to create has_many and has_many through associations in factory_girl as I once did, you will need to put it inside square brackets:

Factory.define :user do |user|
  user.name "My Name"
  user.groups {|groups| [groups.association(:group)]}
end

This will ensure that user.groups is not overriden by a single Group object, but by an array with a Group inside.

Categories: programming, rails Tags:

Mobile Operator Idiocy

November 15th, 2008 Dante Regis No comments

We have a mobile carrier here in Brazil called Vivo. If I’m not wrong (and I may be) it belongs to Telefonica, the spanish company. It has a website completely incompatible with any browser other than Internet Exploder. And, believe it or not, it is a official iPhone seller on this country (you can’t run IE on a iPhone). So a client of the company, Mr. Fernando Caprio, asked them about Firefox and other browsers compatibility with the site. Their answer:

Dear Mr. Fernando, good morning!

Regarding your e-mail, we inform you that our website is built on a MSDE database and all programing is done in files with a HTML extension. The software Firefox is incompatible with this extension.

Ain’t this neat? Firefox doesn’t support HTML! We should all move ASAP to Windows and IE6! After all, which other browser would enable us to read this blazing new technology? HTML Extension! Beware: it may take over the web!

I hope you guys have a glimpse of the customer care mobile carriers have here in our country.

Categories: Uncategorized Tags:

Star rating system with jQuery

November 10th, 2008 Dante Regis No comments

Pretty self-explaining. Very, very good. Give it a try:

http://php.scripts.psu.edu/rja171/widgets/rating.php

It makes star-rating as simple as one line!

Don’t forget to thank the author!

Categories: Uncategorized Tags: