Matplotlib Custom Hatch Patterns in 5 Steps

Matplotlib hatch is a pattern that can be used as an overlay in bar charts, shapes and are important to ensure the readability of graphs in the absence of color (when printed in a single color format). Unfortunately, there are only a few patterns available on Matplotlib. By reading this post, you will be able…

C++ Concepts: A World Without Unchecked Generics

C++ concepts is a revolutionary idea aimed at building better and safer abstractions at the code level. Generics in C++ allows to express an abstract operation (maybe an algorithm) to different types (classes). Templates allowed abstraction of operations such as sort which can be used to sort a vector, an array or any object with…

Branch Listing Using Intel Pin Tool

Having read this blog post, you will be able to generate a branch listing using Intel Pin Tool. If you are interested in installing pin, please look at  this article. Instead, if you are interested in the basics of writing a pin tool, I strongly suggest to refer to this article. Pin ships with many…

C++ Logging Module Designed for Research : rlog

CHECK OUT ON GITHUB Why Should Researchers use C++ Logging? Most research and development occur in a haphazard manner and not investing time early on to adopt good development practices can increase the difficulty in extending research projects. Having a good C++ logging framework can help to reduce developing and debugging time significantly. Why Not…

Why Researchers Should Use C++ Unit Testing

In this post, I will explain how to use GTest (Google C++ Testing Framework) configured with CMake to handle C++ unit testing. Unit testing ensures you the correctness of your code especially when you modify it to incorporate optimizations / special conditions. Purpose Statement Often in academia and research, people tend to think that investing…

How to Apply for a PhD in US in 5 Steps

Many Sri Lankan students struggle to find quality sources of information on higher studies except for those who are lucky extremely enough to have the right connections. This guide will help you learn about graduate study opportunities and how to discover them.  First of all, I should mention about US-Sri Lanka Fulbright Commission. They offer wide…

Branch Count using Intel Pin Tool

Pin Tool already has many inbuilt examples. Be sure to check before resorting to writing your own tool. 😉 Having read this blog post you will be able to create your own tool to count the number of branches. You will also be able to learn the  fundamentals that you would need to do any…

Intel Pin Tool; Setting up in 5 easy steps

This is the beginning of the Intel Pin Tool Series. Having read this post, you will be able to set up Intel pin tool and run a basic example to count the number of instructions in your program. Step 1 Download the pin tool from Intel (https://software.intel.com/en-us/articles/pin-a-binary-instrumentation-tool-downloads). Select the appropriate operating system and copy the…

Add Matplotlib Percentage Ticks to a Histogram

Matplotlib provides an easy way of converting your yaxis to percentages. It’s just a one liner But the issue is you can’t space the yticks as you want them to be. Usually you can do this by setting yticks (ax.set_yticks). But the issue is, python converts the axis directly to percentages, only after setting the…