Quick Fix: Run C# Code on Linux with Mono

Running C# (or C-Sharp) on Linux is pretty trivial unless you depend on something that’s a Windows specific library. I just came a cross a tiny bash script (rather alias) I wrote when I was a teacher, since I also taught basic programming with C#. Since I’m cleaning up an old hard drive I stumbled across a small script I wrote for that.
Continue reading “Quick Fix: Run C# Code on Linux with Mono”

Reddit Place and how they did it

Reddit did an amazing thing recently, that gave every user the possibility to place exactly one pixel every 5 minutes on a gigantic drawing board. What the community made of this was pretty incredible.

There were multiple Linux and video game logos, country flags and a ton of other stuff. I merely helped out keeping the tux (as seen above) in a good shape and revert stray pixels on its white belly 😉

Continue reading “Reddit Place and how they did it”

Golang TOML Configs Example: MySQL Connection

Let’s have a look at how to split application code and configuration for your Golang app. As an example I’d like to show how to use TOML to load your database configuration.

I came to write this because I was dabbling with exporting WordPress posts to TOML front matter / hugo and needed to be able to swap out database servers for development and production servers.

Continue reading “Golang TOML Configs Example: MySQL Connection”

Best Fonts for Programming / Developers

As many nerds I have a super hard time to not try a thing I read about, so I’ll try to trim down your journey of trying out all the best fonts that are made specifically for code editing.

A good font can make your development experience more pleasant by having everything more easily readable and also to prevent typos between characters that in other fonts are close to indistinguishable like lower l and uppercase I or the digit 1.

Continue reading “Best Fonts for Programming / Developers”

Remarkable – Cool Future Paper

I’m super quick at typing. I mean nothing close to world records, but let’s say I’m fairly quick. I can’t imagine not typing to get things done, but at work I have an A4 college block as my mouse pad and I scribble around on it a lot, to remember something visual, something I don’t want to open a text editor window for or just because the experience of writing physically helps me not forget quite as much as I otherwise would.

Today I saw an ad for this sketchpad / e-ink e-reader hybrid Remarkable and I can’t wait to try it, also because I actually would like an e-reader. If it’s one that I can scribble away on, that would be even more awesome. (I can’t draw I can’t draw well).

Continue reading “Remarkable – Cool Future Paper”

Custom JavaScript Trigger Functions for Google Tag Manager

In this post we’ll go through how to fire events for the Google Tag Manager with custom JavaScript functions. Most tracking can be done just by using the built in Google Tag Manager tracking, but for developers that want to debug or need events to be recorded on very specific occasions that can not be implemented with the default functionality, JavaScript is the way to go.

Continue reading “Custom JavaScript Trigger Functions for Google Tag Manager”

Music Monday: Powerwolf

Powerwolf is a, who would have guessed by the name, power metal band that mainly digs into werewolf lore and grim stories of crusades and holy/unholy Christian history.

The singer is an opera singer by trait and that’s pretty clearly audible on most tracks (no growling ;)). The musical style is a bit Nightwish, Blind Guardian or Sabaton (if these names ring a bell). The lyrics remind me a bit of Rammstein and sadly sometimes they’re also a bit short and contain a lot of chorus, but that’s actually the only complaint I have.

Continue reading “Music Monday: Powerwolf”

Building a Singe Page App with Vue.js Tutorial

In this post we’ll create a single page app with Vue.js that shows a random quote or string. We’ll start from scratch and use the default webpack-simple boilerplate provided by the creators of vue through vue-cli.

This again is part of the Making of photographerexcuses.com post series, where I walk you through all parts that were necessary to create the page.

For this tutorial you’ll need to have node.js including npm installed.

Continue reading “Building a Singe Page App with Vue.js Tutorial”

Proxy / Rewrite your API Endpoint into Domain Segment with Nginx

I wanted to make an API available on the same domain as a single page app built with Vue.js, which means that I had to rewrite a part of the domain to use another port on the same host, but you can also use an entirely different machine or have a load balancer in between.

This post is part of the Making Of: photographerexcuses.com series.

I picked nginx for a server for some PHP productions and this because it simply has the best configs and it tends to perform a bit better if you don’t have a lot of RAM to throw at your server.

Continue reading “Proxy / Rewrite your API Endpoint into Domain Segment with Nginx”

Deploying your Golang App without Docker

How to deploy an app written in Go? That’s one of the questions I had when I first wanted to get something online after playing with Go for a while. Thinking back I think the first project I got online, was probably the redirect checker which is explained in detail here: Tracing or Preventing HTTP Redirects in Golang

When you just want to get stuff running, you probably don’t want to learn a container system, but just get it out there which is exactly what we’re going to have a look at in this post.

Continue reading “Deploying your Golang App without Docker”