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 CommentMonth: February 2016
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 CommentContinuing 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 CommentWe are continuing with the example from the first part of the tutorial: https://blog.zitnik.si/2016/02/04/part-13-controlling-leds-using-raspberry-pi/. In this part we are going to install OpenHAB platform on an RPi and remotely control LEDs. OpenHAB (http://www.openhab.org/) is a software that is intended to connect to many sensors or devices for home automation. It…
Leave a CommentIn this post I will review, how to turn on or off LEDs using Raspberry Pi 2, Model B (RPi). First we copy Raspbian linux to a microSD card, turn on RPi and connect to it using ssh. We use three LEDs and each needs to be connected to each…
Leave a Comment