Can I use the Ruby on Rails icon for my serviced based company. (Commercial use.)
Same for Android and iPhone/iPad.
If you have any doubts you should get permission from the respective rights holder.
Contact the company, explain what you are wanting to do.
If you are linking back to the Ruby-on-Rails site (for example) I can't see that they'd refuse. As long as you weren't claiming to be something you're not you should be OK.
(Subject to the I'm Not A Lawyer clause).