Posts

Showing posts from November, 2015

How to use GraphViz for visualizing graphs

Image
GraphViz is a very useful tool for defining and visualizing graph structures - once you know how. I find it's documentation on how to use the thing a little lacking, so I've posted some instructions on how to get started. For Windows operating systems, download and install the GraphViz programmer from here: https://www.graphviz.org/download/

Showing and hiding controls in WPF / XAML

Image
A short post on how to show or hide a control in WPF by using a BooleanToVisibilityConverter . As a minimalist example, start by creating a new WPF project from Visual Studio:

WPF Binding an Image using XAML and MVVM

Image
A post describing how to bind an image such as a bitmap or png file to your viewmodel. In Visual Studio create a new WPF project:

Getting started with NSubstitute

Image
Some instructions on how to get you set up and unit testing your .NET code quickly and easily using NSubstitute. 1. Download NSubstitute Obtain NSubstitute from the following download link: https://github.com/nsubstitute/NSubstitute/downloads And extract it to a location of your choice. It is basically a dll file which gets referenced in your Visual Studio .NET project:

Getting started with the Boost Graph Library

Image
Introduction Some simple walk-throughs on how to use the Boost Graph Library. I find much of the documentation, both online and printed, to be a bit impenetrable. I am sure I am not alone, so I thought it might be worthwhile to post a few examples of its usage that actually compile and work (for me anyway, let me know if you see any problems) as well as being reasonably up to date. Boost Graph Library is a header-only library that requires no separate compilation. All that is usually required is to set the location of the additional include directories in your integrated development environment (IDE) and you're ready to go. In Microsoft Visual Studio for example, just set the location of the Boost Library path in C/C++ > General > Additional Include Directories:

How to remove the 'forgot your password?' link on your WordPress login page

Image
A guide to making your Wordpress website a little more secure by getting rid of the 'forgot your password?' link/text (highlighted in red) that by default will appear on the login page: