ztirom Blog

VS Code Win Line End Setting 0

Resolving “/bin/bash^M: bad interpreter” with a Shellscript written on Windows in VS Code run on Linux

When writing Shellscripts on a Windows machine and then trying to use the scripts on Mac, I stumbled over the error below: -bash: ./script.sh: /bin/bash^M: bad interpreter: No such file or directory The problem here are the different line endings. Windows will mark the line ending with different control characters, maybe you saw them before, while adding a new...

Azure SSH Save Key 0

Generate and use a SSH Key with PuTTY and an Azure Linux VM

Generating a SSH key and use the result to log in to your Azure Linux VM is not that hard to accomplish. In the following article I want to go over the steps. Get PuTTYgen to generate your SSH key First we need to download another “PuTTY” tool called PuTTY Key Generator. Just download the PuTTYgen executable and start...

Azure NGINX Ubuntu Result 0

Setup Nginx and Ubuntu on Azure

While migrating a WordPress site from Apache to Nginx on AWS, I started setting up the equivalent environment in Azure and thought it would be nice to write the steps down. First I want to start with the basic setup. Overview: Install and Setup Nginx on Azure with a Ubuntu VM PHP with Configuration MySQL Setup WordPress Configure Nginx and WordPress Please...

AX2012 WHS MDP Delet User Session 0

Delete WHS Mobile Device Portal User Session in AX2012

To test the “new” WHS Mobile Device Portal in AX 2012 R3, one can use the WHSWorkExecute form (a nifty WMDP emulator). But while creating a new form inside the WMDP, I managed it to get stuck in a blank form, with no way out. On top it seems like the actual session is saved in the WHSWorkUserSession table and even after logoff / logon...

Microsoft Band 2 Österreich 0

Microsoft Band 2 in Österreich kaufen

Weil mir aufgefallen ist, dass einige Besucher meines Blogs auf der Suche nach dem Microsoft Band 2 in Österreich sind. Anbei eine kleine Zusammenfassung wie ich es letztendlich nach Wien geliefert bekommen habe. (For my english readers: A post about buying the Band in Austria is following here.) Wo gibt es das Microsoft Band 2 in Österreich? Schlechte...

AX2012 Dialog Custom Lookup Open 3

AX2012 Custom Lookup on a Dialog

Today I struggled with a custom lookup on a dialog in Microsoft Dynamics AX 2012. To prevent this from happening to me again, and maybe to help you out too, I will share the solution with you here. The following code will utilize a class which extends the AX2012 RunBase class, with a simple dialog and a custom lookup on...

Xamarim Microsoft Band Android App 0

First steps with Xamarin and the Microsoft Band SDK

Last Saturday my Microsoft Band 2 was finally delievered to me, I preordered it at Amazon.co.uk on the time it was presented in NY. Till today I do not see a way to get in Austria on another way, very unfortunate – it’s a really nice piece of tech. Normally one would think the first think to do with...

Find licences used in Node.Js 0

Find licenses used in a Node.js project

At some point of writing code and installing a various number of packages per npm, I was curious about how to find all the licenses used . So I searched for an easy way to get a list of all my installed packages, along with the licenses used. Node License Finder After a short research I found a...