Tunnel HTTP(S) traffic through a server using SSH

Sometimes only certain IP addresses are allowed to access an HTTP API endpoint. While developing an application which has to use this API you might want to access the secured API from your developer workstation, though the IP of your workstation is not allowed to access the API (only a server under your control is). [Read more...]

Using the fetch API inside Node.js

I am currently developing an isomorphic web application. You can see it in action e.g. https://erleben.enns.at/. A few days ago it took me some time to figure out how to be able to use the fetch API both on the client and the server. [Read more...]

JNI and the Java library path (JVM java.library.path system property)

Sometimes I have to use native libraries (.so libraries under Linux or .dll libraries under Windows) in Java programs. That’s where you use the Java Native Interface (JNI). It allows you to call functions implemented in native libraries from Java code. And almost every time I forget to remember how the JVM tries to locate the referenced native libraries. [Read more...]