Janik von Rotz

JS snippet: Set tallest height on siblings

This post is another contribution to “I hope that I never have to use jQuery again”. The problem solved this time is quite simple. We want to set the same height for a group of divs. So not like this:

Untitled

Read More...



Migrate KeePass to Pass

I’m using KeePass for a few years now. It always has been the password manager of my choice. Currently I’m using KeePass on my Mac and Windows connected to the same database file. The KeePass database file is stored in a OneDrive folder, encrypted with a password and keyfile, which is stored in the Keybase filesystem. This setup gives me maximum security and portability. However, it makes it impossible to use KeePass on my mobile device. Also I miss the possibility to use KeePass in my browser or on the command line. I’ve looked for an alternative solution, which doesn’t compromise on security and gives me the same level of portability.

Read More...



Study finished!

Yesterday I received my diploma for my Bachelor of Science in Business Information Technology. We celebrated the three years of hard work with a very pleasent ceremony. At the ceremony I was honored to have the finishing speech. It went very well and I received great feedback. Thanks to everybody who encouraged and supported me on this journey.

Read More...



How China is changing our internet

Yesterday I visited the world press photo award exhibition in Zürich. The exhibition displays the best press photos of recent years. It’s mostly about conflicts and rights activism happening all over the world. This time not only pictures where shown, but also videos. One of those videos gave me a lot of thought. It was about how China is changing the internet or already has changed it for its people. A short and concise reportage tells how the internet has developed behind the great firewall. You should definitely watch it, it’s impressive and frightening:

Read More...



O3M 73 - Viva America

Feel good tracks I’ve listened to while doing roadtrips in California last autumn.

Read More...



The most simple access control for your Meteor React app

For my last Meteor React app I’ve designed the most simple role based access control. The basic idea is that users can have multiple roles and every action possible is only allowed by a specified set of roles. For my Meteor React app the following scenarios were considered:

Read More...



Get rid of Disqus

Recently I read an article on HN (Hacker News) Replacing Disqus with Github Comments and decided to drop the Disqus commenting system on this site. A long time ago I’ve added Disqus to my page because of it was easy to use and had out-of-the-box spam prevention. The cost of it as I see now was a heavy breach in privacy and site performance. When I read the article mentioned above I was shocked what I was forcing on people visiting my site. Just to give you an idea what’s going on:

Read More...



Debounce a redux dispatch method in a react component

Tightly connected reactivity in a react application has the side effect that it is sometimes necessary to delay the execution of a method. Assume you have a search input field that filters elements while typing, every field input creates a search request. In order to get rid of unnecessary search requests you have to wait until a user has finished typing and then start the search. To make this work without a search button, you have to intercept repeating executions (debounce) of the search method within a specified time frame and delay the execution of the last call.

Read More...



Meteor project structure

Get the latest version of this specification here: https://gist.github.com/d4755eb1b7a9d6b08515408ea6fd69bb

The Meteor project structure (MPS) is a proposal for a simple file and folder naming specification.

There are several basic distinctions when building a Meteor project structure. First there is a client, server and an imports folder. All folders have specific naming rules and differ in their structure.

Read More...



O3M 72 - Get Lost

It’s getting warmer, make sure to take some time off.

Read More...



21