weekend project

Five small simulations in the header of this blog

Five small simulations in the header of this blog

Look at the top of this page: something is moving :). Every post on this blog now has a small simulation running in its header, and the home page borrows the one from its newest post.

There are five of them, and each one is built on a single small idea. This article goes through all five, with a toy version of each that you can play with.

The road to wisdom, BFGS NLP

The road to wisdom, BFGS NLP

First, let me tell you about the newsletter button I added :D . You can subscribe to get notified when I post :). It’s down and right, please feel compelled to press it :D .

The road to wisdom?—Well, it’s plain

and simple to express:

Err

and err

and err again,

but less

and less

and less.

— Piet Hein

Beautifull jumps and falls

Beautifull jumps and falls

MIUIII

Play the puzzle!

The Goal: Given a starting “sentence” (string) reach the goal “sentence” (string) by only applying the rules below.

Rule Example
Mx → Mxx: MIIU → MIIUIIU
xI → xIU: MIIUI → MIIUIU
xIIIy → xy: MUIUIIIU → MUIUUU
xUUy → xy: MUIUUIIIU → MUIIIIU
  • x and y represent any character strings and M, U, I represent the actual letters, the arrow may be read as “becomes”.

  • For example the first rule can be read: Any string that ends in M becomes M and two times the reminder.

Try it, I will be waiting here :).

Chip 8 Emulator in Javascript

Chip 8 Emulator in Javascript

This weeks short and sweet project is actually a CHIP-8 emulator. Check it out !

Play with it by clicking here

See how I programmed it by clicking here (or just scroll :) ).

Check the github code here.

Differential Evolution

Differential Evolution

This weekend I was looking into d3js. I saw a lot of cool visualizations on the web that used d3js and was actively searching for something good for rendering data in javascript.

I started learning the basics and while doing this I said to myself I should actually do something to express an algorithm, not just random art.