Access smartphone sensor data on a website with the Permissions API (iOS 13)

I wrote this article about reading sensor data from on a Smartphone with JavaScript a while ago. Those methods worked for Android phones as well as iPhones running on iOS 12 (or lower). However, with iOS 13, Apple changed the way sensor requests have to be made, and I decided to post an update to accomodate for that.

Continue reading Access smartphone sensor data on a website with the Permissions API (iOS 13)

Functional-Style Operations in Java with the Stream API

I discussed Java Lambda Expressions quite a time ago in another article. Those were not the only new thing that got implemented in Java 8. Besides Lambdas, Type-Annotations, and Default methods in interfaces, version 8 of the Java API added support for functional-style operations. Because I think that this is quite a rarely discussed feature, I decided to write this short introduction to the Java Stream API and how it can be used for basic functional-style programming in Java.

Continue reading Functional-Style Operations in Java with the Stream API

How to implement switchable dynamic custom themes with Angular Material

I needed to implement a function that allows users to dynamically switch between different themes in an app that I develop at the moment. As the title suggests, I use Angular Material components and Material themes.

In this article, I’ll give you a step-by-step guide on how you can choose between different themes in an Angular app dynamically.

Continue reading How to implement switchable dynamic custom themes with Angular Material

A comprehensive collection of 3D printing tricks – Part 4

This part of the series discusses what happens when your print is done. Believe it or not but you’re not safe yet! There’s still a few things that can go wrong, even after your print finished successfully and this article addresses them.

Continue reading A comprehensive collection of 3D printing tricks – Part 4

How to use Websockets to control an ESP8266 and a Raspberry Pi with a web browser

For a current project of mine, I had to evaluate how high the latency is when using websockets. In my case, I wanted to use a small single board computer as the server and any device, that can run a web browser, as the client. This tutorial illustrates how a Raspberry Pi and an ESP8266 can be used to act as a websocket server that can be controlled with a standard webbrowser.

Continue reading How to use Websockets to control an ESP8266 and a Raspberry Pi with a web browser

A comprehensive collection of 3D printing tricks – Part 3

In this part we’ll take a look at the most common materials you can use for 3D printing and how to compare to each other. I’ll discuss the most important features and problems of each material and I’ll also look at a few methods that should help you get that first layer right as well as some methods to fight warping.

Continue reading A comprehensive collection of 3D printing tricks – Part 3