Hacker’s diary

Cannot connect to RDP

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 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 […]