A cool menu I made with AngularJS. See it in action here.

Read more
Chimp life #0

Members of the hippity hoppity brigade competing for who can come up with the naughtiest nursery rhyme. Or, from an ethological perspective: Male apes performing a dominance display to secure a high position within the pecking order and thereby increase their mating opportunities.

[Click 'Read more' to see video]

Read more

This is just a code dump of my website's build logic. It's neat to be able to just type gradle redeployRemote and have the application automatically updated on the server.

Read more

I wanted to get better at JavaScript so I spent a few days making a game of Tetris. It's purely SVG and JavaScript; no libraries.

Play full screen

Download compiled source

View original source on GitHub

Read more

I've been working my way through a book called The Elements of Computing Systems, which teaches you how to build a simple computer from scratch, starting with just NAND gates. The hardware is specified in a hardware description language and simulated on a typical desktop machine.

Chapter six entails building an assembler. Here is my rough solution in C++. I only spent two days on it so it's not written to the highest standard.

Read more

[Click 'Read more' to see image]

Imagine a pie chart representing the range of skills that the economy needs—that is to say, if we were to inject into the nation's workforce a new population of young people equal in size to that of the current student population, what would be the breakdown-by-expertise among them that would most benefit the economy? And next to that imagine another pie chart representing the areas of study chosen by the actual student population today. In an ideal world the two charts would match, but in reality there is little resemblance between them, and this is a problem.

In a free market economy, prices are determined by supply and demand, and wages, from the point of view of an employer, are prices like any other. It is supply and demand of human capital, therefore, that determines how much an individual is paid, where human capital refers to the various attributes of worth with which a person is endowed—be it by nature, education, work experience, or otherwise—that are sought by employers who must compete in the marketplace for good workers, each of whom is at the same time seeking an employment deal that offers them a favourable balance between work conditions and pay. In short, jobs requiring skills that are scarce and in high demand will tend to pay more than those requiring skills that are abundant and in low demand.

Read more