David's blog
Rotating Integrals
December 22, 2015 01:11
This post assumes you know some trigonometry and can do some integral calculus on it.
My little brother in college complained about sines and cosines in an indefinite integral today. Specifically, an integration that he was annoyed with was:
\[\int{x^3\,sin(x)\,dx}\]
It sounded like a whine...
Read postFinding Square Roots
June 12, 2015 01:36
Most of us has at some point in our lives used the Math.sqrt()
function. We would even know that \(\sqrt{2} = 1.414\ldots\). However, we never really give how it is implemented a second thought. Thus is the power of a tight abstraction. For those of us who lived in the age of calculators, findi...
Script for setting up FTP to a folder on a Mac
January 23, 2015 10:34
This script came in handy many times when I had to share things with my other laptops or windows users.
On a Mac you should have Ruby installed. Macs normally come with an ftpd whose frontend has been ripped out, so you can only do this on the command line. Basically, write this to a script file (...
Read postHexlife Part 2
November 22, 2014 11:47
Yesterday while fooling around, I wanted to build a tri-star, but I made a mistake and made this instead:
But to my surprise I did not find a tri-star, instead this grew out of it:
Since I had made chan...
Read postHexlife
November 21, 2014 10:46
Last week I wrote a simple Game of Life variation that runs on a hexagonal grid after viewing an example on Wikipedia. The cells considered are the immediate neighbours. The rules are:
- if a dead cell is surrou...