Hacker’s diary

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

TL;DR: XML signatures are trouble, because they are ridiculously hard to implement right. XML signatures in PHP are double trouble, because of lack of decent libraries. .NET security libraries are […]

I did a clean install of Windows 10 on a brand new SSD. Good things: It was relatively straightforward and quick. It also rebooted seamlessly without requiring me to remove […]

I was recently tasked with creating a Windows Store (Metro, WinRT) version of an existing app. This is my first WinRT project. Documenting my experience so far: 1. So called […]

Observing Unhandled Exceptions In .NET unhandled exceptions can be observed via AppDomain.UnhandledException event: AppDomain.CurrentDomain.UnhandledException += myHandler; // C# In Win32 unhandled exceptions are observed via SetUnhandledExceptionFilter call: SetUnhandledExceptionFilter(myfilter); // C/C++ […]