Selection and ranking of activities in the social web