Archive

Archive for December, 2009

Merry Christmas!
1 star2 stars3 stars4 stars5 stars
(no votes yet)
Loading ... Loading ...

December 24th, 2009 No comments

I wish you a Merry Christmas and a Rocking New Year 2010!

(created using geekobuilder)

image_url function in Ruby on Rails
1 star2 stars3 stars4 stars5 stars
(no votes yet)
Loading ... Loading ...

December 23rd, 2009 8 comments

If you need to get the full URL of an image, just put the following code snippet into ApplicationHelper module in your app/helpers/application_helper.rb:

  def image_url(source)
    abs_path = image_path(source)
    unless abs_path =~ /^http/
      abs_path = "#{request.protocol}#{request.host_with_port}#{abs_path}"
    end
   abs_path
  end

I wonder why this function is not already a standard part of Rails.

(Idea by Rob Biedenharn)

Tags: ,

Avatars in openSUSE Build Service
1 star2 stars3 stars4 stars5 stars
(no votes yet)
Loading ... Loading ...

December 16th, 2009 1 comment

Thanks to Tom we now have avatars in openSUSE Build Service, so e.g. Involved Users list looks like this:

involved-users

If you have a shady man instead of your nice photo, go to gravatar.com and setup your own one. Don’t forget to add the email address you are using in the Build Service!

Geeko Bus
1 star2 stars3 stars4 stars5 stars
(no votes yet)
Loading ... Loading ...

December 10th, 2009 5 comments

I travel to work by bus. While they are usually in Prague Public Transit’s traditional colors – red and white, today this one came to bus stop:

Zoo Bus

I was really happy that I could go to SUSE offices on Geeko Bus. It really made my day! :-)