How to build a responsive Angular Frontend

Smartphones and tablet computers have become more and more important over the last couple of years. Today, it’s almost impossible to image the internet without websites that function and look great on almost any screen. However, with business apps, that is often not the case. And, to be fair, it’s often also not required. In my case, however, I wanted to add basic responsive support for an Angular frontent that I’m working on, and in this article, I’d like to present the method that I used.

Continue reading How to build a responsive Angular Frontend

How to program an arcball (orbiting) camera in Unity using spherical coordinates

A while ago, I wrote this article about a simple implementation of an Arcball camera in C++. In it, I described how that could get done without using Quaternions, spherical coordinates, or a lookAt function. Anyway, just out of curiosity, I decided to create a minimal implementation of an orbiting arcball camera in C# using spherical coordinates.

Continue reading How to program an arcball (orbiting) camera in Unity using spherical coordinates

Write better looking console applications using ANSI escape codes

Console applications are a great thing: They usually solely focus on getting things done. That, however, often also means that the user experience can come short. While I don’t have a problem with a simple text-only menu, it can often scare away new users. But there’s a way to easily style your console applications so that they can have something that you could call a primitive GUI:

Continue reading Write better looking console applications using ANSI escape codes

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

How to program an arcball (orbiting) camera in C++ and OpenGL

Visit this page for a Unity3D example using spherical coordinates.

I recently had to implement a drag and drop camera feature for a college course. The OpenGL program, we had to submit, had to contain a camera that can be controlled by moving the mouse around. The camera itself should always look at a fixed point in the 3D space while being rotated on two different axes like it’s stuck to the inside of a sphere.

Continue reading How to program an arcball (orbiting) camera in C++ and OpenGL