Press "Enter" to skip to content

Author: Slavko Zitnik

my info is coming soon

Apache and forwarding a client certificate Id to WebSocket

Recently I came across a problem of forwarding a certificate Id to backend service for the authentication purposes. I also do not want to handle SSL at services. Let’s say I have a server setup as follows: There is an Angular website on port 4200 and REST/Websocket services on port…

Leave a Comment

Creating a Mac OS .app from a runnable JAR file

Here we solve a problem that many developers face when bundling java applications into an .app. We are going to correctly set the current working path for your Java Application. Mac OS applications (.app files) are basically packages with a specific folder structure. You can easily explore each app’s structure…

Leave a Comment

A simple custom solution to multi-language support using JS

Recently, I needed to add a multi-language support to a website that was run using PHP. Sure, I could use some i18n PHP framework to deliver translated web-page directly from a server, but I decided to design a simple approach based on Javascript. Here it goes … The default language…

Leave a Comment

Part 3/3: Reading analog input using RPi

Continuing from the previous example, we would like our LED to turn on automatically, based on the light level of the environment. Photoresistor First we need to read the value of the photocell that measures the value of light. Photocells (aka. photoresistor) acts as a dynamically-adapting resistor according to the…

Leave a Comment