Guided Filter

Standard

Testing Guided Filter (actually testing Jupyter notebook)

https://github.com/subokita/guided_filter/tree/master

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

Standard

SceneKitTest.gif

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:

https://github.com/subokita/SceneKit-Testhttps://github.com/subokita/SceneKit-Test

Edit:
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

Standard

A quick and dirty Consul + Registrator + Docker tutorial.

https://github.com/subokita/consul-docker-test

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

The interesting files are the

  • call-server.py: 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.

 

Standard

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

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

Standard

If sure fire way to be happy is to lower your expectation. Then the obvious way to make others happy is to do something that exceeds their expectation when they are expecting nothing at all.

Standard

I’d probably be blacklisted by the government, but well, whatever.

Here’s the link to Bhinneka magazine which details the atrocity of 1965’s genocide in Indonesia. maskod.co.id/bhinneka-en/#p…

Here’s another link if the previous one is dead: https://archive.org/details/BhinnekaOct15English

 

Standard

I’ve updated 2015 todo list with post-mortem, and some 2016 and added 2017 list. Feel free to check it out (left hand bar, scroll down), if you care. It shouldn’t matter to anyone, honestly.

Flight around alps

Standard

My manager took me for a flight around Alps. Here are some photos:

Desc ...

DE-TCR

Desc ...

2 seater Cessna

Desc ...

View after takeoff

Desc ...

It was drizzling

Desc ...

Ammersee, if I recalled correctly

Desc ...

Cockpit view

Desc ...

Flight info

Desc ...

Town

Desc ...

Boringness

Desc ...

Part of the wing

Desc ...

Alps in the distant

Desc ...

Getting closer

Desc ...

… closer

Desc ...

…closer 

Desc ...

… bit more

Desc ...

just a bit more…

Desc ...

There we go

Desc ...

Breathtaking

Desc ...

Desc ...

Desc ...

Sun behind the clouds

Desc ...

Another pretty pic

Desc ...

Desc ...

Desc ...

Desc ...

Desc ...

My fave photo

Desc ...

Desc ...

Desc ...

Desc ...

Desc ...

Desc ...

Desc ...

Desc ...

From the back

Desc ...

Beautiful river

Desc ...

Neuschwanstein from bird eye’s view

Desc ...

Moar

Desc ...

Desc ...

Desc ...

The lake reflects the sky entirely

Desc ...

View before landing

Desc ...

I learned a lot about plane today.

Assorted pictures taken during a month span or so

Standard
SONY DSC

Ah Guan, one of my sister’s dogs

SONY DSC

You want to touch that nose don’t ya?

SONY DSC

Rena, the other dog

SONY DSC

Fake flower I believe

SONY DSC

Red sth sth

SONY DSC

Cessna (I think), my manager wanted to take me for a flight, but decided not to because the wind was too strong

SONY DSC

Fürstenfeldbrücken, the umlaut is at the wrong place

SONY DSC

Another plane. I think I am leading a weird but very interesting life.

SONY DSC

Another plane

SONY DSC

ESP Viper 7, 7 string guitar with EMG pickups. Probably the last guitar for me for the next couple of decades.

SONY DSC

Some random toy. Nice bokeh though

SONY DSC

Real flower

SONY DSC

Centuries ago, people can only see things in black and white.

SONY DSC

Modern art installation at my brother’s house

SONY DSC

Here I wake up to crows’ crowings. but back in Indonesia, the swallows actually chirp or sing gangsta rap early in the morning

SONY DSC

Molly

SONY DSC

Ah Guan in black and white

SONY DSC

Quaint typewriter.

SONY DSC

Yes, the keys jam

SONY DSC

SONY DSC

SONY DSC

SONY DSC

SONY DSC

This is the view from the back of the house that I grew up in (uncle’s house, I’ve never have a home in my whole life)

SONY DSC

On second thought, this is heaven on earth. It’s basically open ocean directly from the back of the house. I can feel the salty air, the gentle breeze, etc.

IMG_0550

View from brother’s house

IMG_0560

This is inside brother’s house.

IMG_0562

Padang food, basically a feast, featuring dishes with various colours, tastes, etc. It’s a delight

IMG_0570

Continuation from the previous one. One of the best foods on earth. Not even exaggerating

IMG_0572

Ox brain.

IMG_0574

Fish head

IMG_0579

Chili condiments, these are essential

IMG_0581

The Rodin don’t want to be bothered. Ich hab keinen Bock mehr

IMG_0608

Just in case you forget, we might kill you here.

IMG_0616

Vietnamese coffee press. I like it a lot

IMG_0627

Pho, a lesser version of Soto.

IMG_0632

This is actually a view from my walk to work. There’s a reason I still walk from train station to work.

Failed Experiment #415

Standard

Failed egg tart experiment. Wanted to make decent one and bring it for people at work, but ended up just bland. Even the special cinnamon-laced version can’t mask the strong eggy custard milky taste. So I threw them all away, gotta start from the scratch again. At least I don’t need to go back to office during my vacation for now.

SONY DSC SONY DSC

SONY DSC

SONY DSC SONY DSC

Failed Experiment #414

Standard

SONY DSC SONY DSC SONY DSC SONY DSC

Honey glazed roast pork. It’s not bad, in fact I might say that it’s good. Just that it doesn’t match what I remembered / expected, so it’s a goddamn failure. Maybe I should have used pork shoulder, but well, if a bird doesn’t want to sing, kill it.