Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Saturday, 25 August 2018

Building libpq on MSYS2 MinGW 64 bit for libpqxx

For Windows, although there is a PostgreSQL installer provided, the libpq in the installation directory cannot be used to link libpqxx on MSYS2. This post shows how to build libpq from source on MSYS2.

Saturday, 19 May 2018

Wednesday, 2 May 2018

Sunday, 11 December 2016

How to use Haskell arrows (for beginners)

This post is an introduction to Haskell arrows (Control.Arrow), with no rigour at all. All you need is a basic understanding of Haskell, e.g. functors and monads.

Sunday, 4 September 2016

Sunday, 28 December 2014

Generate trees from materialized paths in Jade

Suppose you have the following objects retrieved from a database, in an array. How would you generate a tree in HTML?

Sunday, 14 December 2014

Using libmicrohttpd with MSVC

Windows is not POSIX compliant. Attempting to include files like sys/select.h will not work because they don't exist. Here's a step-by-step guide to get the libmicrohttpd demo working on MSVC.

Sunday, 23 November 2014

Identifying colours using GIMP

Often we find a need to identify colours on the screen. There are lots of utilities and fancy tools out there, even web based ones, but I tend to use GIMP as I have it installed already. It's a general purpose image editing tool along the lines of Adobe Photoshop, plus it's open source, so head over and get it now.

Sunday, 26 October 2014

Web page layout using CSS

In this post we explore a simple way to give web pages a navigation bar and a fixed-width sidebar.

Sunday, 5 October 2014

fgets and fputs

In this article we explore the use of fgets and fputs to deal with piped input. Admittedly, it is a rather roundabout way, but it can be useful in specific situations.

Sunday, 28 September 2014

Sunday, 7 September 2014

Introduction to CSS

The ubiquitous Cascading Style Sheets (CSS) is used in web pages to separate content from formatting.

Sunday, 31 August 2014

Generate mail in bulk using Windows' cmd tool

With all the fancy software out there, it is often easy to overlook simple tools that work just as well. In this article we explore the use of cmd shell scripting to generate mail for a list of recipients.

Sunday, 10 August 2014

Return value optimization

RVO is a form of copy elision compiler optimization, where unnecessary copies of objects are eliminated.

Sunday, 3 August 2014

Sunday, 27 July 2014

FLTK Hello World on Linux

FLTK is a cross-platform C++ toolkit. This easy guide shows you how to set it up.

Sunday, 13 July 2014

Using std::set emplace

Emplace is a C++11 feature intended to minimize unnecessary copy or move operations for STL container elements.

Sunday, 1 June 2014

The missing ampersand

The ampersand operator (&) is used to show that a parameter should be passed by reference. What difference does it make?