Host Moodle on Heroku

This post outlines how you can run Moodle on Heroku. This route is a potential solution for anyone looking to get started with Moodle, a feature rich, open source learning management system (LMS), using a hosting solution that provides greater control and does not display ads to students.

Weighted Random Selection with Elasticsearch

I recently found an interesting stackoverflow question that I posted an answer to without the thought the question deserved. The poster was storing documents in Elasticsearch and using function_score with its random_score option to randomly select a document from a set. This seemed fairly straightforward. The poster also wanted to boost certain documents. My first response suggested the use of query boost to accomplish the task. However, what the poster really wanted was weighted random sampling and upon further exploration, I discovered this was not the simple task of constructing the right query as I had initially thought.

Pagination


© 2019. All rights reserved.