sandbox

This is my current blog where I discuss a variety of computing topics including Linux, vim, python and javascript as well as science and statistics. Many of the posts have accompanying gists, which contain code for the example discussed.

Probabilistic programming with Python and Lea

May 4, 2015

In this post I will cover installation of a probabilistic programming package for Python called Lea and provide some simple examples of using the package to do calculations with joint, conditional and marginal distributions. These examples follow the by-hand calculations done in a previous post.

JOINs, and some VIEWs, in MySQL

Apr 30, 2015

This is the third in a series of posts on MySQL. The first post covered setting up MySQL and basic queries and the second post covered simple queries using SELECT, LIMIT, ORDER BY, etc. If you are starting out, you should start with these posts. In this post I will go over multi-table queries, using JOINs (with some help from VIEWs).

Employees database for MySQL, setup and simple queries

Apr 22, 2015

In a recent post I covered MySQL setup on Ubuntu 14.04. In this post I will cover downloading and setting up the employees sample database that will be used for the example queries in this, and other posts, on my blog. As mentioned in the previous post, I'm using Jump Start MySQL as a guide book for these posts-- you should check it out for more examples.

Installing MySQL on Ubuntu 14.04

Apr 21, 2015

In this post I will cover installing MySQL on Ubuntu 14.04, using the repository available at the mysql apt repo. The idea is to setup a repository that allows our MySQL to be current-- in this case MySQL 5.6. The instructions I'm documenting here are derived from the above link, as well as the nice book Jump Start MySQL (April 2015). If this is of interest to you, follow along and be sure checkout the resources mentioned above.

Getting started with responsive websites and JavaScript

Apr 3, 2015

In this post I'm going to describe two basic web pages I've been working on: 1) a basic responsive page, and 2) a responsive page that uses JavaScript to detect the current size of the screen. My goal here is to use basic HTML, CSS and JavaScript -- no js libraries -- to help myself learn JavaScript and responsive data visualization techniques. That said, I'm not an expert, and the examples should be considered with that in mind. Please comment at the end of the post if you have better, or different, ways of doing the same thing.