Yan Han's blog

On Computer Technology

01 Apr 2017

Reproducing "What Programming Languages Are Used Most on Weekends?"

reproducing-what-programming-languages-are-used-most-on-weekends /*! * * Twitter Bootstrap * */ /*! * Bootstrap v3.3....
15 Feb 2017

Analysis of the Adult data set from UCI Machine Learning Repository

uci-ml-adult-dataset /*! * * Twitter Bootstrap * */ /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-...
01 Feb 2017

My first Machine Learning project: Using Naive Bayes to classify tweets

Source code: https://gist.github.com/yanhan/d9061c9575d14228d2a9ecc9519a55aa Before we go into the main content of this ...
01 Aug 2016

My notes on: Job Bouwman's answer to "What is the toughest question ever asked in any interview?"

A while back, this answer by Job Bouwman appeared in my Quora digest and I enjoyed reading it (Thank you Job!) so much t...
10 Apr 2016

How to prevent mpd from starting on boot on Ubuntu 14.04

mpd refers to the Music Player Daemon, whose official website is at https://www.musicpd.org/ TLDR On the command line, r...
25 Dec 2015

On the Unofficial Bash Strict Mode by Aaron Maxwell

A few weeks ago, I chanced upon a blog post by Aaron Maxwell of redsymbol.net, titled Use the Unofficial Bash Strict Mod...
12 Dec 2015

Templating Ansible style YAML files with only variables

Introduction Suppose you are working on a project in Ansible and you need want to combine some YAML files which contain ...
10 Nov 2015

Creating a Vagrant base box: some important details

If you have not done this before Instead of reinventing the wheel, I highly recommend that you read Nicholas Cerminara&r...
26 Oct 2015

How to uninstall then install brew: a short adventure

Roughly 2 weeks ago I was writing a Bash script to automate some stuff, one of them being installing brew. To test if th...
15 Sep 2015

Note on Think Stats Exercise 5.13 Part 1 aka Using what I learnt in a Mathematical Statistics class

NOTE: This post has been delayed by 2 weeks due to me falling sick on the week beginning 23 August. A lot of momentum or...