Category Archives: Howtos

Automatic generation of C++ code for process models – 3 of 3

Here we are at the last installment of this series of posts on automatic code generation, which started out as a journey to make the workflow for coding process models in C++ with the LIBPF™ library easier and less boring. … Continue reading

Posted in C++, Chemeng, Howtos | Leave a comment

Automatic generation of C++ code for process models – 2 of 3

In this part two of the series of three posts we will leverage the techniques discussed in part one (command-line C++ code generation from the JSON representation of process models with the jinja2 template engine) to make the code generation … Continue reading

Posted in C++, Chemeng, Howtos | Tagged | Leave a comment

Automatic generation of C++ code for process models – 1 of 3

Coding process models in C++ with the help of LIBPF is easy (try one of our tutorials !), but it’s fair to say that it’s somewhat boring and error prone. For example if you add an integer parameter to your … Continue reading

Posted in C++, Chemeng, Howtos | Tagged | Leave a comment

Interpreting “The program can’t start errors” on Windows

Sometimes when you start an executable named say xxx.exe on Windows Desktop a modal pop-up may appear: with the message: The program can’t start because xxx.exe is missing from your computer. Try reinstalling the program to fix this problem. As … Continue reading

Posted in Howtos, Rants | Leave a comment

Automated bug finding with git bisect and boost::test

Here we use boost::test to write test programs for our C++ code, and git as a distributed version control system to track revisions. One day a test that used to pass stopped working so I decided to try git-bisect to … Continue reading

Posted in Howtos | Leave a comment

Using jshint on Debian jessie

tl;dr: If you wish to use jshint on Debian jessie, do this: sudo apt-get update sudo apt-get install nodejs nodejs-legacy npm sudo npm install jshint -g jshint Long story: this is difficult to get right if you read random posts … Continue reading

Posted in Howtos | Leave a comment

First try at webapp integration testing with capybara on debian

Capybara looks like a promising tecnology for integration testing of web applications, so we decided to give it a try on debian jessie workstation. There are some howtos around based on rails or other ruby-specific stuff, but what is required … Continue reading

Posted in Howtos, UI, Uncategorized | Leave a comment

Debian Wheezy with KDE

The right way to install KDE on Debian Wheezy is to start the right installer by choosing “KDE desktop” under Alternate Desktop Environments under Advanced Options in the CD boot menu. If you haven’t done that, you’ll end with Gnome. … Continue reading

Posted in Howtos, Uncategorized | Leave a comment

Apple OS X virtualization with VirtualBox

A long time ago virtualizing Apple OS X was forbidden by the End User License Agreement, with the exception of Server versions of the operating system. Consequently Oracle (the maintainer of VirtualBox) was not very supportive, and many replies on … Continue reading

Posted in Howtos, Uncategorized | Leave a comment

Reduce doxygen footprint on debian

When you install doxygen on a recent debian OS, it will also install doxygen-latex, which bloats the footprint (on 32-bit wheezy) from 7.5 to 963 MB. To avoid that once and for all, pin the doxygen-latex package with a negative … Continue reading

Posted in Howtos | 2 Comments