How to generate Swiss QR Code in C# and VBA

Swiss QR Code in C-Sharp and VBAToday, we are looking into the field of business computer science. Since end of April, SIX has released the specification for the new Swiss QR Code according to ISO 20022. The Swiss QR Code is an integral part of the new Swiss deposit slip, the so-called QR invoice, which shall be implemented by all companies by mid-2018 at the latest. The Swiss QR code is placed in the so-called “number part with QR code” of the QR invoice.
In the following, we will discuss how the Swiss QR code can be generated using C # or VBA. To do this, we use the free QRCoder library, which I developed almost 4 years ago and to which recently added the Swiss QR Code. One more thing before we […]

.NET Core – gdiplus.dll not found in Linux

A few days ago there was an issue raised in my QrCoder project. It was reported that the code would not run under Linux, as the following error message would occur:

Unhandled Exception: System.TypeInitializationException: The type initializer for ‘System.Drawing.KnownColors’ threw an exception.
—> System.TypeInitializationException: The type initializer for ‘System.Drawing.GDIPlus’ threw an exception.
—> System.DllNotFoundException: Unable to load DLL ‘gdiplus.dll’: The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at System.Drawing.GDIPlus.GdiplusStartup(UInt64& token, GdiplusStartupInput& input,
[…]

However the error message had its origin not in my QrCoder, but in the interplay of the .NET core framework with the GDI Plus library. The .NET Core Framework tries to access “gdiplus.dll” when accessing “System.Drawing.GDIPlus”, which is simply not available on Linux.
First solution approach
First, ensure that GDI+ is installed at all. This can be done with the following shell command:

sudo apt-get install libgdiplus

If libgdiplus is installed, however, another important step is missing …
Link libgdiplus for .NET Core
Because the […]

How to download SSL/TLS certificates in C#

How to download SSL and TLS certificates in CsharpThis article is about how to download (or save) SSL/TLS certificates from any server by use of C#. Although nowadays certificates can be stored quite simply from the web browser, this is always associated with quite a few clicks. And at the latest when you want to store certificates from mail servers, etc., i.e. systems that can not be addressed directly in the web browser, a programmatic solution, as shown in this post, may be the easier way.
All in all, I would like to introduce two variants today. One variant, which works only for HTTPS connections and another variant, which works for all TCP connections (like mail servers, etc.).
Download HTTPS/SSL certificates in C#
The first addressed solution works only for HTTPS connections and is […]

Drawing 3D graphs in C# with ILNumerics

ILNumeric - different 3D plotsThis article deals with how elaborate graphs can be drawn in C# with the help of the ILNumerics class libraries – if requested the graphs can even be animated as well.
Similar to all of my articles on this blog, I will briefly introduce the library first, then I will obtain the necessary bases which are needed for the coding later on and finally I will show you step by step how to get there. Let’s start!
What is ILNumerics?
ILNumerics is a .NET class library that includes a number of components. The two core components are the Compute Engine and the Visualization Engine. ILNumerics expands the .NET-Framework by complex numbers, scalars and vector calculations, matrices and matrix operations, multi-dimensional data structures and much more.
Another advantage of ILNumerics is the Visualization Engine that makes plotting of two or three-dimensional […]

Update: 404Checkr 1.7.5.0

 
404Checkr - RunningQuick interim report – as of today there is a new version of my mass linktester called “404Checkr”.
For those who can not remember anymore, let me explain it in a few words – the 404Checkr was released about a year ago by me. By means of this tool one can easily and very quickly test lots of links for their validity. Thus, for example, one can easily check out which webpages of a linklist are still online and which aren’t.
In the current version (1.7.5.0) I have added four new features:

The 404Checkr now brings its own system to resolve domain names. Thus it can be taken to find the IP from a server by using its domain name. So servers can be tested even if Windows isn’t able to resolve the domain […]