My blog has new home!
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 […]
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 […]
As part of creating self-signed certificate, we use the following code: var enroll = new CX509Enrollment(); enroll.InitializeFromRequest(cert); enroll.CertificateFriendlyName = friendlyName; string csr = enroll.CreateRequest(); // may fail with ACCESS DENIED […]
I have been working with Git for about a year now, and I think I am ready for some summary. Before Git, I used SVN, and before it Perforce, TFS, […]
I have just run into a problem: a test passes fine on the CI sever, but breaks on my machine. Reason: it gets a wrong config file. Root cause: when […]
The following code does not work as expected: $xml = simplexml_load_string(“<root><a/><b>text</b></root>”); $node = $xml->xpath(“/root/a”)[0]; if ($node) process($node); // process($node) may not be called for some valid nodes Unlike most other […]
I have discovered a bug in PHP 5.4.4: a simple XPATH does not work. $xml = simplexml_load_string(“<root><a/><b>text</b></root>”); $node = $xml->xpath(“/root/b”)[0]; // $node is null $node evaluates to FALSE This is […]