Joined September 2012
·
Posted to
Rails Quick Tips - Random Records
over 1 year
ago
@natebird Why did you say that 'randumb' scales better?
In the repository the author says that he already uses the rand function, and he says that his gem could have the same problem with high databases.
Posted to
Automatically build and deploy Jekyll sites to heroku (from github)
over 1 year
ago
Thanks, I will try it.
Posted to
CSS3 blur text
over 1 year
ago
@flurin Cool <
Achievements
89 Karma
1,838 Total ProTip Views
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
I will add another approach:
Take a random number within the Object length, and get some like 20 records (In Active Record), then suffle it and take 5 (in Ruby not Active Record). It could be better in high database, but maybe not random enough.