Javascript arrow function WTF
I thought that JavaScript arrow functions are just a shorthand notation for regular functions. I was wrong, and I found it the hard way. Arrow function treat ‘this’ keyword differently. […]
I thought that JavaScript arrow functions are just a shorthand notation for regular functions. I was wrong, and I found it the hard way. Arrow function treat ‘this’ keyword differently. […]
Here’s the scenario: the folder named “secure” contains sensitive data and should be protected by user name and password. To redirect all HTTP requests to HTTPS and enforce basic authentication […]
Looking at the famous answer explaining why parsing HTML with RegEx is a bad idea made me wondering: what tool the poster used to type so many diacritics? Quick googling […]
I moved an SSD drive with Windows 10 from one machine to another machine with completely different hardware, and to my surprise it booted successfully! Older versions of Windows would […]
We have run into the strangest thing on our production machines, which are Windows Server 2012. The symptom is that you try to connect to the remote desktop, and immediately […]
Over the Thanksgiving week-end I have moved the blog to an Ubuntu virtual machine and have also changed the WordPress theme. The URL is still the same: http://www.ikriv.com/, but the […]
nUnit has a great feature of running multiple similar test cases via data-driven approach: [TestCase(“”, “”)] [TestCase(“q”, “q”)] [TestCase(“xyz”, “zyx”)] public void TestStringReverse(string s, string expectedResult) { var result = […]
Amusing fact #1: .NET framework does not have built-in class to load RSA private key from PKCS#1 (PEM) representation. I borrowed this: http://www.codeproject.com/Articles/162194/Certificates-to-DB-and-Back Amusing fact #2: creating an RSA key […]
A couple of hours ago my Outlook at work stopped working getting stuck on “trying to connect”. The Exchange Server appeared to be alive. Restarting and rebooting did not help. […]
I have created a VM from an image with a very clamp down security setup. In particular, it had a very limited set of trusted root CAs. It would not […]