I am working on a product whose back-end is implemented as collection of micro services. We had a requirement to implement an API that should respond information about running instances of services and their metadata. As the services are independent of each other and already communicating through message queues, we...
[Read More]
Embedding DB migrations through Golang build tags
In this post I am going to explain how to embed database migration sqls within application binary and how can we utilize the Golang build tags to maintain both embedded and non-embedded versions of database migrations.
[Read More]
Pure CMake based bin2h implementation
I had been writing CMake build script for a project that requires converting few files into C/C++ headers so that the content of those files can be embedded in the output binary.
[Read More]
RSA OAEP padding with SHA512 hash algorithm
Recently I wanted to encrypt a message with RSA with OAEP padding. I also wanted to use SHA512 as hashing algorithm and mask generation function(MGF) in the OAEP padding instead of SHA1. But it looks like it is not possible with the OpenSSL/libcrypto as the SHA1 hash algorithm is hard...
[Read More]
Troubleshooting .NET 'module could not be found' exception with ProcessMonitor
In this post I am going to share a technique to troubleshoot “module could not be found” exception in managed/.NET application due to missing native DLL dependency. The difficulty in troubleshooting this exception is it doesn’t provide any information about the missing DLL(e.g. file name) apart from the exception message...
[Read More]