Guided Filter


Testing Guided Filter (actually testing Jupyter notebook)

Depends on numpy, scipy, matplotlib, and jupyter

The good part is that now I can somehow annotate my code with the original equations (well, when I don’t butcher it). Still, probably the best IDE is when you write math equation using latex, or so, and it will automatically generate backend python / c++ code  for it.

Screen Shot 2017-08-14 at 19.02.50


Depth Map mesh generation



Depth map (or height map?) mesh generation using SceneKit. This is my first time using SceneKit and it’s way less hassle than writing every single OpenGL operations line by line.

Basically what it does is to generate terrain / height map using given depth map. The calculation of the normal is still messed up though.

You can get the source code here:

Updated with:

  1. Testing handwriting custom fragment shader (well, just trying out how to set SceneKit to use my own fragment shader)
  2. Metal compute shader, kernel function is taken from InvasiveCode which is pretty straightforward. The only thing that I wanted to know is the initialisation steps.

Screen Shot 2017-08-07 at 08.58.04.png

Quick and dirty Consul + Registrator + Docker tutorial


A quick and dirty Consul + Registrator + Docker tutorial.

The example uses docker, consul, registrator and python’s flask framework to quickly create REST services.

The interesting files are the

  • which shows how to use python-consul to obtain available services (other flask REST service) from the consul node
  • And the docker-compose.yml that creates consul server, registrator container, and two REST service containers which are automatically registered using registrator.

Have fun.



In indefinite hiatus, which would probably last a very long time.

I want to focus on my work creating things I believe in.