Analyze Data with MongoDB and Ruby

This post gives a quick and very brief introduction on how to use MongoDB with Ruby. We will see how to install and connect to a MongoDB, how to populate the database with fake documents generated in just a couple of lines of code, and how to build some queries to gain insights into the stored documents. Prerequisites Let’s assume you already have Ruby installed. Throughout this post, we are going to create a small playground consisting of a few files....

November 22, 2016 · 7 min · Carsten Rösnick-Neugebauer

Dockerize a Ruby application

In this post, I describe my journey from knowing essentially nothing about Docker to having a dockerized Padrino application with each service living in a container (more on that below). To find this guide useful, you’d need to have Ruby installed, but no prior experience with Docker. We begin with the very basics: ensuring that Docker and docker-compose are installed, creating a minimal Docker setup, and generating a new toy Padrino application within its container....

November 12, 2016 · 10 min · Carsten Rösnick-Neugebauer

LaTeX Packages

I am using LaTeX for almost all of my documents since my third semester, but I just recently (1-2 months ago) stumbled upon two packages I definitely would not like to miss anymore (besides the usual ones for writing math texts, of course): cleveref and xparse. Auto-updating your references When writing up mathematical statements I am sometimes unsure if it should be a theorem, proposition, lemma or claim. A proposition would certainly be renamed to a claim if I do not plan to prove it; or a lemma if it turns out later that I do need it part way to prove a theorem....

October 28, 2013 · 2 min · Carsten Rösnick-Neugebauer