Stitching and Appending Images (Screenshots / Memes) Vertically with Imagemagick

Stitching or stacking images can be relevant for publishing them to some websites. Meme sites like 9gag or similar have a specific layout format for “longposts” (very long images) that are displayed without scaling and are often used as a format for webcomics or a compilation of images.

I was wondering if anyone on there was interested in photography and decided to stack some of my yet unpublished pictures of the Axel Towers in Copenhagen. Turns out nobody really cares about photography there, but hey, if you have more appropriate material, I’m sharing the imagemagick command here.

Continue reading “Stitching and Appending Images (Screenshots / Memes) Vertically with Imagemagick”

SQL Dump Probing

I witnessed this attack recently, basically it’s just some web crawler trying different file names that somebody could have given a mysql dump that they by accident left inside a public directory of a web project.

Disclaimer: What’s explained in this post could be used in dual use cases. Explaining how the attacker works will ultimately help everybody preventing attacks and raise awareness for the attacks.

Continue reading “SQL Dump Probing”

Best Programming Language (and Tutorials) for Beginners

Which programming language to learn or which one to learn next is one of the eternal struggles of being a developer. For beginners there is a myriadic jungle of choices and every developer they know tells them something different.

The key to learning your first language or which language to recommend to beginners actually is not the language itself, but which path they’re going to take. There is a lot of opinion on which language somebody should learn first, so here’s mine.

Continue reading “Best Programming Language (and Tutorials) for Beginners”

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”