Concatenating / Merging .csv on the Linux or Mac OS Terminal

For data analysis .csv files with houndreds of thousands of data sets still play a role. You might think:

Hey, why worry about .csv, that’s an ancient format, nobody uses that!

Think again! CSV files, comma separated values (that also can be separated by tabs or kind of any character you want, but never mind that) are still used a lot on in data analysis as a raw input format.

Continue reading “Concatenating / Merging .csv on the Linux or Mac OS Terminal”

Taking Full Page Screenshots with Headless Chrome

A returning subject on this blog, how to automate device screenshots with Node.js and Chrome. This post will cover installation and running the script on either Mac OS or Linux. If you’re brave, you can use Windows too 😉

Continue reading “Taking Full Page Screenshots with Headless Chrome”

How to keep Soft Line Wrap at Column width Visual Studio Code and MarkDown

I’m trying Visual Studio Code at the moment and it’s a fun and fast atom alternative. One of my early annoyances was that I could not figure out how to make my MarkDown files wrap at the desired column width.

The trick apparently is to define the following settings:

Continue reading “How to keep Soft Line Wrap at Column width Visual Studio Code and MarkDown”

Nautilus / Nemo: Missing Image Previews on Linux [SOLVED]

A default limit to image files like .jpg, .png and similar causes Gnome Desktops not to generate image previews for them on Linux. If an image is larger than 10 MB, no preview will be displayed, but the default image icon. Here’s how to fix it:

Continue reading “Nautilus / Nemo: Missing Image Previews on Linux [SOLVED]”

Image Resizing with Gulp

Writing your own tools and scripts is always a very satisfying thing. You take something that used to take a long time and then you automate it.

JavaScript task runners like gulp are a great deal of help when automating tasks with the help of a large amount of community packages for almost every purpose.

Continue reading “Image Resizing with Gulp”

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”

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”