Christian Kruse

Welcome. On this page you can find my software projects, my articles, my notes and my pictures.

My name is Christian Kruse. I work as a software developer and system administator at Termitel GmbH. I live in Germany in a small town called Steinfurt.

I am passionate about software development, GNU/Linux, FLOSS as well as OS X. I am also a do-it-yourself apologetic: I did a lot of things in and around my house myself. I love the hacker culture. And last but not least I am a dog owner.

This is my personal replacement for Twitter, Facebook and the other data silos. My content is mine — so if you are interested in my activity, just have a look at this page.

Last Article

What's new

Atom Feed

  1. 2019-05-19
    Christian Kruse,

    I'm glad I used Ansible for deploying my servers a few years ago. This allowed me to move my current setup to a new Digital Ocean droplet with minimal effort. Just a few changes due to new system versions. 🎉

    15:57
  2. 2019-05-17
  3. Christian Kruse,

    We found this beauty in a shop full of old games (think gameboy, NES, etc) in Enschede 😍

    06:16
  4. Christian Kruse,

    Recently we had a deer resting in our garden. Just about 5m away from our living room door.

    06:14
  5. 2019-04-27
    Christian Kruse,

    It's fascinating to see how Rammstein still manages to create controversy and attention, even though they are in the business that long. First there „Deutschland“ video, where a lot of mainstream media weren't able to see the criticism on German history and called fascism. And now „Radio,“ a homage to the German band „Kraftwerk,“ a nostalgic view back on DDR history and, again, criticism on German history. And again all media is reporting.

    Well done, Rammstein! 👍

    06:26
  6. 2019-04-19
  7. 2018-09-19
  8. 2018-09-12
    Christian Kruse,

    Public service announcement: Math.max(...[]) returns -Infinity - took me about an hour of debugging to locate this problem.

    19:25
  9. 2018-09-11
    Christian Kruse,

    Currently I am working on a TypeScript project. During this project I wanted to give the TypeScript compiler the hint that I expect a class object as a parameter. I couldn't find something in the documentation. But since you can use expressions as type declaration I tried to use typeof:

    class Bar {}
    function foo(val: typeof Bar) {}
    foo(Bar)
    

    Surprisingly this works. Now after I knew what I had to look for I could find a hint in the documentation as well:

    Next, we then use the class directly. Here we create a new variable called greeterMaker. This variable will hold the class itself, or said another way its constructor function. Here we use typeof Greeter, that is “give me the type of the Greeter class itself” rather than the instance type.

    Maybe this saves you a few headaches.

    09:23