Using Androids Recyclerview with Kotlin

Traditionally, you were using a listview to display several homogeneous elements in you Android app. However, this view is now deprecated. Android now offers an alternative, which aims to increase performance by only loading those elements, that are currently rendered on-screen: the RecyclerView. This article shows you how to get started with the RecyclerView. To make things a bit more interesting, we will be using Kotlin instead of Java. You can set up an Android project for Kotlin by simply clicking the checkbox for Kotlin support in the new project wizard. ...

February 11, 2018 · 5 min · Marcel Jurtz

Using GitHub over SSH on public WIFI

When using GitHub via SSH, port 22 will be used per default. However, often times you’ll see this port being blocked on public WIFI networks. On a Linux machine, there is a simple way to change the default port. To test if our plan works out, you can use the following command: bash >ssh -T -p 443 git@ssh.github.com This will test the ssh connection by using port 443. If this returns a positive result, you can change the port in your ssh config file. ...

January 29, 2018 · 1 min · Marcel Jurtz

C# – Mastering the Basics – Operator Overloading

Most of the built-in operators that are available in C# can be redefined. In todays article, I’ll be showing you how you can redefine operators to match your custom classes. Additionally, I’ll cover which operators actually can be overwritten. Redefining Operators To create custom functionality for operators in combination with your own classes, you’ll simply need to create methods matching a specific pattern. These methods require the usage of the keyword operator, followed by the actual operator you’ll want to overwrite. ...

January 21, 2018 · 4 min · Marcel Jurtz

Installing MagicaVoxel on Linux

As a programmer with definite lack of visual skills, MagicaVoxel is a gift from God to create usable 3D models. Unfortunately, there is no installation option for Linux on the official website. With the help of Wine it is possible to use MagicaVoxel under Linux. And it really works great! Installation Prerequisites As I said you need to run Wine. As stated on their landing page, Wine is a compatibility layer that allows Windows applications to run under POSIX-compliant operating systems such as Linux, macOS and BSD. Instead of simulating internal Windows logic, such as a virtual machine or emulator, Wine translates Windows API calls into real time POSIX calls, eliminating the performance and memory degradation associated with other methods. Wine allows you to integrate Windows applications neatly into your desktop environment. ...

January 20, 2018 · 2 min · Marcel Jurtz

C# – Mastering the Basics – Lambda Expressions

Are you one of the people who are easily intimidated by complicated-looking things? I felt a little bit like that when I saw lambda expressions for the first time. But let me tell you this: they really only look scary on the very first look. This article covers the basics of using lambda expressions and should be seen as quick introduction rather than extensive documentation. What are Lambda Expressions? Lambda expressions somehow belong to the anonymous methods. However, they are not called expression instead of method for nothing. They are therefore only similar, not identical. Under a certain circumstance, i. e. the assignment of a delegate, they can be used identically. ...

January 18, 2018 · 4 min · Marcel Jurtz