Hello, I'm Stanko, a software engineer in Belgrade, writing mostly about JavaScript and React.

Latest post

AxiDraw Lego camera mount

I already built a mount for my Raspberry Pi camera, but it was 3d printed. Meaning that it has one fixed position. I used it a couple of times, but I wasn’t super satisfied. Then I stumbled on these images, and thought it was a great idea to use Lego to build a new, more versatile mount.

A friend of mine had a bunch of spare Legos laying around, so he gave me two bags full of Legos to play around. I wasn’t sure where to start, especially because I wanted to make both height and rotation adjustable. After fiddling with the blocks for about an hour, I came up with this:

Camera on the mount, front view
Camera on the mount, back view
Read more

Simple video buffering loader in React

For multiple projects, I had to add a simple video component with Always include at least basic video controls for accessibility and a buffering loader. It is not hard to detect the buffering state, but it can be tricky to get everything right.

Therefore, I created a simple component which I now copy from project to project with slight style adjustments. Jump to the code if you are not interested in how it’s made.

Read more

Deprecating Marvin

2 Comments

It is funny, I would never say I would be sad to deprecate a software project. Especially a project boilerplate. But I just merged the deprecation notice, and I do feel down a little.

I created Marvin about four years ago for my own needs. Since then it grew, became internal project at Fun fact, our website is made on top of Marvin. and was used by thousands of people.

Read more

This blog is now Google free

Earlier today I removed Google Analytics script from my website. Long time ago I switched to self hosted fonts instead of Google Fonts. That means, as of today, my blog is completely Google free.

Read more

Hack for iOS Safari to display the HTML video thumbnail

Mobile iOS Safari doesn’t display preview thumbnail until you tap on the video. My go-to solution was to define a poster attribute and move on. But today I learned I could use something called Media Fragments.

Media Fragments specify a way of sharing parts of audio and video files by simply adding url params. Browser support varies, but fortunately support for what we need is pretty good.

Read more