nice people are the worst

Last year, specific the 5th of January of 2013 I saw this:

In the background window is a publicity about Ravi Shankar, about an event called "The world meditate". What really annoyed me was the fact that this asshole stopped in the front of the pedestrian zebra.

The main thing about the meditation event was to make peace and promote the peace around the world. But why this asshole doesn't give a shit about the other people, specially the people that is walking and has to avoid the cars while he is comfortable with his AC in his car.

Perhaps this is just a coincidence that the driver has that image, but even if he/she doesn't has anything with the movement, is still an asshole. Respecting another person, specially if you are driving, should be the first priority, specially if that person is a walking


limit tag cloud with acts_as_taggable_on

Now that I'm having around 300 recipes (just testing recipes, the final count would be more than 10k), I was having some issues with the tags. The tag list was quite big and each new tag was added to the tag cloud.

So I searched for any nice solution, but all was quite messy. The solution was really simple.

To limit the tag-cloud, having something like:

  <% tag_cloud(Model.tag_counts, %w[s m l]) do |tag, css_class| %>
    <%= link_to tag.name, tag_path(tag.name), class: css_class %>
  <% end %>

The solution is something like:

  <% tag_cloud(Model.tag_counts.limit(30), %w[s m l]) do |tag, css_class| %>
    <%= link_to tag.name, tag_path(tag.name), class: css_class %>
  <% end %>

But almost all the solutions on the web makes changes in the controller, models and so on, but almost all that solutions adds more things than the simple answer to the problem