“The certificate chain was issued by an authority that is not trusted” when connecting DB in VM Role from Azure website

You likely don’t have a CA signed certificate installed in your SQL VM’s trusted root store. If you have Encrypt=True in the connection string, either set that to off (not recommended), or add the following in the connection string: SQL Server will create a self-signed certificate if you don’t install one for it to use, but it … Read more

libpng warning: iCCP: known incorrect sRGB profile

Libpng-1.6 is more stringent about checking ICC profiles than previous versions. You can ignore the warning. To get rid of it, remove the iCCP chunk from the PNG image. Some applications treat warnings as errors; if you are using such an application you do have to remove the chunk. You can do that with any … Read more

Using Enum values as String literals

You can’t. I think you have FOUR options here. All four offer a solution but with a slightly different approach… Option One: use the built-in name() on an enum. This is perfectly fine if you don’t need any special naming format. Option Two: add overriding properties to your enums if you want more control Option Three: use static finals instead … Read more

what is meant by devel for openssl?

You’re correct – it’s short for “development package”. For Linux, you need a command like this: yum install openssl openssl-devel # for Redhat/Centos/openSUSE apt-get install openssl openssl-dev # for Debian/Ubuntu Note: these commands use the “package manager” to install both openssl (which it sounds like you already have: but it wouldn’t hurt to do an install), and … Read more

RegExp in TypeScript

I think you want to test your RegExp in TypeScript, so you have to do like this: You should read MDN Reference – RegExp, the RegExp object accepts two parameters pattern and flags which is nullable(can be omitted/undefined). To test your regex you have to use the .test() method, not passing the string you want to test inside the declaration of your RegExp! Why test + “”? Because alert() in … Read more